1 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
3 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
4 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
5 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
6 the INDIRECT_REF node built for objects used by reference.
7 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
8 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
9 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
11 2010-10-13 Richard Henderson <rth@redhat.com>
13 * gcc-interface/misc.c (gnat_eh_personality): Update call to
14 build_personality_function.
15 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
16 use__gnat_personality_{v,sj}0.
18 2010-10-12 Vincent Celier <celier@adacore.com>
20 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
21 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
22 of iterating through all sources of the project.
23 * prj.adb (Free): Reset hash table Source_Files_HT
24 (Reset): Reset hash table Source_Files_HT
25 * prj.ads (Source_Data): New component Next_With_File_Name
26 (Source_Files_Htable): New hash table
27 (Project_Tree_Data): New component Source_Files_HT
29 2010-10-12 Tristan Gingold <gingold@adacore.com>
31 * g-trasym-vms-ia64.adb: Use the documented API.
32 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
33 * gcc-interface/Make-lang.in: Update dependencies.
35 2010-10-12 Thomas Quinot <quinot@adacore.com>
37 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
38 PolyORB case): Request is now a controlled type: we can declare the
39 request on the stack, and we do not need explicit cleanup actions
42 2010-10-12 Bob Duff <duff@adacore.com>
44 * s-rident.ads (Profile_Info): This variable is now constant.
46 2010-10-12 Emmanuel Briot <briot@adacore.com>
48 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
49 parameter Separator for backward compatibility.
51 2010-10-12 Robert Dewar <dewar@adacore.com>
53 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
55 2010-10-12 Vincent Celier <celier@adacore.com>
57 * debug.adb: Put detailed documentation for gnatmake switch -dm.
59 2010-10-12 Vincent Celier <celier@adacore.com>
61 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
62 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
64 2010-10-12 Arnaud Charlet <charlet@adacore.com>
66 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
69 2010-10-12 Robert Dewar <dewar@adacore.com>
71 * debug.adb: Add comment.
72 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
74 2010-10-12 Javier Miranda <miranda@adacore.com>
76 * exp_util.adb (Side_Effect_Free): Return true for object renaming
77 declarations that were previously generated by Remove_Side_Effects.
79 2010-10-12 Emmanuel Briot <briot@adacore.com>
81 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
82 "???" when an entity is defined as "*" in the ALI file.
83 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
86 2010-10-12 Emmanuel Briot <briot@adacore.com>
88 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
89 Set_Usage): New subprograms.
90 (Define_Switch): Change profile to add support for help messages and
93 2010-10-12 Javier Miranda <miranda@adacore.com>
95 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
96 attribute Overridden_Operation in predefined dispatching primitives.
98 2010-10-12 Emmanuel Briot <briot@adacore.com>
100 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
101 command line configuration exists and we specify an invalid section.
103 2010-10-12 Robert Dewar <dewar@adacore.com>
105 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
106 exception messages are generated.
107 (Process_PPCs): Fix error in inheriting Pre'Class.
109 2010-10-12 Jose Ruiz <ruiz@adacore.com>
111 * gnatcmd.adb: Use response file for GNATstack.
112 (Check_Files): Pass the list of ci files for GNATstack using a response
113 file to avoid problems with command line length.
114 Factor out the code handling response file into a new procedure named
115 Add_To_Response_File.
117 2010-10-12 Vincent Celier <celier@adacore.com>
119 * debug.adb: For gnatmake, document the meaning of -dm
120 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
121 simultaneous compilations.
122 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
123 simultaneous compilations as the number of processors.
125 2010-10-12 Joseph Myers <joseph@codesourcery.com>
127 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
128 instead of options.h.
130 2010-10-12 Robert Dewar <dewar@adacore.com>
132 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
133 postcondition pragmas.
135 2010-10-12 Robert Dewar <dewar@adacore.com>
137 * errout.ads, erroutc.adb: The # insertion now handles from in place of
139 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
140 message if new switch Exception_Locations_Suppressed is set.
141 (Expand_Pragma_Check): Revised wording for default message for case
142 of precondition or postcondition.
143 * namet.ads, namet.adb (Build_Location_String): New procedure.
144 * opt.ads (List_Inherited_Pre_Post): New flag.
145 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
146 list inherited pre/post aspects.
147 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
148 messages for precondition/postcondition cases.
149 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
150 if flag List_Inherited_Pre_Post is set True.
151 (Process_PPCs): Add initial handling for inherited preconditions
152 (List_Inherited_Pre_Post_Aspects): New procedure
153 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
154 * sem_disp.adb (Inherited_Subprograms): New function
155 * sem_disp.ads (Inherited_Subprograms): New function
156 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
158 (Check_Precondition_Postcondition): Check for inherited aspects
159 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
160 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
161 * sinput.ads, sinput.adb (Build_Location_String): New function.
162 * usage.adb: Add line for -gnatw.l/-gnatw.L
164 2010-10-12 Javier Miranda <miranda@adacore.com>
166 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
168 2010-10-12 Arnaud Charlet <charlet@adacore.com>
170 * xref_lib.adb: Add handling of j/J letters.
172 2010-10-12 Pascal Obry <obry@adacore.com>
174 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
176 2010-10-12 Arnaud Charlet <charlet@adacore.com>
178 * make.adb (Globalize): New procedure.
179 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
180 (Gnatmake): Call Globalize when needed.
181 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
182 pragmas in CodePeer mode.
183 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
184 to generate simpler and consistent code.
186 2010-10-12 Bob Duff <duff@adacore.com>
188 * exp_util.adb (Remove_Side_Effects): Disable previous change,
189 can cause side effects to be duplicated.
191 2010-10-12 Robert Dewar <dewar@adacore.com>
193 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
195 2010-10-12 Arnaud Charlet <charlet@adacore.com>
197 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
198 abstract inherited private operation in CodePeer mode.
200 2010-10-12 Thomas Quinot <quinot@adacore.com>
202 * a-exetim.ads: Minor reformatting.
203 * g-socket.ads (Port_Type): Better definition corresponding to the
204 actual standard range.
205 * exp_ch5.adb: Add comment.
206 * sem_aux.adb: Minor reformatting.
208 2010-10-12 Ed Schonberg <schonberg@adacore.com>
210 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
211 string_literal_subtype so that a new one can be constructed in the
212 scope of the instance.
214 2010-10-12 Robert Dewar <dewar@adacore.com>
216 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
217 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
218 * par-prag.adb (P_Pragma, case Suppress_All): Set
219 Has_Pragma_Suppress_All flag.
220 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
221 (Analyze_Pragma, case Suppress_All): Remove placement check
222 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
223 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
224 * sinfo.adb (Has_Pragma_Suppress_All): New flag
225 (Has_Pragma_Priority): New name for Has_Priority_Pragma
226 * sinfo.ads (Has_Pragma_Suppress_All): New flag
227 (Has_Pragma_Priority): New name for Has_Priority_Pragma
229 2010-10-12 Arnaud Charlet <charlet@adacore.com>
231 * lib-xref.ads: Mark j/J as reserved for C++ classes.
233 2010-10-12 Jose Ruiz <ruiz@adacore.com>
235 * a-exetim-default.ads, a-exetim-posix.adb: New.
236 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
237 POSIX Realtime support to implement CPU clocks.
238 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
239 to the tasking library.
240 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
241 available for shared libraries.
242 * gcc-interface/Make-lang.in: Update dependencies.
244 2010-10-12 Robert Dewar <dewar@adacore.com>
246 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
247 apart expressions with AND THEN clauses into separate pragmas.
248 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
250 2010-10-12 Robert Dewar <dewar@adacore.com>
252 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
254 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
255 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
257 (Check_Optional_Identifier): Handle case of direct arguments
258 (Chain_PPC): Test for abstract case, giving appropriate messages
259 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
261 2010-10-12 Robert Dewar <dewar@adacore.com>
263 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
265 * sem_attr.adb (Eval_Attribute): Code clean up.
267 2010-10-12 Robert Dewar <dewar@adacore.com>
269 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
270 messages and recovery for case of out of order Abstract/Tagged/Private
272 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
273 for case of out of order Abstract/Tagged/Private keywords.
275 2010-10-12 Ed Schonberg <schonberg@adacore.com>
277 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
278 where child unit is main unit of compilation.
280 2010-10-12 Robert Dewar <dewar@adacore.com>
282 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
283 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
284 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
285 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
286 aspect specifications.
287 Recognize aspect specifications for all cases
288 * par.adb: Recognize aspect specifications for all cases
289 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
291 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
292 generic actual types (was missing some guards before).
293 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
295 (Analyze_Single_Task_Declaration): Copy aspects to generated object
297 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
299 * usage.adb (usage): Adjust line for -gnatn switch.
301 2010-10-12 Robert Dewar <dewar@adacore.com>
303 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
306 2010-10-12 Ed Schonberg <schonberg@adacore.com>
308 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
309 declaration of a null procedure resolve the types of the profile of the
310 generated null body now.
312 2010-10-11 Robert Dewar <dewar@adacore.com>
314 * debug.adb: Remove d.A flag to delay address clause (not needed any
315 more). Add d.A flag to enable tree read/write of aspect spec hash table
316 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
318 (Rep_Item_Too_Late): No need for special processing for delayed rep
319 items (and it caused difficulties in the address case).
320 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
321 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
323 2010-10-11 Pat Rogers <rogers@adacore.com>
325 * gnat_ugn.texi: Minor editing.
327 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
329 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
331 2010-10-11 Robert Dewar <dewar@adacore.com>
333 * g-htable.ads (Get_First): New procedural version for Simple_HTable
334 (Get_Next): New procedural version for Simple_HTable
335 * s-htable.adb (Get_First): New procedural version for Simple_HTable
336 (Get_Next): New procedural version for Simple_HTable
337 * s-htable.ads (Get_First): New procedural version for Simple_HTable
338 (Get_Next): New procedural version for Simple_HTable
340 2010-10-11 Ed Schonberg <schonberg@adacore.com>
342 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
343 variant part, use the association list of the subaggregate, which
344 already includes the values of the needed discriminants.
346 2010-10-11 Robert Dewar <dewar@adacore.com>
348 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
349 (Tree_Write): New procedure.
350 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
352 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
353 * debug.adb: Add debug flag gnatd.A
354 * einfo.adb (Has_Delayed_Aspects): New flag
355 (Get_Rep_Item_For_Entity): New function
356 * einfo.ads (Has_Delayed_Aspects): New flag
357 (Get_Rep_Item_For_Entity): New function
358 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
360 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
361 sequence for Freeze_Entity.
362 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
363 ptr. All calls are changed to this new interface.
364 (Freeze_And_Append): Same change
365 (Freeze_Entity): Evaluate deferred aspects
366 * sem_attr.adb: New calling sequence for Freeze_Entity
367 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
368 when we are in spec expression preanalysis mode.
369 * sem_ch10.adb: New calling sequence for Freeze_Entity
370 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
371 flag Has_Aspects applies to all nodes (no need to save aspects).
372 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
373 flag Has_Aspects applies to all nodes (no need to save aspects).
374 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
375 accomodate delaying aspect evaluation to the freeze point.
376 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
377 accomodate delayed aspects.
378 (Rep_Item_Too_Late): Deal with delayed aspects case
379 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
381 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
382 actual types are properly frozen (this is needed because of the new
383 check in Eval_Attribute that declines to evaluate attributes
385 Simplify analysis of aspect specifications now that the flag
386 Has_Aspects applies to all nodes (no need to save aspects).
387 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
389 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
390 flag Has_Aspects applies to all nodes (no need to save aspects).
391 New calling sequence for Freeze_Entity.
392 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
393 specifications now that the flag Has_Aspects applies to all nodes
394 (no need to save aspects).
395 New calling sequence for Freeze_Entity
396 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
397 Get_Rep_Item_For_Entity
398 (Get_Pragma_Arg): Moved to Sinfo
399 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
400 (Is_Delayed_Aspect): New flag
401 (Next_Rep_Item): Document use for aspects
402 (Get_Pragma_Arg): Moved here from Sem_Prag
403 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
404 is output and removes semicolon (simplifies interface).
405 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
407 * tree_gen.adb: Write contents of Aspect_Specifications hash table
408 * tree_in.adb: Read and initialize Aspect_Specifications hash table
409 * treepr.adb (Print_Node): Print Has_Aspects flag
410 (Print_Node): Print Aspect_Specifications in Has_Aspects set
411 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
413 2010-10-11 Robert Dewar <dewar@adacore.com>
415 * aspects.ads, aspects.adb: Major revision of this package for 2nd
416 stage of aspects implementation.
417 * gcc-interface/Make-lang.in: Add entry for aspects.o
418 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
419 * par-ch13.adb (Aspect_Specifications_Present): New function
420 (P_Aspect_Specifications): New procedure
421 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
422 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
423 (P_Identifier_Declarations): Handle aspect specifications
424 (P_Component_Items): Handle aspect specifications
425 (P_Subtype_Declaration): Handle aspect specifications
426 * par-ch6.adb (P_Subprogram): Handle aspect specifications
427 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
428 * par.adb (Aspect_Specifications_Present): New function
429 (P_Aspect_Specifications): New procedure
430 * sem.adb (Analyze_Full_Type_Declaration): New name for
431 Analyze_Type_Declaration.
432 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
433 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
434 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
435 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
436 (Analyze_Single_Task_Declaration): New name (add _Declaration)
437 (Analyze_Task_Type_Declaration): New name (add _Declaration)
438 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
439 Analyze_Type_Declaration.
440 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
442 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
444 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
445 (Analyze_Formal_Package_Declaration): Handle aspect specifications
446 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
447 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
448 (Analyze_Formal_Type_Declaration): Handle aspect specifications
449 (Analyze_Generic_Package_Declaration): Handle aspect specifications
450 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
451 (Analyze_Package_Instantiation): Handle aspect specifications
452 (Analyze_Subprogram_Instantiation): Handle aspect specifications
453 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
455 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
456 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
457 (Duplicate_Clause): New function, calls to this function are added to
458 processing for all aspects.
459 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
460 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
461 Analyze_Type_Declaration.
462 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
463 Analyze_Type_Declaration.
464 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
466 (Analyze_Subprogram_Declaration): Analyze aspect specifications
467 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
469 (Analyze_Private_Type_Declaration): Analyze aspect specifications
470 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
472 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
473 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
474 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
475 (Analyze_Single_Task_Declaration): Analyze aspect specifications
476 (Analyze_Single_Task_Declaration): New name (add _Declaration)
477 (Analyze_Task_Type_Declaration): Analyze aspect specifications
478 (Analyze_Task_Type_Declaration): New name (add _Declaration)
479 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
481 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
482 (Analyze_Single_Task_Declaration): New name (add _Declaration)
483 (Analyze_Task_Type_Declaration): New name (add _Declaration)
484 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
485 have to generate unnecessary pragma argument associations (this matches
487 Throughout do changes to accomodate aspect specifications, including
488 specializing messages, handling the case of not going through all
489 homonyms, and allowing for cancellation.
490 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
491 (Aspect_Cancel): New flag
492 (From_Aspect_Specification): New flag
493 (First_Aspect): Removed flag
494 (Last_Aspect): Removed flag
495 * sprint.adb (Sprint_Aspect_Specifications): New procedure
496 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
498 2010-10-11 Bob Duff <duff@adacore.com>
500 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
501 they match in Ada 95, 2005, and 2012 modes, in the case where the
502 language didn't change. Same thing for the run-time exception message.
504 2010-10-11 Javier Miranda <miranda@adacore.com>
506 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
508 2010-10-11 Robert Dewar <dewar@adacore.com>
510 * s-htable.adb: Minor reformatting.
512 2010-10-11 Javier Miranda <miranda@adacore.com>
514 * debug.adb: Update comment.
516 2010-10-11 Vincent Celier <celier@adacore.com>
518 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
519 unconditionally as for "gnat make" the projects are not processed in
522 2010-10-11 Ed Schonberg <schonberg@adacore.com>
524 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
525 suppress semantic analysis of the body when inlining, prior to
526 verifying that the body does not have a with_clause on a descendant
528 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
529 with_clause on a descendant.
530 (Scope_In_Main_Unit): Simplify.
532 2010-10-11 Robert Dewar <dewar@adacore.com>
534 * exp_ch6.adb, freeze.adb: Minor reformatting.
536 2010-10-11 Vincent Celier <celier@adacore.com>
538 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
539 shared library projects to import projects that are not shared library
542 2010-10-11 Javier Miranda <miranda@adacore.com>
544 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
546 2010-10-11 Arnaud Charlet <charlet@adacore.com>
548 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
549 Suppress/Unsuppress pragmas in codepeer mode on user code.
551 2010-10-11 Javier Miranda <miranda@adacore.com>
553 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
554 tag check in case of dispatching call through "=".
556 2010-10-11 Ed Schonberg <schonberg@adacore.com>
558 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
559 type is legal in the profile of any basic declaration.
560 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
561 incomplete type, including a limited view of a type, is legal in the
562 profile of any subprogram declaration.
563 If the type is tagged, its use is also legal in a body.
564 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
566 (Install_Limited_Withed_Unit): Refine legality checks when both the
567 limited and the non-limited view of a package are visible in the
569 If this is not an error case, the limited view is ignored.
570 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
571 access to subprogram declarations
573 2010-10-11 Robert Dewar <dewar@adacore.com>
575 * exp_ch6.adb: Code clean up.
576 * exp_util.adb: Minor reformatting.
578 2010-10-11 Arnaud Charlet <charlet@adacore.com>
580 * sem_ch3.adb, exp_ch6.adb
581 (Make_Build_In_Place_Call_In_Anonymous_Context,
582 Make_Build_In_Place_Call_In_Assignment,
583 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
584 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
586 (Access_Definition): Add missing handling of No_Task_Hierarchy.
588 2010-10-11 Javier Miranda <miranda@adacore.com>
590 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
591 class-wide expressions.
593 2010-10-11 Arnaud Charlet <charlet@adacore.com>
595 * xr_tabls.adb, sem_res.adb: Minor reformatting
597 2010-10-11 Arnaud Charlet <charlet@adacore.com>
599 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
600 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
601 handling of Attribute_Ref. Add missing blanks in some error messages.
602 (Attribute_Ref, Name_Ref): Declare.
603 Document 'Ref attribute.
605 2010-10-11 Robert Dewar <dewar@adacore.com>
607 * sem_attr.adb: Minor reformatting.
609 2010-10-11 Javier Miranda <miranda@adacore.com>
611 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
612 package System.Aux_Dec in VM platforms.
614 2010-10-11 Arnaud Charlet <charlet@adacore.com>
616 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
617 Suppress/Unsuppress pragmas in codepeer mode.
618 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
620 * einfo.ads: Fix typo.
622 2010-10-11 Emmanuel Briot <briot@adacore.com>
624 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
625 * prj-nmsc.adb: Minor reformatting.
627 2010-10-11 Thomas Quinot <quinot@adacore.com>
629 * sem_attr.adb (Type_Key): Code simplification.
631 2010-10-11 Tristan Gingold <gingold@adacore.com>
633 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
634 very large object on VMS.
636 2010-10-11 Javier Miranda <miranda@adacore.com>
638 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
639 availability of attribute Instance_Spec.
641 2010-10-11 Arnaud Charlet <charlet@adacore.com>
643 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
644 checking syntax only or in ASIS mode.
646 2010-10-11 Ed Schonberg <schonberg@adacore.com>
648 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
649 need a freeze node if some type in the profile has one.
650 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
651 entity has a freeze node, defer elaboration.
653 2010-10-11 Emmanuel Briot <briot@adacore.com>
655 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
658 2010-10-11 Ed Schonberg <schonberg@adacore.com>
660 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
662 * sem_ch6.adb: Diagnose additional error condition.
664 2010-10-11 Bob Duff <duff@adacore.com>
666 * par.adb (Par): Clarify wording of certain error messages.
668 2010-10-11 Gary Dismukes <dismukes@adacore.com>
670 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
671 about nondispatching subprograms to use In_Same_List (reducing use of
674 2010-10-11 Ed Schonberg <schonberg@adacore.com>
676 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
677 reference in a static call.
679 2010-10-11 Steve Baird <baird@adacore.com>
681 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
682 attribute should always be transformed into a string literal in
684 * par-ch4.adb: Type_Key attribute's type is String; update value of
685 Is_Parameterless_Attribute constant to reflect this.
686 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
687 rewrite it as a string literal (attribute value is always known
689 * snames.ads-tmpl: Add entries for Type_Key attribute.
691 2010-10-11 Ed Schonberg <schonberg@adacore.com>
693 * lib-xref.adb (Output_References): Common handling for objects and
694 formals of an anonymous access type.
696 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
698 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
700 2010-10-11 Ed Schonberg <schonberg@adacore.com>
702 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
704 2010-10-11 Gary Dismukes <dismukes@adacore.com>
706 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
707 a warning about subprograms of a tagged type not being dispatching,
708 limit this to cases where the tagged type and the subprogram are
709 declared within the same declaration list.
711 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
713 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
715 2010-10-11 Bob Duff <duff@adacore.com>
717 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
718 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
719 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
720 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
721 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
722 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
723 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
724 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
725 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
726 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
727 instead of Ada_05 (Ada_Version_Type).
729 2010-10-11 Bob Duff <duff@adacore.com>
731 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
732 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
733 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
734 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
737 2010-10-11 Javier Miranda <miranda@adacore.com>
739 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
740 dereference then do not exclude dereferences of access-to-constant
741 types to handle them as constant view of variables (and hence remove
742 side effects when required).
743 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
744 are properly handled.
746 2010-10-11 Robert Dewar <dewar@adacore.com>
748 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
750 2010-10-11 Javier Miranda <miranda@adacore.com>
752 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
754 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
755 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
757 (Expand_Simple_Function_Return): Move to exp_ch6.
758 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
759 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
761 2010-10-11 Robert Dewar <dewar@adacore.com>
763 * snames.ads-tmpl: Add names for aspects.
764 * aspects.ads, aspects.adb: New.
765 * gcc-interface/Make-lang.in: Update dependencies.
766 2010-10-11 Ed Schonberg <schonberg@adacore.com>
768 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
769 a task type, it must be replaced with a reference to Self.
771 2010-10-11 Vincent Celier <celier@adacore.com>
773 * adaint.h: Add prototype for function __gnat_create_output_file_new.
775 2010-10-11 Javier Miranda <miranda@adacore.com>
777 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
780 2010-10-11 Arnaud Charlet <charlet@adacore.com>
782 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
783 for AI05-0033 in CodePeer mode.
785 2010-10-11 Robert Dewar <dewar@adacore.com>
787 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
788 * csinfo.adb: Aspect_Specifications is a new special field
789 * einfo.adb (Flag3): New unused flag
790 * exp_util.adb (Insert_Actions): Add processing for
791 N_Aspect_Specification.
792 * sem.adb: Add entry for N_Aspect_Specification.
793 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
794 (Has_Aspect_Specifications): New flag
795 (Permits_Aspect_Specifications): New function
796 (Aspect_Specifications): New function
797 (Set_Aspect_Specifications): New procedure
798 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
799 (Sprint_Node): Add dummy entry for N_Aspect_Specification
800 * treepr.adb (Flag3): New flag to be listed
802 2010-10-11 Vincent Celier <celier@adacore.com>
804 * adaint.c: Minor reformatting.
806 2010-10-11 Robert Dewar <dewar@adacore.com>
808 * sem_ch6.adb, s-htable.ads: Minor reformatting.
810 2010-10-11 Ed Schonberg <schonberg@adacore.com>
812 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
813 invisible in an instantiation, and both the formal and the actual are
814 private extensions of the same type, look for the desired component in
815 the proper view of the parent type.
817 2010-10-11 Vincent Celier <celier@adacore.com>
819 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
820 AIX, Tru64, Darwin, IRIX and HP-UX.
822 2010-10-11 Robert Dewar <dewar@adacore.com>
824 * a-textio.adb: Minor reformatting
826 2010-10-11 Robert Dewar <dewar@adacore.com>
828 * a-suesen.ads, a-suenst.ads,
829 a-suesen.adb, a-suenst.adb,
830 a-suewse.adb, a-suewst.adb,
831 a-suewse.ads, a-suewst.ads,
832 a-suezse.ads, a-suezst.ads,
833 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
834 * impunit.adb: New names for string encoding units
835 * Makefile.rtl: New names for string encoding units
836 * rtsfind.ads: Minor code reorganization.
838 2010-10-11 Ed Schonberg <schonberg@adacore.com>
840 * exp_ch5.adb: Code clean up.
842 2010-10-11 Ed Schonberg <schonberg@adacore.com>
844 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
845 returns when in a generic context.
846 (Analyze_Function_Return): ditto.
848 2010-10-11 Robert Dewar <dewar@adacore.com>
850 * s-multip.ads: Fix header.
851 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
853 2010-10-11 Vincent Celier <celier@adacore.com>
855 * Makefile.rtl: Add s-multip.
856 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
857 defaulting to 1 for other platforms.
858 * adaint.h: New function __gnat_number_of_cpus.
859 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
860 with a single component "s-multip".
861 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
863 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
864 * s-multip.ads, s-multip.adb: New Ada 2012 package.
865 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
867 2010-10-11 Javier Miranda <miranda@adacore.com>
869 * a-textio.adb: Move new implementation of Get_Line to a subunit.
870 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
872 2010-10-11 Ed Schonberg <schonberg@adacore.com>
874 * sem_aux.adb: Code clean up.
876 2010-10-11 Robert Dewar <dewar@adacore.com>
878 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
880 2010-10-11 Robert Dewar <dewar@adacore.com>
882 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
883 Flag248-Flag254. Define new field Field29.
885 2010-10-10 Olivier Hainque <hainque@adacore.com>
886 Eric Botcazou <ebotcazou@adacore.com>
888 * gcc-interface/lang.opt (gdwarf+): Remove.
889 * gcc-interface/gigi.h (get_parallel_type): Likewise
890 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
891 (gnat_handle_option): Remove OPT_gdwarfplus case.
892 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
893 from gnat_dwarf_extensions.
894 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
895 * gcc-interface/utils.c (get_parallel_type): Remove.
897 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
899 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
900 invert_truthvalue_loc instead of invert_truthvalue.
901 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
902 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
904 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
906 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
907 assertion on the types of the parameters. Use KIND local variable.
908 <E_Incomplete_Type>: Likewise.
910 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
912 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
913 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
914 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
915 (gnat_to_gnu_entity): Adjust calls to annotate_object.
916 (gnat_to_gnu_param): If fat pointer types are passed by reference on
917 the target, pass them by explicit reference.
918 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
919 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
920 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
921 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
922 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
924 (build_function_stub): Iterate on the parameters of the subprogram in
925 lieu of on the argument types. Adjust call to convert_vms_descriptor.
927 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
929 * gcc-interface/misc.c: Delete prototypes.
930 (gnat_init_options): Use local variable.
931 (lang_hooks): Move to the end of the file.
933 2010-10-08 Joseph Myers <joseph@codesourcery.com>
935 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
936 from gnat_init_options.
937 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
939 2010-10-08 Ed Schonberg <schonberg@adacore.com>
941 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
943 2010-10-08 Robert Dewar <dewar@adacore.com>
945 * exp_ch3.adb: Minor reformatting.
946 * exp_ch5.adb: Add comment.
948 2010-10-08 Robert Dewar <dewar@adacore.com>
950 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
951 * gcc-interface/Make-lang.in: Update dependencies.
952 * einfo.ads: Minor reformatting.
954 2010-10-08 Ed Schonberg <schonberg@adacore.com>
956 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
957 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
958 exp_ch3.adb: Change Is_Inherently_Limited_Type to
959 Is_Immutably_Limited_Type to accord with new RM terminology.
960 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
961 of a formal limited private type is not immutably limited in a generic
964 2010-10-08 Robert Dewar <dewar@adacore.com>
966 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
967 Add calls to this new procedure where appropriate
969 2010-10-08 Vincent Celier <celier@adacore.com>
971 * a-textio.adb (Get_Chunk): Code clean up.
973 2010-10-08 Robert Dewar <dewar@adacore.com>
975 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
976 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
977 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
978 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
979 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
980 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
981 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
982 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
985 2010-10-08 Robert Dewar <dewar@adacore.com>
987 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
988 packages can depend on preleborated packages.
990 2010-10-08 Robert Dewar <dewar@adacore.com>
992 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
993 Interrupt_Handler and Attach_Handler not allowed in generics.
995 2010-10-08 Robert Dewar <dewar@adacore.com>
997 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
998 * ali.ads (Allocator_In_Body): New flag
999 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
1000 program violating No_Allocators_After_Elaboration restriction.
1001 * gnatbind.adb (No_Restriction_List): Add entries for
1002 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
1003 * lib-load.adb: Initialize Has_Allocator flag
1004 * lib-writ.adb: Initialize Has_Allocator flag
1005 (M_Parameters): Set AB switch if Has_Allocator flag set
1006 * lib-writ.ads: Document AB flag on M line
1007 * lib.adb (Has_Allocator): New function
1008 (Set_Has_Allocator): New procedure
1009 * lib.ads (Has_Allocator): New function
1010 (Set_Has_Allocator): New procedure
1011 (Has_Allocator): New flag in Unit_Record
1012 * sem_ch4.adb (Analyze_Allocator): Add processing for
1013 No_Allocators_After_Elaboration.
1015 2010-10-08 Geert Bosch <bosch@adacore.com>
1017 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
1019 2010-10-08 Javier Miranda <miranda@adacore.com>
1021 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
1022 Java_Constructors because in the JRE library we generate occurrences
1023 in which the "this" parameter is not the first formal.
1025 2010-10-08 Robert Dewar <dewar@adacore.com>
1027 * par-ch3.adb: Minor reformatting.
1029 2010-10-08 Javier Miranda <miranda@adacore.com>
1031 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
1034 2010-10-08 Robert Dewar <dewar@adacore.com>
1036 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
1038 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
1039 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
1040 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
1041 No_Anonymous_Allocators.
1043 2010-10-08 Vincent Celier <celier@adacore.com>
1045 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
1046 restriction, so that the last comma is always replaced with a left
1049 2010-10-08 Javier Miranda <miranda@adacore.com>
1051 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
1052 first formal of delegates.
1054 2010-10-08 Robert Dewar <dewar@adacore.com>
1056 * sem_aggr.adb: Minor reformatting.
1058 2010-10-08 Robert Dewar <dewar@adacore.com>
1060 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
1061 sequence for soft hyphen for Character'Image case.
1062 * rtsfind.ads (Image_Character_05): New entry
1063 * s-imgcha.adb (Image_Character_05): New procedurew
1064 * s-imgcha.ads (Image_Character_05): New procedure
1065 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
1067 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
1068 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
1071 2010-10-08 Robert Dewar <dewar@adacore.com>
1073 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
1074 for case of Wide_[Wide_]Character.
1076 2010-10-08 Robert Dewar <dewar@adacore.com>
1078 * exp_ch3.adb: Minor reformating
1079 Minor code reorganization.
1081 2010-10-08 Javier Miranda <miranda@adacore.com>
1083 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
1084 pragmas CIL_Constructor and Java_Constructor.
1085 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
1086 predefined primitives for CIL/Java tagged types.
1088 2010-10-08 Robert Dewar <dewar@adacore.com>
1090 * sem_ch6.adb: Minor reformatting.
1092 2010-10-08 Robert Dewar <dewar@adacore.com>
1094 * gnat1drv.adb: Add call to Validate_Independence.
1095 * par-prag.adb: Add dummy entries for Independent,
1096 Independent_Componentsa.
1097 * sem_ch13.adb (Validate_Independence): New procedure
1098 (Initialize): Initialize address clause and independence check tables
1099 * sem_ch13.ads (Independence_Checks): New table
1100 (Validate_Independence): New procedure
1101 * sem_prag.adb: Add processing for pragma Independent[_Components]
1102 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
1104 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1106 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
1107 component with box initialization, if the component is a variant record
1108 use the values of the discriminants to select the proper variant for
1109 further box initialization.
1111 2010-10-08 Thomas Quinot <quinot@adacore.com>
1113 * xsnames.adb: Remove obsolete file.
1114 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
1116 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1118 * exp_aggr.adb: Complete previous change.
1120 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1122 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
1123 extended return must match statically the return subtype of the
1124 enclosing function if the type is an elementary type or if it is
1127 2010-10-08 Vincent Celier <celier@adacore.com>
1129 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
1130 names. Do not report the same duplicate unit several times.
1131 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
1132 defaulted to False, to avoid reporting the same unit as duplicate
1135 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1137 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
1138 others choice is a literal, analyze it to enable later optimizations.
1139 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
1140 and components can be handled by the backend even if it is of a limited
1143 2010-10-08 Arnaud Charlet <charlet@adacore.com>
1145 * a-rttiev.adb (task Timer): Since this package may be elaborated
1146 before System.Interrupt, we need to call Setup_Interrupt_Mask
1147 explicitly to ensure that this task has the proper signal mask.
1149 2010-10-08 Robert Dewar <dewar@adacore.com>
1151 * freeze.adb (Freeze_Entity): For array case, move some processing for
1152 pragma Pack, Component_Size clause and atomic/volatile components here
1153 instead of trying to do the job in Sem_Ch13 and Freeze.
1154 * layout.adb: Use new Addressable function
1155 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
1156 Component_Size): Move some handling to freeze point in
1157 Freeze.Freeze_Entity.
1158 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
1159 freeze point in Freese.Freeze_Entity.
1160 * sem_util.ads, sem_util.adb (Addressable): New function.
1162 2010-10-08 Robert Dewar <dewar@adacore.com>
1164 * sprint.adb: Minor reformatting.
1166 2010-10-08 Javier Miranda <miranda@adacore.com>
1168 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
1170 2010-10-08 Robert Dewar <dewar@adacore.com>
1172 * sem_ch3.adb: Minor reformatting.
1174 2010-10-08 Vincent Celier <celier@adacore.com>
1176 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
1177 not a reserved word.
1178 * prj-proc.adb (Expression): Process string list external references.
1179 * prj-strt.adb (External_Reference): Parse external_as_list external
1181 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
1182 (Set_Expression_Kind_Of): Ditto
1183 * prj.adb (Initialize): Set external_as_list as a reserved word
1184 * projects.texi: Document new string external reference
1186 * scans.ads (Token_Type): New token Tok_External_As_List
1187 * snames.ads-tmpl: New standard name Name_External_As_List
1189 2010-10-08 Thomas Quinot <quinot@adacore.com>
1191 * sem_prag.adb: Minor reformatting.
1193 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1195 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
1196 instance, it is legal to derive from a non-limited actual when the
1197 formal type is untagged limited.
1198 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
1199 analyzed formal as Generic_Parent_Type, to simplify later checks.
1201 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1203 * sem_res.adb (Insert_Default): If default value is already a
1204 raise_constraint_error do not rewrite it as new raise node, to prevent
1205 infinite loops in the warning removal machinery.
1207 2010-10-08 Robert Dewar <dewar@adacore.com>
1209 * sem_util.adb, sem_prag.adb: Minor reformatting
1211 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
1213 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
1214 Add section on pragma Implemented.
1216 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1218 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
1219 concrete parent with a concrete constructor, the inherited constructor
1220 is abstract even if the derived type is a null extension.
1222 2010-10-08 Thomas Quinot <quinot@adacore.com>
1224 * sem_ch4.adb: Minor reformatting.
1226 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
1228 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
1229 (Implemented_By_Entry): Removed.
1230 (Set_Implemented_By_Entry): Removed.
1231 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
1232 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
1233 (Implemented_By_Entry): Removed along with its associated pragma.
1234 (Set_Implemented_By_Entry): Removed along with its associated pragma.
1235 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
1236 (Build_Dispatching_Call_Equivalent): New routine.
1237 (Build_Dispatching_Requeue): New routine.
1238 (Build_Dispatching_Requeue_To_Any): New routine.
1239 (Build_Normal_Requeue): New routine.
1240 (Build_Skip_Statement): New routine.
1241 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
1242 several subroutines.
1243 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
1245 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
1247 (Check_Pragma_Implemented): New routines.
1248 (Inherit_Pragma_Implemented): New routine.
1249 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
1250 dispatching requeue.
1251 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
1252 and adding Implemented.
1253 (Ada_2012_Pragma): New routine.
1254 (Analyze_Pragma, case Implemented): Perform all necessary checks
1255 concerning pragma Implemented and register the pragma as a
1256 representation item with the procedure_LOCAL_NAME.
1257 (Analyze_Pragma, case Implemented_By_Entry): Removed.
1258 * sem_util.adb (Implementation_Kind): New routine.
1259 * sem_util.ads (Implementation_Kind): New routine.
1260 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
1261 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
1262 add Pragma_Implemented. Add special names By_Any, By_Entry and
1263 By_Protected_Procedure.
1265 2010-10-08 Javier Miranda <miranda@adacore.com>
1267 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
1268 variable Has_Static_DT by invocation of function Building_Static_DT.
1270 2010-10-08 Vincent Celier <celier@adacore.com>
1272 * g-dirope.adb (Remove_Dir): Do not change the current directory when
1273 doing a recursive remove of a subdirectory.
1275 2010-10-08 Javier Miranda <miranda@adacore.com>
1277 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
1278 * exp_disp.adb (Make_Secondary_DT): Factorize code.
1279 (Make_DT): Factorize code.
1281 2010-10-08 Robert Dewar <dewar@adacore.com>
1283 * sem_ch4.adb: Minor reformatting.
1285 2010-10-08 Robert Dewar <dewar@adacore.com>
1287 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
1290 2010-10-08 Thomas Quinot <quinot@adacore.com>
1292 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
1293 consistency with Gen_T in Instantiate_Type.
1294 Introduce constant A_Gen_Obj to avoid repeated queries for
1295 Defining_Identifier (Analyzed_Formal).
1297 2010-10-08 Vincent Celier <celier@adacore.com>
1299 * prj-nmsc.adb: Minor comment fix.
1301 2010-10-07 Robert Dewar <dewar@adacore.com>
1303 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
1304 * gcc-interface/Make-lang.in: Update dependencies.
1306 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1308 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
1309 unit, if the type of the formal is declared in a parent unit and is not
1310 a formal itself, the actual must be located from an enclosing parent
1311 instance by normal visibility.
1313 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1315 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
1316 indicator is illegal for an uninitialized allocator.
1318 2010-10-07 Robert Dewar <dewar@adacore.com>
1320 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
1321 Component_Size): Complete previous change.
1323 2010-10-07 Vincent Celier <celier@adacore.com>
1325 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
1326 even for keywords, to avoid having the checksum to depend on the Ada
1329 2010-10-07 Gary Dismukes <dismukes@adacore.com>
1331 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
1332 exp_ch3.adb: Minor reformatting.
1334 2010-10-07 Robert Dewar <dewar@adacore.com>
1336 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1337 Component_Size): It is now illegal to give an incorrect component size
1338 clause in the case of aliased or atomic components.
1339 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
1340 an effective pragma Pack in the case of aliased or atomic components.
1342 2010-10-07 Steve Baird <baird@adacore.com>
1344 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
1345 in the case of a violation of an active No_Task_Hierarchy restriction.
1347 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1349 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
1350 type is non-limited, an actual for it cannot be limited.
1352 2010-10-07 Robert Dewar <dewar@adacore.com>
1354 * einfo.ads (No_Pool_Assigned): Update documentation.
1355 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1356 Storage_Size): We only set No_Pool_Assigned if the expression is a
1357 static constant and zero.
1358 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
1359 should be an error not a warning.
1361 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1363 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
1364 where an aggregate in an assignment can be built directly into the
1365 target, and does not require the creation of a temporary that may
1368 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1370 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
1371 in a record aggregate can correspond to several components of
1372 anonymous access types, as long as the designated subtypes match.
1374 2010-10-07 Robert Dewar <dewar@adacore.com>
1376 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
1377 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
1378 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
1379 spelling parametrize(d) => parameterize(d).
1381 2010-10-07 Robert Dewar <dewar@adacore.com>
1383 * sem_ch12.adb: Add comment.
1384 * sem_ch6.adb: Minor reformatting.
1386 2010-10-07 Robert Dewar <dewar@adacore.com>
1388 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
1389 Pexp to Pf_Rec constants
1390 (P_Subprogram): Expression is always enclosed in parentheses
1391 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
1392 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
1394 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1396 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
1397 checks on functions that return an abstract type or have a controlling
1398 result whose designated type is an abstract type.
1399 (Check_Private_Overriding): Implement Ada2012 checks on functions
1400 declared in the private part, if an abstract type is involved.
1401 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
1402 reject a generic function that returns an abstract type.
1403 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
1404 function has a controlling access result, check that the tag of the
1405 return value matches the designated type of the return expression.
1407 2010-10-07 Robert Dewar <dewar@adacore.com>
1409 * par-ch6.adb: Fix error in handling of parametrized expressions.
1410 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
1412 (P_Simple_Expression): Better message for qualified expression prefix
1413 * s-crc32.adb: Minor reformatting.
1414 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
1415 storage pool (this test is moved to Sem_Intr).
1416 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
1417 empty storage pool, moved here from Exp_Intr and made into error.
1418 (Check_Intrinsic_Call): Remove assumption in generating not-null free
1419 warning that the name of the instantiation is Free.
1420 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
1422 * types.ads: Remove storage size clauses from big types (since we may
1423 need to do deallocations, which are now illegal for empty pools).
1425 2010-10-07 Sergey Rybin <rybin@adacore.com>
1427 * gnat_ugn.texi: Add missing word.
1429 2010-10-07 Robert Dewar <dewar@adacore.com>
1431 * exp_util.adb (Insert_Actions): Add handling of
1432 N_Parametrized_Expression.
1433 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
1434 * sem.adb: Add entry for N_Parametrized_Expression
1435 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
1436 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
1437 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
1438 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
1439 * par-ch4.adb: Minor reformatting.
1441 2010-10-07 Robert Dewar <dewar@adacore.com>
1443 * scng.adb (Skip_Other_Format_Characters): New procedure
1444 (Start_Of_Wide_Character): New procedure
1445 (Scan): Use Start_Of_Wide_Character where appropriate
1446 (Scan): Improve error message for other_format chars in identifier
1447 (Scan): Allow other_format chars between tokens
1449 2010-10-07 Javier Miranda <miranda@adacore.com>
1451 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
1452 Add missing support for explicit dereferences.
1454 2010-10-07 Robert Dewar <dewar@adacore.com>
1456 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
1458 2010-10-07 Robert Dewar <dewar@adacore.com>
1460 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
1461 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
1462 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
1463 Exp_Util.Fully_Qualified_Name_String.
1465 2010-10-07 Robert Dewar <dewar@adacore.com>
1467 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
1468 * sem_res.adb (Resolve_Call): A call to
1469 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
1470 No_Relative_Delay (AI-0211).
1472 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1474 * sem_ch10.adb: Small change in error message.
1476 2010-10-07 Robert Dewar <dewar@adacore.com>
1478 * tbuild.ads: Minor reformatting.
1480 2010-10-07 Robert Dewar <dewar@adacore.com>
1482 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
1484 2010-10-07 Arnaud Charlet <charlet@adacore.com>
1486 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
1488 2010-10-07 Robert Dewar <dewar@adacore.com>
1490 * sem_res.adb: Minor reformatting
1492 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
1494 * gnat_ugn.texi: Minor editing.
1495 * opt.ads: Document that scripts rely on specific formats in opt.ads
1497 2010-10-07 Robert Dewar <dewar@adacore.com>
1499 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
1500 (To_Upper_Case): Fix to be inverse of To_Lower_Case
1501 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
1502 (To_Upper_Case): Fix to be inverse of To_Lower_Case
1504 2010-10-07 Robert Dewar <dewar@adacore.com>
1506 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
1507 * impunit.adb: Add entries for a-wichha/a-zchhan
1508 * Makefile.rtl: Add entries for a-wichha/a-zchhan
1510 2010-10-07 Vincent Celier <celier@adacore.com>
1512 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
1513 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
1514 replaced source, check that none of the replaced sources are in the
1516 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
1517 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
1518 replaced with a source with a different file name, put it in the hash
1519 table Replaced_Sources.
1520 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
1521 one replaced source, check if it has the same file name as the current
1522 source; if it has, remove it from the hash table Replaced_Sources.
1523 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
1524 * prj.ads (Replaced_Source_HTable): New hash table
1525 (Project_Tree_Data): New components Replaced_Sources and
1526 Replaced_Source_Number.
1528 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1530 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
1531 proper flag to prevent a double elaboration check on the same call.
1532 * exp_util.adb (Insert_Actions): If the enclosing node is an
1533 Expression_With_Actions and it has been analyzed already, find
1534 insertion point further up in the tree.
1536 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
1538 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
1539 local variables. Remove the general restriction which prohibits the
1540 application of record rep clauses to Unchecked_Union types. Add Ada
1541 2012 check to detect improper naming of an Unchecked_Union
1542 discriminant in record rep clause.
1543 * sem_prag.adb: Add with and use clause for Exp_Ch7.
1544 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
1545 type to all invocations of Check_Component and Check_Variant.
1546 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
1547 Rewritten. Add Ada 2012 check to detect improper use of formal
1548 private types and private extensions as component types of an
1549 Unchecked_Union declared inside a generic body.
1550 (Check_Variant): Add formal parameter UU_Typ. Propagate the
1551 Unchecked_Union type to all calls of Check_Component. Signal that the
1552 current component comes from the variant part of an Unchecked_Union
1554 (Inside_Generic_Body): New routine.
1556 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1558 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
1559 equality operation for a record component, verify that both formals
1560 have the same type, and the result type is boolean.
1562 2010-10-07 Vincent Celier <celier@adacore.com>
1564 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
1565 binder generated file, look for both b~xxx and b__xxx as gprbuild
1566 always uses b__ as the prefix of such files.
1568 2010-10-07 Thomas Quinot <quinot@adacore.com>
1570 * sem_res.adb: Minor reformatting.
1572 2010-10-07 Arnaud Charlet <charlet@adacore.com>
1574 * debug.adb: Update -gnatd.J documentation.
1576 2010-10-07 Robert Dewar <dewar@adacore.com>
1578 * gnat_rm.texi: Document handling of invalid values
1579 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
1581 (UTF_To_Upper_Case): New function.
1583 2010-10-07 Robert Dewar <dewar@adacore.com>
1585 * sem_attr.adb: Minor reformatting.
1586 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
1587 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
1589 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
1591 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
1592 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
1593 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
1595 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
1597 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
1598 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
1601 2010-10-07 Javier Miranda <miranda@adacore.com>
1603 * a-tags.ads: Use new support for pragma Ada_2012 with function
1606 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1608 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
1609 sequence of statements.
1611 2010-10-07 Vincent Celier <celier@adacore.com>
1613 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
1615 2010-10-07 Javier Miranda <miranda@adacore.com>
1617 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
1618 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
1619 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
1621 2010-10-07 Arnaud Charlet <charlet@adacore.com>
1623 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
1624 (Analyze_Package_Instantiation): No longer analyze systematically a
1625 generic body in CodePeer mode.
1626 * freeze.adb, sem_attr.adb: Update comments.
1628 2010-10-05 Robert Dewar <dewar@adacore.com>
1630 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
1633 2010-10-05 Pascal Obry <obry@adacore.com>
1635 * gnat_rm.texi: Fix typo.
1637 2010-10-05 Arnaud Charlet <charlet@adacore.com>
1639 * gnat_ugn.texi: Add note about identifiers with same name and
1642 2010-10-05 Robert Dewar <dewar@adacore.com>
1644 * sem_ch4.adb: Minor reformatting.
1645 * a-direct.ads: Minor comment update.
1647 2010-10-05 Javier Miranda <miranda@adacore.com>
1649 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
1650 no longer required after change in New_Overloaded_Entity.
1651 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
1652 the fragment of code that handles derivations of interface primitives.
1653 Add missing dependence on global variable Inside_Freezing_Actions to
1654 ensure the correct management of internal interface entities.
1655 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
1656 of the global variable Inside_Freezing_Actions to ensure that internal
1657 interface entities are well handled by New_Overloaded_Entity.
1658 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
1659 and complete the algorithm to catch hidden primitives derived of
1660 private type that covers the interface.
1661 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
1664 2010-10-05 Robert Dewar <dewar@adacore.com>
1666 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
1667 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
1668 Minor code reorganization (use Nkind_In).
1670 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1672 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
1675 2010-10-05 Vincent Celier <celier@adacore.com>
1677 * gnatbind.adb: If the main library file is not for a suitable main
1678 program, change the error message.
1680 2010-10-05 Vincent Celier <celier@adacore.com>
1682 * a-direct.ads: Minor spelling error fixes in comments.
1683 * gnat_rm.texi: Add three entries in "Implementation Defined
1684 Characteristics" for the interpretations of the Form parameters in
1687 2010-10-05 Robert Dewar <dewar@adacore.com>
1689 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
1690 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
1691 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
1695 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1697 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
1698 an explicit dereference of an access to function, the prefix is not
1699 interpreted as a parameterless call.
1701 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1703 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
1706 2010-10-05 Vincent Celier <celier@adacore.com>
1708 * make.adb (Switches_Of): Allow wild cards in index of attributes
1710 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
1711 of the associative array as a glob regular expression.
1712 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
1713 Allow_Wildcards, defaulted to False.
1714 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
1715 * projects.texi: Document that attribute Switches (<file name>) may
1716 use wild cards in the index.
1718 2010-10-05 Robert Dewar <dewar@adacore.com>
1720 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
1721 einfo.adb: Minor reformatting.
1722 * debug.adb: Remove obsolete documentation for d.Z flag.
1724 2010-10-05 Vincent Celier <celier@adacore.com>
1726 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
1727 switch --create-info-file=.
1728 * gnat_ugn.texi: Add documentation for new gnatmake switch
1731 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1733 * sem_ch3.adb: Do not elaborate type definition if syntax error.
1735 2010-10-05 Javier Miranda <miranda@adacore.com>
1737 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
1738 to generate the full-qualified names of its corresponding spec.
1739 This facilitates locating the corresponing body when reading
1742 2010-10-05 Thomas Quinot <quinot@adacore.com>
1744 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
1745 canonical name without serial number only if the helper is becoming a
1746 primitive of the type.
1748 2010-10-05 Javier Miranda <miranda@adacore.com>
1750 * exp_disp.adb (Make_DT): Minor code reorganization.
1752 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1754 * par-ch6.adb: improve recovery with extra paren in function spec.
1756 2010-10-05 Quentin Ochem <ochem@adacore.com>
1758 * prj-tree.ads: Project_Path is now aliased.
1760 2010-10-05 Thomas Quinot <quinot@adacore.com>
1762 * checks.adb: Minor reformatting.
1764 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
1766 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
1767 (Shared_Libgcc): New aliased variable.
1768 (Shared_Libgcc_Switch): New constant.
1769 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
1770 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
1772 * gcc-interface/Make-lang.in: Update dependencies.
1774 2010-10-05 Vincent Celier <celier@adacore.com>
1776 * prj-part.adb (Parse_Simple_Project): When checking if a child project
1777 imports its parent project, also look in projects being extended by
1780 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
1782 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
1784 2010-10-05 Javier Miranda <miranda@adacore.com>
1786 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
1787 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
1788 activate this output.
1790 2010-10-05 Arnaud Charlet <charlet@adacore.com>
1792 * back_end.adb (Call_Back_End): Generate an error message when scil
1793 generation is enabled, and no scil back-end (by default) is available.
1795 2010-10-05 Javier Miranda <miranda@adacore.com>
1797 * debug.adb: Update documentation since -gnatd.Z is no longer required
1798 to generate the call-graph information.
1800 2010-10-05 Javier Miranda <miranda@adacore.com>
1802 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
1803 runtime access check by an equivalent expansion that causes
1804 no problems in the VM backend. The original expansion was
1805 not good for the VM backends because when Tagged_Type_Expansion
1806 is disabled the attribute Access_Disp_Table is not available.
1808 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1810 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
1811 is class-wide and T1 is its specific type.
1813 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1815 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
1817 2010-10-05 Vincent Celier <celier@adacore.com>
1819 * back_end.ads: Minor spelling error correction.
1821 2010-10-05 Arnaud Charlet <charlet@adacore.com>
1823 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
1824 warnings when -gnatC is specified here so that warnings can be
1825 re-enabled explicitly.
1826 (Adjust_Global_Switches): No longer suppress warnings.
1828 2010-10-05 Vincent Celier <celier@adacore.com>
1830 * makeutl.adb: Minor reformatting.
1832 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1834 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
1835 non-discrete type appears as an actual in a call.
1837 2010-10-05 Vincent Celier <celier@adacore.com>
1839 * make.adb (Scan_Make_Arg): Take into account new switch
1841 * makeusg.adb: Add line for new switch --source-info=file.
1842 * makeutl.ads (Source_Info_Option): New constant String for new builder
1844 * prj-conf.adb: Put subprograms in alphabetical order
1845 (Process_Project_And_Apply_Config): Read/write an eventual source info
1847 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
1849 (Look_For_Sources): If a source info file was successfully read, get
1850 the source data from the data read from the source info file.
1851 * prj-util.adb (Source_Info_Table): New table
1852 (Source_Info_Project_HTable): New hash table
1853 (Create): New procedure
1854 (Put (File), Put_Line): New procedures
1855 (Write_Source_Info_File): New procedure
1856 (Read_Source_Info_File): New procedure
1857 (Initialize): New procedure
1858 (Source_Info_Of): New procedure
1859 (Next): New procedure
1860 (Close): When file is an out file, fail if the buffer cannot be written
1861 or if the file cannot be close successfully.
1862 (Get_Line): Fail if file is an out file
1863 * prj-util.ads (Create): New procedure
1864 (Put (File), Put_Line): New procedures
1865 (Write_Source_Info_File): New procedure
1866 (Read_Source_Info_File): New procedure
1867 (Source_Info_Data): New record type
1868 (Source_Info_Iterator): New private type
1869 (Initialize): New procedure
1870 (Source_Info_Of): New procedure
1871 (Next): New procedure
1872 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
1873 Source_Info_File_Exists.
1875 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1877 * exp_ch4.adb: Fix typo.
1879 2010-10-05 Thomas Quinot <quinot@adacore.com>
1881 * lib-writ.adb: Minor reformatting.
1883 2010-10-05 Javier Miranda <miranda@adacore.com>
1885 * sem_ch3.adb (Access_Definition): Remove useless code.
1887 2010-10-05 Emmanuel Briot <briot@adacore.com>
1889 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
1890 (Deep_Copy): Removed, not used.
1892 2010-10-05 Javier Miranda <miranda@adacore.com>
1894 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
1895 move code that searches in the list of primitives of a tagged type for
1896 the entity that will be overridden by user-defined routines.
1897 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
1898 previously located in routine Add_Internal_Interface_Entities.
1899 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
1900 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
1901 availability of attribute Alias.
1903 2010-10-05 Ed Falis <falis@adacore.com>
1905 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
1906 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
1907 Move definition of intContext to System.OS_Interface.
1908 Add necessary variants in System.VxWorks.Extensions.
1910 2010-10-05 Doug Rupp <rupp@adacore.com>
1912 * s-asthan-vms-alpha.adb: On VMS, a task using
1913 pragma AST_Entry exhibits a memory leak when the task terminates
1914 because the vector allocated for the AST interface is not freed. Fixed
1915 by making the vector a controlled type.
1917 2010-10-05 Emmanuel Briot <briot@adacore.com>
1919 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
1920 a "**" pattern properly exists, and report an error otherwise.
1922 2010-10-05 Emmanuel Briot <briot@adacore.com>
1924 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
1926 2010-10-05 Emmanuel Briot <briot@adacore.com>
1928 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
1930 Extract some code from Get_Directories, to share with the handling
1931 of aggregate projects (for the Project_Files attributes)
1933 2010-10-05 Emmanuel Briot <briot@adacore.com>
1935 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1936 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
1937 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
1940 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
1942 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
1944 2010-10-05 Emmanuel Briot <briot@adacore.com>
1946 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
1947 (Aggregate projects): added support for parsing aggregate projects.
1948 In particular, check the presence and value of the new attributes
1949 related to aggregate projects, ie Project_Files, Project_Path
1951 (Check_Attribute_Allowed, Check_Package_Allowed,
1952 Rename_Obsolescent_Attributes): new subprogram, extracting code
1953 from existing subprogram to keep their sizes smaller.
1954 (Check_Aggregate_Project, Check_Abstract_Project,
1955 Check_Missing_Sources): new subprograms
1956 (Check): remove comments that duplicated either the name of the
1957 following subprogram call, or the comment on that subprogram.
1958 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
1959 from Parse_Single_Project.
1960 (Check_Aggregate_Imports): new subprogram.
1962 2010-10-05 Vincent Celier <celier@adacore.com>
1964 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
1965 file has not been generated for the current source, for example if it
1966 has been generated for the spec, but we are compiling the body.
1968 2010-10-05 Bob Duff <duff@adacore.com>
1970 * xgnatugn.adb: Remove unused procedure.
1972 2010-10-04 Vincent Celier <celier@adacore.com>
1974 * a-direct.adb (Copy_File): Interpret the Form parameter and call
1975 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
1976 the Form parameter contains an incorrect value for field preserve= or
1978 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
1979 parameter is ignored.
1980 (Copy_File): Indicate the interpretation of the Form parameter.
1982 2010-10-04 Vincent Celier <celier@adacore.com>
1984 * make.adb (Gnatmake): When there are no foreign languages declared and
1985 a main in attribute Main of the main project does not exist or is a
1986 source of another project, fail immediately before attempting
1989 2010-10-04 Javier Miranda <miranda@adacore.com>
1991 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
1992 used to convert a node referencing a tag to a class-wide interface
1994 * exp_disp.adb (Convert_Tag_To_Interface): New function.
1995 (Expand_Interface_Conversion): Replace invocation of
1996 Unchecked_Conversion by new function Convert_Tag_To_Interface.
1997 (Write_DT): Add support for null primitives.
1998 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
1999 cleanup code that handles interface conversions and avoid unchecked
2000 conversion of referenced tag components.
2001 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
2002 unrequired conversions when generating a dispatching call to _assign.
2003 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
2005 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2007 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
2008 parent is a binary boolean operation and the operand is an unpacked
2010 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
2011 the operands of the rewritten node are the operands of the negations,
2012 not the negations themselves.
2014 2010-10-04 Robert Dewar <dewar@adacore.com>
2016 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
2017 name of entity to biased warning msg.
2018 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
2019 biased rep (wrong and never worked anyway).
2021 2010-10-04 Arnaud Charlet <charlet@adacore.com>
2023 * sem_elab.adb: Minor reformatting.
2025 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2027 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
2028 an access_to_protected subprogram type, and convert null value into
2029 corresponding aggregate.
2031 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2033 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
2035 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2037 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
2038 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
2041 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2043 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
2044 for N_Operator_Symbol.
2045 (Indicate_Name_And_Type): Likewise.
2046 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
2047 * sem_res.adb (Resolve): Likewise.
2048 * sem_type.adb (Add_One_Interp): Likewise.
2049 (Disambiguate): Likewise.
2051 2010-10-04 Vincent Celier <celier@adacore.com>
2053 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
2054 than ALI file timestamp, return null.
2056 2010-10-04 Vincent Celier <celier@adacore.com>
2058 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
2059 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
2060 replaces global constant with the same name. When a line is too long,
2061 indent properly the next continuation line.
2062 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
2063 from 50 to 255, defaulted to 255, to indicate the maximum length of
2064 lines in the project file.
2066 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2068 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
2069 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
2070 of Traverse_Func on it to look for subprogram references in a body.
2071 Call Check_Subprogram_Refs on the body of inlined subprograms at the
2072 outer level and keep clearing the Is_Public flag of subprograms as long
2073 as it returns OK. Do not look at anything else than subprograms once
2074 an inlined subprogram has been seen.
2076 2010-10-04 Javier Miranda <miranda@adacore.com>
2078 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
2079 the target object is an interface.
2080 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
2081 interface type then we generate an implicit conversion to force
2082 displacement of the pointer to the object to reference the secondary
2083 dispatch table associated with the interface.
2085 2010-10-04 Robert Dewar <dewar@adacore.com>
2087 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
2088 Enumeration_Rep_Expr to point to the literal, not the identifier.
2089 (Analyze_Enumeration_Representation_Clause): Improve error message for
2090 size too small for enum rep value
2091 (Analyze_Enumeration_Representation_Clause): Fix size test to use
2092 proper size (RM_Size, not Esize).
2094 2010-10-04 Robert Dewar <dewar@adacore.com>
2096 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
2098 2010-10-04 Javier Miranda <miranda@adacore.com>
2100 * exp_cg.adb (Write_Call_Info): Code clean up.
2102 2010-10-04 Arnaud Charlet <charlet@adacore.com>
2104 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
2106 2010-10-04 Robert Dewar <dewar@adacore.com>
2108 * exp_cg.adb: Minor code reorganization
2110 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
2112 2010-10-04 Bob Duff <duff@adacore.com>
2114 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
2115 to make a qualified expression into a name (syntax-wise), then do not
2116 consider it redundant.
2118 2010-10-04 Thomas Quinot <quinot@adacore.com>
2120 * sem_warn.ads: Fix typo.
2122 2010-10-04 Javier Miranda <miranda@adacore.com>
2124 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
2126 (Write_Call_Info): Add missing support for renamed primitives.
2128 2010-10-04 Thomas Quinot <quinot@adacore.com>
2130 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
2131 code between Make_Component_List_Assign and Make_Field_Assign.
2133 2010-10-04 Vincent Celier <celier@adacore.com>
2135 * prj-nmsc.adb (Get_Directories): For non extending projects that
2136 declare that they have no sources, do not create a non existing object
2137 or exec directory if builder switch -p is used.
2139 2010-10-04 Sergey Rybin <rybin@adacore.com>
2141 * gnat_ugn.texi (gnatcheck): Change the description of the report file
2144 2010-10-04 Ed Falis <falis@adacore.com>
2146 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
2147 determine whether Set_True is called from a task or an ISR.
2148 (Set_True): test for being in a task context before trying to
2149 dereference Defer_Abort or Undefer_Abort.
2151 2010-10-04 Robert Dewar <dewar@adacore.com>
2153 * sem_res.adb, sinput-l.adb: Minor reformatting.
2155 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
2157 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
2158 check when the target object is an interface since the expression of
2159 the right hand side must only cover the interface.
2161 2010-10-04 Vincent Celier <celier@adacore.com>
2163 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
2164 loading the main source, so that if it is preprocessed and -gnateG is
2165 used, the preprocessed file is written.
2166 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
2167 if a subunit is from the main unit when it is loaded.
2168 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
2169 to True before loading a subunit.
2170 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
2171 to True when the main is a generic unit before loading one of its
2173 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
2174 file only for the main unit (spec, body and subunits).
2176 2010-10-04 Vincent Celier <celier@adacore.com>
2178 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
2179 specified and the processed file cannot be written. Just issue a
2180 warning and continue.
2182 2010-10-04 Thomas Quinot <quinot@adacore.com>
2184 * sem_res.adb: Minor reformatting.
2186 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2188 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
2189 is an overridden inherited operation, the desired operation is the
2190 overriding one, which is the alias of the visible one.
2192 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2194 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
2195 present before deleting from the tree, when an inherited function with
2196 a controlling result that returns a null extension is overridden by a
2197 later declaration or body.
2199 2010-10-04 Gary Dismukes <dismukes@adacore.com>
2201 * checks.adb: Update comment.
2203 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2205 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
2206 and define as variables.
2207 (gnat_post_options): Set optimize and optimize_size variables.
2209 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
2211 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
2212 are not defined by target.
2214 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
2216 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
2218 2010-09-28 Richard Henderson <rth@redhat.com>
2220 * gcc-interface/misc.c (gnat_eh_personality): Use
2221 targetm.except_unwind_info.
2223 2010-09-28 Jan Hubicka <jh@suse.cz>
2225 * gcc-interface/utils.c (handle_leaf_attribute): New function.
2226 (gnat_internal_attribute_tables): Add leaf.
2228 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2230 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
2231 -include-directory, -include-directory=, -no-standard-includes,
2232 -no-standard-libraries): New.
2234 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
2236 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
2237 build_array_type with calls to build_nonshared_array_type.
2238 (substitute_in_type): Likewise.
2239 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
2240 (LANG_HOOKS_TYPE_HASH_EQ): Define.
2241 (gnat_post_options): Add 'static' keyword.
2242 (gnat_type_hash_eq): New static function.
2243 * gcc-interface/utils.c (fntype_same_flags_p): New function.
2244 (create_subprog_type): Call it.
2245 (create_index_type): Call build_nonshared_range_type and tidy up.
2246 (create_range_type): Likewise.
2247 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
2249 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2251 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
2253 (end_subprog_body): If the body is a BIND_EXPR, make its associated
2254 block the top-level one.
2255 (build_function_stub): Build a statement group for the whole function.
2256 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
2257 is used, create the enclosing block early and process first the OUT
2260 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2262 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
2263 not generate debug info for individual enumerators.
2265 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2267 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
2268 type instead of enumeral type as the dummy type built for the template
2269 type of fat pointers.
2271 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2273 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
2274 (gnat_zaplevel): Likewise.
2275 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
2276 binding level for an external constant.
2277 <E_Constant>: Force the local context and create a fake scope before
2278 translating the defining expression of an external constant.
2279 <object>: Treat external constants at the global level explicitly for
2280 renaming declarations.
2281 (elaborate_expression_1): Force the variable to be static if the
2282 expression is global.
2283 * gcc-interface/trans.c (get_elaboration_procedure): New function.
2284 (call_to_gnu): Use it.
2285 (gnat_to_gnu): Likewise.
2286 <N_Object_Declaration>: Do not test Is_Public to force the creation of
2287 an initialization variable.
2288 (add_decl_expr): Discard the statement if the declaration is external.
2289 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
2290 the current block if it is external.
2291 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
2292 (gnat_zaplevel): New global function.
2294 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2296 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
2297 variables against zero in all cases.
2298 (rest_of_type_decl_compilation): Likewise.
2299 * gcc-interface/trans.c (gigi): Pass properly typed constants to
2301 (call_to_gnu): Fix formatting.
2302 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2303 (Exception_Handler_to_gnu_zcx): Likewise.
2304 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
2306 expressions in presence of a freeze node.
2308 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2310 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
2311 expressions for external constants that are aggregates.
2312 * gcc-interface/utils2.c (build_simple_component_ref): If the field
2313 is an inherited component in an extension, look through the extension.
2315 2010-09-10 Vincent Celier <celier@adacore.com>
2317 * projects.texi: Add documentation for package extensions
2318 Add some documentation for attributes Leading_Library_Options and
2319 Linker'Leading_Switches.
2321 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2323 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
2324 disabled, compute subtype for all string types.
2326 2010-09-10 Robert Dewar <dewar@adacore.com>
2328 * gnat_ugn.texi: Add documentation for -gnatw.s/S
2329 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2330 Component_Size): Implement warning on overriden size clause.
2331 (Analyze_Record_Representation_Clause): Implement warning on overriden
2333 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
2335 * ug_words: Add entries for -gnatw.s/S.
2336 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
2337 * gcc-interface/Make-lang.in: Update dependencies.
2339 2010-09-10 Vincent Celier <celier@adacore.com>
2341 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
2342 a package with the same name from an imported or extended project.
2343 * prj-proc.adb (Process_Declarative_Items): Process package extensions
2345 2010-09-10 Bob Duff <duff@adacore.com>
2347 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
2350 2010-09-10 Robert Dewar <dewar@adacore.com>
2352 * sem.adb: Minor reformatting.
2354 2010-09-10 Bob Duff <duff@adacore.com>
2356 * s-os_lib.ads, g-expect.ads: Add comments.
2358 2010-09-10 Robert Dewar <dewar@adacore.com>
2360 * exp_ch5.adb: Minor reformatting.
2362 2010-09-10 Thomas Quinot <quinot@adacore.com>
2364 * scos.ads: Add comments.
2366 2010-09-10 Vincent Celier <celier@adacore.com>
2368 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
2370 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
2372 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
2373 for a controlled build-in-place function call which appears in an
2374 anonymous context. The transient scope ensures that the intermediate
2375 function result is cleaned up after the master is left.
2376 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
2377 of the transient scope. This is now done in Exand_Call which covers
2378 additional cases other than secondary stack release.
2380 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2382 * sem.adb (Do_Unit_And_Dependents): Add guard.
2384 2010-09-10 Robert Dewar <dewar@adacore.com>
2386 * exp_ch5.adb: Update comments.
2387 * exp_dist.adb: Minor reformatting.
2389 2010-09-10 Robert Dewar <dewar@adacore.com>
2391 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
2393 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
2394 * usage.adb: Add lines for -gnatw.h/H
2395 * gnat_ugn.texi: Add documentation for J519-010
2396 Warn on record holes/gaps
2397 * ug_words: Add entries for -gnatw.h/-gnatw.H
2398 * vms_data.ads: Add entries for [NO]AVOIDGAPS
2400 2010-09-10 Gary Dismukes <dismukes@adacore.com>
2402 * sem_ch6.adb: Update comment.
2404 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2406 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
2407 of full view analyzed after analyzing the corresponding record
2408 declaration, to prevent spurious name conflicts with original
2411 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
2413 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
2414 just issue a warning, but continue with the normal processing.
2416 2010-09-10 Robert Dewar <dewar@adacore.com>
2418 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
2421 2010-09-10 Thomas Quinot <quinot@adacore.com>
2423 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
2424 Build_TypeCode_Call): For a subtype inserted for the expansion of a
2425 generic actual type, go to the underlying type of the original actual
2428 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2430 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
2431 guard around the increment statement, to prevent an off-by-one-value
2432 on the last iteration.
2434 2010-09-10 Vincent Celier <celier@adacore.com>
2436 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
2437 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
2438 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
2439 "at run time" in comments and error/warning messages.
2441 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2443 * exp_cg.adb: Handle properly bodies without specs.
2445 2010-09-10 Emmanuel Briot <briot@adacore.com>
2447 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
2448 present, and the user requested to either ignore this or display a
2449 warning (as opposed to an error), we still need to register the
2452 2010-09-10 Robert Dewar <dewar@adacore.com>
2454 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
2455 now done in In_Extended_Main_Source_Unit.
2456 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
2457 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
2458 as Parsing_Main_Extended_Source.
2459 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
2461 * lib-load.adb (Load_Unit): Add PMES parameter
2462 Set PMES appropriately in all calls to Load_Unit
2463 * lib-load.ads (Load_Unit): Add PMES parameter
2464 * lib.adb (In_Extended_Main_Source_Unit): When called with
2465 Compiler_State set to Parsing, test new flag
2466 Compiling_Main_Extended_Source.
2467 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
2468 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
2469 as Parsing_Main_Extended_Source
2470 * par-load.adb (Load): Set PMES properly in call to Load_Unit
2472 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2474 * exp_cg.adb: Use proper entity to handle overloads.
2475 * sem_res.adb (Check_Parameterless_Call): An operator node without
2476 actuals cannot be a call, and must be treated as a string.
2478 2010-09-10 Robert Dewar <dewar@adacore.com>
2480 * frontend.adb: Minor reformatting.
2482 2010-09-10 Robert Dewar <dewar@adacore.com>
2484 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
2485 * par-ch5.adb (P_Condition): Move from body to spec
2486 * par.adb (Ch5.P_Condition): Move from body to spec
2488 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2490 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
2491 the call table is private, use its full view to generate information
2494 2010-09-10 Jose Ruiz <ruiz@adacore.com>
2496 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
2497 pattern matching to detect predefined primitive operations take into
2498 account that there can be an extra suffix related to body-nested
2501 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2503 * s-pooglo.ads: Add overriding indicators.
2505 2010-09-10 Vincent Celier <celier@adacore.com>
2507 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
2508 /64_MALLOC (for -H64).
2510 2010-09-10 Robert Dewar <dewar@adacore.com>
2512 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
2513 (Error_Msg_NW): Test Parsing_Main_Subunit flag
2514 * errout.ads (Parsing_Main_Subunit): New flag
2515 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
2516 * par-ch6.adb: Minor style fix (remove redandant parentheses)
2517 * par-ch9.adb: Minor style fix (remove redundant parens)
2518 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
2520 2010-09-10 Vincent Celier <celier@adacore.com>
2522 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
2523 function of the same name in Makeutl.
2524 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
2525 of removed procedure when creating a binder mapping file.
2526 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
2528 * makeutl.ads (Create_Binder_Mapping_File): New function
2530 2010-09-10 Jose Ruiz <ruiz@adacore.com>
2532 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
2533 separator when trying the pattern matching to detect predefined
2534 primitive operations.
2536 2010-09-10 Robert Dewar <dewar@adacore.com>
2538 * bindgen.adb, atree.adb: Minor reformatting.
2540 2010-09-10 Ben Brosgol <brosgol@adacore.com>
2542 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
2545 2010-09-10 Doug Rupp <rupp@adacore.com>
2547 * bindgen.adb: Minor comment fix for -H switch.
2549 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2551 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
2552 library unit now, by traversing tree before context is expanded.
2553 (Write_Call_Info): Use enclosing unit name directly.
2554 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
2555 tree earlier, to ensure that subsequent declarations are analyzed in a
2556 connected structure.
2557 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
2560 2010-09-10 Robert Dewar <dewar@adacore.com>
2562 * symbols-processing-vms-alpha.adb: Minor reformatting.
2564 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
2566 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
2567 __gnat_install_handler in case the binder is called with -n.
2569 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2571 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
2572 sloc for renaming declaration and set Comes_From_Source properly to
2573 ensure that references are properly generated for an object declaration
2574 that is built in place.
2576 2010-09-10 Tristan Gingold <gingold@adacore.com>
2578 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
2580 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
2581 * gcc-interface/Makefile.in: gnat.hlp is now generated by
2584 2010-09-10 Bob Duff <duff@adacore.com>
2586 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
2587 := ...;", remove side effects from the right-hand side, because they
2588 might affect the value of the left-hand side, but the left-hand side is
2589 first READ (so we can do shifting and masking) and then written back,
2590 which would cause the side effects to be incorrectly overwritten.
2592 2010-09-10 Robert Dewar <dewar@adacore.com>
2594 * sem_ch4.adb: Minor reformatting.
2595 * exp_ch6.adb: Add comment on testing limited on full type
2596 * gnat_rm.texi: Add documentation on Pure_Function.
2598 2010-09-10 Vincent Celier <celier@adacore.com>
2600 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
2601 as a source of another project and of another language.
2603 2010-09-10 Robert Dewar <dewar@adacore.com>
2605 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
2607 * freeze.adb (Check_Unsigned_Type): Ditto.
2608 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
2609 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
2610 (Set_Scalar_Range_For_Subtype): Ditto.
2611 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
2613 2010-09-10 Robert Dewar <dewar@adacore.com>
2615 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
2617 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
2618 rather than parens for fixed constants.
2619 * sprint.ads: Use square brackets rather than parens for fixed constants
2620 * urealp.adb (UR_Write): Use square brackets rather than parens
2621 (UR_Write): Add Brackets argument
2622 (UR_Write): Add many more special cases to output literals
2623 * urealp.ads (UR_Write): Use square brackets rather than parens
2624 (UR_Write): Add Brackets argument
2626 2010-09-10 Robert Dewar <dewar@adacore.com>
2628 * sem_ch4.adb: Minor reformatting.
2630 2010-09-10 Richard Guenther <rguenther@suse.de>
2632 * gcc-interface/utils.c (create_index_type): Use build_range_type.
2634 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2636 * vms_cmds.ads: New.
2638 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
2640 * exp_dbug.ads: Mention enhanced encoding for array types.
2642 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
2644 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
2645 unsupported in VM targets. Display a warning in this case.
2647 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2649 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
2650 not reset Sloc when printing keyword "new".
2652 2010-09-10 Vincent Celier <celier@adacore.com>
2654 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
2655 GNAT_DRIVER_COMMAND_LINE.
2657 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2659 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
2660 clause, process the body at once.
2662 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2664 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
2665 conversion is the expression is a qualified expression used to
2666 disambiguate a function call.
2668 2010-09-10 Vincent Celier <celier@adacore.com>
2670 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
2671 as a source of another project and of another language.
2673 2010-09-10 Robert Dewar <dewar@adacore.com>
2675 * prj-util.adb: Minor reformatting.
2677 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
2679 * exp_disp.adb: Minor reformatting.
2681 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2683 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
2686 2010-09-10 Thomas Quinot <quinot@adacore.com>
2688 * sem_res.adb: Minor reformatting.
2689 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
2690 magic constants for task master levels (instead, reference
2691 named numbers from System.Tasking).
2693 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
2695 * gnatvsn.ads (Ver_Prefix): New constant string.
2696 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
2697 (Gen_Output_File_C): Likewise.
2698 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
2701 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2703 * sem.adb (Walk_Library_Items): Do not traverse children of the main
2704 unit, to prevent spurious circularities in the walk order.
2705 (Depends_On_Main): Use elsewhere to prevent circularities when the body
2706 of an ancestor of the main unit depends on a child of the main unit.
2708 2010-09-10 Robert Dewar <dewar@adacore.com>
2710 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
2711 sem_ch3.adb: Minor reformatting.
2713 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2715 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
2716 that is a renaming must be derived like any other primitive operation,
2717 the renamed operation is not relevant to the derivation.
2719 2010-09-10 Robert Dewar <dewar@adacore.com>
2721 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
2722 * checks.adb: Minor reformatting.
2724 2010-09-10 Robert Dewar <dewar@adacore.com>
2726 * gnat_ugn.texi: Add section on intent of style checking options.
2728 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2730 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
2732 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2734 * sem_ch3.adb: Improve error message on derivation from class-wide type
2736 2010-09-10 Steve Baird <baird@adacore.com>
2738 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
2739 generation when Generate_SCIL is True.
2741 2010-09-10 Geert Bosch <bosch@adacore.com>
2743 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
2744 validity of executable name and removing any existing executable
2745 (Gnatlink): Call Check_Existing_Executable.
2747 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2749 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
2750 initialization of Task_Alternate_Stack here, cleaner since in case of
2751 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
2754 2010-09-10 Thomas Quinot <quinot@adacore.com>
2756 * s-fileio.adb, a-dirval.adb: Minor reformatting.
2758 2010-09-10 Emmanuel Briot <briot@adacore.com>
2760 * prj-util.adb (Executable_Of): Fix CE when the project does not
2761 contain a Builder package.
2763 2010-09-10 Vincent Celier <celier@adacore.com>
2765 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
2766 to the project path, if Prefix and Target_Name are defined.
2767 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
2769 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2771 * checks.adb (Ensure_Valid): If the expression is a boolean expression
2772 or short-circuit operation, do no emit a validity check: only the
2773 elementary operands of the expression need checking.
2775 2010-09-10 Ben Brosgol <brosgol@adacore.com>
2777 * gnat_rm.texi: Document Short_Descriptors.
2779 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2781 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
2782 initialize to Null_Address.
2783 (Enter_Task): Do not set up an alternate stack for foreign threads.
2785 2010-09-10 Robert Dewar <dewar@adacore.com>
2787 * opt.adb (Short_Descriptors): New flag
2788 (Short_Descriptors_Config): New flag
2789 * opt.ads (Short_Descriptors): New flag
2790 (Short_Descriptors_Config): New flag
2791 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
2792 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
2793 (Analyze_Pragma): Implement Short_Descriptors pragma
2794 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
2796 2010-09-10 Emmanuel Briot <briot@adacore.com>
2798 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
2799 project's Executable_Suffix.
2801 2010-09-10 Robert Dewar <dewar@adacore.com>
2803 * g-pehage.ads: Minor reformatting
2805 * gnat_ugn.texi: Clarifying comment on -gnatyc
2806 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
2809 2010-09-10 Tristan Gingold <gingold@adacore.com>
2811 * Make-generated.in (gnat.hlp): New rule.
2813 2010-09-10 Emmanuel Briot <briot@adacore.com>
2815 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
2818 2010-09-10 Robert Dewar <dewar@adacore.com>
2820 * einfo.adb: Minor code cleanup: Add assertion to
2821 Set_Corresponding_Protected_Entry.
2823 2010-09-10 Bob Duff <duff@adacore.com>
2825 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
2826 the output to standard output.
2828 2010-09-09 Vincent Celier <celier@adacore.com>
2830 * gnat_ugn.texi: Add documentation for new gnatmake switch
2832 * make.adb (Map_File): New global variable to store the value of switch
2834 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
2836 (Scan_Make_Arg): Recognize switch --create-map-file
2837 * makeutl.ads (Create_Map_File_Switch): New constant string for new
2838 gnatmake and gprbuild switch --create-map-file.
2840 2010-09-09 Robert Dewar <dewar@adacore.com>
2842 * sinput-p.ads: Minor comment update.
2844 2010-09-09 Arnaud Charlet <charlet@adacore.com>
2846 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
2847 Entry_Call.State if needed so that the call is marked as cancelled by
2848 Check_Pending_Actions_For_Entry_Call.
2849 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
2850 this procedure may be called from a controlled operation
2851 (Initialize/Finalize).
2853 2010-09-09 Vadim Godunko <godunko@adacore.com>
2855 * impunit.adb: Correct spelling of package's name in the comment.
2857 2010-09-09 Robert Dewar <dewar@adacore.com>
2859 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
2862 2010-09-09 Robert Dewar <dewar@adacore.com>
2864 * impunit.adb: Add entry for a-izteio.
2865 * checks.adb: Add comment.
2866 * debug.adb, exp_disp.adb: Minor reformatting.
2867 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
2869 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2871 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
2872 discriminant cannot be assumed to be the same value because they may
2873 refer to bounds of a component of two different instances of a
2876 2010-09-09 Gary Dismukes <dismukes@adacore.com>
2878 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
2879 operands of an operator to the type of an enclosing conversion, rewrite
2880 the operator so the conversion can't be flagged as redundant.
2881 Remove useless assignments to Typ and Rtyp.
2883 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
2885 * gnat_ugn.texi: Fix another long line.
2887 2010-09-09 Bob Duff <duff@adacore.com>
2889 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
2892 2010-09-09 Matthew Heaney <heaney@adacore.com>
2894 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
2895 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
2896 Replace_Element, Reverse_Elements, Swap): Change exception message to
2897 correctly indicate kind of tampering (cursor or element).
2898 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
2899 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
2900 Swap_Links, Replace_Element, Swap): Ditto.
2901 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
2902 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
2903 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
2904 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
2905 Generic_Replace_Element): Ditto
2906 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
2907 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
2908 Replace_Element): Ditto.
2909 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
2910 Symmetric_Difference, Union, Include, Replace): Ditto
2912 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2914 * sprint.adb (Write_Id): If the parent node is an expanded name, check
2915 that its entity_or_associated_node is an entity before writing it out.
2916 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
2917 constructors, there is no need for a dispatch table pointer because the
2918 table is fully inherited from the C++ code.
2920 2010-09-09 Thomas Quinot <quinot@adacore.com>
2922 * projects.texi: Fix wrong identifiers on package end lines in project
2924 * exp_ch6.adb: Minor reformatting.
2926 2010-09-09 Tristan Gingold <gingold@adacore.com>
2928 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
2930 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
2932 * gnat_ugn.texi: Fix description of -O3 optimization level.
2934 2010-09-09 Yannick Moy <moy@adacore.com>
2936 * a-cihama.adb, a-cohama.adb: Fix comments.
2938 2010-09-09 Arnaud Charlet <charlet@adacore.com>
2940 * i-cexten.ads: Add comments.
2941 (Signed_128): New type, used by some C bindings.
2942 * debug.adb: Update comment.
2944 2010-09-09 Sergey Rybin <rybin@adacore.com>
2946 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
2947 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
2948 the tool should process Ada 2005 sources.
2950 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2952 * sem_ch12.adb (Remove_Parent): If the scope containing the child
2953 instance is a block, examine the enclosing scope to determine if it is
2956 2010-09-09 Doug Rupp <rupp@adacore.com>
2958 * sem_prag.adb (pragma Ident): Pass --identification= vice
2960 * gnatlink.adb (Linker_Options): Look for --identification= vice
2963 2010-09-09 Gary Dismukes <dismukes@adacore.com>
2965 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
2966 inserting and analyzing the object declaration for the temporary object
2967 created to hold a 'Old value, push the scope for the subprogram where
2968 the object is inserted, so that its Scope (and that of related objects)
2969 will be set properly.
2971 2010-09-09 Vincent Celier <celier@adacore.com>
2973 * prj.adb (Get_Object_Directory): Return object directory display name
2974 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
2975 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
2976 return this value, otherwise return the default for the platform.
2978 2010-09-09 Arnaud Charlet <charlet@adacore.com>
2980 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2981 dependencies. Remove handling of gnatlbr.
2982 Do not remove s-stratt-xdr for the run-time when installing.
2984 2010-09-09 Robert Dewar <dewar@adacore.com>
2986 * sem_attr.adb: Minor reformatting.
2988 2010-09-09 Thomas Quinot <quinot@adacore.com>
2990 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
2991 unsigned long, not an int.
2993 2010-09-09 Vincent Celier <celier@adacore.com>
2995 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
2996 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
2997 we are not checking for equality of path or file names.
2999 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3001 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
3002 array reference, reset the Analyzed flag so that it is properly
3003 expanded when the resulting object declaration is analyzed.
3005 2010-09-09 Vincent Celier <celier@adacore.com>
3007 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
3010 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
3012 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
3013 VX_SPE_TASK option, so disable it.
3015 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3017 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
3019 (Is_Subunit_Of_Main): Handle null nodes properly.
3021 2010-09-09 Robert Dewar <dewar@adacore.com>
3023 * par-ch2.adb: Update comments.
3025 2010-09-09 Ben Brosgol <brosgol@adacore.com>
3027 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
3029 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3031 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
3032 do not generate an error for compatibility with legacy code.
3033 ignored when generating SCIL.
3034 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
3036 2010-09-09 Thomas Quinot <quinot@adacore.com>
3038 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
3039 s-strxdr.adb to s-stratt-xdr.adb
3041 2010-09-09 Robert Dewar <dewar@adacore.com>
3043 * ali-util.adb (Obsolescent_Check): Removed.
3044 * gprep.adb (Obsolescent_Check): Removed.
3045 Remove Obsolescent_Check parameter in Scng instantiation
3046 * prj-err.adb (Obsolescent_Check): Removed.
3047 * prj-err.ads (Obsolescent_Check): Removed.
3048 Remove Obsolescent_Check parameter in Scng instantiation
3049 * scans.ads (Based_Literal_Uses_Colon): New flag
3050 * scn.adb (Obsolscent_Check_Flag): Removed
3051 (Obsolscent_Check): Removed
3052 (Set_Obsolescent_Check): Removed
3053 (Post_Scan): Add handling for obsolescent features
3054 * scn.ads (Obsolscent_Check): Removed
3055 (Set_Obsolescent_Check): Removed
3056 (Post_Scan): Can no longer be inlined
3057 Remove Obsolescent_Check from instantiation of Scng
3058 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
3059 (Nlit): Remove handling of obsolescent check
3060 (Scan, case '%'): Remove handling of obsolescent check
3061 (Scan, case '|'): Call Post_Scan
3062 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
3063 * scng.ads Remove Obsolescent_Check argument from Scng generic
3064 (Post_Scan): Now called for Tok_Vertical_Bar
3065 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
3067 2010-09-09 Doug Rupp <rupp@adacore.com>
3069 * gnatlbr.adb: Removed.
3070 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
3072 2010-09-09 Robert Dewar <dewar@adacore.com>
3074 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
3077 2010-09-09 Vincent Celier <celier@adacore.com>
3079 * gnatlbr.adb: Remove redundant conversions.
3081 2010-09-09 Vincent Celier <celier@adacore.com>
3083 * prj-proc.adb: Minor comment spelling error fix.
3084 * osint.ads (Env_Vars_Case_Sensitive): Use function
3085 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
3088 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3090 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
3091 resolution of conditional expressions whose dependent expressions are
3092 anonymous access types.
3094 2010-09-09 Robert Dewar <dewar@adacore.com>
3096 * a-ststio.adb: Minor code reorganization.
3097 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
3099 * types.ads: Minor reformatting.
3100 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
3101 redundant conversions.
3102 * output.adb: Minor reformatting.
3103 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
3105 * opt.ads: Add pragma Ordered for Verbosity_Level.
3106 * prj.ads: Add pragma Ordered for type Verbosity.
3108 2010-09-09 Vincent Celier <celier@adacore.com>
3110 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
3112 (Canonical_Case_Env_Var_Name): Ditto
3114 2010-09-09 Bob Duff <duff@adacore.com>
3116 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
3118 2010-09-09 Robert Dewar <dewar@adacore.com>
3120 * cstand.adb: Mark Boolean and Character types as Ordered
3121 * einfo.adb (Has_Pragma_Ordered): New flag
3122 * einfo.ads (Has_Pragma_Ordered): New flag
3123 * g-calend.ads: Mark Day_Name as Ordered
3124 * opt.ads: Mark Ada_Version_Type as Ordered
3125 (Warn_On_Unordered_Enumeration_Type): New flag
3126 * par-prag.adb: Add procdessing for pragma Ordered
3127 * s-ficobl.ads (Read_File_Mode): New subtype
3128 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
3129 * s-taskin.ads: Mark Entry_Call_State as ordered
3130 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
3132 * sem_ch6.ads: Mark Conformance_Type as Ordered
3133 * sem_prag.adb: Implement pragma Ordered
3134 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
3135 (Resolve_Comparison_Op): Diagnose unordered comparison
3136 (Resolve_Range): Diagnose unordered range
3137 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
3139 * snames.ads-tmpl: Add entry for pragma Ordered
3140 * style.ads (Check_Enumeration_Subrange): Removed
3141 * styleg.adb (Check_Enumeration_Subrange): Removed
3142 * styleg.ads (Check_Enumeration_Subrange): Removed
3143 * stylesw.adb: Remove handling of -gnatyE switch
3144 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
3145 * vms_data.ads: Remove -gnatyE entries
3146 Add -gnatw.u entries
3147 * ug_words: Entries for -gnatw.u and -gnatw.U
3148 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
3149 * gnat_rm.texi: Document pragma Ordered.
3150 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
3151 * s-tpobop.adb: Remove comparison on unordered enumeration type.
3153 2010-09-09 Vincent Celier <celier@adacore.com>
3155 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
3156 for VMS and Windows, and 1 for all other platforms.
3157 * adaint.h: New function __gnat_get_env_vars_case_sensitive
3158 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
3159 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
3160 Canonical_Case_File_Name, as we are dealing with environment variables,
3163 2010-09-09 Robert Dewar <dewar@adacore.com>
3165 * sem_util.adb: Minor reformatting
3167 2010-09-09 Vincent Celier <celier@adacore.com>
3169 * vms_data.ads: Add documentation for S_Make_Single.
3171 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3173 * sem_util.adb (Same_Object): include formal parameters.
3175 2010-09-09 Vincent Celier <celier@adacore.com>
3177 * make.adb (Queue): New package implementing a new impementation of the
3178 queue, taking into account the new switch --single-compile-per-obj-dir.
3179 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
3180 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
3181 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
3183 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
3184 switch --single-compile-per-obj-dir.
3185 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
3186 switch --single-compile-per-obj-dir.
3187 * gnat_ugn.texi: Add documentation for new gnatmake switch
3188 --single-compile-per-obj-dir.
3190 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3192 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
3194 2010-09-09 Javier Miranda <miranda@adacore.com>
3196 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
3197 (Replace_Type): Code cleanup.
3198 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
3200 2010-09-09 Thomas Quinot <quinot@adacore.com>
3202 * exp_ch8.adb: Minor reformatting.
3204 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3206 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
3207 Corresponding_Protected_Entry.
3209 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3211 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
3212 inequality, it is always rewritten as the negation of the corresponding
3214 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
3215 the predefined equality of an untagged record, create a body at the
3216 point of the renaming, to capture the current meaning of equality for
3219 2010-09-09 Robert Dewar <dewar@adacore.com>
3221 * sem.adb, sem_warn.adb: Minor reformatting.
3223 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3225 * sem_ch6.adb: Improve error message on untagged equality.
3226 * sem.adb (Semantics): Include subprogram bodies that act as spec.
3228 2010-09-09 Javier Miranda <miranda@adacore.com>
3230 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
3232 2010-09-09 Robert Dewar <dewar@adacore.com>
3234 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
3236 2010-09-09 Robert Dewar <dewar@adacore.com>
3238 * einfo.adb (Is_Aggregate_Type): New function.
3239 * einfo.ads (Aggregate_Kind): New enumeration subtype
3240 (Is_Aggregate_Type): New function.
3241 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
3244 2010-09-09 Robert Dewar <dewar@adacore.com>
3246 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
3247 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
3249 * restrict.ads, restrict.adb: Ditto.
3250 (Restriction_Check_Needed): New function
3252 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3254 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
3255 Build_Master_Entity, to find the proper scope for the master entity of
3256 a type that may contain tasks, in the presence of transient scopes.
3257 * exp_ch9.adb (Build_Master_Entity) Use new function.
3258 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
3260 2010-09-09 Vincent Celier <celier@adacore.com>
3262 * prj-attr.adb: Add new attributes Leading_Library_Options and
3263 Linker'Leading_Switches.
3264 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
3267 2010-09-09 Javier Miranda <miranda@adacore.com>
3269 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
3270 dispatching primitive covers some interface primitive is incomplete.
3271 Replace such code by the invocation of a new subprogram that provides
3273 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
3274 * sem_ch6.adb (Check_Missing_Return): Minor reformating
3275 (Check_Convention): Complete if-statement conditition when reporting
3276 errors (to avoid assertion failure).
3277 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
3278 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
3279 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
3280 overridden null interface primitives.
3281 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
3282 private type is an interface then use the parent of its full view to
3283 climb to its ancestor type.
3284 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
3285 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
3286 null interface primitives.
3287 (Is_Null_Interface_Primitive): New subprogram.
3288 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
3289 (Expand_Freeze_Record_Type): Do not generate specs of null interface
3290 subprograms because they are now generated by Analyze_Freeze_Entity.
3292 2010-09-09 Robert Dewar <dewar@adacore.com>
3294 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
3296 2010-09-09 Robert Dewar <dewar@adacore.com>
3298 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
3299 (Gen_Restrictions_C): Avoid explicit enumeration ranges
3300 (Set_String_Replace): New procedure
3301 * casing.ads (Known_Casing): New subtype declaration
3302 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
3304 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
3305 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
3306 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
3307 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
3308 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
3310 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
3312 * sem_type.adb (Is_Array_Class_Record_Type): New.
3313 * style.ads (Check_Enumeration_Subrange): New procedure
3314 * styleg.adb (Check_Enumeration_Subrange): New procedure
3315 * styleg.ads (Check_Enumeration_Subrange): New procedure
3316 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
3317 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
3318 * usage.adb: Add line for -gnatyE
3319 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
3320 Add missing entry for NOBOOLEAN_OPERATORS
3321 * gnat_ugn.texi: Add documentation for -gnatyE
3323 2010-09-09 Robert Dewar <dewar@adacore.com>
3325 * namet.adb (Initialize): Is now a dummy procedure
3326 (Reinitialize): New procedure
3327 Call Reinitialize from package initialization
3328 * namet.ads (Initialize): Is now a dummy procedure
3329 (Reinitialize): New procedure
3330 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
3331 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
3334 2010-09-09 Bob Duff <duff@adacore.com>
3336 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
3338 2010-09-09 Robert Dewar <dewar@adacore.com>
3340 * s-bitops.adb (Raise_Error): Add exception message
3342 2010-09-09 Robert Dewar <dewar@adacore.com>
3344 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
3345 null statement after label.
3346 * sinfo.ads: Minor comment updates.
3348 2010-09-09 Robert Dewar <dewar@adacore.com>
3350 * nlists.ads, nlists.adb (In_Same_List): New function.
3351 Use Node_Or_Entity_Id where appropriate.
3352 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
3354 2010-09-09 Robert Dewar <dewar@adacore.com>
3356 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
3358 * sem_ch3.adb: Use Check_Wide_Character_Restriction
3359 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
3360 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
3361 (Find_Expanded_Name): Check violation of No_Wide_Characters
3363 2010-09-09 Robert Dewar <dewar@adacore.com>
3365 * par-ch5.adb: Minor reformatting.
3367 2010-09-09 Robert Dewar <dewar@adacore.com>
3369 * prj-env.adb: Minor code reorganization.
3370 * par-ch3.adb: Minor reformatting.
3371 * gcc-interface/Make-lang.in: Update dependencies.
3373 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3375 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
3376 a task declaration can be an entry body.
3378 2010-09-09 Javier Miranda <miranda@adacore.com>
3380 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
3381 tags of library level tagged types.
3382 (Make_Tags): Disable backend optimizations about aliasing for
3383 declarations of access to dispatch tables.
3385 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3387 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
3388 subtype for a null-excluding access type, recover the original
3389 subtype_mark to get the proper visibility on the original name.
3391 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3393 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
3394 create the primitive equality operation for an untagged record. The
3395 operation is the predefined equality if no record component has a
3396 user-defined equality, or if there is a user-defined equality for the
3397 type as a whole, or when the type is derived and it has an inherited
3398 equality. Otherwise the body of the operations is built as for tagged
3400 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
3401 (Make_Eq_Body): New function to create the expanded body of the
3402 equality operation for tagged and untagged records. In both cases the
3403 operation composes, and the primitive operation of each record
3404 component is used to generate the equality function for the type.
3405 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
3406 has an abstract equality defined, replace its call with a
3407 Raise_Program_Error.
3408 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
3409 user-defined equality operator for an untagged record type does not
3410 happen after type is frozen, and appears in the visible part if partial
3411 view of type is not limited.
3413 2010-09-09 Tristan Gingold <gingold@adacore.com>
3415 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
3417 2010-09-09 Bob Duff <duff@adacore.com>
3419 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
3421 2010-09-09 Pascal Obry <obry@adacore.com>
3423 * gnat_ugn.texi: Update doc on windows related topics.
3425 2010-09-09 Geert Bosch <bosch@adacore.com>
3427 * s-fatgen.adb: Update comments.
3429 2010-09-09 Robert Dewar <dewar@adacore.com>
3431 * par-ch4.adb (Box_Error): New procedure.
3433 2010-09-09 Thomas Quinot <quinot@adacore.com>
3435 * sem.adb: Minor reformatting.
3437 2010-09-09 Pascal Obry <obry@adacore.com>
3439 * prj-env.adb: Style fix, use /and then/ and /or else/.
3440 * gnat_ugn.texi: Fix typos.
3442 2010-09-03 Joseph Myers <joseph@codesourcery.com>
3445 * gcc-interface/misc.c (gnat_init_options): Allow options with
3446 empty canonical form. Generate a single save_argv element from -I
3449 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
3451 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
3452 Attach fake PARM_DECLs to the topmost block of the function.
3454 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
3456 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
3457 for the call to a function whose return type was unconstrained.
3459 2010-08-30 Olivier Hainque <hainque@adacore.com>
3461 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
3462 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
3463 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
3465 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
3467 * tracebak.c: Fix typo in comment.
3469 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3471 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
3472 * gcc-interface/trans.c: Likewise.
3473 * gcc-interface/utils.c: Likewise.
3475 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
3477 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
3479 2010-08-10 Robert Dewar <dewar@adacore.com>
3481 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
3482 * sem_util.adb: Minor reformatting.
3484 2010-08-10 Javier Miranda <miranda@adacore.com>
3486 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
3487 constructors that leave the object partially initialized.
3488 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
3489 that copies from parent of Typ the dispatch table slots of inherited
3490 C++ primitives. It handles primary and secondary dispatch tables.
3491 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
3492 use this attribute with E_Variable entities.
3493 (Set_Is_Tag): Relax assertion to allow its use with variables that
3495 (Set_Related_Type): Relax assertion to allow its use with variables
3496 that store the tag of a C++ class.
3497 (Write_26_Field_Name): Remove Related_Type.
3498 (Write_27_Field_Name): Add Related_Type.
3499 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
3500 with E_Variable entities.
3501 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
3503 * sem_util.adb (Search_Tag): Add missing support for CPP types.
3504 (Enclosing_CPP_Parent): New subprogram.
3505 (Has_Suffix): New subprogram.
3506 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
3507 closest ancestor of a type that is a C++ type.
3508 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
3510 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
3511 instance in derivations of C++ types.
3512 * exp_tss.adb (CPP_Init_Proc): New subprogram.
3513 (Is_CPP_Init_Proc): New subprogram.
3514 (Set_TSS): Handle new C++ init routines.
3515 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
3517 (CPP_Init_Proc): New subprogram.
3518 (Is_CPP_Init_Proc): New subprogram.
3519 * exp_disp.adb (CPP_Num_Prims): New subprogram.
3520 (Has_CPP_Constructors): New subprogram.
3521 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
3522 initialize slots located in the C++ part of the dispatch table.
3523 (Make_Tags): For CPP types declare variables used by the IP routine to
3524 store the C++ tag values after the first invocation of the C++
3526 (Build_CPP_Init_DT): New subprogram.
3527 (Set_CPP_Constructors): New implementation that builds an IP for each
3528 CPP constructor. These IP are wrappers of the C++ constructors that,
3529 after the first invocation of the constructor, read the C++ tags from
3530 the object and save them locally. These copies of the C++ tags are used
3531 by the IC routines to initialize tables of Ada derivations of CPP
3533 (Write_DT): Indicate what primitives are imported from C++
3534 * exp_disp.ads (CPP_Num_Prims): New subprogram.
3535 (Has_CPP_Constructors): New subprogram.
3536 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
3537 invoke the IC routine to inherit the slots of the parents.
3538 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
3539 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
3540 (Is_Variable_Size_Record): Factorize code calling
3541 Is_Variable_Size_Array.
3542 (Build_CPP_Init_Procedure): New subprogram that builds the tree
3543 corresponding to the procedure that initializes the C++ part of the
3544 dispatch table of an Ada tagged type that is a derivation of a CPP
3546 (Build_Init_Procedure): Adding documentation plus code reorganization
3547 to leave more clear the construction of the IP with C++ types.
3548 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
3549 it cannot be called after Make_Tags has been invoked.
3550 (Inherit_CPP_Tag): Removed.
3551 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
3552 located at variable offset.
3553 * freeze.ads: Minor reformating.
3554 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
3556 * gcc-interface/Make-lang.in: Update dependencies.
3558 2010-08-10 Robert Dewar <dewar@adacore.com>
3560 * a-chahan.ads: Add comments on handling of obsolescent entries.
3561 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
3562 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
3563 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
3564 * sem_attr.adb (Analyze_Access_Attribute): Call
3565 Check_Obsolescent_2005_Entity to check for access to obsolescent
3566 Ada.Characters.Handling subprogram.
3567 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
3568 type is obsolescent in Ada 2005.
3569 (Analyze_Attribute, case Constrained): Better placement of flag when
3570 flagged as obsolescent feature.
3571 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
3572 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
3573 is an obsolescent feature.
3574 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
3576 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
3577 Check_Obsolescent_2005_Entity to check for renaming obsolete
3578 Ada.Characters.Handling subprogram.
3579 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
3580 for obsolescent restrictions in Ada 2005.
3581 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
3582 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
3583 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
3584 check for obsolescent references to Ada.Characters.Handling subprograms
3586 2010-08-10 Robert Dewar <dewar@adacore.com>
3588 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
3590 2010-08-10 Robert Dewar <dewar@adacore.com>
3592 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
3593 * par-ch4.adb: Change wording of Ada 2012 messages
3594 * vms_data.ads: Add VMS entries for /2005, /12, /2012
3596 2010-08-10 Robert Dewar <dewar@adacore.com>
3598 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
3599 codes in the range 16#80#..16#7FF#.
3600 * sem_ch10.adb: Minor reformatting.
3602 2010-08-10 Arnaud Charlet <charlet@adacore.com>
3604 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
3605 generate ali files in CodePeer mode, so that a gnatmake -c -k will
3606 proceed further when possible
3607 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
3608 messages when ignoring representation clauses (-gnatI).
3610 2010-08-10 Ed Schonberg <schonberg@adacore.com>
3612 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
3613 constant-fold discriminant reference if the constraint is an object
3614 with non-static expression. Expression may contain volatile references
3615 in the presence of renamings.
3617 2010-08-10 Vincent Celier <celier@adacore.com>
3619 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
3621 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
3622 index for an associative array where it is allowed.
3624 2010-08-10 Thomas Quinot <quinot@adacore.com>
3626 * exp_attr.adb: Add comments.
3628 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
3630 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
3632 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
3634 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
3636 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
3638 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
3639 (build_vms_descriptor): Likewise.
3641 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3643 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
3644 (build_vms_descriptor32): Adjust calls to it for new parameter.
3645 (build_vms_descriptor): Likewise.
3647 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3649 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
3650 (build_variant_list): Take and return a VEC instead of a tree.
3651 (create_variant_part_from): Take a VEC instead of a tree for
3652 variant_list. Adjust accordingly.
3653 (gnat_to_gnu_entity): Adjust for changes to previous functions.
3655 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
3657 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
3659 (components_to_record): Likewise.
3660 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
3661 * gcc-interface/utils.c (max_size): Likewise.
3662 (build_vms_descriptor32): Likewise.
3663 (build_vms_descriptor): Likewise.
3665 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
3667 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
3668 (build_subst_list): Return a VEC instead of a tree.
3669 (build_variant_list): Take a VEC for subst_list. Adjust
3671 (create_field_decl_from): Likewise.
3672 (create_variant_part_from): Likewise.
3673 (copy_and_substitute_in_size): Likewise.
3674 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
3675 Free the built vector.
3677 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
3679 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
3680 allocator for large imported objects.
3682 2010-08-05 Robert Dewar <dewar@adacore.com>
3684 * gnat1drv.adb: Minor reformatting.
3686 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3688 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
3689 instantiation, process its body before the spec of the main unit,
3690 because it may contain subprograms invoked in the spec of main.
3691 * einfo.ads: Add documention of delayed freeze.
3693 2010-08-05 Vincent Celier <celier@adacore.com>
3695 * prj-nmsc.adb (Process_Linker): Take into account new values for
3696 attribute Response_File_Format.
3697 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
3698 GCC_Object_List and GCC_Option_List.
3700 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3702 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
3703 selected component that denotes a discriminant if it is the
3704 discriminant of a component of an unconstrained record type.
3706 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3708 * exp_util.adb (Insert_Actions): If the action appears within a
3709 conditional expression that is already analyzed, insert action further
3712 2010-08-05 Robert Dewar <dewar@adacore.com>
3714 * exp_ch4.adb: Minor reformatting.
3716 2010-08-05 Thomas Quinot <quinot@adacore.com>
3718 * exp_ch4.adb: Minor reformatting
3719 * gnat1drv.adb: Minor reformatting.
3720 Minor code reorganization (use Nkind_In).
3722 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3724 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
3725 determine whether the expression in an address clause for an
3726 initialized object must be constant. Code moved from freeze.adb.
3727 (Remove_Side_Effects): When the temporary is initialized with a
3728 reference, indicate that the temporary is a constant as done in all
3730 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
3731 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
3732 If object does not need a constant address, remove side effects from
3733 address expression, so it is elaborated at the point of the address
3734 clause and not at the freeze point of the object, so that elaboration
3737 2010-08-05 Vincent Celier <celier@adacore.com>
3739 * prj.adb (Is_Compilable): Return False for header files of non Ada
3742 2010-08-05 Emmanuel Briot <briot@adacore.com>
3744 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
3745 exec directory as a warning rather than an error.
3747 2010-08-05 Thomas Quinot <quinot@adacore.com>
3749 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
3752 2010-08-05 Steve Baird <baird@adacore.com>
3754 * exp_util.adb (Remove_Side_Effects): An access value which designates
3755 a volatile object of a nonvolatile type is prohibited.
3756 Do not call Make_Reference to construct a reference to such an object.
3758 2010-08-05 Robert Dewar <dewar@adacore.com>
3760 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
3761 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
3762 a-suewen.adb, a-suewen.ads: New files.
3763 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
3765 * sem_elab.adb: Minor reformatting.
3767 2010-08-05 Arnaud Charlet <charlet@adacore.com>
3769 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
3770 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
3771 in case of null Comp.
3773 2010-08-05 Robert Dewar <dewar@adacore.com>
3775 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
3777 2010-08-05 Gary Dismukes <dismukes@adacore.com>
3779 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
3780 nested access type whose designated type has tasks or is a protected
3781 object when the restrictions No_Task_Hierarchy or
3782 No_Local_Protected_Objects apply. Add ??? comment.
3783 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
3784 type is not a library-level type and No_Local_Protected_Objects applies.
3785 (Analyze_Task_Type): Give a warning when a task type is not a
3786 library-level type and No_Task_Hierarchy applies.
3788 2010-08-05 Arnaud Charlet <charlet@adacore.com>
3790 * sem.adb: Minor reformatting
3791 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
3794 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
3796 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
3798 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
3799 for the debug-only entity.
3800 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
3802 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3804 * gcc-interface/lang-specs.h: Don't pass -a options.
3806 2010-07-28 Joseph Myers <joseph@codesourcery.com>
3808 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
3809 options. Check canonical_option_num_elements on options copied.
3811 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3813 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
3814 return value type. Don't check for missing arguments here.
3816 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3818 * gcc-interface/misc.c (gnat_option_lang_mask): New.
3819 (gnat_init_options): Update prototype. Reconstruct argv array
3820 from decoded options.
3822 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
3824 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
3825 case, merge the alias set of the old pointer type.
3827 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
3829 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
3830 and recurse only for multidimensional array types instead.
3832 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
3835 * gcc-interface/utils.c (convert): Fix thinko in test.
3836 (unchecked_convert): When converting from a scalar type to a type with
3837 a different size, pad to have the same size on both sides.
3839 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
3841 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
3842 equality for the component type of array types.
3844 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3846 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3847 * gcc-interface/trans.c: Likewise.
3848 * gcc-interface/utils.c: Likewise.
3849 * gcc-interface/utils2.c: Likewise.
3851 2010-07-13 Laurent GUERBY <laurent@guerby.net>
3854 * gcc-interface/targtyps.c: Include tm_p.h.
3855 * gcc-interface/Make-lang.in: Update dependencies.
3857 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
3859 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
3862 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3864 * gcc-interface/utils.c: Include diagnostic-core.h in every file
3865 that includes toplev.h.
3867 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
3869 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
3870 Branch to common code handling the alignment of discrete types.
3871 <E_Signed_Integer_Type>: Likewise.
3872 <E_Modular_Integer_Type>: Likewise.
3874 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
3876 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
3877 (gnat_handle_option): Allocate only one element for gnat_argv.
3878 (gnat_init): Do not populate gnat_argv.
3880 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3882 * gcc-interface/trans.c: Do not include tree-flow.h.
3883 * gcc-interface/Make-lang.in: Adjust dependencies.
3885 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3887 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
3888 of a TREE_LIST. Update comment.
3889 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
3890 Adjust call to gnat_build_constructor.
3891 (Attribute_to_gnu): Likewise.
3892 (gnat_to_gnu): Likewise.
3893 (pos_to_constructor): Likewise.
3894 (extract_values): Likewise.
3895 * gcc-interface/utils.c (build_template): Likewise.
3896 (convert_vms_descriptor64): Likewise.
3897 (convert_vms_descriptor32): Likewise.
3898 (convert_to_fat_pointer): Likewise.
3899 (convert): Likewise.
3900 (unchecked_convert): Likewise.
3901 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
3902 * gcc-interface/utils2.c (build_allocator): Likewise.
3903 (fill_vms_descriptor): Likewise.
3904 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
3905 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
3906 instead of TREE_LISTs.
3908 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3910 * gcc-interface/misc.c: Do not include except.h.
3911 * gcc-interface/Make-lang.in: Update dependencies.
3913 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
3915 * gcc-interface/trans.c: Include tree-flow.h.
3916 (gnu_switch_label_stack): Delete.
3917 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
3918 its associated block cannot fall through. Do not emit the final label
3919 if no cases branch to it.
3920 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
3922 2010-06-23 Thomas Quinot <quinot@adacore.com>
3924 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
3925 reference to a protected subprogram outside of the protected's scope,
3926 ensure the corresponding external subprogram is frozen before the
3929 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3931 * sem_prag.adb: Fix typo in error message.
3932 * sem.adb: Refine previous change.
3934 2010-06-23 Robert Dewar <dewar@adacore.com>
3936 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
3937 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
3938 Implement Ada 2012 string encoding packages.
3940 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3942 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
3943 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
3944 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
3945 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
3947 * gcc-interface/Makefile.in: Enable use of above files.
3949 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3951 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
3952 of address clauses if if Ignore_Rep_Clauses is active.
3953 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
3954 remove address clause from tree so that it does not reach the backend.
3956 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3958 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
3959 expand 'Valid from user code in CodePeer mode, will be handled by the
3962 2010-06-23 Bob Duff <duff@adacore.com>
3964 * g-comlin.ads: Minor comment improvements.
3966 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3968 * sem_res.adb (Uses_SS): The expression that initializes a controlled
3969 component of a record type may be a user-defined operator that is
3970 rewritten as a function call.
3972 2010-06-23 Bob Duff <duff@adacore.com>
3974 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
3976 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
3978 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
3979 label to the new sequence of statements. Set the sloc of the raise
3980 statement onto the new goto statements.
3982 2010-06-23 Robert Dewar <dewar@adacore.com>
3984 * a-stuten.ads, a-stuten.adb: New files.
3985 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
3986 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
3988 2010-06-23 Robert Dewar <dewar@adacore.com>
3990 * gnat_ugn.texi: Add documentation of -gnat12 switch
3991 Add documentation of -gnatX switch.
3993 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3995 * inline.ads: Include the current Ada_Version in the info for pending
3996 instance bodies, so that declaration and body are compiled with the
3998 * inline.adb: Move with_clause for Opt to spec.
3999 * sem_ch12.adb (Analyze_Package_Instantiation,
4000 Analyze_Subprogram_Instantiation): Save current Ada_Version in
4001 Pending_Instantiation information.
4002 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
4003 Inline_Package_Body): Use the Ada_Version present in the body
4006 2010-06-23 Robert Dewar <dewar@adacore.com>
4008 * usage.adb: Add documentation for -gnat12 switch.
4009 * errout.ads: Add VMS alias entry for -gnat12 switch
4010 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
4011 Add documentation for pragma Extensions_Allowed.
4012 * opt.ads: Add entry for Ada 2012 mode.
4013 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
4015 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
4017 * sem_ch13.adb: Add handling for Ada 2012 mode.
4018 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
4019 * switch-c.adb: Add handling for -gnat12 switch.
4020 Implement -gnat2005 and -gnat2012.
4021 * usage.adb: Add documentation for -gnat12 switch.
4022 * vms_data.ads: Add /12 switch for Ada 2012 mode.
4024 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4026 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
4027 No_Task_Hierarchy restriction. Add comment.
4028 * exp_ch9.adb, exp_ch3.adb: Update comments.
4030 2010-06-23 Robert Dewar <dewar@adacore.com>
4032 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
4033 * sem_res.adb: Add comments.
4034 * sem_util.adb: Minor reformatting. Add comments.
4035 Change increment on Actuals_In_Call table.
4036 * opt.ads: Minor: add 'constant'.
4038 2010-06-23 Javier Miranda <miranda@adacore.com>
4040 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
4041 TSD to Null_Address if No_Dispatching_Calls is active.
4043 2010-06-23 Vincent Celier <celier@adacore.com>
4045 * a-comlin.ads: Indicate that use of this package is not supported
4046 during the elaboration of an auto-initialized Stand-Alone Library.
4048 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4050 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
4051 alignment clause on a record type to determine if a component may be
4052 misaligned. The decision must be taken in the back-end where target
4053 alignment information is known.
4055 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4057 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
4058 systematically in CodePeer mode to simplify generated code.
4059 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
4060 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
4061 No_Task_Hierarchy is set instead of crasshing.
4063 2010-06-23 Thomas Quinot <quinot@adacore.com>
4065 * sem_util.adb: Minor code cleanup: test for proper entity instead of
4066 testing just Chars attribute when checking whether a given scope is
4068 * exp_ch4.adb, einfo.adb: Minor reformatting.
4070 2010-06-23 Vincent Celier <celier@adacore.com>
4073 * switch-m.adb (Normalize_Compiler_Switches): Take into account
4074 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
4075 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
4077 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4079 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
4080 operation with a universal real operand, and the right operand is a
4081 range with universal bounds, find unique fixed point that may be
4082 candidate, and warn appropriately.
4084 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4086 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
4087 properly the rare cases where VMS operators are visible through
4088 Extend_System, but the default System is being used and Address is a
4090 * sem_util.adb: Widen predicate Is_VMS_Operator.
4092 2010-06-23 Vincent Celier <celier@adacore.com>
4094 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
4097 2010-06-23 Olivier Hainque <hainque@adacore.com>
4099 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
4100 Interface_Name as foreign. These are GCC builtin imports for
4101 which Ada specific processing doesn't apply.
4103 2010-06-23 Thomas Quinot <quinot@adacore.com>
4105 * sem_ch12.adb: Minor reformatting.
4107 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4109 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
4110 determine whether an intrinsic subprogram is VMS specific.
4112 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4114 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
4115 is present in the entity.
4117 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4119 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
4120 Fix handling of parameters.
4121 Add protection against unexpected cases.
4122 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
4123 access level, since "A" suffix is already used elsewhere. Similarly,
4124 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
4127 2010-06-23 Thomas Quinot <quinot@adacore.com>
4129 * sem_util.adb, sem_util.ads: Minor reformatting.
4131 2010-06-23 Vincent Celier <celier@adacore.com>
4133 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
4134 the previous behavior of gprclean when there are missing files.
4136 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4138 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
4139 generic body is not a fatal error.
4140 (Mark_Context): Handle properly names of child units.
4141 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
4144 2010-06-23 Vincent Celier <celier@adacore.com>
4146 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
4149 2010-06-23 Bob Duff <duff@adacore.com>
4151 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
4152 Memory_Space, because CPU_Time doesn't seem to provide any significant
4153 speed advantage in practice. Cleanup: Get rid of constant
4154 Default_Optimization; doesn't seem to add anything. Use case
4155 statements instead of if statements; seems cleaner.
4157 2010-06-23 Olivier Hainque <hainque@adacore.com>
4159 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
4160 Wshadow instead of Wextra to guard warning on absence of internal
4161 builtin decl for an import. Fix use of quote in warning text.
4162 (intrin_arglists_compatible_p): Remove processing of integer trailing
4163 args on the Ada side. Fix use of literal > in warning text.
4164 (intrin_return_compatible_p): Never warn on "function imported as
4165 procedure". Defer the void/void case to the common type compatibility
4167 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
4168 of GCC builtin imports.
4170 2010-06-23 Olivier Hainque <hainque@adacore.com>
4172 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
4174 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
4175 functions, helpers for ...
4176 (intrin_profiles_compatible_p): New function, replacement for ...
4177 (compatible_signatures_p): Removed.
4178 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
4179 attempt to bind an unregistered builtin function. When we have
4180 one, use it and warn on profile incompatibilities.
4182 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4184 * gcc-interface/Make-lang.in: Update dependencies.
4186 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4188 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
4189 for a coextension in an object declaration is a concatenation, treat
4190 coextension as dynamic.
4192 2010-06-23 Javier Miranda <miranda@adacore.com>
4194 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
4195 internal entities are added to the scope of the tagged type.
4196 (Derive_Subprograms): Do not stop derivation when we find the first
4197 internal entity that has attribute Interface_Alias. After the change
4198 done to Override_Dispatching_Operations it is no longer true that
4199 these primirives are always located at the end of the list of
4201 * einfo.ads (Primitive_Operations): Add documentation.
4202 * exp_disp.adb (Write_DT): Improve output adding to the name of the
4203 primitive a prefix indicating its corresponding tagged type.
4204 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
4205 entity covers the primitive of an interface that is not an ancestor of
4206 this tagged type then the new primitive is added at the end of the list
4207 of primitives. Required to fulfill the C++ ABI.
4209 2010-06-23 Javier Miranda <miranda@adacore.com>
4211 * atree.ads (Set_Reporting_Proc): New subprogram.
4212 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
4213 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
4214 to routines of package Scil_ll by indirect call to the registered
4216 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
4217 that is invoked when a node is allocated, replaced or rewritten.
4218 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
4219 the SCIL node. Used as argument for Set_Reporting_Proc.
4220 (Initialize): Register Copy_SCIL_Node as the reporting routine that
4221 is invoked by atree.
4223 2010-06-23 Thomas Quinot <quinot@adacore.com>
4225 * sem_ch3.ads: Minor reformatting.
4227 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4229 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
4230 always analyze the generic body and instance, because it may be needed
4232 (Mark_Context): Prepend the with clauses for needed generic units, so
4233 they appear in a better order for CodePeer.
4234 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
4236 2010-06-23 Emmanuel Briot <briot@adacore.com>
4238 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
4240 2010-06-23 Robert Dewar <dewar@adacore.com>
4242 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
4244 2010-06-23 Thomas Quinot <quinot@adacore.com>
4246 * a-tags.ads: Fix description of TSD structure.
4248 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4250 * sem_ch12.adb (Mark_Context): When indicating that the body of a
4251 generic unit is needed prior to the unit containing an instantiation,
4252 search recursively the context of the generic to add other generic
4253 bodies that may be instantiated indirectly through the current instance.
4255 2010-06-23 Robert Dewar <dewar@adacore.com>
4257 * freeze.adb: Minor reformatting.
4259 2010-06-23 Bob Duff <duff@adacore.com>
4261 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
4263 2010-06-23 Vincent Celier <celier@adacore.com>
4265 * make.adb (Compile_Sources): Complete previous change.
4267 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4269 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
4270 Constrained extra formal.
4272 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4274 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
4275 Initialize_Scalars are enabled, compile the generated equality function
4276 for a composite type with full checks enabled, so that validity checks
4277 are performed on individual components.
4279 2010-06-23 Emmanuel Briot <briot@adacore.com>
4281 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
4282 Missing_Source_Files.
4284 2010-06-23 Robert Dewar <dewar@adacore.com>
4286 * exp_ch3.adb, exp_util.adb: Minor reformatting.
4288 2010-06-23 Jose Ruiz <ruiz@adacore.com>
4290 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
4291 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
4292 Clock (without delays) use a run time which is properly initialized.
4294 2010-06-23 Vincent Celier <celier@adacore.com>
4296 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
4297 when -f -u and a main is specified on the command line. However,
4298 attempt to compile even when the ALI file is read-only when
4299 Must_Compile is True.
4301 2010-06-23 Thomas Quinot <quinot@adacore.com>
4303 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
4305 2010-06-23 Javier Miranda <miranda@adacore.com>
4307 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
4308 entities for parent types that are interfaces. Needed in generics to
4309 handle formals that implement interfaces.
4310 (Derive_Subprograms): Add assertion for derivation of tagged types that
4311 do not cover interfaces. For generics, complete code that handles
4312 derivation of type that covers interfaces because the previous
4313 condition was weak (it required only name consistency; arguments were
4314 not checked). Add new code to locate primitives covering interfaces
4315 defined in generic units or instantiatons.
4316 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
4317 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
4318 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
4319 interfaces that are parents of the type because they share the primary
4321 (Register_Primitive): Do not register primitives of interfaces that
4322 are parents of the type.
4323 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
4324 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
4325 primitives skip primitives of interfaces that are parents of the type.
4327 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4329 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
4330 attribute cannot be constant-folded if an index type is a formal type,
4331 or is derived from one.
4332 * checks.adb (Determine_Range): ditto.
4334 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4336 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
4338 2010-06-23 Bob Duff <duff@adacore.com>
4340 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
4341 (Insert): Disallow nul characters.
4342 (misc output routines): Assert no nul characters.
4344 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4346 * exp_ch4.adb: Use predefined unsigned type in all cases.
4348 2010-06-23 Bob Duff <duff@adacore.com>
4350 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
4351 * g-pehage.ads: Minor comment fixes.
4352 * g-pehage.adb: Minor: Add some additional debugging printouts under
4355 2010-06-23 Robert Dewar <dewar@adacore.com>
4357 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
4358 (Worse_Choice): Always prefer Pure/Preelab.
4360 2010-06-23 Vincent Celier <celier@adacore.com>
4362 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
4364 2010-06-23 Robert Dewar <dewar@adacore.com>
4366 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
4367 checking returns in generic case.
4368 (Check_Missing_Return): New procedure.
4370 2010-06-23 Robert Dewar <dewar@adacore.com>
4372 * bindgen.adb, switch-b.adb: Minor reformatting.
4374 2010-06-23 Javier Miranda <miranda@adacore.com>
4376 * frontend.adb (Frontend): Add call to initialize the new package
4378 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
4380 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
4381 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
4383 * exp_util.adb (Insert_Actions): Remove code for
4384 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4385 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
4386 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
4387 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
4388 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
4389 * sinfo.ads (SCIL_Related_Node): Field removed.
4390 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
4391 (N_SCIL_Tag_Init): Node removed.
4392 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
4393 (Check_SCIL_Node): New implementation.
4394 (Find_SCIL_Node): Removed.
4395 * sem.adb (Analyze): Remove management of
4396 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4397 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
4399 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
4400 Set_SCIL_Related_Node and avoid adding the SCIL node before the
4401 referenced node using Insert_Action because this is not longer
4403 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
4404 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
4405 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
4407 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
4408 because we no longer require to generate the SCIL node before the call.
4409 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
4410 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
4411 nodes before the referenced node using Insert_Action because this
4412 is not longer required.
4413 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
4414 update the SCIL_Node field.
4415 * sprint.adb (Sprint_Node_Actual): Remove code for
4416 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4417 * treepr.adb (Print_Node): Print the SCIL node field (if available).
4418 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
4419 SCIL_Tag_Init nodes.
4420 * scil_ll.ads, scil_ll.adb: New files.
4421 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4424 2010-06-23 Robert Dewar <dewar@adacore.com>
4426 * sem_ch6.adb: Minor reformatting.
4428 2010-06-23 Doug Rupp <rupp@adacore.com>
4430 * bindusg.adb (Display): Write -Hnn line.
4431 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
4433 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
4434 valid values to 32 and 64.
4435 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
4436 ENABLE, DISABLE as valid settings.
4437 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
4438 * opt.ads (Heap_Size): New global variable.
4439 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
4440 TARGET_MALLOC64 check. Fix comment.
4442 2010-06-23 Robert Dewar <dewar@adacore.com>
4444 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
4445 reformatting. Add comments.
4446 * errout.adb (Finalize): Properly adjust warning count when deleting
4449 2010-06-22 Robert Dewar <dewar@adacore.com>
4451 * errout.adb (Finalize): Set Prev pointers.
4452 (Finalize): Delete continuations for deletion by warnings off(str).
4453 * erroutc.ads: Add Prev pointer to error message structure.
4455 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4457 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
4458 child unit, examine context of parent units to locate instantiated
4459 generics whose bodies may be needed.
4460 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
4461 with_clause for the instantiated generic, examine the context of its
4462 parents, to set Withed_Body flag, so that it can be visited earlier.
4463 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
4464 an unsigned type, use a type of the proper size for the intermediate
4465 value, to prevent alignment problems on unchecked conversion.
4467 2010-06-22 Geert Bosch <bosch@adacore.com>
4469 * s-rannum.ads Change Generator type to be self-referential to allow
4470 Random to update its argument. Use "in" mode for the generator in the
4471 Reset procedures to allow them to be called from the Ada.Numerics
4472 packages without tricks.
4473 * s-rannum.adb: Use the self-referencing argument to get write access
4474 to the internal state of the random generator.
4475 * a-nudira.ads: Make Generator a derived type of
4476 System.Random_Numbers.Generator.
4477 * a-nudira.adb: Remove use of 'Unrestricted_Access.
4478 Put subprograms in alpha order and add headers.
4479 * g-mbdira.ads: Change Generator type to be self-referential.
4480 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
4482 2010-06-22 Robert Dewar <dewar@adacore.com>
4484 * freeze.adb: Minor reformatting
4485 Minor code reorganization (use Nkind_In and Ekind_In).
4487 2010-06-22 Bob Duff <duff@adacore.com>
4489 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
4490 -gnatc when a file is compiled that we cannot generate code for, not
4491 helpful and confusing.
4493 2010-06-22 Vincent Celier <celier@adacore.com>
4495 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
4498 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4500 * s-rannum.adb: Replace constants with commented symbols.
4501 * s-rannum.ads: Explain significance of the initial value of the data
4504 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4506 * a-ngcoty.adb: Clarify comment.
4508 2010-06-22 Gary Dismukes <dismukes@adacore.com>
4510 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
4511 expansion for indexing packed arrays with small power-of-2 component
4512 sizes when the target is AAMP.
4513 (Expand_Packed_Element_Reference): Return without expansion for
4514 indexing packed arrays with small power-of-2 component sizes when the
4517 2010-06-22 Geert Bosch <bosch@adacore.com>
4519 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
4522 2010-06-22 Robert Dewar <dewar@adacore.com>
4524 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
4527 2010-06-22 Doug Rupp <rupp@adacore.com>
4529 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
4531 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
4532 (pragma Ident): Add a default ident string in the private part.
4534 2010-06-22 Robert Dewar <dewar@adacore.com>
4536 * cstand.adb: Minor reformatting.
4538 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4540 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
4541 recognize the Shift and Rotation intrinsics that are known to the
4542 compiler but have no interface name.
4544 2010-06-22 Geert Bosch <bosch@adacore.com>
4546 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
4547 scaling in case of overflow or NaN results.
4549 2010-06-22 Robert Dewar <dewar@adacore.com>
4551 * cstand.adb: Complete previous change.
4552 * g-dirope.ads: Add comment.
4553 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
4555 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4557 * cstand.adb: Add tree nodes for pragma Pack on string types.
4559 2010-06-22 Javier Miranda <miranda@adacore.com>
4561 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
4562 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
4563 formal of a primitive.
4564 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
4565 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
4566 formal of a primitive.
4567 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
4568 to obtain the last formal of a primitive.
4570 2010-06-22 Geert Bosch <bosch@adacore.com>
4572 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
4573 depending on __EMX__ or MSDOS being defined.
4574 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
4575 * a-excpol-abort.adb: Update comment indicating users of the file.
4576 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
4578 * env.c: Remove empty conditional for MSDOS.
4579 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
4582 2010-06-22 Robert Dewar <dewar@adacore.com>
4584 * s-rannum.adb: Minor reformatting.
4586 2010-06-22 Javier Miranda <miranda@adacore.com>
4588 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
4589 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
4590 package Sem_Util to package Sem_Aux.
4592 2010-06-22 Javier Miranda <miranda@adacore.com>
4594 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
4595 remove useless restriction on imported routines when building the
4598 2010-06-22 Robert Dewar <dewar@adacore.com>
4600 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
4603 2010-06-22 Javier Miranda <miranda@adacore.com>
4605 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
4606 generic subprogram declarations to ensure proper context. Add missing
4607 support for generic actuals.
4608 (Try_Primitive_Operation): Add missing support for concurrent types
4609 that have no Corresponding_Record_Type. Required to diagnose errors
4611 generics or when compiling with no code generation (-gnatc).
4612 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
4613 the corresponding record type.
4614 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
4615 documentation. Do minimum decoration when processing a primitive of a
4616 concurrent tagged type that covers interfaces. Required to diagnose
4617 errors in the Object.Operation notation compiling generics or under
4619 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
4620 propagation of attribute Interface_List to the corresponding record.
4621 (Expand_N_Task_Type_Declaration): Code cleanup.
4622 (Expand_N_Protected_Type_Declaration): Code cleanup.
4624 2010-06-22 Matthew Heaney <heaney@adacore.com>
4626 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
4628 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4630 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
4631 that is able to produce all representable floating-point numbers in the
4632 unit interval. Remove template parameter Shift_Right, no longer used.
4633 * gnat_rm.texi: Document the period of the pseudo-random number
4634 generator under the description of its algorithm.
4635 * gcc-interface/Make-lang.in: Update dependencies.
4637 2010-06-22 Thomas Quinot <quinot@adacore.com>
4639 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
4640 reference to discriminant (can be an expanded name as well as an
4643 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4645 * exp_ch6.adb: Clarify comment.
4647 2010-06-22 Geert Bosch <bosch@adacore.com>
4649 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
4650 with decimal small as decimal types, avoiding FP arithmetic.
4651 (Has_Decimal_Small): New function.
4652 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
4654 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
4655 callers to call the new function in Einfo that takes the entity as
4658 2010-06-22 Robert Dewar <dewar@adacore.com>
4660 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
4662 2010-06-22 Thomas Quinot <quinot@adacore.com>
4664 * sem_elab.adb: Minor reformatting.
4666 2010-06-22 Vincent Celier <celier@adacore.com>
4668 * gnatsym.adb: Put the object files in the table in increasing
4669 aphabetical order of base names.
4671 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4673 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
4674 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
4675 the corresponding discriminal within a record declaration.
4677 2010-06-22 Thomas Quinot <quinot@adacore.com>
4679 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
4680 expression referring to a discriminal of the type of the aggregate (not
4681 a discriminal of some other unrelated type), and the prefix in the
4682 generated selected component must come from Lhs, not Obj.
4684 2010-06-22 Thomas Quinot <quinot@adacore.com>
4686 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
4687 when to freeze the parent type.
4689 2010-06-22 Robert Dewar <dewar@adacore.com>
4691 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
4692 exp_aggr.adb: Minor reformatting.
4693 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
4694 GNAT.MBSS_Float_Random.
4695 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
4697 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4699 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
4700 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
4701 (Random_Float_Template, Random): New method of creating
4702 uniform floating-point variables that allow the creation of all machine
4705 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
4707 2010-06-22 Gary Dismukes <dismukes@adacore.com>
4709 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
4710 to abstract targets to check that the type is tagged and comes from
4711 source, rather than only testing for targets of interface types. Remove
4714 2010-06-22 Vincent Celier <celier@adacore.com>
4716 * vms_data.ads: Modify the declarations of qualifiers
4717 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
4720 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4722 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
4723 expansion is disabled.
4725 2010-06-22 Robert Dewar <dewar@adacore.com>
4727 * makeusg.adb: Minor reformatting.
4729 2010-06-22 Robert Dewar <dewar@adacore.com>
4731 * types.ads: (Dint): Removed, no longer used anywhere.
4732 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
4733 (UI_Mul): Avoid use of UI_From_Dint.
4734 (UI_From_Dint): Removed, not used.
4735 * uintp.ads (UI_From_Dint): Removed, not used.
4736 (Uint_Min/Max_Simple_Mul): New constants.
4738 2010-06-22 Vincent Celier <celier@adacore.com>
4740 * clean.adb (Parse_Cmd_Line): Recognize switch
4741 --unchecked-shared-lib-imports.
4742 (Usage): Add line for switch --unchecked-shared-lib-imports
4743 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
4744 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
4745 moved from GPR_Util.
4746 * switch-m.adb (Scan_Make_Switches): Recognize switch
4747 --unchecked-shared-lib-imports.
4748 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
4749 * gnat_ugn.texi: Add documentation for new switch
4750 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
4752 2010-06-22 Javier Miranda <miranda@adacore.com>
4754 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
4755 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
4756 this patch replaces duplication of code that traverses the chain of
4757 aliased primitives by a call to routine Ultimate_Alias that
4758 provides this functionality.
4760 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4762 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
4763 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
4766 2010-06-22 Thomas Quinot <quinot@adacore.com>
4768 * einfo.ads: Minor reformatting.
4770 2010-06-22 Javier Miranda <miranda@adacore.com>
4772 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
4773 eliminated primitives.
4774 (Make_DT): Avoid referencing eliminated primitives.
4775 (Register_Primitive): Do not register eliminated primitives in the
4776 dispatch table. Required to add this functionality when the program is
4777 compiled without static dispatch tables (-gnatd.t)
4779 2010-06-22 Emmanuel Briot <briot@adacore.com>
4781 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
4782 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
4783 warnings on use of internal GNAT units.
4785 2010-06-22 Jose Ruiz <ruiz@adacore.com>
4787 * s-taprop-vxworks.adb (Set_Priority): Update comments.
4789 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4791 * s-rannum.adb: Make stylistic change to remove mystery constant in
4792 Extract_Value. Image_Numeral_Length: new symbolic constant.
4794 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4796 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
4797 Is_Synchronized_Interface, Is_Task_Interface into computable
4798 predicates, to free three flags in entity nodes.
4799 * sem_ch3.adb: Remove setting of these flags.
4801 2010-06-22 Robert Dewar <dewar@adacore.com>
4803 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
4805 * s-taprop-vxworks.adb: Add comment for Set_Priority.
4806 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
4807 * projects.texi: Move @cindex to the left margin, since otherwise we
4808 are missing entries in the index.
4810 2010-06-22 Emmanuel Briot <briot@adacore.com>
4812 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
4813 packages from the GNAT hierarchy instead of System when possible.
4814 * gcc-interface/Make-lang.in: Update dependencies.
4816 2010-06-22 Jose Ruiz <ruiz@adacore.com>
4818 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
4819 previously in place to reorder the ready queue when a task drops its
4820 priority due to the loss of inherited priority.
4822 2010-06-22 Vincent Celier <celier@adacore.com>
4824 * projects.texi: Minor spelling error fixes.
4827 2010-06-22 Emmanuel Briot <briot@adacore.com>
4829 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
4830 warnings for some with clauses.
4832 2010-06-22 Robert Dewar <dewar@adacore.com>
4834 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
4835 test to catch more cases where first subtype is the results we want.
4836 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
4837 error case, since Errout will now handle this correctly.
4838 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
4839 Update dependencies.
4841 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4843 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
4844 when calling Make_Temporary.
4846 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4848 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
4849 subprogram can be associated with an entry body.
4851 2010-06-22 Robert Dewar <dewar@adacore.com>
4853 * scos.ads: Add note on membership test handling.
4855 2010-06-22 Vincent Celier <celier@adacore.com>
4857 * projects.texi: Minor spelling fixes.
4860 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4862 * s-rannum.adb: Correct off-by-one error in Extract_Value.
4864 2010-06-22 Vincent Celier <celier@adacore.com>
4866 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
4868 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
4869 gcc command if it is too long.
4871 2010-06-22 Robert Dewar <dewar@adacore.com>
4873 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
4875 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4877 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
4878 calling Make_Temporary.
4880 2010-06-22 Robert Dewar <dewar@adacore.com>
4882 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
4884 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4886 * sem_res.adb: Additional special-case for VMS.
4888 2010-06-22 Vincent Celier <celier@adacore.com>
4890 * gnatsym.adb: Minor comment fix.
4892 2010-06-22 Vincent Celier <celier@adacore.com>
4894 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
4896 2010-06-22 Robert Dewar <dewar@adacore.com>
4898 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
4899 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
4900 Ada 95 mode as an implementation defined attribute.
4902 2010-06-22 Vincent Celier <celier@adacore.com>
4904 * bindusg.adb (Display): Update line for -R
4905 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
4906 generated files when -R is used.
4908 2010-06-22 Vincent Celier <celier@adacore.com>
4910 * prj-nmsc.adb (Lib_Data_Table): New table.
4911 (Check_Library_Attributes): Check if the same library name is used in
4912 two different projects that do not extend each other.
4914 2010-06-22 Robert Dewar <dewar@adacore.com>
4916 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
4918 2010-06-22 Vincent Celier <celier@adacore.com>
4920 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
4921 empty, make it the current working directory.
4923 2010-06-22 Thomas Quinot <quinot@adacore.com>
4925 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
4926 private type with discriminants, make sure the parent type is frozen.
4928 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
4930 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
4931 with packed array references specially.
4932 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
4933 to a component of a bit packed array if it is the prefix of 'Bit.
4934 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
4935 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
4936 'Bit reference, where the prefix involves a packed array reference.
4937 (Get_Base_And_Bit_Offset): New helper, extracted from...
4938 (Expand_Packed_Address_Reference): ...here. Call above procedure to
4939 get the outer object and offset expression.
4941 2010-06-22 Thomas Quinot <quinot@adacore.com>
4943 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
4944 * einfo.adb (Related_Expression, Set_Related_Expression): Add
4947 2010-06-22 Javier Miranda <miranda@adacore.com>
4949 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
4950 reorganization to properly check if the operation has been inherited as
4951 an abstract operation.
4953 2010-06-22 Ed Falis <falis@adacore.com>
4955 * s-osinte-vxworks.ads: Complete previous change.
4957 2010-06-22 Thomas Quinot <quinot@adacore.com>
4959 * sem_res.adb: Add comment.
4960 * projects.texi, gnat_ugn.texi: Remove macro.
4962 2010-06-22 Vincent Celier <celier@adacore.com>
4964 * prj-attr.adb: Remove project level attribute Main_Language.
4966 2010-06-22 Robert Dewar <dewar@adacore.com>
4968 * switch-b.adb, osint-b.adb: Minor reformatting.
4970 2010-06-22 Pascal Obry <obry@adacore.com>
4972 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
4973 vector if previous send was not fully successful. If only part of
4974 the vector data was sent, we exit the loop.
4976 2010-06-22 Thomas Quinot <quinot@adacore.com>
4978 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
4979 error reporting with generic types.
4981 2010-06-22 Thomas Quinot <quinot@adacore.com>
4983 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
4984 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
4985 vms_data.ads: Add a new command line switch -A to gnatbind to output
4986 the list of all ALI files for the partition.
4988 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4990 * s-osinte-vxworks.ads: Fix casing.
4991 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
4992 change: Interfaces.C does not provide a long_long type.
4994 2010-06-22 Emmanuel Briot <briot@adacore.com>
4996 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
4997 native user's guide, since this document contains the two versions.
4998 * gcc-interface/Make-lang.in: Update doc dependencies.
5000 2010-06-22 Robert Dewar <dewar@adacore.com>
5002 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
5004 2010-06-22 Emmanuel Briot <briot@adacore.com>
5006 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
5007 not build this file on its own (only through gnat_ugn.texi).
5008 Remove macro definitions and insert simpler version in gnat_ugn.texi.
5010 2010-06-22 Robert Dewar <dewar@adacore.com>
5012 * ali-util.ads: Minor comment update.
5013 * g-socthi-mingw.adb: Minor reformatting.
5015 2010-06-22 Ed Falis <falis@adacore.com>
5017 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
5018 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
5019 for specific versions of VxWorks.
5021 2010-06-22 Emmanuel Briot <briot@adacore.com>
5023 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
5024 related sections from user's guide and reference manual, since they
5025 have now been merged together into a separate document (projects.texi).
5026 This removes a lot of duplication where attributes where described
5028 The grammar for the project files is now in each of the sections
5029 (packages,expressions,...) instead of being duplicates in two other
5030 sections (one in the user's guide that contained the full grammar,
5031 and various sections in the rm that contained extracts of the same
5033 Added the full list of all supported attributes, since existing lists
5035 Rename "associative array" into "indexed attribute"
5036 Remove sections that were duplicates ("External References in
5037 Project Files" and "External Values", and "Project Extensions"
5038 for instance). The list of valid packages in project files is now in
5041 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5043 * sem_ch3.adb (Add_Internal_Interface_Entities): If
5044 Find_Primitive_Covering_Interface does not find the operation, it may
5045 be because of a name conflict between the inherited operation and a
5046 local non-overloadable name. In that case look for the operation among
5047 the primitive operations of the type. This search must succeed
5048 regardless of visibility.
5050 2010-06-22 Pascal Obry <obry@adacore.com>
5052 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
5053 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
5056 2010-06-22 Robert Dewar <dewar@adacore.com>
5058 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
5060 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
5063 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5065 * s-intman-vxworks.ads: Code clean up.
5067 2010-06-22 Thomas Quinot <quinot@adacore.com>
5069 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
5070 dereference, construct actual subtype of designated object to generate
5071 proper bounds checks.
5073 2010-06-22 Thomas Quinot <quinot@adacore.com>
5075 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
5076 Read_Withed_ALIs, which is more descriptive.
5078 2010-06-22 Pascal Obry <obry@adacore.com>
5080 * g-sothco.ads: Minor reformatting.
5081 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
5082 C_Sendmsg implementation.
5083 (C_Sendmsg): Do not use lock (not needed).
5084 (C_Recvmsg): Likewise and also do not wait for incoming data.
5086 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5088 * uintp.adb: Fix scope error in operator call.
5090 2010-06-22 Vincent Celier <celier@adacore.com>
5092 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
5093 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
5094 autoconfiguration is needed, fail indicating that no config project
5095 file can be found, as there is no autoconfiguration on VMS.
5097 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5099 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
5100 for an operator in a functional notation, when operands are universal.
5102 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5104 * gcc-interface/Make-lang.in: Update dependencies.
5106 2010-06-22 Robert Dewar <dewar@adacore.com>
5108 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
5110 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
5111 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
5113 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
5116 2010-06-22 Vincent Celier <celier@adacore.com>
5118 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
5119 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
5121 2010-06-22 Pascal Obry <obry@adacore.com>
5123 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
5125 (C_Recvmsg): Make sure the routine is atomic. Also fully
5126 fill vectors in the proper order.
5127 (C_Sendmsg): Make sure the routine is atomic.
5129 2010-06-22 Robert Dewar <dewar@adacore.com>
5131 * sem_ch8.adb: Update comment.
5132 * sem_res.adb: Minor code reorganization (use Ekind_In).
5134 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5136 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
5137 name is a call, use the number of actuals to determine whether this is
5138 a binary or unary operator, rather than relying on later information
5139 to resolve the overload.
5141 2010-06-22 Robert Dewar <dewar@adacore.com>
5143 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
5145 2010-06-22 Robert Dewar <dewar@adacore.com>
5147 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
5148 * sem_eval.adb: Minor reformatting.
5150 2010-06-22 Vincent Celier <celier@adacore.com>
5152 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
5153 to gnatlink, except on Open VMS.
5154 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
5155 object directories if -nostdlib is used.
5157 2010-06-22 Robert Dewar <dewar@adacore.com>
5159 * sem_util.adb (Is_Delegate): Put in proper alpha order.
5160 * sem_eval.adb: Minor reformatting.
5162 2010-06-22 Robert Dewar <dewar@adacore.com>
5164 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
5165 * exp_aggr.adb: Minor comment changes and reformatting.
5166 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
5168 * sem_util.ads: Add some missing pragma Inline's.
5170 2010-06-22 Thomas Quinot <quinot@adacore.com>
5172 * sem_util.adb (Build_Actual_Subtype): Record original expression in
5173 Related_Expression attribute of the constructed subtype.
5174 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
5175 Node24 on types for...
5176 (Related_Expression): Make attribute available on types as well.
5178 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5180 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
5181 of Directly_Designated_Type when the type argument is an access type.
5182 (Find_Interface_Tag): Retrieve Designated_Type instead of
5183 Directly_Designated_Type when the type argument is an access type.
5184 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
5185 Directly_Designated_Type of each access discriminant.
5186 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
5187 instead of Directly_Designated_Type when the operand and target types
5190 2010-06-22 Thomas Quinot <quinot@adacore.com>
5192 * exp_aggr.adb (Flatten): Return False if one choice is statically
5193 known to be out of bounds.
5195 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5197 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
5198 a parameterless function call, preserve parentheses of original
5199 expression, for proper handling by pretty printer.
5200 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
5201 procedure, to handle quietly identifiers that have no entity names.
5202 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
5203 elsif_part is missing, it has been rewritten as a nested if, and there
5204 is no useful information on the current value of the variable.
5206 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5208 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
5209 discriminals to the current scope.
5210 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
5211 scope, which could overwrite a different already set value.
5213 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5215 * sem_res.adb (Valid_Conversion): If expression is a predefined
5216 operator, use sloc of type of interpretation to improve error message
5217 when operand is of some derived type.
5218 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
5220 2010-06-22 Emmanuel Briot <briot@adacore.com>
5222 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
5223 that it can set out parameters as well. When a process has died, reset
5224 its Input_Fd to Invalid_Fd, so that when using multiple processes we
5225 can find out which process has died.
5227 2010-06-22 Thomas Quinot <quinot@adacore.com>
5229 * sem_eval.adb (Find_Universal_Operator_Type): New
5230 subprogram to identify the operand type of an operator on universal
5231 operands, when an explicit scope indication is present. Diagnose the
5232 case where such a call is ambiguous.
5233 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
5234 Use the above to identify the operand type so it can be properly
5236 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
5237 type, done in an arbitrary, possibly incorrect type (the presence of
5238 some numeric type in the scope is checked for legality, but when more
5239 than one such type is in the scope, we just pick a random one, not
5240 necessarily the expected one).
5241 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
5244 2010-06-22 Robert Dewar <dewar@adacore.com>
5246 * sem_eval.adb: Minor reformatting.
5248 2010-06-22 Robert Dewar <dewar@adacore.com>
5250 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
5251 Expression_With_Actions to clean up the code generated when folding
5252 constant expressions.
5254 2010-06-22 Vincent Celier <celier@adacore.com>
5256 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
5259 2010-06-22 Vincent Celier <celier@adacore.com>
5261 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
5262 found, check if it's path has aready been found, whatever its index.
5264 2010-06-22 Robert Dewar <dewar@adacore.com>
5266 * atree.adb, gnatbind.adb: Minor reformatting.
5267 Minor code reorganization.
5269 2010-06-21 Robert Dewar <dewar@adacore.com>
5271 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
5272 known at compile time.
5274 2010-06-21 Gary Dismukes <dismukes@adacore.com>
5276 * atree.adb: Fix comment typo.
5278 2010-06-21 Ed Schonberg <schonberg@adacore.com>
5280 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
5281 whether a universal arithmetic expression in a conversion, which is
5282 rewritten from a function call with an expanded name, is ambiguous.
5284 2010-06-21 Vincent Celier <celier@adacore.com>
5286 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
5287 source files in specified list of sources.
5288 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
5290 (Add_Source): Set the Location of the new source
5291 (Process_Exceptions_File_Based): Call Add_Source with the Location
5292 (Get_Sources_From_File): If an exception is found, set its Listed to
5294 (Find_Sources): When Source_Files is specified, if an exception is
5295 found, set its Listed to True. Remove any exception that is not in a
5296 specified list of sources.
5297 * prj.ads (Source_Data): New component Location
5299 2010-06-21 Vincent Celier <celier@adacore.com>
5301 * gnatbind.adb (Closure_Sources): Global table, moved from block.
5303 2010-06-21 Thomas Quinot <quinot@adacore.com>
5305 * sem_res.adb: Minor reformatting.
5306 * atree.adb: New debugging hook "rr" for node rewrites.
5308 2010-06-21 Robert Dewar <dewar@adacore.com>
5310 * g-expect.ads, g-expect.adb: Minor reformatting.
5312 2010-06-21 Emmanuel Briot <briot@adacore.com>
5314 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
5316 2010-06-21 Arnaud Charlet <charlet@adacore.com>
5318 * gcc-interface/Make-lang.in: Update dependencies.
5320 2010-06-21 Thomas Quinot <quinot@adacore.com>
5322 * bindgen.ads: Update comments.
5324 2010-06-21 Vincent Celier <celier@adacore.com>
5326 * gnatbind.adb: Suppress dupicates when listing the sources in the
5327 closure (switch -R).
5329 2010-06-21 Emmanuel Briot <briot@adacore.com>
5331 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
5334 2010-06-21 Emmanuel Briot <briot@adacore.com>
5336 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
5338 (Expect_Internal): No longer raises an exception, so that it can set
5339 out parameters as well. When a process has died, reset its Input_Fd
5340 to Invalid_Fd, so that when using multiple processes we can find out
5341 which process has died.
5343 2010-06-21 Robert Dewar <dewar@adacore.com>
5345 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
5346 checks.adb, sem_res.adb: Minor reformatting. Add comments.
5348 2010-06-21 Ed Schonberg <schonberg@adacore.com>
5350 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
5351 rederivation associated with a full declaration in a private part, and
5352 there is a partial view that derives the same parent subprogram, the
5353 new entity does not become visible. This check must be applied to
5354 interface operations as well.
5356 2010-06-21 Thomas Quinot <quinot@adacore.com>
5358 * checks.adb: Add comments.
5359 * prj-nmsc.adb: Minor reformatting.
5361 2010-06-21 Thomas Quinot <quinot@adacore.com>
5363 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
5364 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
5365 extract bounds, to ensure that we get the proper captured values,
5366 rather than an expression that may have changed value since the point
5367 where the subtype was elaborated.
5368 (Find_Body_Discriminal): New utility subprogram to share code
5370 (Eval_Attribute): For the case of a subtype bound that references a
5371 discriminant of the current concurrent type, insert appropriate
5372 discriminal reference.
5373 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
5374 requeue to an entry in a family in the current task, use corresponding
5376 (Analyze_Accept_Statement): Rely on expansion of attribute references
5377 to insert proper discriminal references in range check for entry in
5380 2010-06-21 Emmanuel Briot <briot@adacore.com>
5382 * s-regpat.adb (Compile): Fix handling of big patterns.
5384 2010-06-21 Robert Dewar <dewar@adacore.com>
5386 * a-tifiio.adb: Minor reformatting.
5388 2010-06-21 Pascal Obry <obry@adacore.com>
5390 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
5393 2010-06-21 Javier Miranda <miranda@adacore.com>
5395 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
5398 2010-06-21 Ed Schonberg <schonberg@adacore.com>
5400 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
5401 to hold the result, indicate that the target of the declaration does
5402 not need an initialization, to prevent spurious errors when
5403 Initialize_Scalars is enabled.
5405 2010-06-21 Ed Schonberg <schonberg@adacore.com>
5407 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
5408 Fore is not bound by line length. The Fore parameter of the internal
5409 procedure that performs the operation is an integer.
5411 2010-06-21 Thomas Quinot <quinot@adacore.com>
5413 * sem_res.adb, checks.adb: Minor reformatting.
5415 2010-06-21 Emmanuel Briot <briot@adacore.com>
5417 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
5419 (Insert_Operator_Before): New subprogram, avoids duplicated code
5420 (Compile): Avoid doing two compilations when the pattern matcher ends
5423 2010-06-21 Emmanuel Briot <briot@adacore.com>
5425 * s-regpat.adb: Improve debug traces
5426 (Dump): Change output format to keep it smaller.
5428 2010-06-21 Javier Miranda <miranda@adacore.com>
5430 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
5431 output to the output file when this routine completes its work.
5433 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
5435 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
5436 for loop. Call build_constructor_from_list directly in the CICO case.
5438 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5440 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
5441 declaration appears in the same unit and ealier than the renamed
5442 entity, retain generated body to prevent order-of-elaboration issues in
5445 2010-06-18 Arnaud Charlet <charlet@adacore.com>
5447 * s-tpoben.adb: Update comments.
5449 2010-06-18 Robert Dewar <dewar@adacore.com>
5451 * debug.adb: Minor comment change.
5453 2010-06-18 Javier Miranda <miranda@adacore.com>
5455 * exp_cg.adb: Code clean up.
5456 * debug.adb: Complete documentation of switch -gnatd.Z.
5457 * gcc-interface/misc.c (callgraph_info_file): Declare.
5459 2010-06-18 Javier Miranda <miranda@adacore.com>
5461 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
5463 2010-06-18 Thomas Quinot <quinot@adacore.com>
5465 * sprint.ads: Minor reformatting.
5466 * output.ads: Update obsolete comment.
5468 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5470 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
5471 an external intrinsic operation (e.g. a GCC numeric function) indicate
5472 that the renaming entity has the same characteristics, so a call to it
5473 is properly expanded.
5475 2010-06-18 Javier Miranda <miranda@adacore.com>
5477 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
5478 support for dispatch table/callgraph info generation.
5479 * gcc-interface/Make-lang.in: Update dependencies.
5481 2010-06-18 Robert Dewar <dewar@adacore.com>
5483 * exp_ch6.adb: Minor reformatting.
5484 * gnatname.adb: Add comment.
5486 2010-06-18 Vincent Celier <celier@adacore.com>
5488 * gnatname.adb (Scan_Args): When --and is used, make sure that the
5489 dynamic tables in the newly allocated Argument_Data are properly
5492 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
5494 * gnat1drv.adb: Fix comment.
5496 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5498 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
5499 renaming, re-expand the call with the renamed subprogram if that one
5500 is marked inlined as well.
5502 2010-06-18 Gary Dismukes <dismukes@adacore.com>
5504 * gnat1drv.adb (Adjust_Global_Switches): Enable
5505 Use_Expression_With_Actions for AAMP and VM targets.
5507 2010-06-18 Vincent Celier <celier@adacore.com>
5509 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
5511 2010-06-18 Thomas Quinot <quinot@adacore.com>
5513 * exp_ch4.adb: Minor reformatting.
5515 2010-06-18 Javier Miranda <miranda@adacore.com>
5517 * debug.ads Add documentation on -gnatd.Z.
5519 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5521 * sem_elim.adb: Proper error message on improperly eliminated instances
5523 2010-06-18 Vincent Celier <celier@adacore.com>
5525 * prj.ads (Response_File_Format): New value GCC.
5527 2010-06-18 Thomas Quinot <quinot@adacore.com>
5529 * gnat1drv.adb: Minor reformatting.
5531 2010-06-18 Robert Dewar <dewar@adacore.com>
5533 * make.adb, sem_cat.adb: Minor reformatting.
5534 * sem_eval.adb: Fix typos.
5536 2010-06-18 Pascal Obry <obry@adacore.com>
5538 * prj-nmsc.adb: Fix source filenames casing in debug output.
5540 2010-06-18 Robert Dewar <dewar@adacore.com>
5542 * gnatcmd.adb: Minor reformatting.
5544 2010-06-18 Robert Dewar <dewar@adacore.com>
5546 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
5547 condition and both sub-expressions are static (and result is selected
5550 2010-06-18 Robert Dewar <dewar@adacore.com>
5552 * g-pehage.adb: Minor reformatting
5554 2010-06-18 Pascal Obry <obry@adacore.com>
5556 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
5559 2010-06-18 Arnaud Charlet <charlet@adacore.com>
5561 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5562 dependencies. Fix target pairs on darwin.
5563 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
5565 2010-06-18 Pascal Obry <obry@adacore.com>
5567 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
5569 2010-06-18 Vincent Celier <celier@adacore.com>
5571 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
5572 configuration pragmas file and, if -U is not used, for a local one.
5574 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5576 * sem_elim.adb (Check_Eliminated): Use full information on entity name
5577 when it is given in the pragma by a selected component.
5578 (Check_For_Eliminated_Subprogram): Do no emit error if within a
5579 instance body that is itself within a generic unit.
5580 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
5581 eliminated, mark as well the anonymous subprogram that is its alias
5582 and appears within the wrapper package.
5584 2010-06-18 Bob Duff <duff@adacore.com>
5586 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
5587 Raise an exception if the output file cannot be opened. Add comments.
5589 2010-06-18 Thomas Quinot <quinot@adacore.com>
5591 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
5592 not illegal per E.2.2(7) if it occurs in the private part of a
5595 2010-06-18 Arnaud Charlet <charlet@adacore.com>
5597 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
5598 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
5599 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
5600 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
5601 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
5602 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
5603 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
5604 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
5605 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
5606 errout.ads: Update comments. Minor reformatting.
5608 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
5609 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
5610 a-strunb.adb (Big_String. Big_String_Access): New type.
5612 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
5613 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
5614 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
5616 2010-06-18 Geert Bosch <bosch@adacore.com>
5618 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
5621 2010-06-18 Robert Dewar <dewar@adacore.com>
5623 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
5626 2010-06-18 Robert Dewar <dewar@adacore.com>
5628 * sprint.adb: Minor format change for N_Expression_With_Actions.
5629 * repinfo.adb: Minor reformatting.
5631 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5633 * sem_elim.adb (Check_Eliminated): If within a subunit, use
5634 Defining_Entity to obtain the name of the entity in the proper body, to
5635 properly handle both separate packages and subprograms.
5637 2010-06-18 Emmanuel Briot <briot@adacore.com>
5639 * prj-nmsc.adb (Check_File): New parameter Display_Path.
5641 2010-06-18 Thomas Quinot <quinot@adacore.com>
5643 * g-socket.adb, g-socket.ads (Null_Selector): New object.
5645 2010-06-18 Pascal Obry <obry@adacore.com>
5647 * gnat_ugn.texi: Minor clarification.
5649 2010-06-18 Emmanuel Briot <briot@adacore.com>
5651 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
5652 code when using the project dir as the source dir.
5653 (Search_Directories): use the normalized name for the source directory,
5654 where symbolic names have potentially been resolved.
5656 2010-06-18 Robert Dewar <dewar@adacore.com>
5658 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
5659 when we create N_Expression_With_Actions node.
5660 (Expand_Short_Circuit): Ditto.
5662 2010-06-18 Robert Dewar <dewar@adacore.com>
5664 * exp_util.adb: Minor reformatting.
5666 2010-06-18 Thomas Quinot <quinot@adacore.com>
5668 * types.ads: Clean up obsolete comments
5669 * tbuild.adb: Minor reformatting.
5670 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
5671 exp_strm.adb, aa_drive.adb: Minor reformatting.
5672 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
5673 intrinsic with an Interface_Name denotes an imported back-end builtin,
5674 and must be rewritten into a call, not left in the tree as an operator,
5675 so return False in that case.
5677 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
5679 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
5681 2010-06-18 Robert Dewar <dewar@adacore.com>
5683 * scos.ads: Add proposed output for case expression
5685 2010-06-18 Jose Ruiz <ruiz@adacore.com>
5687 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
5688 RTSS modules, we need to use the Microsoft linker.
5690 2010-06-18 Robert Dewar <dewar@adacore.com>
5692 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
5693 expression (cannot count on a particular branch being executed).
5694 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
5695 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
5696 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
5697 within case expression.
5698 * expander.adb (Expand): Add call to Expand_N_Case_Expression
5699 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
5700 (P_Case_Expression): New procedure
5701 (P_Case_Expression_Alternative): New procedure
5702 * par.adb (P_Case_Expression): New procedure
5703 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
5705 * sem.adb (Analyze): Add call to Analyze_Case_Expression
5706 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
5707 this is a documentation change only.
5708 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
5709 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
5711 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
5712 * sem_res.adb (Resolve_Case_Expression): New procedure.
5713 * sem_scil.adb (Find_SCIL_Node): Add processing for
5714 N_Case_Expression_Alternative.
5715 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
5716 (N_Case_Expression_Alternative): New node.
5717 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
5718 N_Case_Expression and N_Case_Expression_Alternative.
5720 2010-06-18 Robert Dewar <dewar@adacore.com>
5722 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
5724 * gnat1drv.adb: Fix typo.
5726 2010-06-18 Robert Dewar <dewar@adacore.com>
5728 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
5730 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
5731 gnat style for -gnatg.
5732 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
5734 2010-06-18 Thomas Quinot <quinot@adacore.com>
5736 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
5738 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
5741 2010-06-18 Robert Dewar <dewar@adacore.com>
5743 * sprint.adb: Minor change in output format for expression wi actions.
5744 * par-ch3.adb: Minor code reorganization. Minor reformatting.
5745 * sem_ch5.adb: Minor comment fix.
5747 2010-06-18 Robert Dewar <dewar@adacore.com>
5749 * debug.adb: New debug flag -gnatd.L to control
5750 Back_End_Handles_Limited_Types.
5751 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
5752 limited case if Back_End_Handles_Limited_Types is True.
5753 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
5754 simplify expansion if Use_Expression_With_Actions is True.
5755 * gnat1drv.adb (Adjust_Global_Switches): Set
5756 Back_End_Handles_Limited_Types.
5757 * opt.ads (Back_End_Handles_Limited_Types): New flag.
5759 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5761 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
5762 intrinsic operator if expansion is not enabled, because in an
5763 instantiation the original operator must be present to verify the
5764 legality of the operation.
5766 2010-06-18 Robert Dewar <dewar@adacore.com>
5768 * exp_disp.adb, sem_ch12.adb: Minor reformatting
5770 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5772 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
5773 the class-wide type for a private extension, and the completion is a
5774 subtype, set the type of the class-wide type to the base type of the
5777 2010-06-18 Robert Dewar <dewar@adacore.com>
5779 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
5780 sem_intr.adb, sem_eval.adb: Minor reformatting
5782 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5784 * sem_type.adb (Is_Ancestor): If either type is private, examine full
5787 2010-06-18 Thomas Quinot <quinot@adacore.com>
5789 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
5790 parameter rather than IN OUT.
5792 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5794 * exp_ch6.adb: Add extra guard.
5796 2010-06-18 Gary Dismukes <dismukes@adacore.com>
5798 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
5799 accessibility level of a function call from the level of the innermost
5800 enclosing dynamic scope.
5801 (Innermost_Master_Scope_Depth): New function to find the depth of the
5802 nearest dynamic scope enclosing a node.
5804 2010-06-18 Tristan Gingold <gingold@adacore.com>
5806 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
5808 2010-06-18 Thomas Quinot <quinot@adacore.com>
5810 * g-socket.ads: Minor reformatting.
5812 2010-06-18 Vincent Celier <celier@adacore.com>
5814 * make.adb (Must_Compile): New Boolean global variable
5815 (Main_On_Command_Line): New Boolean global variable
5816 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
5817 even when the project is externally built.
5818 (Start_Compile_If_Possible): Compile in -aL directories if
5819 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
5820 when the project is externally built.
5821 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
5822 invoked with -f -u and one or several mains on the command line.
5823 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
5824 main is specified on the command line.
5826 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5828 * sem_ch6.adb (Build_Body_For_Inline): Handle
5829 extended_return_statements.
5830 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
5831 containing extented_return statements.
5832 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
5833 constrained, do not build subtype declaration.
5835 2010-06-18 Robert Dewar <dewar@adacore.com>
5837 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
5838 Warn on assigning to packed atomic component.
5840 2010-06-18 Robert Dewar <dewar@adacore.com>
5842 * sem_util.ads: Minor reformatting
5843 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
5844 Expression_With_Actions).
5845 * snames.ads-tmpl: Minor comment fix
5847 2010-06-18 Robert Dewar <dewar@adacore.com>
5849 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
5850 (Set_Imported): Use Import_Interface_Present to control message output
5851 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
5852 * gnat_rm.texi: Document that we can have pragma Import and pragma
5853 Interface for the same subprogram.
5855 2010-06-18 Robert Dewar <dewar@adacore.com>
5857 * lib-xref.adb (Generate_Reference): Fix bad reference to
5858 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
5860 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
5862 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
5864 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
5865 Use set_gnu_expr_location_from_node to set location information on the
5868 2010-06-17 Arnaud Charlet <charlet@adacore.com>
5870 * gcc-interface/Make-lang.in: Update dependencies.
5872 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5874 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
5877 2010-06-17 Robert Dewar <dewar@adacore.com>
5879 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
5880 style check messages.
5881 * sem_res.adb (Resolve_Call): Don't call
5882 Check_For_Eliminated_Subprogram if we are analyzing within a spec
5885 2010-06-17 Robert Dewar <dewar@adacore.com>
5887 * debug.adb: Add documentation for debug flags .X and .Y
5888 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
5889 Use_Expression_With_Actions.
5890 * gnat1drv.adb (Adjust_Global_Switches): Set
5891 Use_Expression_With_Actions.
5892 * opt.ads (Use_Expression_With_Actions): New switch.
5894 2010-06-17 Robert Dewar <dewar@adacore.com>
5896 * exp_intr.adb: Minor code reorganization (use UI_Max)
5897 * sem_intr.adb: use underlying type to check legality.
5898 * einfo.adb (Known_Static_Esize): False for generic types
5899 (Known_Static_RM_Size): False for generic types
5900 * einfo.ads (Known_Static_Esize): False for generic types
5901 (Known_Static_RM_Size): False for generic types
5903 2010-06-17 Robert Dewar <dewar@adacore.com>
5905 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
5907 2010-06-17 Robert Dewar <dewar@adacore.com>
5909 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
5910 node when expanding short circuit form with actions present for right
5912 * exp_ch4.adb: Minor reformatting
5913 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
5914 if right opeand has actions present, and debug flag -gnatd.X is set.
5915 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
5917 * nlists.adb (Prepend_List): New procedure
5918 (Prepend_List_To): New procedure
5919 * nlists.ads (Prepend_List): New procedure
5920 (Prepend_List_To): New procedure
5921 * sem.adb: Add processing for Expression_With_Actions
5922 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
5923 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
5924 * sem_res.adb: Add processing for Expression_With_Actions.
5925 * sem_scil.adb: Add processing for Expression_With_Actions
5926 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
5927 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
5929 2010-06-17 Doug Rupp <rupp@adacore.com>
5931 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
5932 involved both have underlying integer types.
5933 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
5934 to an intrinsic operator when the operand types or sizes are not
5936 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
5937 64/32 Address/Integer works.
5939 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5941 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
5942 that it marks a unit as needed by a spec only if the corresponding
5943 instantiation appears in that spec (and not in the corresponding body).
5944 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
5945 in the pragma Eliminate has been parsed as a child unit, but the
5946 current compilation unit is in fact the parent in which the subunit is
5949 2010-06-17 Vincent Celier <celier@adacore.com>
5951 * gnat_rm.texi: Fix typo
5953 2010-06-17 Robert Dewar <dewar@adacore.com>
5955 * sem_util.adb: Minor reformatting
5957 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5959 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
5960 instance, the clause now denotes the instance body. Traverse the
5961 corresponding spec because there may be no other dependence that will
5962 force the traversal of its own context.
5964 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5966 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
5967 Install_Limited_Context_Clauses, to determine whether a limited_with in
5968 some parent of the current unit designates some other parent, in which
5969 case the limited_with clause must not be installed.
5970 (In_Context): Refine test.
5972 2010-06-17 Gary Dismukes <dismukes@adacore.com>
5974 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
5975 type with a dispatching equality operator that is overridden (for a
5976 tagged full type), don't include the overridden equality in the list of
5977 primitives. The overridden equality is detected by testing for an
5978 Aliased field that references the overriding equality.
5980 2010-06-17 Robert Dewar <dewar@adacore.com>
5982 * freeze.adb: Minor reformatting.
5984 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
5986 * gnat_ugn.texi: Add a section introducing gdbserver.
5988 2010-06-17 Thomas Quinot <quinot@adacore.com>
5990 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
5993 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5995 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
5996 constrained discriminated parent that is a private type.
5997 (Analyze_Record_Aggregate): when collecting inherited discriminants,
5998 handle properly an ancestor type that is a constrained private type.
6000 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6002 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
6003 protected, use the protected_subprogram_body only if the original
6004 subprogram has not been eliminated.
6006 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6008 * freeze.adb (Freeze_Expression): The designated type of an
6009 access_to_suprogram type can only be frozen if all types in its profile
6012 2010-06-17 Robert Dewar <dewar@adacore.com>
6014 * par.adb: Minor comment fix
6015 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
6017 2010-06-17 Doug Rupp <rupp@adacore.com>
6019 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
6020 change Address to Short_Address in functions where both must be the
6021 same size for intrinsics to work.
6023 2010-06-17 Thomas Quinot <quinot@adacore.com>
6025 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
6026 not denote a (private) component of a protected object.
6028 2010-06-17 Bob Duff <duff@adacore.com>
6030 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
6033 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
6035 * gnat_ugn.texi: Update the documentation about GDB re: exception
6038 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6040 * gnatvsn.ads: Bump to 4.6 version.
6042 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6044 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
6045 designated type of the generated pointer is the type of the original
6046 expression, not that of the function call itself, because the return
6047 type may be an untagged derived type and the function may be an
6048 inherited operation.
6050 2010-06-17 Robert Dewar <dewar@adacore.com>
6052 * exp_ch4.adb: Minor reformatting.
6054 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6056 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
6057 N_Component_Association nodes, to indicate that a component association
6058 of an extension aggregate denotes the value of a discriminant of an
6059 ancestor type that has been constrained by the derivation.
6060 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
6061 double expansion of the aggregate appearing in a context that delays
6062 expansion, to prevent double insertion of discriminant values when the
6063 aggregate is reanalyzed.
6065 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6067 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
6068 Allocator as the Related_Node of Return_Obj_Access in call to
6069 Make_Temporary below as this would create a sort of infinite
6072 2010-06-17 Ben Brosgol <brosgol@adacore.com>
6074 * gnat_ugn.texi: Update gnatcheck doc.
6076 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6078 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
6079 incomplete view of the type that is not tagged, and the full type is a
6080 tagged extension, create class_wide type now, and warn that the
6081 incomplete view should be tagged as well.
6083 2010-06-17 Vincent Celier <celier@adacore.com>
6085 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
6086 Update the last line of the usage, indicating what commands do not
6087 accept project file switches.
6088 * vms_conv.adb: Do not issue usage line for GNAT SYNC
6089 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
6091 * gnat_ugn.texi: Document the relaxed rules for library directories in
6092 externally built library projects.
6094 2010-06-17 Doug Rupp <rupp@adacore.com>
6096 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
6098 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
6099 * gcc-interface/Makefile.in: Update VMS target pairs.
6101 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
6103 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
6104 compatible with Windows NT 4.0 which doesn't provide this function.
6106 2010-06-17 Vincent Celier <celier@adacore.com>
6108 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
6109 different timestamps but the checksum is the same, issue a short
6112 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6114 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
6115 it means that we cannot reset interrupt handlers since this would
6116 require potentially sending the abort signal to the Server_Task.
6118 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6120 * exp_ch4.adb: expand NOT for VMS types.
6121 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
6123 2010-06-17 Sergey Rybin <rybin@adacore.com>
6125 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
6126 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
6129 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6131 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
6132 protected operation if the subprogram has been eliminated.
6134 2010-06-17 Vincent Celier <celier@adacore.com>
6136 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
6137 directories associated with a library to be any directory when the
6138 library project is externally built.
6140 2010-06-17 Vincent Celier <celier@adacore.com>
6142 * make.adb (Check): If switch -m is used, deallocate the memory that
6143 may be allocated when computing the checksum.
6145 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6147 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
6148 (C_Sendmsg): Likewise.
6150 2010-06-17 Thomas Quinot <quinot@adacore.com>
6152 * sem_res.adb: Update comments.
6154 2010-06-17 Vincent Celier <celier@adacore.com>
6156 * back_end.adb (Scan_Compiler_Arguments): Process last argument
6158 2010-06-17 Robert Dewar <dewar@adacore.com>
6160 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
6161 * layout.adb, freeze.adb: Use Make_Temporary.
6163 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
6165 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
6166 .NET/JVM normally as this is now perfectly supported by the backend.
6168 2010-06-17 Pascal Obry <obry@adacore.com>
6170 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
6172 2010-06-17 Vincent Celier <celier@adacore.com>
6174 * make.adb (Collect_Arguments_And_Compile): Create include path file
6175 only when -x is specified.
6177 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
6179 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
6180 Objects_Path, defaulted to True. Only create include path file if
6181 Include_Path is True, only create objects path file if Objects_Path is
6183 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
6184 Objects_Path, defaulted to True.
6185 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
6188 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6190 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
6191 determine whether it has the controlling type, when the formal is an
6194 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6196 * s-crtl.ads (ssize_t): New type.
6197 (read): Fix signature.
6199 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
6200 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6201 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6202 (C_Sendmsg): Likewise.
6203 * g-socthi.adb (Syscall_Recvmsg): Likewise.
6204 (Syscall_Sendmsg): Likewise.
6205 (C_Recvmsg): Likewise.
6206 (C_Sendmsg): Likewise.
6207 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
6208 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6209 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6210 (C_Sendmsg): Likewise.
6211 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
6212 (C_Sendmsg): Likewise.
6213 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
6214 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6215 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6216 (C_Sendmsg): Likewise.
6217 * g-socthi-vms.adb (C_Recvmsg): Likewise.
6218 (C_Sendmsg): Likewise.
6219 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
6220 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6221 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6222 (C_Sendmsg): Likewise.
6223 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
6224 (C_Sendmsg): Likewise.
6225 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
6226 (Write): Likewise to call 'write'.
6227 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
6228 (Write): Use correct type to call System.CRTL.write.
6229 * s-tasdeb.adb (Write): Likewise.
6231 2010-06-17 Vincent Celier <celier@adacore.com>
6233 * prj-proc.adb (Copy_Package_Declarations): Change argument name
6234 Naming_Restricted to Restricted. If Restricted is True, do not copy the
6235 value of attribute Linker_Options.
6237 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6239 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
6240 (Case_Statement_to_gnu): Adjust.
6241 (Loop_Statement_to_gnu): Likewise.
6242 (Subprogram_Body_to_gnu): Likewise.
6243 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6244 (Compilation_Unit_to_gnu): Likewise.
6246 2010-06-17 Robert Dewar <dewar@adacore.com>
6248 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
6249 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
6250 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
6251 sem_dist.adb, sem_util.adb: Use Make_Temporary
6252 * itypes.ads, tbuild.ads: Minor comment update
6253 * exp_ch9.adb, exp_dist.adb: Minor reformatting
6255 2010-06-17 Thomas Quinot <quinot@adacore.com>
6257 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
6259 2010-06-17 Robert Dewar <dewar@adacore.com>
6261 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
6263 2010-06-17 Thomas Quinot <quinot@adacore.com>
6265 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
6267 2010-06-17 Robert Dewar <dewar@adacore.com>
6269 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
6270 * tbuild.ads (Make_Temporary): More comment updates
6271 * tbuild.adb: Minor reformatting
6273 2010-06-17 Robert Dewar <dewar@adacore.com>
6275 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
6276 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
6278 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
6280 (Make_Temporary): Add more extensive documentation
6282 2010-06-17 Robert Dewar <dewar@adacore.com>
6284 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
6285 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
6286 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
6287 where the slice's actions are inserted.
6288 (Decompose_Expr): Account for possible rewriting of slice bounds
6289 resulting from side effects suppression caused by the above freezing,
6290 so that folding of bounds is preserved by such rewriting.
6292 2010-06-17 Robert Dewar <dewar@adacore.com>
6294 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
6296 * freeze.adb (Freeze_Record_Type): Add call to
6297 Check_Record_Representation_Clause.
6298 * sem_ch13.adb (Check_Record_Representation_Clause): New function
6299 (Analyze_Record_Representation_Clause): Split out overlap code into
6301 (Check_Component_Overlap): Moved inside
6302 Check_Record_Representation_Clause.
6303 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
6305 2010-06-17 Robert Dewar <dewar@adacore.com>
6307 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
6309 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
6310 sem_eval.adb: Use Ekind_In
6312 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6314 * sem_ch8.adb: better error message for illegal inherited discriminant
6316 2010-06-17 Vincent Celier <celier@adacore.com>
6318 * bindusg.adb: Remove lines for -A and -C
6319 * gnat_ugn.texi: Remove all documentation and examples of switches -A
6320 and -C for gnatbind and gnatlink.
6321 * gnatlink.adb (Usage): Remove lines for -A and -C
6322 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
6324 * gcc-interface/Make-lang.in: Update dependencies.
6326 2010-06-17 Vincent Celier <celier@adacore.com>
6328 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
6329 local Argument_List variable Args.
6330 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
6332 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
6333 for subsequent switches in Args.
6334 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
6336 * gcc-interface/Make-lang.in: Update dependencies.
6338 2010-06-17 Robert Dewar <dewar@adacore.com>
6340 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
6341 Equivalent_Type to match documentation.
6343 2010-06-17 Robert Dewar <dewar@adacore.com>
6345 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
6346 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
6347 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
6349 2010-06-17 Thomas Quinot <quinot@adacore.com>
6351 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
6353 2010-06-17 Thomas Quinot <quinot@adacore.com>
6355 * freeze.adb (Freeze_Expression): Short circuit operators are valid
6356 freeze node insertion points.
6358 2010-06-17 Robert Dewar <dewar@adacore.com>
6360 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
6361 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
6363 2010-06-17 Gary Dismukes <dismukes@adacore.com>
6365 * layout.adb (Layout_Type): Broaden test for setting an array type's
6366 Component_Size to include all scalar types, not just discrete types
6367 (components of real types were missed).
6368 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
6369 on the itype created for an index (consistent with Make_Index and
6370 avoids possible Assert_Failures).
6372 2010-06-17 Robert Dewar <dewar@adacore.com>
6374 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
6375 * einfo.adb: Minor code reformatting (use Ekind_In)
6377 2010-06-17 Robert Dewar <dewar@adacore.com>
6379 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
6382 2010-06-17 Vincent Celier <celier@adacore.com>
6384 * back_end.adb: Minor comment updates
6385 * switch-c.adb: Remove dependencies on gcc C sources
6386 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
6389 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6391 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
6392 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
6393 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
6394 Remove use of Node field in SCOs table
6395 (Output_Header): Set 'd' to initially disable pragma entry
6396 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
6397 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
6398 Use C2 field of pragma decision header to indicate enabled.
6399 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
6400 * gcc-interface/Make-lang.in: Update dependencies.
6402 2010-06-17 Vincent Celier <celier@adacore.com>
6404 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
6405 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
6406 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
6407 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
6409 * switch-c.adb: Copied a number of global declarations from
6411 (Len_Arg): New function copied from back_end.adb
6412 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
6413 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
6414 Switch_Subsequently_Cancelled.
6415 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
6416 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
6417 with -lexc on Tru64.
6419 2010-06-17 Robert Dewar <dewar@adacore.com>
6421 * prj.ads, prj.adb: Minor reformatting
6423 2010-06-17 Thomas Quinot <quinot@adacore.com>
6425 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
6426 CP line for a disabled pragma.
6428 2010-06-17 Emmanuel Briot <briot@adacore.com>
6430 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
6432 (Process_Declarative_Item): An invalid value in an typed variable
6433 declaration is no longer always fatal.
6435 2010-06-16 Arnaud Charlet <charlet@adacore.com>
6437 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
6438 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
6441 2010-06-16 Javier Miranda <miranda@adacore.com>
6443 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
6444 node referenced by the SCIL node of dispatching "=" to skip the tags
6447 2010-06-16 Ed Schonberg <schonberg@adacore.com>
6449 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
6450 to prevent cascaded errors and compilation aborts.
6452 2010-06-16 Robert Dewar <dewar@adacore.com>
6454 * back_end.adb (Switch_Subsequently_Cancelled): New function
6455 Move declarations to package body level to support this change
6456 * back_end.ads (Switch_Subsequently_Cancelled): New function
6457 * gnat_ugn.texi: Document -gnat-p switch
6458 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
6459 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
6460 * usage.adb: Add line for -gnat-p switch
6461 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
6463 2010-06-16 Robert Dewar <dewar@adacore.com>
6465 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
6468 2010-06-16 Robert Dewar <dewar@adacore.com>
6470 * exp_disp.adb: Minor reformatting
6472 2010-06-16 Ed Schonberg <schonberg@adacore.com>
6474 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
6475 base type only if it was not previously created for the partial view.
6477 2010-06-16 Thomas Quinot <quinot@adacore.com>
6479 * tbuild.ads: Minor comment fix
6481 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
6483 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
6484 (gnu_except_ptr_stack): Change type to VEC. Update comment.
6485 (gnu_elab_proc_stack): Likewise.
6486 (gnu_return_label_stack): Likewise.
6487 (gnu_loop_label_stack): Likewise.
6488 (gnu_switch_label_stack): Likewise.
6489 (gnu_constraint_label_stack): Likewise.
6490 (gnu_storage_error_label_stack): Likewise.
6491 (gnu_program_error_label_stack): Likewise.
6492 (push_exception_label_stack): Take a VEC ** instead of a tree *.
6493 (push_stack): Likewise. Remove unused second parameter. Update
6495 (pop_stack): Take a VEC * instead of a tree *. Update callers.
6496 (gigi): Initialize stacks as VECs.
6497 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
6498 (Case_Statement_to_gnu): Likewise.
6499 (Subprogram_Body_to_gnu): Likewise.
6500 (call_to_gnu): Likewise.
6501 (Exception_Handler_to_gnu_sjlj): Likewise.
6502 (gnat_to_gnu): Likewise.
6503 (get_exception_label): Likewise.
6505 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6507 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
6508 anonymous base generated when the parent is a constrained discriminated
6509 type, propagate interface list to first subtype because it may appear
6510 in a current instance within the extension part of the derived type
6511 declaration, and its own subtype declaration has not been elaborated
6513 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
6514 determine whether it has the controlling type.
6516 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
6518 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
6519 raise of CE, SE and PE have the reason correctly set and are properly
6520 expanded before stopping the expansions of .NET/JVM exceptions.
6522 2010-06-14 Robert Dewar <dewar@adacore.com>
6524 * opt.ads (Check_Policy_List): Add some clarifying comments
6525 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
6526 on rewritten Assert pragma.
6528 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6530 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
6531 controlled operations, so that they will be treated as overriding even
6532 if the overridden subprogram is marked Is_Hidden, as long as the
6533 overridden subprogram's parent subprogram is not hidden.
6535 2010-06-14 Robert Dewar <dewar@adacore.com>
6537 * debug.adb: Entry for gnatw.d no longer specific for while loops
6538 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
6539 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
6540 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
6541 new calling sequence to include test for EXIT WHEN.
6542 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
6544 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
6546 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
6548 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
6549 PRAGMA, not to pragma identifier).
6550 (Next_Exit_Statement): New attribute of N_Exit_Statement node
6552 2010-06-14 Robert Dewar <dewar@adacore.com>
6554 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
6557 2010-06-14 Robert Dewar <dewar@adacore.com>
6559 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
6560 missing pragma argument identifier.
6562 2010-06-14 Robert Dewar <dewar@adacore.com>
6564 * atree.ads, atree.adb (Ekind_In): New functions.
6566 2010-06-14 Robert Dewar <dewar@adacore.com>
6568 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
6570 2010-06-14 Robert Dewar <dewar@adacore.com>
6572 * usage.adb (Usage): Redo documentation of -gnatwa.
6574 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6576 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
6577 an untagged incomplete type that is a limited view.
6579 2010-06-14 Sergey Rybin <rybin@adacore.com>
6581 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
6584 2010-06-14 Thomas Quinot <quinot@adacore.com>
6586 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
6587 factoring duplicated code between...
6588 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
6589 * a-envvar.ads: Minor reformatting
6591 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6593 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
6595 (Scan_ALI): Take into account new Visibility field.
6596 (Visibility_Kind): New type.
6597 (Xref_Entity_Record): Replace Lib field by Visibility.
6599 * gcc-interface/Make-lang.in: Update dependencies.
6601 2010-06-14 Pascal Obry <obry@adacore.com>
6603 * raise.h: Remove unused defintions.
6605 2010-06-14 Bob Duff <duff@adacore.com>
6607 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
6608 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
6609 the incorrect error "proper body expected".
6610 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
6611 allowed here" error in case of subunits, which was triggered by the
6612 above change to P_Subunit.
6614 2010-06-14 Sergey Rybin <rybin@adacore.com>
6616 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
6618 2010-06-14 Thomas Quinot <quinot@adacore.com>
6620 * lib-util.adb: Minor code reorganization.
6622 2010-06-14 Robert Dewar <dewar@adacore.com>
6624 * ali.adb (Scan_ALI): Implement reading and storing of N lines
6625 (Known_ALI_Lines): Add entry for 'N' (notes)
6626 * ali.ads (Notes): New table to store Notes information
6627 * alloc.ads: Add entries for Notes table
6628 * lib-util.adb (Write_Info_Int): New procedure
6629 (Write_Info_Slit): New procedure
6630 (Write_Info_Uint): New procedure
6631 * lib-util.ads (Write_Info_Int): New procedure
6632 (Write_Info_Slit): New procedure
6633 (Write_Info_Uint): New procedure
6634 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
6635 * lib-writ.ads: Update documentation for N (Notes) lines
6636 * lib.adb (Store_Note): New procedure
6637 * lib.ads (Notes): New table
6638 (Store_Note): New procedure
6639 * sem_prag.adb: Call Store_Note for affected pragmas
6641 2010-06-14 Thomas Quinot <quinot@adacore.com>
6643 * socket.c: Fix wrong condition in #ifdef
6644 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
6645 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
6646 because on VMS this type is a 32-bit pointer which is not compatible
6647 with the default for C pointers for code compiled with gcc on that
6650 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6652 * sem_util (Is_VMS_Operator): New predicate to determine whether an
6653 operator is an intrinsic operator declared in the DEC system extension.
6654 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
6655 if the operator is a VMS intrinsic.
6656 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
6657 constant-folded if the operands are signed and the operator is a VMS
6660 2010-06-14 Robert Dewar <dewar@adacore.com>
6662 * g-socket.adb, gnatcmd.adb: Minor reformatting.
6664 2010-06-14 Pascal Obry <obry@adacore.com>
6666 * s-finimp.adb: Fix typo.
6667 * raise.h: Remove duplicate blank line.
6669 2010-06-14 Vincent Celier <celier@adacore.com>
6671 * prj-nmsc.adb (Add_Sources): Always set the object file and the
6672 switches file names, as the configuration of the language may change
6673 in an extending project.
6674 (Process_Naming_Scheme): For sources of projects that are extended, set
6675 the configuration of the language from the highest extending project
6676 where the language is declared.
6678 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6680 * sem_res.adb (Resolve_Call): For infinite recursion check, test
6681 whether the called subprogram is inherited from a containing
6683 (Same_Or_Aliased_Subprograms): New function
6685 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6687 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
6688 use-visible, check whether it is a primitive for more than one type.
6690 2010-06-14 Robert Dewar <dewar@adacore.com>
6692 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
6694 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
6695 Has_Pragma_Unmodified flag.
6697 2010-06-14 Thomas Quinot <quinot@adacore.com>
6699 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
6700 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
6701 now done in GNAT.Sockets if necessary.
6702 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
6703 Ensure mutual exclusion for netdb operations if the target platform
6705 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
6706 struct hostent as an opaque type to improve portability.
6707 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
6708 gethostbyYYY using proprietary VxWorks API so that a uniform interface
6709 is available for the Ada side.
6710 * gcc-interface/Makefile.in: Remove g-sttsne-*
6711 * gcc-interface/Make-lang.in: Update dependencies.
6713 2010-06-14 Vincent Celier <celier@adacore.com>
6715 * gnatcmd.adb (Mapping_File): New function.
6717 2010-06-14 Javier Miranda <miranda@adacore.com>
6719 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
6721 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6723 * ali.adb: Fix typo.
6724 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
6726 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6728 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
6731 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
6732 the context does not have a homonym of the selector, emit default
6735 2010-06-14 Robert Dewar <dewar@adacore.com>
6737 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
6740 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6742 * lib-xref.ads: Doc updates:
6743 - Allocate 'Q' for #include entity kind
6745 - Allocate 'g' for regular macros
6746 - Allocate 'G' for function-like macros
6748 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6750 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
6751 Indicates that there is an instantiation in the current unit that
6752 loaded the body of the unit denoted by the with_clause.
6753 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
6754 whether a with_clause in the current context denotes the unit that
6755 holds the generic declaration, and mark the with_clause accordingly.
6756 (Instantiate_Package_Body): call Mark_Context.
6757 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
6758 whether a given body should be traversed before the spec of the main
6761 2010-06-14 Ed Falis <falis@adacore.com>
6763 * sysdep.c: Fix 653 build against vThreads headers.
6765 2010-06-14 Robert Dewar <dewar@adacore.com>
6767 * sinfo.ads: Minor reformatting.
6769 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6771 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
6772 the spec has been generated for a body without spec that carries an
6773 Inline_Always pragma.
6775 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6777 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
6780 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
6782 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
6783 declaration for VMs, as those are useless and might lead to duplicated
6784 local variable names in the generated code.
6785 * gcc-interface/Make-lang.in: Update dependencies.
6787 2010-06-14 Robert Dewar <dewar@adacore.com>
6789 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
6791 2010-06-14 Robert Dewar <dewar@adacore.com>
6793 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
6794 is renamed as Has_Following_Address_Clause.
6795 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
6796 to allow the caller to avoid Initialize_Scalars having an effect.
6797 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
6798 scalars with an address clause specified.
6799 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
6800 to allow the caller to avoid Initialize_Scalars having an effect.
6801 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
6802 (where it was called Has_Address_Clause).
6803 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
6804 (where it was called Has_Address_Clause).
6805 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
6806 problems for Initialize_Scalars (since we no longer initialize objects
6807 with an address clause.
6809 2010-06-14 Robert Dewar <dewar@adacore.com>
6811 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
6814 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6816 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
6817 on the entity of an implicitly generated postcondition procedure.
6819 2010-06-14 Thomas Quinot <quinot@adacore.com>
6821 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
6822 Discriminant_Constraint elist from full view to private view.
6824 2010-06-14 Robert Dewar <dewar@adacore.com>
6826 * sem_res.adb: Minor reformatting.
6828 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6830 * sem.adb: New version of unit traversal.
6832 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
6833 within a generic unit in the table of delayed calls.
6835 2010-06-14 Robert Dewar <dewar@adacore.com>
6837 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
6839 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6841 * sem_ch12.adb (Save_References): If an identifier has been rewritten
6842 during analysis as an explicit dereference, keep the reference implicit
6843 in the generic, but preserve the entity if global. This prevents
6844 malformed generic trees in the presence of some nested generics.
6846 2010-06-14 Sergey Rybin <rybin@adacore.com>
6848 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
6849 tool with '-files=' option. Also fix some small errors (wrong brackets)
6851 2010-06-14 Vincent Celier <celier@adacore.com>
6853 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
6854 the ALI files on the command line.
6856 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
6857 the same value as the parameter of the same name.
6858 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
6860 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
6861 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
6862 emit version symbols only for the units of the library.
6863 (Gen_Versions_C): Ditto.
6865 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6867 * sem_ch4.adb: Fix typo.
6869 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
6871 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
6872 vector IO doesn't work at default value properly.
6874 2010-06-14 Doug Rupp <rupp@adacore.com>
6876 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
6878 2010-06-14 Vincent Celier <celier@adacore.com>
6880 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
6881 sources of the project if a switch -files= is used.
6883 2010-06-14 Thomas Quinot <quinot@adacore.com>
6885 * exp_attr.adb: Minor reformatting.
6887 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6889 * gnat_ugn.texi: Minor typo fixes and wording changes.
6891 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6893 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
6894 prefixed form, do not re-analyze first actual, which may need an
6895 implicit dereference.
6896 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
6897 prefixed notation, the analysis will rewrite the node, and possible
6898 errors appear in the rewritten name of the node.
6899 * sem_res.adb: If a call is ambiguous because its first parameter is
6900 an overloaded call, report list of candidates, to clarify ambiguity of
6903 2010-06-14 Doug Rupp <rupp@adacore.com>
6905 * s-auxdec-vms-alpha.adb: New package body implementing legacy
6906 VAX instructions with Asm insertions.
6907 * s-auxdec-vms_64.ads: Inline VAX queue functions
6908 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
6909 that show up only on VMS.
6910 * gcc-interface/Makefile.in: Provide translation for
6911 s-auxdec-vms-alpha.adb.
6913 2010-06-14 Olivier Hainque <hainque@adacore.com>
6915 * initialize.c (VxWorks section): Update comments.
6917 2010-06-14 Robert Dewar <dewar@adacore.com>
6919 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
6921 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
6923 * init.c: Code clean up.
6925 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6927 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
6928 not insert address clause in table for later validation if type of
6929 entity is generic, to prevent possible spurious errors.
6931 * sem_ch8.adb: Code clean up.
6933 2010-06-14 Ben Brosgol <brosgol@adacore.com>
6935 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
6936 texi2pdf and texi2html.
6937 Document how to change scheduling properties on HP-UX.
6939 2010-06-14 Thomas Quinot <quinot@adacore.com>
6941 * g-socket.ads: Remove misleading comments.
6943 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
6945 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
6946 CLI_Target as this prevents proper detection of exported names
6947 duplicates when the exported language is different to CIL.
6948 (Process_Interface_Name): Add check for CIL convention exports,
6949 replacing the old one from Check_Duplicated_Export_Name.
6951 2010-06-14 Matthew Heaney <heaney@adacore.com>
6953 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
6954 and new last satisfy constraints.
6955 (Delete_Last): prevent overflow for subtraction of index values
6956 (To_Vector): prevent overflow for addition of index values
6958 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6960 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
6961 rewritten call, preserve the resulting type to prevent spurious errors,
6962 when the call is implicitly dereferenced in the context of an in-out
6965 * checks.adb (Apply_Discriminant_Check): If the target of the
6966 assignment is a renaming of a heap object, create constrained type for
6969 2010-06-14 Pascal Obry <obry@adacore.com>
6971 * prj-proc.adb: Fix copy of object directory for extending projects.
6973 2010-06-14 Jose Ruiz <ruiz@adacore.com>
6975 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
6976 (__gnat_install_handler, PowerPC linux): Activate the alternative
6979 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
6981 * gnat_rm.texi: Move to GFDL version 1.3.
6982 * gnat-style.texi: Ditto.
6983 * gnat_ugn.texi: Ditto.
6985 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
6988 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
6991 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
6993 * gcc-interface/utils.c (update_pointer_to): Initialize last.
6995 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
6997 * gcc-interface/ada-tree.h: Fix formatting nits.
6999 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7001 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
7003 (init_dummy_type): Likewise.
7004 (gnat_pushlevel): Likewise.
7006 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7007 (Subprogram_Body_to_gnu): Likewise.
7008 (Compilation_Unit_to_gnu): Likewise.
7009 (start_stmt_group): Likewise.
7010 (extract_encoding): Likewise.
7011 (decode_name): Likewise.
7013 * gcc-interface/misc.c (gnat_printable_name): Likewise.
7015 * gcc-interface/decl.c (annotate_value): Likewise.
7017 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
7019 (struct lang_decl): Likewise.
7020 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
7021 (SET_DECL_LANG_SPECIFIC): Likewise.
7023 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
7025 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
7026 * gcc-interface/lang-specs.h: Likewise.
7028 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
7031 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
7033 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7035 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
7037 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7039 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
7040 TYPE_DECL of the equivalent type instead of building a new one.
7042 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7044 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
7045 Fix nits in comments.
7046 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
7047 * gcc-interface/trans.c (gigi): Likewise.
7048 (Attribute_to_gnu): Likewise.
7049 (Case_Statement_to_gnu): Likewise.
7050 (gnat_to_gnu): Adjust warning message.
7051 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
7052 (build_vms_descriptor32): Likewise.
7054 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
7056 * gcc-interface/decl.c: Pretend to be a backend file by undefining
7057 IN_GCC_FRONTEND (still need rtl.h here).
7059 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7061 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
7062 (gigi): Adjust call to set_stack_check_libfunc.
7064 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7066 * gcc-interface/utils.c: Do not include rtl.h.
7068 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7070 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
7071 and gimple.h. Explain why rtl.h has to be included.
7072 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
7073 * gcc-interface/targtyps.c: Do not include tm_p.h
7074 * gcc-interface/utils2.c: Do not include flags.h.
7075 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
7076 and explain why it has to be included.
7077 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
7079 Include function.h and explain why. Explain why except.h is included.
7080 (enumerate_modes): Remove unused function.
7081 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
7082 * gcc-interface/Make-lang.in: Update dependencies.
7084 2010-05-25 Joseph Myers <joseph@codesourcery.com>
7086 * gcc-interface/misc.c (internal_error_function): Add context
7087 parameter. Use it to access show_column flag and instead of using
7088 global_dc. Call warn_if_plugins.
7089 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
7091 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
7093 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
7094 * gcc-interface/trans.c (unshare_save_expr): Delete.
7095 (gigi): Do not unshare trees under SAVE_EXPRs here.
7097 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
7099 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
7101 * gcc-interface/utils.c (build_function_stub): Likewise.
7103 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7105 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
7106 for Wuninitialized without -O.
7108 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
7110 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
7111 ADT_exception_data_name_id.
7112 (exception_data_name_id): New define.
7113 * gcc-interface/trans.c (gigi): Initialize it.
7114 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
7115 exception type for standard exception definitions. Do not make them
7117 <E_Record_Type>: Equate fields of types associated with an exception
7118 definition to those of the standard exception type.
7120 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
7122 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
7124 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
7126 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
7127 code, improve comments and fix formatting nits.
7129 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
7131 * gcc-interface/utils.c (update_pointer_to): Return early if the old
7132 pointer already points to the new type. Chain the old pointer and its
7133 variants at the end of new pointer's chain after updating them.
7135 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
7137 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
7138 built for interfaces.
7139 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
7140 imported_p instead of Is_Imported when considering constants.
7141 Do not promote alignment of exported objects.
7142 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
7144 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7146 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
7147 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
7148 constants really constant.
7149 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
7151 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7153 * gcc-interface/decl.c (make_aligning_type): Declare the type.
7155 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7157 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
7158 expressions of variant part of record types declared at library level.
7160 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7162 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
7163 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
7164 (rest_of_record_type_compilation): Adjust call to create_field_decl.
7165 (make_descriptor_field): Likewise and pass correctly typed constants.
7166 (build_unc_object_type): Likewise.
7167 (unchecked_convert): Likewise.
7168 * gcc-interface/decl.c (elaborate_expression_2): New static function.
7169 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
7170 Adjust call to create_field_decl.
7171 (make_aligning_type): Likewise.
7172 (make_packable_type): Likewise.
7173 (maybe_pad_type): Likewise.
7174 (gnat_to_gnu_field): Likewise.
7175 (components_to_record): Likewise.
7176 (create_field_decl_from): Likewise.
7177 (create_variant_part_from): Remove superfluous test.
7178 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
7180 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7182 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
7183 (build_unc_object_type_from_ptr): Likewise.
7184 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
7185 and pass it to create_type_decl. Declare the type. Simplify.
7186 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
7187 it to build_unc_object_type.
7188 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
7189 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7190 (gnat_to_gnu): Likewise.
7191 * gcc-interface/utils2.c (build_allocator): Likewise.
7193 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
7196 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
7198 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7200 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
7202 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7205 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
7207 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
7209 * gnathtml.pl: Use 755 as mask for new directories.
7211 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
7213 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
7214 constant constructors before taking their address.
7216 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
7218 * exp_dbug.ads: Fix outdated description. Mention link between XVS
7220 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
7221 XVZ variable as unit size of XVS type.
7222 (maybe_pad_type): Likewise.
7224 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
7226 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
7227 use memmove if the array type is bit-packed.
7229 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
7231 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
7232 build_common_tree_nodes.
7234 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
7236 * gsocket.h: Make sure that winsock2.h is included before windows.h.
7238 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
7240 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
7243 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
7245 * uintp.h (UI_Lt): Declare.
7246 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
7247 computation in sizetype.
7248 <E_Array_Subtype>: Use unified handling for all index types. Do not
7249 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
7251 (annotate_value): Change test for negative values.
7252 (validate_size): Apply test for negative values on GNAT nodes.
7253 (set_rm_size): Likewise.
7254 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
7255 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
7256 for negative values.
7257 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
7258 (builtin_type_for_size): Adjust definition of signed_size_type_node.
7259 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
7260 lengths against zero.
7262 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
7264 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
7265 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
7266 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
7267 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
7268 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
7269 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
7271 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
7272 flag_signed_char. Tag sizetype with "size_type" moniker.
7273 * gcc-interface/trans.c (gigi): Add standard_character parameter.
7274 Remove useless built-in types. Equate unsigned_char_type_node to
7275 Standard.Character. Use it instead of char_type_node throughout.
7276 (Attribute_to_gnu): Likewise.
7277 (gnat_to_gnu): Likewise.
7278 * gcc-interface/utils2.c (build_call_raise): Likewise.
7280 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
7282 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
7283 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
7284 (sbitsize_one_node): New macro.
7285 (sbitsize_unit_node): Likewise.
7286 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
7287 latent bug in the computation of subrange_p. Fold wider_p predicate.
7288 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
7289 the final comparison.
7290 (make_aligning_type): Build real negation and use sizetype throughout
7291 the offset computation.
7292 (maybe_pad_type): Do not issue the warning when the new size expression
7294 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
7295 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
7297 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
7299 (gnat_to_gnu) <N_Free_Statement>: Likewise.
7300 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
7301 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
7302 constants in sizetype. Remove dead code and tweak comments. Generate
7303 equality instead of inequality comparisons for zero length tests.
7305 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7307 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
7308 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
7309 <object>: Do not create the fake PARM_DECL if no debug info is needed.
7310 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
7311 purposes if no debug info is needed.
7312 Fix formatting. Reorder and add comments.
7313 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
7314 variable and remove obsolete comment.
7315 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
7316 (convert_vms_descriptor32): Likewise.
7317 (convert): Remove dead code.
7318 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
7319 the reference to the P_ARRAY pointer.
7320 <POINTER_TYPE>: Likewise.
7321 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
7322 (gnat_init_decl_processing): Delete, move contents to...
7323 * gcc-interface/misc.c (gnat_init): ...here.
7325 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7327 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
7328 calls. Return true for conversion from a record subtype to its type.
7330 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7332 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
7333 lieu of integer_type_node for boolean operations.
7334 (choices_to_gnu): Likewise.
7335 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7336 (Loop_Statement_to_gnu): Likewise.
7337 (establish_gnat_vms_condition_handler): Likewise.
7338 (Exception_Handler_to_gnu_sjlj): Likewise.
7339 (gnat_to_gnu): Likewise.
7340 (build_unary_op_trapv): Likewise.
7341 (build_binary_op_trapv): Likewise.
7342 (emit_range_check): Likewise.
7343 (emit_index_check): Likewise.
7344 (convert_with_check): Likewise.
7345 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
7346 (convert_vms_descriptor32): Likewise.
7347 (convert_vms_descriptor): Likewise.
7348 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
7349 (compare_arrays): Use boolean instead of integer constants.
7350 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
7351 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
7353 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
7354 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
7355 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
7356 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
7357 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
7358 for boolean operations.
7359 (fill_vms_descriptor): Likewise. Fix formatting nits.
7361 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7363 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
7364 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
7366 (LOOP_STMT_COND): ...this.
7367 (LOOP_STMT_BOTTOM_COND_P): New flag.
7368 (LOOP_STMT_TOP_UPDATE_P): Likewise.
7369 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
7370 (can_equal_min_val_p): New static inline function.
7371 (can_equal_max_val_p): Likewise.
7372 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
7373 new LOOP_STMT semantics. Use two different strategies depending on
7374 whether optimization is enabled to translate the loop.
7375 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
7377 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7379 * uintp.adb (UI_From_Dint): Remove useless code.
7380 (UI_From_Int): Likewise.
7381 * uintp.h: Reorder declarations.
7382 (UI_From_gnu): Declare.
7383 (UI_Base): Likewise.
7384 (Vector_Template): Likewise.
7385 (Vector_To_Uint): Likewise.
7388 * gcc-interface/gigi.h: Tweak comments.
7389 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
7390 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
7392 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
7393 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
7394 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
7395 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
7398 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7400 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
7402 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
7403 (smaller_form_type_p): ...this. Change parameter and variable names.
7404 (call_to_gnu): Use the nominal type of the parameter to create the
7405 temporary if it's a smaller form of the actual type.
7406 (addressable_p): Return false if the actual type is integral and its
7407 size is greater than that of the expected type.
7409 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7411 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
7412 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
7413 (process_attributes): Delete.
7414 (post_error_ne_num): Change parameter name.
7415 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
7416 with -g3. Remove a couple of obsolete lines. Minor tweaks.
7417 If type annotating mode, operate on trees to compute the adjustment to
7418 the sizes of tagged types. Fix long line.
7419 (cannot_be_superflat_p): Tweak head comment.
7420 (annotate_value): Fold local constant.
7421 (set_rm_size): Fix long line.
7422 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
7423 (Attribute_to_gnu): Fix long line.
7424 <Attr_Size>: Remove useless assertion.
7425 Reorder statements. Use size_binop routine.
7426 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
7427 Create local variables for the label and the test. Tweak comments.
7428 (Subprogram_Body_to_gnu): Reset cfun to NULL.
7429 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
7430 (process_inlined_subprograms): Integrate into...
7431 (Compilation_Unit_to_gnu): ...this.
7432 (gnat_to_gnu): Fix long line.
7433 (post_error_ne_num): Change parameter name.
7434 * gcc-interface/utils.c (process_attributes): Static-ify.
7435 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
7436 (create_type_decl): Add comment.
7437 (create_var_decl_1): Process the attributes after adding the VAR_DECL
7438 to the current binding level.
7439 (create_subprog_decl): Likewise for the FUNCTION_DECL.
7440 (end_subprog_body): Do not reset cfun to NULL.
7441 (build_vms_descriptor32): Fix long line.
7442 (build_vms_descriptor): Likewise.
7443 (handle_nonnull_attribute): Likewise.
7444 (convert_vms_descriptor64): Likewise.
7445 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
7446 (gnat_protect_expr): Fix thinko.
7448 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7450 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
7451 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
7452 before translating the top-level node.
7453 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
7454 <N_Object_Declaration>: Likewise.
7455 <N_Assignment_Statement>: Likewise.
7456 <N_Unchecked_Type_Conversion>: Likewise.
7457 (call_to_gnu): Remove kludge.
7458 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
7459 associated with user returns to be preserved.
7460 (gnat_to_gnu): Add special code to deal with boolean rvalues.
7461 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
7463 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
7464 <INDIRECT_REF>: Call build_fold_indirect_ref.
7466 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
7468 * g-socket.adb: A target can have multiple missing errno's. This
7469 will result in multiple errno's being defined as -1. Because of this
7470 we can not use a case but must use a series of if's to avoid
7471 a duplicate case error in GNAT.Sockets.Resolve_Error.
7473 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7475 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
7476 a statement. Otherwise, if at top-level, push the processing of the
7477 elaboration routine. In the misaligned case, issue the error messages
7478 again on entry and create the temporary explicitly. Do not issue them
7480 For a function call, emit the range check if necessary.
7481 In the copy-in copy-out case, create the temporary for the return
7483 Do not unnecessarily convert by-ref parameters to the formal's type.
7484 Remove obsolete guards in conditions.
7485 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
7486 target to call_to_gnu in all cases.
7487 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
7488 (addressable_p) <CONSTRUCTOR>: Return false if not static.
7489 <COMPOUND_EXPR>: New case.
7490 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
7491 expression if it has unconstrained array type.
7492 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
7493 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
7496 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7498 * gcc-interface/trans.c (gigi): Do not start statement group.
7499 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
7500 Start statement group and push binding level here...
7501 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
7502 Do not push fake contexts at top level. Remove redundant code.
7503 (call_to_gnu): Rename a local variable and constify another.
7504 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
7505 (set_current_block_context): Set it as the group's block.
7506 (gnat_init_decl_processing): Delete unrelated init code.
7507 (end_subprog_body): Use NULL_TREE.
7509 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7511 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
7512 side-effects of actual parameters before the call.
7514 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7516 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
7518 (set_rm_size): Reorder and remove obsolete test.
7520 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
7522 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
7523 (gigi): Adjust ATTRIBUTE_UNUSED markers.
7524 * gcc-interface/gadaint.h: New file.
7525 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
7526 (__gnat_to_canonical_file_spec): Remove declaration.
7527 (number_names): Delete.
7528 (number_files): Likewise.
7530 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
7533 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
7535 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
7537 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
7538 Ekind. Return early for class-wide types. Do not compute initializer
7539 unless necessary. Reuse the tree for an associated class-wide type
7540 only if processing its root type.
7542 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
7544 * gsocket.h: Run-time can no longer be built without network
7545 OS headers available. Changing RTEMS GNAT build procedure to
7546 reflect this and letting run-time build use network .h files.
7548 2010-04-13 Duncan Sands <baldrick@free.fr>
7550 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
7551 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
7553 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
7555 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
7556 (parent_name_id): New macro.
7557 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
7558 * gcc-interface/trans.c (gigi): Initialize it.
7559 (lvalue_required_p) <N_Type_Conversion>: New case.
7560 <N_Qualified_Expression>: Likewise.
7561 <N_Allocator>: Likewise.
7562 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
7564 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
7566 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
7567 (DECL_CONST_ADDRESS_P): New macro.
7568 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
7569 (SAME_FIELD_P): Likewise.
7570 * gcc-interface/decl.c (constructor_address_p): New static function.
7571 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
7572 the return value of above function.
7573 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
7574 passed by reference.
7575 <E_Record_Subtype>: Likewise.
7576 Set TREE_ADDRESSABLE on the type if it passed by reference.
7577 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
7578 (create_field_decl_from): Likewise.
7579 (substitute_in_type): Likewise.
7580 (purpose_member_field): Use SAME_FIELD_P.
7581 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
7582 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
7583 parameter and adjust recursive calls.
7584 <N_Explicit_Dereference>: New case.
7585 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
7586 Adjust calls to lvalue_required_p. Do not return the initializer of a
7587 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
7588 (call_to_gnu): Delay issuing error message for a misaligned actual and
7589 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
7590 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
7591 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
7592 type is passed by reference.
7593 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
7594 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
7595 (build_simple_component_ref): Use SAME_FIELD_P.
7597 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
7599 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
7600 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
7601 front-end's predicate Is_By_Reference_Type. Use consistent order and
7602 remove ??? comment. Use original conversion in all cases, if any.
7603 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
7604 (convert): Use local copy in more cases.
7605 <INDIRECT_REF>: Remove deactivated code.
7606 (unchecked_convert): Use a couple of local copies.
7608 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
7610 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
7612 (lvalue_required_p) <N_Attribute_Reference>: Call it.
7613 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
7614 folding the result only if lvalue_required_for_attribute_p is true.
7615 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
7616 typed constant to build_component_ref.
7617 (unchecked_convert): Likewise.
7618 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
7619 (build_allocator): Likewise.
7621 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
7623 * gcc-interface/utils2.c (build_cond_expr): Take the address and
7624 dereference if the result type is passed by reference.
7626 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
7628 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
7629 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
7630 goto to the next statement.
7632 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
7634 * gcc-interface/gigi.h (maybe_variable): Delete.
7635 (protect_multiple_eval): Likewise.
7636 (maybe_stabilize_reference): Likewise.
7637 (gnat_save_expr): Declare.
7638 (gnat_protect_expr): Likewise.
7639 (gnat_stabilize_reference): Likewise.
7640 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
7641 gnat_stabilize_reference.
7642 (maybe_variable): Delete.
7643 (elaborate_expression_1): Use gnat_save_expr.
7644 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
7645 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
7646 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
7647 <N_Slice>: Use gnat_protect_exp.
7648 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
7649 <N_In>: Use gnat_protect_expr.
7650 Pass NULL to gnat_stabilize_reference.
7651 (build_unary_op_trapv): Use gnat_protect_expr.
7652 (build_binary_op_trapv): Likewise.
7653 (emit_range_check): Likewise.
7654 (emit_index_check): Likewise.
7655 (convert_with_check): Likewise.
7656 (protect_multiple_eval): Move to utils2.c file.
7657 (maybe_stabilize_reference): Merge into...
7658 (gnat_stabilize_reference): ...this. Move to utils2.c file.
7659 (gnat_stabilize_reference_1): Likewise.
7660 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
7661 instead of protect_multiple_eval.
7662 * gcc-interface/utils2.c (compare_arrays): Likewise.
7663 (nonbinary_modular_operation): Likewise.
7664 (maybe_wrap_malloc): Likewise.
7665 (build_allocator): Likewise.
7666 (gnat_save_expr): New function.
7667 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
7668 in common cases. Propagate TREE_READONLY onto dereferences.
7669 (gnat_stabilize_reference_1): Move from trans.c file.
7670 (gnat_stabilize_reference): Likewise.
7672 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
7674 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
7675 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
7676 node. Use the type of the operand to set TREE_READONLY.
7677 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
7678 _REF node. Do not overwrite TREE_READONLY.
7679 (call_to_gnu): Rename local variable and fix various nits. In the
7680 copy-in/copy-out case, build the SAVE_EXPR manually.
7681 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
7682 and fold the computations.
7683 (protect_multiple_eval): Always save entire fat pointers.
7684 (maybe_stabilize_reference): Minor tweaks.
7685 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
7686 tcc_type and tcc_statement.
7687 * gcc-interface/utils.c (convert_to_fat_pointer): Call
7688 protect_multiple_eval in lieu of save_expr.
7689 (convert): Minor tweaks.
7690 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
7691 (builtin_type_for_size): Call gnat_type_for_size directly.
7692 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
7693 (contains_null_expr): Likewise
7694 (gnat_build_constructor): Do not call it.
7695 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
7696 instead of gnat_stabilize_reference to protect the operands.
7697 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
7699 (maybe_wrap_malloc): Likewise.
7700 (build_allocator): Likewise.
7701 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
7702 (gnat_mark_addressable): Rename parameter.
7704 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
7706 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
7707 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
7708 (TYPE_RETURNS_BY_REF_P): Rename into.
7709 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
7710 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
7711 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
7712 (build_return_expr): Likewise.
7713 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
7714 Rename local variables. If the return Mechanism is By_Reference, pass
7715 return_by_invisible_ref_p to create_subprog_type instead of toggling
7716 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
7717 the mechanism. Use regular return for contrained types with non-static
7718 size and return by invisible reference for unconstrained return types
7719 with default discriminants. Update comment.
7720 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
7721 returns by invisible reference, turn the RESULT_DECL into a pointer.
7722 Do not handle DECL_BY_REF_P in the CICO case here.
7723 (call_to_gnu): Remove code handling return by target pointer. For a
7724 function call, if the return type has non-constant size, generate the
7725 assignment with an INIT_EXPR.
7726 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
7727 If the function returns by invisible reference, build the copy return
7729 (add_decl_expr): Initialize the variable with an INIT_EXPR.
7730 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
7731 Adjust for renaming of macros. Copy the node only when necessary.
7732 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
7733 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
7734 (convert_from_reference): Delete.
7735 (is_byref_result): Likewise.
7736 (gnat_genericize_r): Likewise.
7737 (gnat_genericize): Likewise.
7738 (end_subprog_body): Do not call gnat_genericize.
7739 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
7740 (build_return_expr): Adjust parameter names, logic and comment.
7742 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7744 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
7745 if the size is small enough. Propagate the alignment if there is an
7746 alignment clause on the original array type.
7747 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
7748 Deal with under-aligned packed array types. Copy the size onto the
7749 justified modular type and don't lay it out again. Likewise for the
7750 padding type built for other under-aligned subtypes.
7751 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
7754 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7756 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
7757 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
7759 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7761 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
7762 do not set the result type if there is a specified target and do not
7763 convert the result in any cases.
7764 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
7765 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
7767 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
7769 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
7771 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
7774 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
7775 pointer base types are variant of each other. Apply special treatment
7776 for null to fat pointer types in all cases.
7778 2010-01-28 Pascal Obry <obry@adacore.com>
7780 * s-win32.ads: Add some missing constants.
7782 2010-01-28 Vincent Celier <celier@adacore.com>
7784 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
7787 2010-01-28 Robert Dewar <dewar@adacore.com>
7789 * gnat_rm.texi: Minor correction
7791 2010-01-27 Pascal Obry <obry@adacore.com>
7793 * g-awk.adb: ensure that an AWK session is reusable.
7795 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
7797 * g-regist.adb (For_Every_Key): Fix previous change.
7800 2010-01-27 Thomas Quinot <quinot@adacore.com>
7802 * lib-writ.ads: Current version of spec for new N (note) ALI lines
7804 2010-01-27 Yannick Moy <moy@adacore.com>
7806 * a-cdlili.adb (Insert): Correct exception message when cursor
7807 designates wrong list.
7809 2010-01-27 Vincent Celier <celier@adacore.com>
7811 * gnatcmd.adb: When there is only one main specified, the package
7812 support Switches (<main>) and attribute Switches is specified for the
7813 main, use these switches, instead of Default_Switches ("Ada").
7815 2010-01-27 Robert Dewar <dewar@adacore.com>
7817 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
7819 * exp_disp.adb: Minor reformatting
7821 2010-01-27 Tristan Gingold <gingold@adacore.com>
7823 * seh_init.c: Use __ImageBase instead of _ImageBase.
7825 2010-01-27 Javier Miranda <miranda@adacore.com>
7827 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
7828 profile of interface thunks. The type of the controlling formal is now
7829 the covered interface type (instead of the target tagged type).
7831 2010-01-27 Sergey Rybin <rybin@adacore.com>
7833 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
7835 2010-01-27 Robert Dewar <dewar@adacore.com>
7837 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
7838 changed from Expr to N.
7840 2010-01-26 Thomas Quinot <quinot@adacore.com>
7842 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
7843 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
7846 2010-01-26 Vincent Celier <celier@adacore.com>
7848 * prj-attr.adb: Add new attribute Library_Install_Name_Option
7849 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
7850 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7851 attributes Run_Path_Option and Library_Install_Name_Option.
7852 * prj.ads (Project_Configuration): Replace component
7853 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
7854 component Library_Install_Name_Option.
7855 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
7856 Replace Run_Path_Origin_Supported with Run_Path_Origin
7858 2010-01-26 Ed Schonberg <schonberg@adacore.com>
7860 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
7861 is not hidden by a homograph declared in another actual package.
7863 2010-01-26 Robert Dewar <dewar@adacore.com>
7865 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
7866 decisions for pragmas Assert, Check, Precondition, Postcondition if
7868 * scos.ads: Update comments.
7869 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
7870 Also remove obsolete code for CT (exit point) SCOs.
7872 2010-01-26 Thomas Quinot <quinot@adacore.com>
7874 * switch-c.adb: Fix handling of -gnatz*
7876 2010-01-26 Robert Dewar <dewar@adacore.com>
7878 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
7879 qualifiers for FOR/WHILE loops
7880 * scos.ads: Use separate type letters F/W for for/while loops
7882 2010-01-26 Robert Dewar <dewar@adacore.com>
7884 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
7885 entries per line, one for each statement in the sequence).
7886 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
7887 size from 100 to 10_000 for SC_Array to avoid any real possibility of
7888 overflow. Output decisions in for loops.
7889 Exclude labels from CS lines.
7890 * scos.ads: Clarify that label is not included in the entry point
7892 2010-01-26 Robert Dewar <dewar@adacore.com>
7894 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
7895 format of statement sequence SCO entries (one location/statement).
7896 * put_scos.adb (Put_SCOs): Implement new format of CS lines
7897 * scos.ads: Update comments.
7898 * sem_eval.adb: Minor reformatting.
7900 2010-01-26 Robert Dewar <dewar@adacore.com>
7902 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
7903 (Extend_Statement_Sequence): New procedures
7904 (Traverse_Declarations_Or_Statements): New handling for exits.
7906 2010-01-26 Robert Dewar <dewar@adacore.com>
7908 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
7911 2010-01-26 Robert Dewar <dewar@adacore.com>
7913 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
7914 * scos.ads: Clarify handling of logical operators
7916 2010-01-26 Arnaud Charlet <charlet@adacore.com>
7918 * s-tpoben.adb: Update comments.
7920 2010-01-26 Robert Dewar <dewar@adacore.com>
7922 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
7925 2010-01-26 Robert Dewar <dewar@adacore.com>
7927 * scos.ads: Clean up documentation, remove obsolete XOR references
7928 2010-01-26 Vincent Celier <celier@adacore.com>
7930 * gnat_ugn.texi: Complete documentation on the restrictions for
7931 combined options in -gnatxxx switches.
7934 2010-01-26 Arnaud Charlet <charlet@adacore.com>
7936 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
7937 a controlled operation, abort is already deferred at this point, so we
7938 need to use Defer_Abort_Nestable.
7940 2010-01-26 Vincent Celier <celier@adacore.com>
7942 * prj-conf.adb (Get_Config_Switches): Check for a default language for
7943 a project extending a project with no languages.
7945 2010-01-26 Vincent Celier <celier@adacore.com>
7947 * switch-c.adb (Scan_Front_End_Switches): Take into account options
7948 that follow -gnatef.
7949 Allow -gnateG to be followed by other options.
7951 2010-01-26 Robert Dewar <dewar@adacore.com>
7953 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
7954 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
7957 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
7959 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
7960 that allows to iterate over all subkeys of a key.
7962 2010-01-26 Ed Falis <falis@adacore.com>
7964 * sysdep.c: enable NFS for VxWorks MILS
7965 * env.c: enable __gnat_environ for VxWorks MILS
7966 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
7968 2010-01-25 Bob Duff <duff@adacore.com>
7970 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
7971 is an internally-generated positional aggregate, and the bounds are
7972 already correctly set. We don't want to overwrite those bounds with
7973 bounds determined by context.
7975 2010-01-25 Robert Dewar <dewar@adacore.com>
7977 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
7978 exp_ch9.adb, g-sechas.ads: Minor reformatting.
7980 2010-01-25 Thomas Quinot <quinot@adacore.com>
7982 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
7983 integer type) before subtracting 1, otherwise the computation may wrap
7984 (because size_t is modular) and cause the conversion to fail.
7986 2010-01-25 Ed Falis <falis@adacore.com>
7988 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
7990 2010-01-25 Vincent Celier <celier@adacore.com>
7992 * prj-attr.adb: New attribute Run_Path_Origin_Required
7993 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
7994 attribute Run_Path_Origin_Required.
7995 * prj.ads (Project_Configuration): New component
7996 Run_Path_Origin_Supported.
7997 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
7999 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8001 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
8002 have errors, do not continue resolution of the aggregate.
8003 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
8004 the array type indicates an error.
8006 2010-01-25 Bob Duff <duff@adacore.com>
8008 * sinfo.ads: Minor comment fixes.
8010 2010-01-25 Bob Duff <duff@adacore.com>
8012 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
8014 2010-01-25 Arnaud Charlet <charlet@adacore.com>
8016 * gnatvsn.ads (Current_Year): Update.
8018 2010-01-25 Florian Villoing <villoing@adacore.com>
8020 * gnat_ugn.texi: Fix typo.
8022 2010-01-25 Thomas Quinot <quinot@adacore.com>
8024 * scos.ads: Update specification.
8026 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8028 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
8029 enclosing subprogram has no previous spec, attach postcondition
8030 procedure to the defining entity for the body.
8032 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8034 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
8035 initialization procedure of the ancestor part of an extension aggregate
8036 if it is an interface type.
8038 2010-01-25 Vincent Celier <celier@adacore.com>
8040 * gnatlink.adb (Process_Binder_File): The directory for the shared
8041 version of libgcc in the run path options is found in the subdirectory
8042 indicated by __gnat_default_libgcc_subdir.
8043 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
8046 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8048 * sem_prag.adb: More flexible pragma Annotate.
8050 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
8052 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
8053 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
8055 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
8057 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
8059 2010-01-18 Jan Hubicka <jh@suse.cz>
8062 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
8063 unit local variables.
8065 2010-01-17 Laurent GUERBY <laurent@guerby.net>
8067 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
8069 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
8071 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
8072 * system-linux-armeb.ads, system-linux-armel.ads: New files.
8074 2010-01-09 Simon Wright <simon@pushface.org>
8077 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
8082 Copyright (C) 2010 Free Software Foundation, Inc.
8084 Copying and distribution of this file, with or without modification,
8085 are permitted in any medium without royalty provided the copyright
8086 notice and this notice are preserved.