einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry families.
[gcc.git] / gcc / ada / ChangeLog
1 2010-10-18 Ed Schonberg <schonberg@adacore.com>
2
3 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
4 families. Denotes a procedure that performs pre/postcondition checks
5 and then performs the entry call.
6 * sem_res.adb (Resolve_Entry_Call): If the entry has
7 pre/postconditions, replace call with a call to the PPC_Wrapper of the
8 entry.
9 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
10 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
11 Build_PPC_Wrapper for all entries in task and protected definitions.
12
13 2010-10-18 Tristan Gingold <gingold@adacore.com>
14
15 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
16 Implement stack limitation on VMS.
17 Minor reformatting.
18
19 2010-10-18 Vincent Celier <celier@adacore.com>
20
21 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
22 source record has been initialized.
23
24 2010-10-18 Robert Dewar <dewar@adacore.com>
25
26 * einfo.adb: Minor code reorganization (Primitive_Operations is a
27 synthesized attribute routine and was in the wrong place).
28
29 2010-10-18 Tristan Gingold <gingold@adacore.com>
30
31 * init.c: Indentation, and minor changes to more closely follow GNU
32 style rules. Make more variable statics.
33
34 2010-10-18 Vincent Celier <celier@adacore.com>
35
36 * prj.adb (Is_Compilable): On first call for a source, cache value in
37 component Compilable.
38 * prj.ads (Source_Data): New component Compilable, to cache the value
39 returned by function Is_Compilable.
40
41 2010-10-18 Vincent Celier <celier@adacore.com>
42
43 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
44 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
45 Ignore.
46 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
47 (Get_Directories): Call Find_Source_Dirs with the string list
48 indicated by attribute Ignore_Source_Sub_Dirs.
49 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
50
51 2010-10-18 Javier Miranda <miranda@adacore.com>
52
53 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
54 attribute.
55 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
56 (Set_Direct_Primitive_Operations): Renaming of old
57 Set_Primitive_Operations. Update documentation
58 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
59 Replace occurrences of Set_Primitive_Operations by
60 Set_Direct_Primitive_Operations.
61 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
62 concurrent types.
63 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
64 process primitives of concurrent types.
65 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
66
67 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
68
69 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
70 (Expand_Protected_Object_Reference): Likewise.
71 * sem_attr.adb (Resolve_Attribute): Likewise.
72 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
73 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
74
75 2010-10-18 Arnaud Charlet <charlet@adacore.com>
76
77 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
78
79 2010-10-18 Robert Dewar <dewar@adacore.com>
80
81 * aspects.ads, aspects.adb: Add entries for aspects
82 Read/Write/Input/Output.
83 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
84 handling aspects Read/Write/Input/Output.
85
86 2010-10-18 Robert Dewar <dewar@adacore.com>
87
88 * sem_util.adb (Note_Possible_Modification): Do not give warning for
89 use of pragma Unmodified unless we are sure this is a modification.
90
91 2010-10-18 Tristan Gingold <gingold@adacore.com>
92
93 * sysdep.c: Add __gnat_get_stack_bounds.
94 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
95
96 2010-10-18 Robert Dewar <dewar@adacore.com>
97
98 * a-assert.ads: Fix bad name in header.
99 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
100 reformatting.
101 * exp_aggr.adb: Fix typo in comment.
102
103 2010-10-18 Javier Miranda <miranda@adacore.com>
104
105 * exp_util.adb (Side_Effect_Free): Code clean up.
106
107 2010-10-18 Ed Schonberg <schonberg@adacore.com>
108
109 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
110 Is_Primitive_Operator. When ending the scope of a use package scope, a
111 primitive operator remains in use if the base type has a current use
112 (type) clause.
113
114 2010-10-18 Javier Miranda <miranda@adacore.com>
115
116 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
117 private types whose full-view is a task type.
118 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
119 private types whose full-view is a task type.
120 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
121 function Nearest_Dynamic_Scope which provides the needed functionality.
122
123 2010-10-18 Arnaud Charlet <charlet@adacore.com>
124
125 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
126 variable with an address clause in codepeer mode.
127
128 2010-10-18 Robert Dewar <dewar@adacore.com>
129
130 * g-trasym-vms-ia64.adb: Minor reformatting.
131
132 2010-10-18 Thomas Quinot <quinot@adacore.com>
133
134 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
135 the other isn't, return False early.
136
137 2010-10-18 Ed Falis <falis@adacore.com>
138
139 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
140 VxWorks Cert.
141
142 2010-10-18 Robert Dewar <dewar@adacore.com>
143
144 * sem_disp.ads: Minor comment update.
145
146 2010-10-18 Robert Dewar <dewar@adacore.com>
147
148 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
149 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
150 visibility analysis of precondition and postcondition pragmas (and
151 Pre/Post aspects).
152 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
153 aspects.
154 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
155 of pre/post conditions (no longer needed).
156 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
157 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
158 argument, since this is now done in the main processing for
159 pre/postcondition pragmas when they are first seen.
160 (Chain_PPC): Pre'Class and Post'Class now handled properly
161 (Chain_PPC): Handle Pre/Post aspects for entries
162 (Check_Precondition_Postcondition): Handle entry declaration case
163 (Check_Precondition_Postcondition): Handle delay of visibility analysis
164 (Check_Precondition_Postcondition): Preanalyze message argument if
165 present.
166
167 2010-10-18 Robert Dewar <dewar@adacore.com>
168
169 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
170
171 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
172
173 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
174 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
175 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
176 the INDIRECT_REF node built for objects used by reference.
177 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
178 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
179 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
180
181 2010-10-13 Richard Henderson <rth@redhat.com>
182
183 * gcc-interface/misc.c (gnat_eh_personality): Update call to
184 build_personality_function.
185 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
186 use__gnat_personality_{v,sj}0.
187
188 2010-10-12 Vincent Celier <celier@adacore.com>
189
190 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
191 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
192 of iterating through all sources of the project.
193 * prj.adb (Free): Reset hash table Source_Files_HT
194 (Reset): Reset hash table Source_Files_HT
195 * prj.ads (Source_Data): New component Next_With_File_Name
196 (Source_Files_Htable): New hash table
197 (Project_Tree_Data): New component Source_Files_HT
198
199 2010-10-12 Tristan Gingold <gingold@adacore.com>
200
201 * g-trasym-vms-ia64.adb: Use the documented API.
202 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
203 * gcc-interface/Make-lang.in: Update dependencies.
204
205 2010-10-12 Thomas Quinot <quinot@adacore.com>
206
207 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
208 PolyORB case): Request is now a controlled type: we can declare the
209 request on the stack, and we do not need explicit cleanup actions
210 anymore.
211
212 2010-10-12 Bob Duff <duff@adacore.com>
213
214 * s-rident.ads (Profile_Info): This variable is now constant.
215
216 2010-10-12 Emmanuel Briot <briot@adacore.com>
217
218 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
219 parameter Separator for backward compatibility.
220
221 2010-10-12 Robert Dewar <dewar@adacore.com>
222
223 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
224
225 2010-10-12 Vincent Celier <celier@adacore.com>
226
227 * debug.adb: Put detailed documentation for gnatmake switch -dm.
228
229 2010-10-12 Vincent Celier <celier@adacore.com>
230
231 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
232 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
233
234 2010-10-12 Arnaud Charlet <charlet@adacore.com>
235
236 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
237 using 'Access.
238
239 2010-10-12 Robert Dewar <dewar@adacore.com>
240
241 * debug.adb: Add comment.
242 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
243
244 2010-10-12 Javier Miranda <miranda@adacore.com>
245
246 * exp_util.adb (Side_Effect_Free): Return true for object renaming
247 declarations that were previously generated by Remove_Side_Effects.
248
249 2010-10-12 Emmanuel Briot <briot@adacore.com>
250
251 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
252 "???" when an entity is defined as "*" in the ALI file.
253 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
254 Minor reformatting.
255
256 2010-10-12 Emmanuel Briot <briot@adacore.com>
257
258 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
259 Set_Usage): New subprograms.
260 (Define_Switch): Change profile to add support for help messages and
261 long switches.
262
263 2010-10-12 Javier Miranda <miranda@adacore.com>
264
265 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
266 attribute Overridden_Operation in predefined dispatching primitives.
267
268 2010-10-12 Emmanuel Briot <briot@adacore.com>
269
270 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
271 command line configuration exists and we specify an invalid section.
272
273 2010-10-12 Robert Dewar <dewar@adacore.com>
274
275 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
276 exception messages are generated.
277 (Process_PPCs): Fix error in inheriting Pre'Class.
278
279 2010-10-12 Jose Ruiz <ruiz@adacore.com>
280
281 * gnatcmd.adb: Use response file for GNATstack.
282 (Check_Files): Pass the list of ci files for GNATstack using a response
283 file to avoid problems with command line length.
284 Factor out the code handling response file into a new procedure named
285 Add_To_Response_File.
286
287 2010-10-12 Vincent Celier <celier@adacore.com>
288
289 * debug.adb: For gnatmake, document the meaning of -dm
290 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
291 simultaneous compilations.
292 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
293 simultaneous compilations as the number of processors.
294
295 2010-10-12 Joseph Myers <joseph@codesourcery.com>
296
297 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
298 instead of options.h.
299
300 2010-10-12 Robert Dewar <dewar@adacore.com>
301
302 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
303 postcondition pragmas.
304
305 2010-10-12 Robert Dewar <dewar@adacore.com>
306
307 * errout.ads, erroutc.adb: The # insertion now handles from in place of
308 at.
309 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
310 message if new switch Exception_Locations_Suppressed is set.
311 (Expand_Pragma_Check): Revised wording for default message for case
312 of precondition or postcondition.
313 * namet.ads, namet.adb (Build_Location_String): New procedure.
314 * opt.ads (List_Inherited_Pre_Post): New flag.
315 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
316 list inherited pre/post aspects.
317 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
318 messages for precondition/postcondition cases.
319 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
320 if flag List_Inherited_Pre_Post is set True.
321 (Process_PPCs): Add initial handling for inherited preconditions
322 (List_Inherited_Pre_Post_Aspects): New procedure
323 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
324 * sem_disp.adb (Inherited_Subprograms): New function
325 * sem_disp.ads (Inherited_Subprograms): New function
326 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
327 pre/postcondition.
328 (Check_Precondition_Postcondition): Check for inherited aspects
329 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
330 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
331 * sinput.ads, sinput.adb (Build_Location_String): New function.
332 * usage.adb: Add line for -gnatw.l/-gnatw.L
333
334 2010-10-12 Javier Miranda <miranda@adacore.com>
335
336 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
337
338 2010-10-12 Arnaud Charlet <charlet@adacore.com>
339
340 * xref_lib.adb: Add handling of j/J letters.
341
342 2010-10-12 Pascal Obry <obry@adacore.com>
343
344 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
345
346 2010-10-12 Arnaud Charlet <charlet@adacore.com>
347
348 * make.adb (Globalize): New procedure.
349 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
350 (Gnatmake): Call Globalize when needed.
351 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
352 pragmas in CodePeer mode.
353 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
354 to generate simpler and consistent code.
355
356 2010-10-12 Bob Duff <duff@adacore.com>
357
358 * exp_util.adb (Remove_Side_Effects): Disable previous change,
359 can cause side effects to be duplicated.
360
361 2010-10-12 Robert Dewar <dewar@adacore.com>
362
363 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
364
365 2010-10-12 Arnaud Charlet <charlet@adacore.com>
366
367 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
368 abstract inherited private operation in CodePeer mode.
369
370 2010-10-12 Thomas Quinot <quinot@adacore.com>
371
372 * a-exetim.ads: Minor reformatting.
373 * g-socket.ads (Port_Type): Better definition corresponding to the
374 actual standard range.
375 * exp_ch5.adb: Add comment.
376 * sem_aux.adb: Minor reformatting.
377
378 2010-10-12 Ed Schonberg <schonberg@adacore.com>
379
380 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
381 string_literal_subtype so that a new one can be constructed in the
382 scope of the instance.
383
384 2010-10-12 Robert Dewar <dewar@adacore.com>
385
386 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
387 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
388 * par-prag.adb (P_Pragma, case Suppress_All): Set
389 Has_Pragma_Suppress_All flag.
390 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
391 (Analyze_Pragma, case Suppress_All): Remove placement check
392 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
393 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
394 * sinfo.adb (Has_Pragma_Suppress_All): New flag
395 (Has_Pragma_Priority): New name for Has_Priority_Pragma
396 * sinfo.ads (Has_Pragma_Suppress_All): New flag
397 (Has_Pragma_Priority): New name for Has_Priority_Pragma
398
399 2010-10-12 Arnaud Charlet <charlet@adacore.com>
400
401 * lib-xref.ads: Mark j/J as reserved for C++ classes.
402
403 2010-10-12 Jose Ruiz <ruiz@adacore.com>
404
405 * a-exetim-default.ads, a-exetim-posix.adb: New.
406 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
407 POSIX Realtime support to implement CPU clocks.
408 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
409 to the tasking library.
410 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
411 available for shared libraries.
412 * gcc-interface/Make-lang.in: Update dependencies.
413
414 2010-10-12 Robert Dewar <dewar@adacore.com>
415
416 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
417 apart expressions with AND THEN clauses into separate pragmas.
418 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
419
420 2010-10-12 Robert Dewar <dewar@adacore.com>
421
422 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
423 aspects.
424 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
425 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
426 aspects.
427 (Check_Optional_Identifier): Handle case of direct arguments
428 (Chain_PPC): Test for abstract case, giving appropriate messages
429 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
430
431 2010-10-12 Robert Dewar <dewar@adacore.com>
432
433 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
434 END RECORD.
435 * sem_attr.adb (Eval_Attribute): Code clean up.
436
437 2010-10-12 Robert Dewar <dewar@adacore.com>
438
439 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
440 messages and recovery for case of out of order Abstract/Tagged/Private
441 keywords.
442 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
443 for case of out of order Abstract/Tagged/Private keywords.
444
445 2010-10-12 Ed Schonberg <schonberg@adacore.com>
446
447 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
448 where child unit is main unit of compilation.
449
450 2010-10-12 Robert Dewar <dewar@adacore.com>
451
452 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
453 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
454 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
455 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
456 aspect specifications.
457 Recognize aspect specifications for all cases
458 * par.adb: Recognize aspect specifications for all cases
459 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
460 specifications.
461 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
462 generic actual types (was missing some guards before).
463 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
464 generated object
465 (Analyze_Single_Task_Declaration): Copy aspects to generated object
466
467 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
468
469 * usage.adb (usage): Adjust line for -gnatn switch.
470
471 2010-10-12 Robert Dewar <dewar@adacore.com>
472
473 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
474 spec case.
475
476 2010-10-12 Ed Schonberg <schonberg@adacore.com>
477
478 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
479 declaration of a null procedure resolve the types of the profile of the
480 generated null body now.
481
482 2010-10-11 Robert Dewar <dewar@adacore.com>
483
484 * debug.adb: Remove d.A flag to delay address clause (not needed any
485 more). Add d.A flag to enable tree read/write of aspect spec hash table
486 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
487 clause.
488 (Rep_Item_Too_Late): No need for special processing for delayed rep
489 items (and it caused difficulties in the address case).
490 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
491 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
492
493 2010-10-11 Pat Rogers <rogers@adacore.com>
494
495 * gnat_ugn.texi: Minor editing.
496
497 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
498
499 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
500
501 2010-10-11 Robert Dewar <dewar@adacore.com>
502
503 * g-htable.ads (Get_First): New procedural version for Simple_HTable
504 (Get_Next): New procedural version for Simple_HTable
505 * s-htable.adb (Get_First): New procedural version for Simple_HTable
506 (Get_Next): New procedural version for Simple_HTable
507 * s-htable.ads (Get_First): New procedural version for Simple_HTable
508 (Get_Next): New procedural version for Simple_HTable
509
510 2010-10-11 Ed Schonberg <schonberg@adacore.com>
511
512 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
513 variant part, use the association list of the subaggregate, which
514 already includes the values of the needed discriminants.
515
516 2010-10-11 Robert Dewar <dewar@adacore.com>
517
518 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
519 (Tree_Write): New procedure.
520 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
521 nodes.
522 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
523 * debug.adb: Add debug flag gnatd.A
524 * einfo.adb (Has_Delayed_Aspects): New flag
525 (Get_Rep_Item_For_Entity): New function
526 * einfo.ads (Has_Delayed_Aspects): New flag
527 (Get_Rep_Item_For_Entity): New function
528 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
529 tree.
530 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
531 sequence for Freeze_Entity.
532 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
533 ptr. All calls are changed to this new interface.
534 (Freeze_And_Append): Same change
535 (Freeze_Entity): Evaluate deferred aspects
536 * sem_attr.adb: New calling sequence for Freeze_Entity
537 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
538 when we are in spec expression preanalysis mode.
539 * sem_ch10.adb: New calling sequence for Freeze_Entity
540 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
541 flag Has_Aspects applies to all nodes (no need to save aspects).
542 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
543 flag Has_Aspects applies to all nodes (no need to save aspects).
544 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
545 accomodate delaying aspect evaluation to the freeze point.
546 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
547 accomodate delayed aspects.
548 (Rep_Item_Too_Late): Deal with delayed aspects case
549 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
550 aspects.
551 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
552 actual types are properly frozen (this is needed because of the new
553 check in Eval_Attribute that declines to evaluate attributes
554 for unfrozen types).
555 Simplify analysis of aspect specifications now that the flag
556 Has_Aspects applies to all nodes (no need to save aspects).
557 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
558 aspects.
559 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
560 flag Has_Aspects applies to all nodes (no need to save aspects).
561 New calling sequence for Freeze_Entity.
562 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
563 specifications now that the flag Has_Aspects applies to all nodes
564 (no need to save aspects).
565 New calling sequence for Freeze_Entity
566 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
567 Get_Rep_Item_For_Entity
568 (Get_Pragma_Arg): Moved to Sinfo
569 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
570 (Is_Delayed_Aspect): New flag
571 (Next_Rep_Item): Document use for aspects
572 (Get_Pragma_Arg): Moved here from Sem_Prag
573 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
574 is output and removes semicolon (simplifies interface).
575 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
576 applies to any node.
577 * tree_gen.adb: Write contents of Aspect_Specifications hash table
578 * tree_in.adb: Read and initialize Aspect_Specifications hash table
579 * treepr.adb (Print_Node): Print Has_Aspects flag
580 (Print_Node): Print Aspect_Specifications in Has_Aspects set
581 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
582
583 2010-10-11 Robert Dewar <dewar@adacore.com>
584
585 * aspects.ads, aspects.adb: Major revision of this package for 2nd
586 stage of aspects implementation.
587 * gcc-interface/Make-lang.in: Add entry for aspects.o
588 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
589 * par-ch13.adb (Aspect_Specifications_Present): New function
590 (P_Aspect_Specifications): New procedure
591 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
592 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
593 (P_Identifier_Declarations): Handle aspect specifications
594 (P_Component_Items): Handle aspect specifications
595 (P_Subtype_Declaration): Handle aspect specifications
596 * par-ch6.adb (P_Subprogram): Handle aspect specifications
597 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
598 * par.adb (Aspect_Specifications_Present): New function
599 (P_Aspect_Specifications): New procedure
600 * sem.adb (Analyze_Full_Type_Declaration): New name for
601 Analyze_Type_Declaration.
602 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
603 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
604 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
605 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
606 (Analyze_Single_Task_Declaration): New name (add _Declaration)
607 (Analyze_Task_Type_Declaration): New name (add _Declaration)
608 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
609 Analyze_Type_Declaration.
610 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
611 specifications.
612 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
613 specifications.
614 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
615 (Analyze_Formal_Package_Declaration): Handle aspect specifications
616 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
617 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
618 (Analyze_Formal_Type_Declaration): Handle aspect specifications
619 (Analyze_Generic_Package_Declaration): Handle aspect specifications
620 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
621 (Analyze_Package_Instantiation): Handle aspect specifications
622 (Analyze_Subprogram_Instantiation): Handle aspect specifications
623 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
624 _Declaration).
625 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
626 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
627 (Duplicate_Clause): New function, calls to this function are added to
628 processing for all aspects.
629 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
630 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
631 Analyze_Type_Declaration.
632 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
633 Analyze_Type_Declaration.
634 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
635 specifications.
636 (Analyze_Subprogram_Declaration): Analyze aspect specifications
637 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
638 specifications.
639 (Analyze_Private_Type_Declaration): Analyze aspect specifications
640 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
641 specifications.
642 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
643 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
644 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
645 (Analyze_Single_Task_Declaration): Analyze aspect specifications
646 (Analyze_Single_Task_Declaration): New name (add _Declaration)
647 (Analyze_Task_Type_Declaration): Analyze aspect specifications
648 (Analyze_Task_Type_Declaration): New name (add _Declaration)
649 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
650 _Declaration).
651 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
652 (Analyze_Single_Task_Declaration): New name (add _Declaration)
653 (Analyze_Task_Type_Declaration): New name (add _Declaration)
654 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
655 have to generate unnecessary pragma argument associations (this matches
656 the doc).
657 Throughout do changes to accomodate aspect specifications, including
658 specializing messages, handling the case of not going through all
659 homonyms, and allowing for cancellation.
660 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
661 (Aspect_Cancel): New flag
662 (From_Aspect_Specification): New flag
663 (First_Aspect): Removed flag
664 (Last_Aspect): Removed flag
665 * sprint.adb (Sprint_Aspect_Specifications): New procedure
666 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
667
668 2010-10-11 Bob Duff <duff@adacore.com>
669
670 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
671 they match in Ada 95, 2005, and 2012 modes, in the case where the
672 language didn't change. Same thing for the run-time exception message.
673
674 2010-10-11 Javier Miranda <miranda@adacore.com>
675
676 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
677
678 2010-10-11 Robert Dewar <dewar@adacore.com>
679
680 * s-htable.adb: Minor reformatting.
681
682 2010-10-11 Javier Miranda <miranda@adacore.com>
683
684 * debug.adb: Update comment.
685
686 2010-10-11 Vincent Celier <celier@adacore.com>
687
688 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
689 unconditionally as for "gnat make" the projects are not processed in
690 the GNAT driver.
691
692 2010-10-11 Ed Schonberg <schonberg@adacore.com>
693
694 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
695 suppress semantic analysis of the body when inlining, prior to
696 verifying that the body does not have a with_clause on a descendant
697 unit.
698 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
699 with_clause on a descendant.
700 (Scope_In_Main_Unit): Simplify.
701
702 2010-10-11 Robert Dewar <dewar@adacore.com>
703
704 * exp_ch6.adb, freeze.adb: Minor reformatting.
705
706 2010-10-11 Vincent Celier <celier@adacore.com>
707
708 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
709 shared library projects to import projects that are not shared library
710 projects.
711
712 2010-10-11 Javier Miranda <miranda@adacore.com>
713
714 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
715
716 2010-10-11 Arnaud Charlet <charlet@adacore.com>
717
718 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
719 Suppress/Unsuppress pragmas in codepeer mode on user code.
720
721 2010-10-11 Javier Miranda <miranda@adacore.com>
722
723 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
724 tag check in case of dispatching call through "=".
725
726 2010-10-11 Ed Schonberg <schonberg@adacore.com>
727
728 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
729 type is legal in the profile of any basic declaration.
730 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
731 incomplete type, including a limited view of a type, is legal in the
732 profile of any subprogram declaration.
733 If the type is tagged, its use is also legal in a body.
734 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
735 item if misplaced.
736 (Install_Limited_Withed_Unit): Refine legality checks when both the
737 limited and the non-limited view of a package are visible in the
738 context of a unit.
739 If this is not an error case, the limited view is ignored.
740 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
741 access to subprogram declarations
742
743 2010-10-11 Robert Dewar <dewar@adacore.com>
744
745 * exp_ch6.adb: Code clean up.
746 * exp_util.adb: Minor reformatting.
747
748 2010-10-11 Arnaud Charlet <charlet@adacore.com>
749
750 * sem_ch3.adb, exp_ch6.adb
751 (Make_Build_In_Place_Call_In_Anonymous_Context,
752 Make_Build_In_Place_Call_In_Assignment,
753 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
754 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
755 restriction.
756 (Access_Definition): Add missing handling of No_Task_Hierarchy.
757
758 2010-10-11 Javier Miranda <miranda@adacore.com>
759
760 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
761 class-wide expressions.
762
763 2010-10-11 Arnaud Charlet <charlet@adacore.com>
764
765 * xr_tabls.adb, sem_res.adb: Minor reformatting
766
767 2010-10-11 Arnaud Charlet <charlet@adacore.com>
768
769 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
770 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
771 handling of Attribute_Ref. Add missing blanks in some error messages.
772 (Attribute_Ref, Name_Ref): Declare.
773 Document 'Ref attribute.
774
775 2010-10-11 Robert Dewar <dewar@adacore.com>
776
777 * sem_attr.adb: Minor reformatting.
778
779 2010-10-11 Javier Miranda <miranda@adacore.com>
780
781 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
782 package System.Aux_Dec in VM platforms.
783
784 2010-10-11 Arnaud Charlet <charlet@adacore.com>
785
786 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
787 Suppress/Unsuppress pragmas in codepeer mode.
788 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
789 in codepeer mode.
790 * einfo.ads: Fix typo.
791
792 2010-10-11 Emmanuel Briot <briot@adacore.com>
793
794 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
795 * prj-nmsc.adb: Minor reformatting.
796
797 2010-10-11 Thomas Quinot <quinot@adacore.com>
798
799 * sem_attr.adb (Type_Key): Code simplification.
800
801 2010-10-11 Tristan Gingold <gingold@adacore.com>
802
803 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
804 very large object on VMS.
805
806 2010-10-11 Javier Miranda <miranda@adacore.com>
807
808 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
809 availability of attribute Instance_Spec.
810
811 2010-10-11 Arnaud Charlet <charlet@adacore.com>
812
813 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
814 checking syntax only or in ASIS mode.
815
816 2010-10-11 Ed Schonberg <schonberg@adacore.com>
817
818 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
819 need a freeze node if some type in the profile has one.
820 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
821 entity has a freeze node, defer elaboration.
822
823 2010-10-11 Emmanuel Briot <briot@adacore.com>
824
825 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
826 aggregated projects.
827
828 2010-10-11 Ed Schonberg <schonberg@adacore.com>
829
830 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
831 call.
832 * sem_ch6.adb: Diagnose additional error condition.
833
834 2010-10-11 Bob Duff <duff@adacore.com>
835
836 * par.adb (Par): Clarify wording of certain error messages.
837
838 2010-10-11 Gary Dismukes <dismukes@adacore.com>
839
840 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
841 about nondispatching subprograms to use In_Same_List (reducing use of
842 Parent links).
843
844 2010-10-11 Ed Schonberg <schonberg@adacore.com>
845
846 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
847 reference in a static call.
848
849 2010-10-11 Steve Baird <baird@adacore.com>
850
851 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
852 attribute should always be transformed into a string literal in
853 Analyze_Attribute.
854 * par-ch4.adb: Type_Key attribute's type is String; update value of
855 Is_Parameterless_Attribute constant to reflect this.
856 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
857 rewrite it as a string literal (attribute value is always known
858 statically).
859 * snames.ads-tmpl: Add entries for Type_Key attribute.
860
861 2010-10-11 Ed Schonberg <schonberg@adacore.com>
862
863 * lib-xref.adb (Output_References): Common handling for objects and
864 formals of an anonymous access type.
865
866 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
867
868 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
869
870 2010-10-11 Ed Schonberg <schonberg@adacore.com>
871
872 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
873
874 2010-10-11 Gary Dismukes <dismukes@adacore.com>
875
876 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
877 a warning about subprograms of a tagged type not being dispatching,
878 limit this to cases where the tagged type and the subprogram are
879 declared within the same declaration list.
880
881 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
882
883 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
884
885 2010-10-11 Bob Duff <duff@adacore.com>
886
887 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
888 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
889 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
890 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
891 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
892 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
893 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
894 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
895 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
896 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
897 instead of Ada_05 (Ada_Version_Type).
898
899 2010-10-11 Bob Duff <duff@adacore.com>
900
901 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
902 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
903 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
904 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
905 (Ada_Version_Type).
906
907 2010-10-11 Javier Miranda <miranda@adacore.com>
908
909 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
910 dereference then do not exclude dereferences of access-to-constant
911 types to handle them as constant view of variables (and hence remove
912 side effects when required).
913 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
914 are properly handled.
915
916 2010-10-11 Robert Dewar <dewar@adacore.com>
917
918 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
919
920 2010-10-11 Javier Miranda <miranda@adacore.com>
921
922 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
923 to exp_ch6.
924 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
925 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
926 exp_ch6.
927 (Expand_Simple_Function_Return): Move to exp_ch6.
928 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
929 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
930
931 2010-10-11 Robert Dewar <dewar@adacore.com>
932
933 * snames.ads-tmpl: Add names for aspects.
934 * aspects.ads, aspects.adb: New.
935 * gcc-interface/Make-lang.in: Update dependencies.
936 2010-10-11 Ed Schonberg <schonberg@adacore.com>
937
938 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
939 a task type, it must be replaced with a reference to Self.
940
941 2010-10-11 Vincent Celier <celier@adacore.com>
942
943 * adaint.h: Add prototype for function __gnat_create_output_file_new.
944
945 2010-10-11 Javier Miranda <miranda@adacore.com>
946
947 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
948 aggregate bounds.
949
950 2010-10-11 Arnaud Charlet <charlet@adacore.com>
951
952 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
953 for AI05-0033 in CodePeer mode.
954
955 2010-10-11 Robert Dewar <dewar@adacore.com>
956
957 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
958 * csinfo.adb: Aspect_Specifications is a new special field
959 * einfo.adb (Flag3): New unused flag
960 * exp_util.adb (Insert_Actions): Add processing for
961 N_Aspect_Specification.
962 * sem.adb: Add entry for N_Aspect_Specification.
963 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
964 (Has_Aspect_Specifications): New flag
965 (Permits_Aspect_Specifications): New function
966 (Aspect_Specifications): New function
967 (Set_Aspect_Specifications): New procedure
968 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
969 (Sprint_Node): Add dummy entry for N_Aspect_Specification
970 * treepr.adb (Flag3): New flag to be listed
971
972 2010-10-11 Vincent Celier <celier@adacore.com>
973
974 * adaint.c: Minor reformatting.
975
976 2010-10-11 Robert Dewar <dewar@adacore.com>
977
978 * sem_ch6.adb, s-htable.ads: Minor reformatting.
979
980 2010-10-11 Ed Schonberg <schonberg@adacore.com>
981
982 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
983 invisible in an instantiation, and both the formal and the actual are
984 private extensions of the same type, look for the desired component in
985 the proper view of the parent type.
986
987 2010-10-11 Vincent Celier <celier@adacore.com>
988
989 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
990 AIX, Tru64, Darwin, IRIX and HP-UX.
991
992 2010-10-11 Robert Dewar <dewar@adacore.com>
993
994 * a-textio.adb: Minor reformatting
995
996 2010-10-11 Robert Dewar <dewar@adacore.com>
997
998 * a-suesen.ads, a-suenst.ads,
999 a-suesen.adb, a-suenst.adb,
1000 a-suewse.adb, a-suewst.adb,
1001 a-suewse.ads, a-suewst.ads,
1002 a-suezse.ads, a-suezst.ads,
1003 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
1004 * impunit.adb: New names for string encoding units
1005 * Makefile.rtl: New names for string encoding units
1006 * rtsfind.ads: Minor code reorganization.
1007
1008 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1009
1010 * exp_ch5.adb: Code clean up.
1011
1012 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1013
1014 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
1015 returns when in a generic context.
1016 (Analyze_Function_Return): ditto.
1017
1018 2010-10-11 Robert Dewar <dewar@adacore.com>
1019
1020 * s-multip.ads: Fix header.
1021 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
1022
1023 2010-10-11 Vincent Celier <celier@adacore.com>
1024
1025 * Makefile.rtl: Add s-multip.
1026 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
1027 defaulting to 1 for other platforms.
1028 * adaint.h: New function __gnat_number_of_cpus.
1029 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
1030 with a single component "s-multip".
1031 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
1032 2012.
1033 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
1034 * s-multip.ads, s-multip.adb: New Ada 2012 package.
1035 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
1036
1037 2010-10-11 Javier Miranda <miranda@adacore.com>
1038
1039 * a-textio.adb: Move new implementation of Get_Line to a subunit.
1040 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
1041
1042 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1043
1044 * sem_aux.adb: Code clean up.
1045
1046 2010-10-11 Robert Dewar <dewar@adacore.com>
1047
1048 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
1049
1050 2010-10-11 Robert Dewar <dewar@adacore.com>
1051
1052 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
1053 Flag248-Flag254. Define new field Field29.
1054
1055 2010-10-10 Olivier Hainque <hainque@adacore.com>
1056 Eric Botcazou <ebotcazou@adacore.com>
1057
1058 * gcc-interface/lang.opt (gdwarf+): Remove.
1059 * gcc-interface/gigi.h (get_parallel_type): Likewise
1060 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
1061 (gnat_handle_option): Remove OPT_gdwarfplus case.
1062 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
1063 from gnat_dwarf_extensions.
1064 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
1065 * gcc-interface/utils.c (get_parallel_type): Remove.
1066
1067 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1068
1069 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
1070 invert_truthvalue_loc instead of invert_truthvalue.
1071 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
1072 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
1073
1074 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1075
1076 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
1077 assertion on the types of the parameters. Use KIND local variable.
1078 <E_Incomplete_Type>: Likewise.
1079
1080 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1081
1082 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
1083 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
1084 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
1085 (gnat_to_gnu_entity): Adjust calls to annotate_object.
1086 (gnat_to_gnu_param): If fat pointer types are passed by reference on
1087 the target, pass them by explicit reference.
1088 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
1089 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
1090 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
1091 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
1092 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
1093 and handle it.
1094 (build_function_stub): Iterate on the parameters of the subprogram in
1095 lieu of on the argument types. Adjust call to convert_vms_descriptor.
1096
1097 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
1098
1099 * gcc-interface/misc.c: Delete prototypes.
1100 (gnat_init_options): Use local variable.
1101 (lang_hooks): Move to the end of the file.
1102
1103 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1104
1105 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
1106 from gnat_init_options.
1107 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1108
1109 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1110
1111 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
1112
1113 2010-10-08 Robert Dewar <dewar@adacore.com>
1114
1115 * exp_ch3.adb: Minor reformatting.
1116 * exp_ch5.adb: Add comment.
1117
1118 2010-10-08 Robert Dewar <dewar@adacore.com>
1119
1120 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
1121 * gcc-interface/Make-lang.in: Update dependencies.
1122 * einfo.ads: Minor reformatting.
1123
1124 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1125
1126 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
1127 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
1128 exp_ch3.adb: Change Is_Inherently_Limited_Type to
1129 Is_Immutably_Limited_Type to accord with new RM terminology.
1130 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
1131 of a formal limited private type is not immutably limited in a generic
1132 body.
1133
1134 2010-10-08 Robert Dewar <dewar@adacore.com>
1135
1136 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
1137 Add calls to this new procedure where appropriate
1138
1139 2010-10-08 Vincent Celier <celier@adacore.com>
1140
1141 * a-textio.adb (Get_Chunk): Code clean up.
1142
1143 2010-10-08 Robert Dewar <dewar@adacore.com>
1144
1145 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
1146 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
1147 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
1148 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
1149 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
1150 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
1151 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
1152 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
1153 parameter.
1154
1155 2010-10-08 Robert Dewar <dewar@adacore.com>
1156
1157 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
1158 packages can depend on preleborated packages.
1159
1160 2010-10-08 Robert Dewar <dewar@adacore.com>
1161
1162 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
1163 Interrupt_Handler and Attach_Handler not allowed in generics.
1164
1165 2010-10-08 Robert Dewar <dewar@adacore.com>
1166
1167 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
1168 * ali.ads (Allocator_In_Body): New flag
1169 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
1170 program violating No_Allocators_After_Elaboration restriction.
1171 * gnatbind.adb (No_Restriction_List): Add entries for
1172 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
1173 * lib-load.adb: Initialize Has_Allocator flag
1174 * lib-writ.adb: Initialize Has_Allocator flag
1175 (M_Parameters): Set AB switch if Has_Allocator flag set
1176 * lib-writ.ads: Document AB flag on M line
1177 * lib.adb (Has_Allocator): New function
1178 (Set_Has_Allocator): New procedure
1179 * lib.ads (Has_Allocator): New function
1180 (Set_Has_Allocator): New procedure
1181 (Has_Allocator): New flag in Unit_Record
1182 * sem_ch4.adb (Analyze_Allocator): Add processing for
1183 No_Allocators_After_Elaboration.
1184
1185 2010-10-08 Geert Bosch <bosch@adacore.com>
1186
1187 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
1188
1189 2010-10-08 Javier Miranda <miranda@adacore.com>
1190
1191 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
1192 Java_Constructors because in the JRE library we generate occurrences
1193 in which the "this" parameter is not the first formal.
1194
1195 2010-10-08 Robert Dewar <dewar@adacore.com>
1196
1197 * par-ch3.adb: Minor reformatting.
1198
1199 2010-10-08 Javier Miranda <miranda@adacore.com>
1200
1201 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
1202 types.
1203
1204 2010-10-08 Robert Dewar <dewar@adacore.com>
1205
1206 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
1207 mode.
1208 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
1209 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
1210 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
1211 No_Anonymous_Allocators.
1212
1213 2010-10-08 Vincent Celier <celier@adacore.com>
1214
1215 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
1216 restriction, so that the last comma is always replaced with a left
1217 parenthesis.
1218
1219 2010-10-08 Javier Miranda <miranda@adacore.com>
1220
1221 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
1222 first formal of delegates.
1223
1224 2010-10-08 Robert Dewar <dewar@adacore.com>
1225
1226 * sem_aggr.adb: Minor reformatting.
1227
1228 2010-10-08 Robert Dewar <dewar@adacore.com>
1229
1230 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
1231 sequence for soft hyphen for Character'Image case.
1232 * rtsfind.ads (Image_Character_05): New entry
1233 * s-imgcha.adb (Image_Character_05): New procedurew
1234 * s-imgcha.ads (Image_Character_05): New procedure
1235 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
1236 case.
1237 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
1238 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
1239 properly.
1240
1241 2010-10-08 Robert Dewar <dewar@adacore.com>
1242
1243 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
1244 for case of Wide_[Wide_]Character.
1245
1246 2010-10-08 Robert Dewar <dewar@adacore.com>
1247
1248 * exp_ch3.adb: Minor reformating
1249 Minor code reorganization.
1250
1251 2010-10-08 Javier Miranda <miranda@adacore.com>
1252
1253 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
1254 pragmas CIL_Constructor and Java_Constructor.
1255 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
1256 predefined primitives for CIL/Java tagged types.
1257
1258 2010-10-08 Robert Dewar <dewar@adacore.com>
1259
1260 * sem_ch6.adb: Minor reformatting.
1261
1262 2010-10-08 Robert Dewar <dewar@adacore.com>
1263
1264 * gnat1drv.adb: Add call to Validate_Independence.
1265 * par-prag.adb: Add dummy entries for Independent,
1266 Independent_Componentsa.
1267 * sem_ch13.adb (Validate_Independence): New procedure
1268 (Initialize): Initialize address clause and independence check tables
1269 * sem_ch13.ads (Independence_Checks): New table
1270 (Validate_Independence): New procedure
1271 * sem_prag.adb: Add processing for pragma Independent[_Components]
1272 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
1273
1274 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1275
1276 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
1277 component with box initialization, if the component is a variant record
1278 use the values of the discriminants to select the proper variant for
1279 further box initialization.
1280
1281 2010-10-08 Thomas Quinot <quinot@adacore.com>
1282
1283 * xsnames.adb: Remove obsolete file.
1284 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
1285
1286 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1287
1288 * exp_aggr.adb: Complete previous change.
1289
1290 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1291
1292 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
1293 extended return must match statically the return subtype of the
1294 enclosing function if the type is an elementary type or if it is
1295 constrained.
1296
1297 2010-10-08 Vincent Celier <celier@adacore.com>
1298
1299 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
1300 names. Do not report the same duplicate unit several times.
1301 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
1302 defaulted to False, to avoid reporting the same unit as duplicate
1303 several times.
1304
1305 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1306
1307 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
1308 others choice is a literal, analyze it to enable later optimizations.
1309 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
1310 and components can be handled by the backend even if it is of a limited
1311 type.
1312
1313 2010-10-08 Arnaud Charlet <charlet@adacore.com>
1314
1315 * a-rttiev.adb (task Timer): Since this package may be elaborated
1316 before System.Interrupt, we need to call Setup_Interrupt_Mask
1317 explicitly to ensure that this task has the proper signal mask.
1318
1319 2010-10-08 Robert Dewar <dewar@adacore.com>
1320
1321 * freeze.adb (Freeze_Entity): For array case, move some processing for
1322 pragma Pack, Component_Size clause and atomic/volatile components here
1323 instead of trying to do the job in Sem_Ch13 and Freeze.
1324 * layout.adb: Use new Addressable function
1325 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
1326 Component_Size): Move some handling to freeze point in
1327 Freeze.Freeze_Entity.
1328 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
1329 freeze point in Freese.Freeze_Entity.
1330 * sem_util.ads, sem_util.adb (Addressable): New function.
1331
1332 2010-10-08 Robert Dewar <dewar@adacore.com>
1333
1334 * sprint.adb: Minor reformatting.
1335
1336 2010-10-08 Javier Miranda <miranda@adacore.com>
1337
1338 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
1339
1340 2010-10-08 Robert Dewar <dewar@adacore.com>
1341
1342 * sem_ch3.adb: Minor reformatting.
1343
1344 2010-10-08 Vincent Celier <celier@adacore.com>
1345
1346 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
1347 not a reserved word.
1348 * prj-proc.adb (Expression): Process string list external references.
1349 * prj-strt.adb (External_Reference): Parse external_as_list external
1350 references.
1351 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
1352 (Set_Expression_Kind_Of): Ditto
1353 * prj.adb (Initialize): Set external_as_list as a reserved word
1354 * projects.texi: Document new string external reference
1355 external_as_list.
1356 * scans.ads (Token_Type): New token Tok_External_As_List
1357 * snames.ads-tmpl: New standard name Name_External_As_List
1358
1359 2010-10-08 Thomas Quinot <quinot@adacore.com>
1360
1361 * sem_prag.adb: Minor reformatting.
1362
1363 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1364
1365 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
1366 instance, it is legal to derive from a non-limited actual when the
1367 formal type is untagged limited.
1368 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
1369 analyzed formal as Generic_Parent_Type, to simplify later checks.
1370
1371 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1372
1373 * sem_res.adb (Insert_Default): If default value is already a
1374 raise_constraint_error do not rewrite it as new raise node, to prevent
1375 infinite loops in the warning removal machinery.
1376
1377 2010-10-08 Robert Dewar <dewar@adacore.com>
1378
1379 * sem_util.adb, sem_prag.adb: Minor reformatting
1380
1381 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
1382
1383 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
1384 Add section on pragma Implemented.
1385
1386 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1387
1388 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
1389 concrete parent with a concrete constructor, the inherited constructor
1390 is abstract even if the derived type is a null extension.
1391
1392 2010-10-08 Thomas Quinot <quinot@adacore.com>
1393
1394 * sem_ch4.adb: Minor reformatting.
1395
1396 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
1397
1398 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
1399 (Implemented_By_Entry): Removed.
1400 (Set_Implemented_By_Entry): Removed.
1401 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
1402 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
1403 (Implemented_By_Entry): Removed along with its associated pragma.
1404 (Set_Implemented_By_Entry): Removed along with its associated pragma.
1405 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
1406 (Build_Dispatching_Call_Equivalent): New routine.
1407 (Build_Dispatching_Requeue): New routine.
1408 (Build_Dispatching_Requeue_To_Any): New routine.
1409 (Build_Normal_Requeue): New routine.
1410 (Build_Skip_Statement): New routine.
1411 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
1412 several subroutines.
1413 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
1414 Pragma_Implemented.
1415 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
1416 pragma Implemented.
1417 (Check_Pragma_Implemented): New routines.
1418 (Inherit_Pragma_Implemented): New routine.
1419 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
1420 dispatching requeue.
1421 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
1422 and adding Implemented.
1423 (Ada_2012_Pragma): New routine.
1424 (Analyze_Pragma, case Implemented): Perform all necessary checks
1425 concerning pragma Implemented and register the pragma as a
1426 representation item with the procedure_LOCAL_NAME.
1427 (Analyze_Pragma, case Implemented_By_Entry): Removed.
1428 * sem_util.adb (Implementation_Kind): New routine.
1429 * sem_util.ads (Implementation_Kind): New routine.
1430 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
1431 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
1432 add Pragma_Implemented. Add special names By_Any, By_Entry and
1433 By_Protected_Procedure.
1434
1435 2010-10-08 Javier Miranda <miranda@adacore.com>
1436
1437 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
1438 variable Has_Static_DT by invocation of function Building_Static_DT.
1439
1440 2010-10-08 Vincent Celier <celier@adacore.com>
1441
1442 * g-dirope.adb (Remove_Dir): Do not change the current directory when
1443 doing a recursive remove of a subdirectory.
1444
1445 2010-10-08 Javier Miranda <miranda@adacore.com>
1446
1447 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
1448 * exp_disp.adb (Make_Secondary_DT): Factorize code.
1449 (Make_DT): Factorize code.
1450
1451 2010-10-08 Robert Dewar <dewar@adacore.com>
1452
1453 * sem_ch4.adb: Minor reformatting.
1454
1455 2010-10-08 Robert Dewar <dewar@adacore.com>
1456
1457 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
1458 conformance.
1459
1460 2010-10-08 Thomas Quinot <quinot@adacore.com>
1461
1462 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
1463 consistency with Gen_T in Instantiate_Type.
1464 Introduce constant A_Gen_Obj to avoid repeated queries for
1465 Defining_Identifier (Analyzed_Formal).
1466
1467 2010-10-08 Vincent Celier <celier@adacore.com>
1468
1469 * prj-nmsc.adb: Minor comment fix.
1470
1471 2010-10-07 Robert Dewar <dewar@adacore.com>
1472
1473 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
1474 * gcc-interface/Make-lang.in: Update dependencies.
1475
1476 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1477
1478 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
1479 unit, if the type of the formal is declared in a parent unit and is not
1480 a formal itself, the actual must be located from an enclosing parent
1481 instance by normal visibility.
1482
1483 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1484
1485 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
1486 indicator is illegal for an uninitialized allocator.
1487
1488 2010-10-07 Robert Dewar <dewar@adacore.com>
1489
1490 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
1491 Component_Size): Complete previous change.
1492
1493 2010-10-07 Vincent Celier <celier@adacore.com>
1494
1495 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
1496 even for keywords, to avoid having the checksum to depend on the Ada
1497 version.
1498
1499 2010-10-07 Gary Dismukes <dismukes@adacore.com>
1500
1501 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
1502 exp_ch3.adb: Minor reformatting.
1503
1504 2010-10-07 Robert Dewar <dewar@adacore.com>
1505
1506 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1507 Component_Size): It is now illegal to give an incorrect component size
1508 clause in the case of aliased or atomic components.
1509 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
1510 an effective pragma Pack in the case of aliased or atomic components.
1511
1512 2010-10-07 Steve Baird <baird@adacore.com>
1513
1514 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
1515 in the case of a violation of an active No_Task_Hierarchy restriction.
1516
1517 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1518
1519 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
1520 type is non-limited, an actual for it cannot be limited.
1521
1522 2010-10-07 Robert Dewar <dewar@adacore.com>
1523
1524 * einfo.ads (No_Pool_Assigned): Update documentation.
1525 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1526 Storage_Size): We only set No_Pool_Assigned if the expression is a
1527 static constant and zero.
1528 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
1529 should be an error not a warning.
1530
1531 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1532
1533 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
1534 where an aggregate in an assignment can be built directly into the
1535 target, and does not require the creation of a temporary that may
1536 overflow the stack.
1537
1538 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1539
1540 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
1541 in a record aggregate can correspond to several components of
1542 anonymous access types, as long as the designated subtypes match.
1543
1544 2010-10-07 Robert Dewar <dewar@adacore.com>
1545
1546 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
1547 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
1548 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
1549 spelling parametrize(d) => parameterize(d).
1550
1551 2010-10-07 Robert Dewar <dewar@adacore.com>
1552
1553 * sem_ch12.adb: Add comment.
1554 * sem_ch6.adb: Minor reformatting.
1555
1556 2010-10-07 Robert Dewar <dewar@adacore.com>
1557
1558 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
1559 Pexp to Pf_Rec constants
1560 (P_Subprogram): Expression is always enclosed in parentheses
1561 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
1562 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
1563
1564 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1565
1566 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
1567 checks on functions that return an abstract type or have a controlling
1568 result whose designated type is an abstract type.
1569 (Check_Private_Overriding): Implement Ada2012 checks on functions
1570 declared in the private part, if an abstract type is involved.
1571 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
1572 reject a generic function that returns an abstract type.
1573 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
1574 function has a controlling access result, check that the tag of the
1575 return value matches the designated type of the return expression.
1576
1577 2010-10-07 Robert Dewar <dewar@adacore.com>
1578
1579 * par-ch6.adb: Fix error in handling of parametrized expressions.
1580 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
1581 mode.
1582 (P_Simple_Expression): Better message for qualified expression prefix
1583 * s-crc32.adb: Minor reformatting.
1584 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
1585 storage pool (this test is moved to Sem_Intr).
1586 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
1587 empty storage pool, moved here from Exp_Intr and made into error.
1588 (Check_Intrinsic_Call): Remove assumption in generating not-null free
1589 warning that the name of the instantiation is Free.
1590 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
1591 GNAT mode.
1592 * types.ads: Remove storage size clauses from big types (since we may
1593 need to do deallocations, which are now illegal for empty pools).
1594
1595 2010-10-07 Sergey Rybin <rybin@adacore.com>
1596
1597 * gnat_ugn.texi: Add missing word.
1598
1599 2010-10-07 Robert Dewar <dewar@adacore.com>
1600
1601 * exp_util.adb (Insert_Actions): Add handling of
1602 N_Parametrized_Expression.
1603 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
1604 * sem.adb: Add entry for N_Parametrized_Expression
1605 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
1606 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
1607 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
1608 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
1609 * par-ch4.adb: Minor reformatting.
1610
1611 2010-10-07 Robert Dewar <dewar@adacore.com>
1612
1613 * scng.adb (Skip_Other_Format_Characters): New procedure
1614 (Start_Of_Wide_Character): New procedure
1615 (Scan): Use Start_Of_Wide_Character where appropriate
1616 (Scan): Improve error message for other_format chars in identifier
1617 (Scan): Allow other_format chars between tokens
1618
1619 2010-10-07 Javier Miranda <miranda@adacore.com>
1620
1621 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
1622 Add missing support for explicit dereferences.
1623
1624 2010-10-07 Robert Dewar <dewar@adacore.com>
1625
1626 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
1627
1628 2010-10-07 Robert Dewar <dewar@adacore.com>
1629
1630 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
1631 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
1632 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
1633 Exp_Util.Fully_Qualified_Name_String.
1634
1635 2010-10-07 Robert Dewar <dewar@adacore.com>
1636
1637 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
1638 * sem_res.adb (Resolve_Call): A call to
1639 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
1640 No_Relative_Delay (AI-0211).
1641
1642 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1643
1644 * sem_ch10.adb: Small change in error message.
1645
1646 2010-10-07 Robert Dewar <dewar@adacore.com>
1647
1648 * tbuild.ads: Minor reformatting.
1649
1650 2010-10-07 Robert Dewar <dewar@adacore.com>
1651
1652 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
1653
1654 2010-10-07 Arnaud Charlet <charlet@adacore.com>
1655
1656 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
1657
1658 2010-10-07 Robert Dewar <dewar@adacore.com>
1659
1660 * sem_res.adb: Minor reformatting
1661
1662 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
1663
1664 * gnat_ugn.texi: Minor editing.
1665 * opt.ads: Document that scripts rely on specific formats in opt.ads
1666
1667 2010-10-07 Robert Dewar <dewar@adacore.com>
1668
1669 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
1670 (To_Upper_Case): Fix to be inverse of To_Lower_Case
1671 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
1672 (To_Upper_Case): Fix to be inverse of To_Lower_Case
1673
1674 2010-10-07 Robert Dewar <dewar@adacore.com>
1675
1676 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
1677 * impunit.adb: Add entries for a-wichha/a-zchhan
1678 * Makefile.rtl: Add entries for a-wichha/a-zchhan
1679
1680 2010-10-07 Vincent Celier <celier@adacore.com>
1681
1682 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
1683 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
1684 replaced source, check that none of the replaced sources are in the
1685 dependencies.
1686 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
1687 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
1688 replaced with a source with a different file name, put it in the hash
1689 table Replaced_Sources.
1690 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
1691 one replaced source, check if it has the same file name as the current
1692 source; if it has, remove it from the hash table Replaced_Sources.
1693 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
1694 * prj.ads (Replaced_Source_HTable): New hash table
1695 (Project_Tree_Data): New components Replaced_Sources and
1696 Replaced_Source_Number.
1697
1698 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1699
1700 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
1701 proper flag to prevent a double elaboration check on the same call.
1702 * exp_util.adb (Insert_Actions): If the enclosing node is an
1703 Expression_With_Actions and it has been analyzed already, find
1704 insertion point further up in the tree.
1705
1706 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
1707
1708 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
1709 local variables. Remove the general restriction which prohibits the
1710 application of record rep clauses to Unchecked_Union types. Add Ada
1711 2012 check to detect improper naming of an Unchecked_Union
1712 discriminant in record rep clause.
1713 * sem_prag.adb: Add with and use clause for Exp_Ch7.
1714 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
1715 type to all invocations of Check_Component and Check_Variant.
1716 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
1717 Rewritten. Add Ada 2012 check to detect improper use of formal
1718 private types and private extensions as component types of an
1719 Unchecked_Union declared inside a generic body.
1720 (Check_Variant): Add formal parameter UU_Typ. Propagate the
1721 Unchecked_Union type to all calls of Check_Component. Signal that the
1722 current component comes from the variant part of an Unchecked_Union
1723 type.
1724 (Inside_Generic_Body): New routine.
1725
1726 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1727
1728 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
1729 equality operation for a record component, verify that both formals
1730 have the same type, and the result type is boolean.
1731
1732 2010-10-07 Vincent Celier <celier@adacore.com>
1733
1734 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
1735 binder generated file, look for both b~xxx and b__xxx as gprbuild
1736 always uses b__ as the prefix of such files.
1737
1738 2010-10-07 Thomas Quinot <quinot@adacore.com>
1739
1740 * sem_res.adb: Minor reformatting.
1741
1742 2010-10-07 Arnaud Charlet <charlet@adacore.com>
1743
1744 * debug.adb: Update -gnatd.J documentation.
1745
1746 2010-10-07 Robert Dewar <dewar@adacore.com>
1747
1748 * gnat_rm.texi: Document handling of invalid values
1749 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
1750 to match new spec.
1751 (UTF_To_Upper_Case): New function.
1752
1753 2010-10-07 Robert Dewar <dewar@adacore.com>
1754
1755 * sem_attr.adb: Minor reformatting.
1756 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
1757 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
1758 properly.
1759 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
1760 non-Ada 2012 mode.
1761 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
1762 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
1763 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
1764 flag.
1765 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
1766 argument.
1767 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
1768 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
1769 same as 2005 flag.
1770
1771 2010-10-07 Javier Miranda <miranda@adacore.com>
1772
1773 * a-tags.ads: Use new support for pragma Ada_2012 with function
1774 Type_Is_Abstract.
1775
1776 2010-10-07 Ed Schonberg <schonberg@adacore.com>
1777
1778 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
1779 sequence of statements.
1780
1781 2010-10-07 Vincent Celier <celier@adacore.com>
1782
1783 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
1784
1785 2010-10-07 Javier Miranda <miranda@adacore.com>
1786
1787 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
1788 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
1789 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
1790
1791 2010-10-07 Arnaud Charlet <charlet@adacore.com>
1792
1793 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
1794 (Analyze_Package_Instantiation): No longer analyze systematically a
1795 generic body in CodePeer mode.
1796 * freeze.adb, sem_attr.adb: Update comments.
1797
1798 2010-10-05 Robert Dewar <dewar@adacore.com>
1799
1800 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
1801 mode.
1802
1803 2010-10-05 Pascal Obry <obry@adacore.com>
1804
1805 * gnat_rm.texi: Fix typo.
1806
1807 2010-10-05 Arnaud Charlet <charlet@adacore.com>
1808
1809 * gnat_ugn.texi: Add note about identifiers with same name and
1810 -fdump-ada-spec.
1811
1812 2010-10-05 Robert Dewar <dewar@adacore.com>
1813
1814 * sem_ch4.adb: Minor reformatting.
1815 * a-direct.ads: Minor comment update.
1816
1817 2010-10-05 Javier Miranda <miranda@adacore.com>
1818
1819 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
1820 no longer required after change in New_Overloaded_Entity.
1821 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
1822 the fragment of code that handles derivations of interface primitives.
1823 Add missing dependence on global variable Inside_Freezing_Actions to
1824 ensure the correct management of internal interface entities.
1825 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
1826 of the global variable Inside_Freezing_Actions to ensure that internal
1827 interface entities are well handled by New_Overloaded_Entity.
1828 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
1829 and complete the algorithm to catch hidden primitives derived of
1830 private type that covers the interface.
1831 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
1832 documentation.
1833
1834 2010-10-05 Robert Dewar <dewar@adacore.com>
1835
1836 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
1837 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
1838 Minor code reorganization (use Nkind_In).
1839
1840 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1841
1842 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
1843 task.
1844
1845 2010-10-05 Vincent Celier <celier@adacore.com>
1846
1847 * gnatbind.adb: If the main library file is not for a suitable main
1848 program, change the error message.
1849
1850 2010-10-05 Vincent Celier <celier@adacore.com>
1851
1852 * a-direct.ads: Minor spelling error fixes in comments.
1853 * gnat_rm.texi: Add three entries in "Implementation Defined
1854 Characteristics" for the interpretations of the Form parameters in
1855 Ada.Directories.
1856
1857 2010-10-05 Robert Dewar <dewar@adacore.com>
1858
1859 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
1860 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
1861 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
1862 reorganization.
1863 Minor reformatting.
1864
1865 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1866
1867 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
1868 an explicit dereference of an access to function, the prefix is not
1869 interpreted as a parameterless call.
1870
1871 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1872
1873 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
1874 private.
1875
1876 2010-10-05 Vincent Celier <celier@adacore.com>
1877
1878 * make.adb (Switches_Of): Allow wild cards in index of attributes
1879 Switches.
1880 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
1881 of the associative array as a glob regular expression.
1882 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
1883 Allow_Wildcards, defaulted to False.
1884 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
1885 * projects.texi: Document that attribute Switches (<file name>) may
1886 use wild cards in the index.
1887
1888 2010-10-05 Robert Dewar <dewar@adacore.com>
1889
1890 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
1891 einfo.adb: Minor reformatting.
1892 * debug.adb: Remove obsolete documentation for d.Z flag.
1893
1894 2010-10-05 Vincent Celier <celier@adacore.com>
1895
1896 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
1897 switch --create-info-file=.
1898 * gnat_ugn.texi: Add documentation for new gnatmake switch
1899 --source-info=
1900
1901 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1902
1903 * sem_ch3.adb: Do not elaborate type definition if syntax error.
1904
1905 2010-10-05 Javier Miranda <miranda@adacore.com>
1906
1907 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
1908 to generate the full-qualified names of its corresponding spec.
1909 This facilitates locating the corresponing body when reading
1910 the DG output.
1911
1912 2010-10-05 Thomas Quinot <quinot@adacore.com>
1913
1914 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
1915 canonical name without serial number only if the helper is becoming a
1916 primitive of the type.
1917
1918 2010-10-05 Javier Miranda <miranda@adacore.com>
1919
1920 * exp_disp.adb (Make_DT): Minor code reorganization.
1921
1922 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1923
1924 * par-ch6.adb: improve recovery with extra paren in function spec.
1925
1926 2010-10-05 Quentin Ochem <ochem@adacore.com>
1927
1928 * prj-tree.ads: Project_Path is now aliased.
1929
1930 2010-10-05 Thomas Quinot <quinot@adacore.com>
1931
1932 * checks.adb: Minor reformatting.
1933
1934 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
1935
1936 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
1937 (Shared_Libgcc): New aliased variable.
1938 (Shared_Libgcc_Switch): New constant.
1939 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
1940 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
1941 to the compiler.
1942 * gcc-interface/Make-lang.in: Update dependencies.
1943
1944 2010-10-05 Vincent Celier <celier@adacore.com>
1945
1946 * prj-part.adb (Parse_Simple_Project): When checking if a child project
1947 imports its parent project, also look in projects being extended by
1948 imported projects.
1949
1950 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
1951
1952 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
1953
1954 2010-10-05 Javier Miranda <miranda@adacore.com>
1955
1956 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
1957 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
1958 activate this output.
1959
1960 2010-10-05 Arnaud Charlet <charlet@adacore.com>
1961
1962 * back_end.adb (Call_Back_End): Generate an error message when scil
1963 generation is enabled, and no scil back-end (by default) is available.
1964
1965 2010-10-05 Javier Miranda <miranda@adacore.com>
1966
1967 * debug.adb: Update documentation since -gnatd.Z is no longer required
1968 to generate the call-graph information.
1969
1970 2010-10-05 Javier Miranda <miranda@adacore.com>
1971
1972 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
1973 runtime access check by an equivalent expansion that causes
1974 no problems in the VM backend. The original expansion was
1975 not good for the VM backends because when Tagged_Type_Expansion
1976 is disabled the attribute Access_Disp_Table is not available.
1977
1978 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1979
1980 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
1981 is class-wide and T1 is its specific type.
1982
1983 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1984
1985 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
1986
1987 2010-10-05 Vincent Celier <celier@adacore.com>
1988
1989 * back_end.ads: Minor spelling error correction.
1990
1991 2010-10-05 Arnaud Charlet <charlet@adacore.com>
1992
1993 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
1994 warnings when -gnatC is specified here so that warnings can be
1995 re-enabled explicitly.
1996 (Adjust_Global_Switches): No longer suppress warnings.
1997
1998 2010-10-05 Vincent Celier <celier@adacore.com>
1999
2000 * makeutl.adb: Minor reformatting.
2001
2002 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2003
2004 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
2005 non-discrete type appears as an actual in a call.
2006
2007 2010-10-05 Vincent Celier <celier@adacore.com>
2008
2009 * make.adb (Scan_Make_Arg): Take into account new switch
2010 --source-info=file.
2011 * makeusg.adb: Add line for new switch --source-info=file.
2012 * makeutl.ads (Source_Info_Option): New constant String for new builder
2013 switch.
2014 * prj-conf.adb: Put subprograms in alphabetical order
2015 (Process_Project_And_Apply_Config): Read/write an eventual source info
2016 file, if necessary.
2017 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
2018 procedure.
2019 (Look_For_Sources): If a source info file was successfully read, get
2020 the source data from the data read from the source info file.
2021 * prj-util.adb (Source_Info_Table): New table
2022 (Source_Info_Project_HTable): New hash table
2023 (Create): New procedure
2024 (Put (File), Put_Line): New procedures
2025 (Write_Source_Info_File): New procedure
2026 (Read_Source_Info_File): New procedure
2027 (Initialize): New procedure
2028 (Source_Info_Of): New procedure
2029 (Next): New procedure
2030 (Close): When file is an out file, fail if the buffer cannot be written
2031 or if the file cannot be close successfully.
2032 (Get_Line): Fail if file is an out file
2033 * prj-util.ads (Create): New procedure
2034 (Put (File), Put_Line): New procedures
2035 (Write_Source_Info_File): New procedure
2036 (Read_Source_Info_File): New procedure
2037 (Source_Info_Data): New record type
2038 (Source_Info_Iterator): New private type
2039 (Initialize): New procedure
2040 (Source_Info_Of): New procedure
2041 (Next): New procedure
2042 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
2043 Source_Info_File_Exists.
2044
2045 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2046
2047 * exp_ch4.adb: Fix typo.
2048
2049 2010-10-05 Thomas Quinot <quinot@adacore.com>
2050
2051 * lib-writ.adb: Minor reformatting.
2052
2053 2010-10-05 Javier Miranda <miranda@adacore.com>
2054
2055 * sem_ch3.adb (Access_Definition): Remove useless code.
2056
2057 2010-10-05 Emmanuel Briot <briot@adacore.com>
2058
2059 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
2060 (Deep_Copy): Removed, not used.
2061
2062 2010-10-05 Javier Miranda <miranda@adacore.com>
2063
2064 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
2065 move code that searches in the list of primitives of a tagged type for
2066 the entity that will be overridden by user-defined routines.
2067 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
2068 previously located in routine Add_Internal_Interface_Entities.
2069 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
2070 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
2071 availability of attribute Alias.
2072
2073 2010-10-05 Ed Falis <falis@adacore.com>
2074
2075 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
2076 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
2077 Move definition of intContext to System.OS_Interface.
2078 Add necessary variants in System.VxWorks.Extensions.
2079
2080 2010-10-05 Doug Rupp <rupp@adacore.com>
2081
2082 * s-asthan-vms-alpha.adb: On VMS, a task using
2083 pragma AST_Entry exhibits a memory leak when the task terminates
2084 because the vector allocated for the AST interface is not freed. Fixed
2085 by making the vector a controlled type.
2086
2087 2010-10-05 Emmanuel Briot <briot@adacore.com>
2088
2089 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
2090 a "**" pattern properly exists, and report an error otherwise.
2091
2092 2010-10-05 Emmanuel Briot <briot@adacore.com>
2093
2094 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
2095
2096 2010-10-05 Emmanuel Briot <briot@adacore.com>
2097
2098 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
2099 subprogram.
2100 Extract some code from Get_Directories, to share with the handling
2101 of aggregate projects (for the Project_Files attributes)
2102
2103 2010-10-05 Emmanuel Briot <briot@adacore.com>
2104
2105 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
2106 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
2107 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
2108 type.
2109
2110 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2111
2112 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
2113
2114 2010-10-05 Emmanuel Briot <briot@adacore.com>
2115
2116 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
2117 (Aggregate projects): added support for parsing aggregate projects.
2118 In particular, check the presence and value of the new attributes
2119 related to aggregate projects, ie Project_Files, Project_Path
2120 and External.
2121 (Check_Attribute_Allowed, Check_Package_Allowed,
2122 Rename_Obsolescent_Attributes): new subprogram, extracting code
2123 from existing subprogram to keep their sizes smaller.
2124 (Check_Aggregate_Project, Check_Abstract_Project,
2125 Check_Missing_Sources): new subprograms
2126 (Check): remove comments that duplicated either the name of the
2127 following subprogram call, or the comment on that subprogram.
2128 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
2129 from Parse_Single_Project.
2130 (Check_Aggregate_Imports): new subprogram.
2131
2132 2010-10-05 Vincent Celier <celier@adacore.com>
2133
2134 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
2135 file has not been generated for the current source, for example if it
2136 has been generated for the spec, but we are compiling the body.
2137
2138 2010-10-05 Bob Duff <duff@adacore.com>
2139
2140 * xgnatugn.adb: Remove unused procedure.
2141
2142 2010-10-04 Vincent Celier <celier@adacore.com>
2143
2144 * a-direct.adb (Copy_File): Interpret the Form parameter and call
2145 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
2146 the Form parameter contains an incorrect value for field preserve= or
2147 mode=.
2148 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
2149 parameter is ignored.
2150 (Copy_File): Indicate the interpretation of the Form parameter.
2151
2152 2010-10-04 Vincent Celier <celier@adacore.com>
2153
2154 * make.adb (Gnatmake): When there are no foreign languages declared and
2155 a main in attribute Main of the main project does not exist or is a
2156 source of another project, fail immediately before attempting
2157 compilation.
2158
2159 2010-10-04 Javier Miranda <miranda@adacore.com>
2160
2161 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
2162 used to convert a node referencing a tag to a class-wide interface
2163 type.
2164 * exp_disp.adb (Convert_Tag_To_Interface): New function.
2165 (Expand_Interface_Conversion): Replace invocation of
2166 Unchecked_Conversion by new function Convert_Tag_To_Interface.
2167 (Write_DT): Add support for null primitives.
2168 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
2169 cleanup code that handles interface conversions and avoid unchecked
2170 conversion of referenced tag components.
2171 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
2172 unrequired conversions when generating a dispatching call to _assign.
2173 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
2174
2175 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2176
2177 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
2178 parent is a binary boolean operation and the operand is an unpacked
2179 array.
2180 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
2181 the operands of the rewritten node are the operands of the negations,
2182 not the negations themselves.
2183
2184 2010-10-04 Robert Dewar <dewar@adacore.com>
2185
2186 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
2187 name of entity to biased warning msg.
2188 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
2189 biased rep (wrong and never worked anyway).
2190
2191 2010-10-04 Arnaud Charlet <charlet@adacore.com>
2192
2193 * sem_elab.adb: Minor reformatting.
2194
2195 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2196
2197 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
2198 an access_to_protected subprogram type, and convert null value into
2199 corresponding aggregate.
2200
2201 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2202
2203 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
2204
2205 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2206
2207 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
2208 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
2209 AAMP.
2210
2211 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2212
2213 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
2214 for N_Operator_Symbol.
2215 (Indicate_Name_And_Type): Likewise.
2216 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
2217 * sem_res.adb (Resolve): Likewise.
2218 * sem_type.adb (Add_One_Interp): Likewise.
2219 (Disambiguate): Likewise.
2220
2221 2010-10-04 Vincent Celier <celier@adacore.com>
2222
2223 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
2224 than ALI file timestamp, return null.
2225
2226 2010-10-04 Vincent Celier <celier@adacore.com>
2227
2228 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
2229 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
2230 replaces global constant with the same name. When a line is too long,
2231 indent properly the next continuation line.
2232 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
2233 from 50 to 255, defaulted to 255, to indicate the maximum length of
2234 lines in the project file.
2235
2236 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2237
2238 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
2239 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
2240 of Traverse_Func on it to look for subprogram references in a body.
2241 Call Check_Subprogram_Refs on the body of inlined subprograms at the
2242 outer level and keep clearing the Is_Public flag of subprograms as long
2243 as it returns OK. Do not look at anything else than subprograms once
2244 an inlined subprogram has been seen.
2245
2246 2010-10-04 Javier Miranda <miranda@adacore.com>
2247
2248 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
2249 the target object is an interface.
2250 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
2251 interface type then we generate an implicit conversion to force
2252 displacement of the pointer to the object to reference the secondary
2253 dispatch table associated with the interface.
2254
2255 2010-10-04 Robert Dewar <dewar@adacore.com>
2256
2257 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
2258 Enumeration_Rep_Expr to point to the literal, not the identifier.
2259 (Analyze_Enumeration_Representation_Clause): Improve error message for
2260 size too small for enum rep value
2261 (Analyze_Enumeration_Representation_Clause): Fix size test to use
2262 proper size (RM_Size, not Esize).
2263
2264 2010-10-04 Robert Dewar <dewar@adacore.com>
2265
2266 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
2267
2268 2010-10-04 Javier Miranda <miranda@adacore.com>
2269
2270 * exp_cg.adb (Write_Call_Info): Code clean up.
2271
2272 2010-10-04 Arnaud Charlet <charlet@adacore.com>
2273
2274 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
2275
2276 2010-10-04 Robert Dewar <dewar@adacore.com>
2277
2278 * exp_cg.adb: Minor code reorganization
2279 Minor reformatting.
2280 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
2281
2282 2010-10-04 Bob Duff <duff@adacore.com>
2283
2284 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
2285 to make a qualified expression into a name (syntax-wise), then do not
2286 consider it redundant.
2287
2288 2010-10-04 Thomas Quinot <quinot@adacore.com>
2289
2290 * sem_warn.ads: Fix typo.
2291
2292 2010-10-04 Javier Miranda <miranda@adacore.com>
2293
2294 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
2295 TSS names.
2296 (Write_Call_Info): Add missing support for renamed primitives.
2297
2298 2010-10-04 Thomas Quinot <quinot@adacore.com>
2299
2300 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
2301 code between Make_Component_List_Assign and Make_Field_Assign.
2302
2303 2010-10-04 Vincent Celier <celier@adacore.com>
2304
2305 * prj-nmsc.adb (Get_Directories): For non extending projects that
2306 declare that they have no sources, do not create a non existing object
2307 or exec directory if builder switch -p is used.
2308
2309 2010-10-04 Sergey Rybin <rybin@adacore.com>
2310
2311 * gnat_ugn.texi (gnatcheck): Change the description of the report file
2312 format.
2313
2314 2010-10-04 Ed Falis <falis@adacore.com>
2315
2316 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
2317 determine whether Set_True is called from a task or an ISR.
2318 (Set_True): test for being in a task context before trying to
2319 dereference Defer_Abort or Undefer_Abort.
2320
2321 2010-10-04 Robert Dewar <dewar@adacore.com>
2322
2323 * sem_res.adb, sinput-l.adb: Minor reformatting.
2324
2325 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
2326
2327 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
2328 check when the target object is an interface since the expression of
2329 the right hand side must only cover the interface.
2330
2331 2010-10-04 Vincent Celier <celier@adacore.com>
2332
2333 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
2334 loading the main source, so that if it is preprocessed and -gnateG is
2335 used, the preprocessed file is written.
2336 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
2337 if a subunit is from the main unit when it is loaded.
2338 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
2339 to True before loading a subunit.
2340 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
2341 to True when the main is a generic unit before loading one of its
2342 subunits.
2343 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
2344 file only for the main unit (spec, body and subunits).
2345
2346 2010-10-04 Vincent Celier <celier@adacore.com>
2347
2348 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
2349 specified and the processed file cannot be written. Just issue a
2350 warning and continue.
2351
2352 2010-10-04 Thomas Quinot <quinot@adacore.com>
2353
2354 * sem_res.adb: Minor reformatting.
2355
2356 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2357
2358 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
2359 is an overridden inherited operation, the desired operation is the
2360 overriding one, which is the alias of the visible one.
2361
2362 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2363
2364 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
2365 present before deleting from the tree, when an inherited function with
2366 a controlling result that returns a null extension is overridden by a
2367 later declaration or body.
2368
2369 2010-10-04 Gary Dismukes <dismukes@adacore.com>
2370
2371 * checks.adb: Update comment.
2372
2373 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2374
2375 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
2376 and define as variables.
2377 (gnat_post_options): Set optimize and optimize_size variables.
2378
2379 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
2380
2381 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
2382 are not defined by target.
2383
2384 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
2385
2386 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
2387
2388 2010-09-28 Richard Henderson <rth@redhat.com>
2389
2390 * gcc-interface/misc.c (gnat_eh_personality): Use
2391 targetm.except_unwind_info.
2392
2393 2010-09-28 Jan Hubicka <jh@suse.cz>
2394
2395 * gcc-interface/utils.c (handle_leaf_attribute): New function.
2396 (gnat_internal_attribute_tables): Add leaf.
2397
2398 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2399
2400 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
2401 -include-directory, -include-directory=, -no-standard-includes,
2402 -no-standard-libraries): New.
2403
2404 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
2405
2406 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
2407 build_array_type with calls to build_nonshared_array_type.
2408 (substitute_in_type): Likewise.
2409 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
2410 (LANG_HOOKS_TYPE_HASH_EQ): Define.
2411 (gnat_post_options): Add 'static' keyword.
2412 (gnat_type_hash_eq): New static function.
2413 * gcc-interface/utils.c (fntype_same_flags_p): New function.
2414 (create_subprog_type): Call it.
2415 (create_index_type): Call build_nonshared_range_type and tidy up.
2416 (create_range_type): Likewise.
2417 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
2418
2419 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2420
2421 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
2422 for PARM_DECLs.
2423 (end_subprog_body): If the body is a BIND_EXPR, make its associated
2424 block the top-level one.
2425 (build_function_stub): Build a statement group for the whole function.
2426 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
2427 is used, create the enclosing block early and process first the OUT
2428 parameters.
2429
2430 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2431
2432 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
2433 not generate debug info for individual enumerators.
2434
2435 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2436
2437 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
2438 type instead of enumeral type as the dummy type built for the template
2439 type of fat pointers.
2440
2441 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2442
2443 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
2444 (gnat_zaplevel): Likewise.
2445 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
2446 binding level for an external constant.
2447 <E_Constant>: Force the local context and create a fake scope before
2448 translating the defining expression of an external constant.
2449 <object>: Treat external constants at the global level explicitly for
2450 renaming declarations.
2451 (elaborate_expression_1): Force the variable to be static if the
2452 expression is global.
2453 * gcc-interface/trans.c (get_elaboration_procedure): New function.
2454 (call_to_gnu): Use it.
2455 (gnat_to_gnu): Likewise.
2456 <N_Object_Declaration>: Do not test Is_Public to force the creation of
2457 an initialization variable.
2458 (add_decl_expr): Discard the statement if the declaration is external.
2459 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
2460 the current block if it is external.
2461 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
2462 (gnat_zaplevel): New global function.
2463
2464 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2465
2466 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
2467 variables against zero in all cases.
2468 (rest_of_type_decl_compilation): Likewise.
2469 * gcc-interface/trans.c (gigi): Pass properly typed constants to
2470 create_var_decl.
2471 (call_to_gnu): Fix formatting.
2472 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2473 (Exception_Handler_to_gnu_zcx): Likewise.
2474 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
2475 constant
2476 expressions in presence of a freeze node.
2477
2478 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
2479
2480 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
2481 expressions for external constants that are aggregates.
2482 * gcc-interface/utils2.c (build_simple_component_ref): If the field
2483 is an inherited component in an extension, look through the extension.
2484
2485 2010-09-10 Vincent Celier <celier@adacore.com>
2486
2487 * projects.texi: Add documentation for package extensions
2488 Add some documentation for attributes Leading_Library_Options and
2489 Linker'Leading_Switches.
2490
2491 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2492
2493 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
2494 disabled, compute subtype for all string types.
2495
2496 2010-09-10 Robert Dewar <dewar@adacore.com>
2497
2498 * gnat_ugn.texi: Add documentation for -gnatw.s/S
2499 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2500 Component_Size): Implement warning on overriden size clause.
2501 (Analyze_Record_Representation_Clause): Implement warning on overriden
2502 size clause.
2503 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
2504 (-gnatw.s/S).
2505 * ug_words: Add entries for -gnatw.s/S.
2506 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
2507 * gcc-interface/Make-lang.in: Update dependencies.
2508
2509 2010-09-10 Vincent Celier <celier@adacore.com>
2510
2511 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
2512 a package with the same name from an imported or extended project.
2513 * prj-proc.adb (Process_Declarative_Items): Process package extensions
2514
2515 2010-09-10 Bob Duff <duff@adacore.com>
2516
2517 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
2518 'out' parameters.
2519
2520 2010-09-10 Robert Dewar <dewar@adacore.com>
2521
2522 * sem.adb: Minor reformatting.
2523
2524 2010-09-10 Bob Duff <duff@adacore.com>
2525
2526 * s-os_lib.ads, g-expect.ads: Add comments.
2527
2528 2010-09-10 Robert Dewar <dewar@adacore.com>
2529
2530 * exp_ch5.adb: Minor reformatting.
2531
2532 2010-09-10 Thomas Quinot <quinot@adacore.com>
2533
2534 * scos.ads: Add comments.
2535
2536 2010-09-10 Vincent Celier <celier@adacore.com>
2537
2538 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
2539
2540 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
2541
2542 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
2543 for a controlled build-in-place function call which appears in an
2544 anonymous context. The transient scope ensures that the intermediate
2545 function result is cleaned up after the master is left.
2546 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
2547 of the transient scope. This is now done in Exand_Call which covers
2548 additional cases other than secondary stack release.
2549
2550 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2551
2552 * sem.adb (Do_Unit_And_Dependents): Add guard.
2553
2554 2010-09-10 Robert Dewar <dewar@adacore.com>
2555
2556 * exp_ch5.adb: Update comments.
2557 * exp_dist.adb: Minor reformatting.
2558
2559 2010-09-10 Robert Dewar <dewar@adacore.com>
2560
2561 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
2562 gap warnings.
2563 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
2564 * usage.adb: Add lines for -gnatw.h/H
2565 * gnat_ugn.texi: Add documentation for J519-010
2566 Warn on record holes/gaps
2567 * ug_words: Add entries for -gnatw.h/-gnatw.H
2568 * vms_data.ads: Add entries for [NO]AVOIDGAPS
2569
2570 2010-09-10 Gary Dismukes <dismukes@adacore.com>
2571
2572 * sem_ch6.adb: Update comment.
2573
2574 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2575
2576 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
2577 of full view analyzed after analyzing the corresponding record
2578 declaration, to prevent spurious name conflicts with original
2579 declaration.
2580
2581 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
2582
2583 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
2584 just issue a warning, but continue with the normal processing.
2585
2586 2010-09-10 Robert Dewar <dewar@adacore.com>
2587
2588 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
2589 reformatting.
2590
2591 2010-09-10 Thomas Quinot <quinot@adacore.com>
2592
2593 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
2594 Build_TypeCode_Call): For a subtype inserted for the expansion of a
2595 generic actual type, go to the underlying type of the original actual
2596 type.
2597
2598 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2599
2600 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
2601 guard around the increment statement, to prevent an off-by-one-value
2602 on the last iteration.
2603
2604 2010-09-10 Vincent Celier <celier@adacore.com>
2605
2606 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
2607 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
2608 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
2609 "at run time" in comments and error/warning messages.
2610
2611 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2612
2613 * exp_cg.adb: Handle properly bodies without specs.
2614
2615 2010-09-10 Emmanuel Briot <briot@adacore.com>
2616
2617 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
2618 present, and the user requested to either ignore this or display a
2619 warning (as opposed to an error), we still need to register the
2620 directory.
2621
2622 2010-09-10 Robert Dewar <dewar@adacore.com>
2623
2624 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
2625 now done in In_Extended_Main_Source_Unit.
2626 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
2627 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
2628 as Parsing_Main_Extended_Source.
2629 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
2630 unit.
2631 * lib-load.adb (Load_Unit): Add PMES parameter
2632 Set PMES appropriately in all calls to Load_Unit
2633 * lib-load.ads (Load_Unit): Add PMES parameter
2634 * lib.adb (In_Extended_Main_Source_Unit): When called with
2635 Compiler_State set to Parsing, test new flag
2636 Compiling_Main_Extended_Source.
2637 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
2638 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
2639 as Parsing_Main_Extended_Source
2640 * par-load.adb (Load): Set PMES properly in call to Load_Unit
2641
2642 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2643
2644 * exp_cg.adb: Use proper entity to handle overloads.
2645 * sem_res.adb (Check_Parameterless_Call): An operator node without
2646 actuals cannot be a call, and must be treated as a string.
2647
2648 2010-09-10 Robert Dewar <dewar@adacore.com>
2649
2650 * frontend.adb: Minor reformatting.
2651
2652 2010-09-10 Robert Dewar <dewar@adacore.com>
2653
2654 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
2655 * par-ch5.adb (P_Condition): Move from body to spec
2656 * par.adb (Ch5.P_Condition): Move from body to spec
2657
2658 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2659
2660 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
2661 the call table is private, use its full view to generate information
2662 on its operations.
2663
2664 2010-09-10 Jose Ruiz <ruiz@adacore.com>
2665
2666 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
2667 pattern matching to detect predefined primitive operations take into
2668 account that there can be an extra suffix related to body-nested
2669 package entities.
2670
2671 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2672
2673 * s-pooglo.ads: Add overriding indicators.
2674
2675 2010-09-10 Vincent Celier <celier@adacore.com>
2676
2677 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
2678 /64_MALLOC (for -H64).
2679
2680 2010-09-10 Robert Dewar <dewar@adacore.com>
2681
2682 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
2683 (Error_Msg_NW): Test Parsing_Main_Subunit flag
2684 * errout.ads (Parsing_Main_Subunit): New flag
2685 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
2686 * par-ch6.adb: Minor style fix (remove redandant parentheses)
2687 * par-ch9.adb: Minor style fix (remove redundant parens)
2688 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
2689
2690 2010-09-10 Vincent Celier <celier@adacore.com>
2691
2692 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
2693 function of the same name in Makeutl.
2694 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
2695 of removed procedure when creating a binder mapping file.
2696 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
2697 procedure in Make.
2698 * makeutl.ads (Create_Binder_Mapping_File): New function
2699
2700 2010-09-10 Jose Ruiz <ruiz@adacore.com>
2701
2702 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
2703 separator when trying the pattern matching to detect predefined
2704 primitive operations.
2705
2706 2010-09-10 Robert Dewar <dewar@adacore.com>
2707
2708 * bindgen.adb, atree.adb: Minor reformatting.
2709
2710 2010-09-10 Ben Brosgol <brosgol@adacore.com>
2711
2712 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
2713 OpenVMS" section.
2714
2715 2010-09-10 Doug Rupp <rupp@adacore.com>
2716
2717 * bindgen.adb: Minor comment fix for -H switch.
2718
2719 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2720
2721 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
2722 library unit now, by traversing tree before context is expanded.
2723 (Write_Call_Info): Use enclosing unit name directly.
2724 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
2725 tree earlier, to ensure that subsequent declarations are analyzed in a
2726 connected structure.
2727 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
2728 list.
2729
2730 2010-09-10 Robert Dewar <dewar@adacore.com>
2731
2732 * symbols-processing-vms-alpha.adb: Minor reformatting.
2733
2734 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
2735
2736 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
2737 __gnat_install_handler in case the binder is called with -n.
2738
2739 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2740
2741 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
2742 sloc for renaming declaration and set Comes_From_Source properly to
2743 ensure that references are properly generated for an object declaration
2744 that is built in place.
2745
2746 2010-09-10 Tristan Gingold <gingold@adacore.com>
2747
2748 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
2749 tool.
2750 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
2751 * gcc-interface/Makefile.in: gnat.hlp is now generated by
2752 Make-generated.in
2753
2754 2010-09-10 Bob Duff <duff@adacore.com>
2755
2756 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
2757 := ...;", remove side effects from the right-hand side, because they
2758 might affect the value of the left-hand side, but the left-hand side is
2759 first READ (so we can do shifting and masking) and then written back,
2760 which would cause the side effects to be incorrectly overwritten.
2761
2762 2010-09-10 Robert Dewar <dewar@adacore.com>
2763
2764 * sem_ch4.adb: Minor reformatting.
2765 * exp_ch6.adb: Add comment on testing limited on full type
2766 * gnat_rm.texi: Add documentation on Pure_Function.
2767
2768 2010-09-10 Vincent Celier <celier@adacore.com>
2769
2770 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
2771 as a source of another project and of another language.
2772
2773 2010-09-10 Robert Dewar <dewar@adacore.com>
2774
2775 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
2776 errors.
2777 * freeze.adb (Check_Unsigned_Type): Ditto.
2778 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
2779 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
2780 (Set_Scalar_Range_For_Subtype): Ditto.
2781 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
2782
2783 2010-09-10 Robert Dewar <dewar@adacore.com>
2784
2785 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
2786 types.
2787 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
2788 rather than parens for fixed constants.
2789 * sprint.ads: Use square brackets rather than parens for fixed constants
2790 * urealp.adb (UR_Write): Use square brackets rather than parens
2791 (UR_Write): Add Brackets argument
2792 (UR_Write): Add many more special cases to output literals
2793 * urealp.ads (UR_Write): Use square brackets rather than parens
2794 (UR_Write): Add Brackets argument
2795
2796 2010-09-10 Robert Dewar <dewar@adacore.com>
2797
2798 * sem_ch4.adb: Minor reformatting.
2799
2800 2010-09-10 Richard Guenther <rguenther@suse.de>
2801
2802 * gcc-interface/utils.c (create_index_type): Use build_range_type.
2803
2804 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2805
2806 * vms_cmds.ads: New.
2807
2808 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
2809
2810 * exp_dbug.ads: Mention enhanced encoding for array types.
2811
2812 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
2813
2814 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
2815 unsupported in VM targets. Display a warning in this case.
2816
2817 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2818
2819 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
2820 not reset Sloc when printing keyword "new".
2821
2822 2010-09-10 Vincent Celier <celier@adacore.com>
2823
2824 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
2825 GNAT_DRIVER_COMMAND_LINE.
2826
2827 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2828
2829 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
2830 clause, process the body at once.
2831
2832 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2833
2834 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
2835 conversion is the expression is a qualified expression used to
2836 disambiguate a function call.
2837
2838 2010-09-10 Vincent Celier <celier@adacore.com>
2839
2840 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
2841 as a source of another project and of another language.
2842
2843 2010-09-10 Robert Dewar <dewar@adacore.com>
2844
2845 * prj-util.adb: Minor reformatting.
2846
2847 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
2848
2849 * exp_disp.adb: Minor reformatting.
2850
2851 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2852
2853 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
2854 CodePeer mode.
2855
2856 2010-09-10 Thomas Quinot <quinot@adacore.com>
2857
2858 * sem_res.adb: Minor reformatting.
2859 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
2860 magic constants for task master levels (instead, reference
2861 named numbers from System.Tasking).
2862
2863 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
2864
2865 * gnatvsn.ads (Ver_Prefix): New constant string.
2866 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
2867 (Gen_Output_File_C): Likewise.
2868 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
2869 in comment.
2870
2871 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2872
2873 * sem.adb (Walk_Library_Items): Do not traverse children of the main
2874 unit, to prevent spurious circularities in the walk order.
2875 (Depends_On_Main): Use elsewhere to prevent circularities when the body
2876 of an ancestor of the main unit depends on a child of the main unit.
2877
2878 2010-09-10 Robert Dewar <dewar@adacore.com>
2879
2880 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
2881 sem_ch3.adb: Minor reformatting.
2882
2883 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2884
2885 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
2886 that is a renaming must be derived like any other primitive operation,
2887 the renamed operation is not relevant to the derivation.
2888
2889 2010-09-10 Robert Dewar <dewar@adacore.com>
2890
2891 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
2892 * checks.adb: Minor reformatting.
2893
2894 2010-09-10 Robert Dewar <dewar@adacore.com>
2895
2896 * gnat_ugn.texi: Add section on intent of style checking options.
2897
2898 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2899
2900 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
2901
2902 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2903
2904 * sem_ch3.adb: Improve error message on derivation from class-wide type
2905
2906 2010-09-10 Steve Baird <baird@adacore.com>
2907
2908 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
2909 generation when Generate_SCIL is True.
2910
2911 2010-09-10 Geert Bosch <bosch@adacore.com>
2912
2913 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
2914 validity of executable name and removing any existing executable
2915 (Gnatlink): Call Check_Existing_Executable.
2916
2917 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2918
2919 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
2920 initialization of Task_Alternate_Stack here, cleaner since in case of
2921 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
2922 implicitly.
2923
2924 2010-09-10 Thomas Quinot <quinot@adacore.com>
2925
2926 * s-fileio.adb, a-dirval.adb: Minor reformatting.
2927
2928 2010-09-10 Emmanuel Briot <briot@adacore.com>
2929
2930 * prj-util.adb (Executable_Of): Fix CE when the project does not
2931 contain a Builder package.
2932
2933 2010-09-10 Vincent Celier <celier@adacore.com>
2934
2935 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
2936 to the project path, if Prefix and Target_Name are defined.
2937 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
2938
2939 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2940
2941 * checks.adb (Ensure_Valid): If the expression is a boolean expression
2942 or short-circuit operation, do no emit a validity check: only the
2943 elementary operands of the expression need checking.
2944
2945 2010-09-10 Ben Brosgol <brosgol@adacore.com>
2946
2947 * gnat_rm.texi: Document Short_Descriptors.
2948
2949 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2950
2951 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
2952 initialize to Null_Address.
2953 (Enter_Task): Do not set up an alternate stack for foreign threads.
2954
2955 2010-09-10 Robert Dewar <dewar@adacore.com>
2956
2957 * opt.adb (Short_Descriptors): New flag
2958 (Short_Descriptors_Config): New flag
2959 * opt.ads (Short_Descriptors): New flag
2960 (Short_Descriptors_Config): New flag
2961 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
2962 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
2963 (Analyze_Pragma): Implement Short_Descriptors pragma
2964 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
2965
2966 2010-09-10 Emmanuel Briot <briot@adacore.com>
2967
2968 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
2969 project's Executable_Suffix.
2970
2971 2010-09-10 Robert Dewar <dewar@adacore.com>
2972
2973 * g-pehage.ads: Minor reformatting
2974
2975 * gnat_ugn.texi: Clarifying comment on -gnatyc
2976 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
2977 arguments.
2978
2979 2010-09-10 Tristan Gingold <gingold@adacore.com>
2980
2981 * Make-generated.in (gnat.hlp): New rule.
2982
2983 2010-09-10 Emmanuel Briot <briot@adacore.com>
2984
2985 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
2986 Include_Suffix.
2987
2988 2010-09-10 Robert Dewar <dewar@adacore.com>
2989
2990 * einfo.adb: Minor code cleanup: Add assertion to
2991 Set_Corresponding_Protected_Entry.
2992
2993 2010-09-10 Bob Duff <duff@adacore.com>
2994
2995 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
2996 the output to standard output.
2997
2998 2010-09-09 Vincent Celier <celier@adacore.com>
2999
3000 * gnat_ugn.texi: Add documentation for new gnatmake switch
3001 --create-map-file.
3002 * make.adb (Map_File): New global variable to store the value of switch
3003 --create-map-file.
3004 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
3005 been specified.
3006 (Scan_Make_Arg): Recognize switch --create-map-file
3007 * makeutl.ads (Create_Map_File_Switch): New constant string for new
3008 gnatmake and gprbuild switch --create-map-file.
3009
3010 2010-09-09 Robert Dewar <dewar@adacore.com>
3011
3012 * sinput-p.ads: Minor comment update.
3013
3014 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3015
3016 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
3017 Entry_Call.State if needed so that the call is marked as cancelled by
3018 Check_Pending_Actions_For_Entry_Call.
3019 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
3020 this procedure may be called from a controlled operation
3021 (Initialize/Finalize).
3022
3023 2010-09-09 Vadim Godunko <godunko@adacore.com>
3024
3025 * impunit.adb: Correct spelling of package's name in the comment.
3026
3027 2010-09-09 Robert Dewar <dewar@adacore.com>
3028
3029 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
3030 Minor reformatting
3031
3032 2010-09-09 Robert Dewar <dewar@adacore.com>
3033
3034 * impunit.adb: Add entry for a-izteio.
3035 * checks.adb: Add comment.
3036 * debug.adb, exp_disp.adb: Minor reformatting.
3037 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
3038
3039 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3040
3041 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
3042 discriminant cannot be assumed to be the same value because they may
3043 refer to bounds of a component of two different instances of a
3044 discriminated type.
3045
3046 2010-09-09 Gary Dismukes <dismukes@adacore.com>
3047
3048 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
3049 operands of an operator to the type of an enclosing conversion, rewrite
3050 the operator so the conversion can't be flagged as redundant.
3051 Remove useless assignments to Typ and Rtyp.
3052
3053 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
3054
3055 * gnat_ugn.texi: Fix another long line.
3056
3057 2010-09-09 Bob Duff <duff@adacore.com>
3058
3059 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
3060 but never assigned.
3061
3062 2010-09-09 Matthew Heaney <heaney@adacore.com>
3063
3064 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
3065 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
3066 Replace_Element, Reverse_Elements, Swap): Change exception message to
3067 correctly indicate kind of tampering (cursor or element).
3068 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
3069 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
3070 Swap_Links, Replace_Element, Swap): Ditto.
3071 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
3072 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
3073 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
3074 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
3075 Generic_Replace_Element): Ditto
3076 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
3077 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
3078 Replace_Element): Ditto.
3079 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
3080 Symmetric_Difference, Union, Include, Replace): Ditto
3081
3082 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3083
3084 * sprint.adb (Write_Id): If the parent node is an expanded name, check
3085 that its entity_or_associated_node is an entity before writing it out.
3086 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
3087 constructors, there is no need for a dispatch table pointer because the
3088 table is fully inherited from the C++ code.
3089
3090 2010-09-09 Thomas Quinot <quinot@adacore.com>
3091
3092 * projects.texi: Fix wrong identifiers on package end lines in project
3093 files examples.
3094 * exp_ch6.adb: Minor reformatting.
3095
3096 2010-09-09 Tristan Gingold <gingold@adacore.com>
3097
3098 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
3099
3100 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
3101
3102 * gnat_ugn.texi: Fix description of -O3 optimization level.
3103
3104 2010-09-09 Yannick Moy <moy@adacore.com>
3105
3106 * a-cihama.adb, a-cohama.adb: Fix comments.
3107
3108 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3109
3110 * i-cexten.ads: Add comments.
3111 (Signed_128): New type, used by some C bindings.
3112 * debug.adb: Update comment.
3113
3114 2010-09-09 Sergey Rybin <rybin@adacore.com>
3115
3116 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
3117 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
3118 the tool should process Ada 2005 sources.
3119
3120 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3121
3122 * sem_ch12.adb (Remove_Parent): If the scope containing the child
3123 instance is a block, examine the enclosing scope to determine if it is
3124 a parent instance.
3125
3126 2010-09-09 Doug Rupp <rupp@adacore.com>
3127
3128 * sem_prag.adb (pragma Ident): Pass --identification= vice
3129 IDENTIFICATION=
3130 * gnatlink.adb (Linker_Options): Look for --identification= vice
3131 IDENTIFICATION=
3132
3133 2010-09-09 Gary Dismukes <dismukes@adacore.com>
3134
3135 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
3136 inserting and analyzing the object declaration for the temporary object
3137 created to hold a 'Old value, push the scope for the subprogram where
3138 the object is inserted, so that its Scope (and that of related objects)
3139 will be set properly.
3140
3141 2010-09-09 Vincent Celier <celier@adacore.com>
3142
3143 * prj.adb (Get_Object_Directory): Return object directory display name
3144 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
3145 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
3146 return this value, otherwise return the default for the platform.
3147
3148 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3149
3150 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
3151 dependencies. Remove handling of gnatlbr.
3152 Do not remove s-stratt-xdr for the run-time when installing.
3153
3154 2010-09-09 Robert Dewar <dewar@adacore.com>
3155
3156 * sem_attr.adb: Minor reformatting.
3157
3158 2010-09-09 Thomas Quinot <quinot@adacore.com>
3159
3160 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
3161 unsigned long, not an int.
3162
3163 2010-09-09 Vincent Celier <celier@adacore.com>
3164
3165 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
3166 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
3167 we are not checking for equality of path or file names.
3168
3169 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3170
3171 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
3172 array reference, reset the Analyzed flag so that it is properly
3173 expanded when the resulting object declaration is analyzed.
3174
3175 2010-09-09 Vincent Celier <celier@adacore.com>
3176
3177 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
3178 No_Source_File.
3179
3180 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
3181
3182 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
3183 VX_SPE_TASK option, so disable it.
3184
3185 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3186
3187 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
3188 main unit.
3189 (Is_Subunit_Of_Main): Handle null nodes properly.
3190
3191 2010-09-09 Robert Dewar <dewar@adacore.com>
3192
3193 * par-ch2.adb: Update comments.
3194
3195 2010-09-09 Ben Brosgol <brosgol@adacore.com>
3196
3197 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
3198
3199 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3200
3201 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
3202 do not generate an error for compatibility with legacy code.
3203 ignored when generating SCIL.
3204 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
3205
3206 2010-09-09 Thomas Quinot <quinot@adacore.com>
3207
3208 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
3209 s-strxdr.adb to s-stratt-xdr.adb
3210
3211 2010-09-09 Robert Dewar <dewar@adacore.com>
3212
3213 * ali-util.adb (Obsolescent_Check): Removed.
3214 * gprep.adb (Obsolescent_Check): Removed.
3215 Remove Obsolescent_Check parameter in Scng instantiation
3216 * prj-err.adb (Obsolescent_Check): Removed.
3217 * prj-err.ads (Obsolescent_Check): Removed.
3218 Remove Obsolescent_Check parameter in Scng instantiation
3219 * scans.ads (Based_Literal_Uses_Colon): New flag
3220 * scn.adb (Obsolscent_Check_Flag): Removed
3221 (Obsolscent_Check): Removed
3222 (Set_Obsolescent_Check): Removed
3223 (Post_Scan): Add handling for obsolescent features
3224 * scn.ads (Obsolscent_Check): Removed
3225 (Set_Obsolescent_Check): Removed
3226 (Post_Scan): Can no longer be inlined
3227 Remove Obsolescent_Check from instantiation of Scng
3228 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
3229 (Nlit): Remove handling of obsolescent check
3230 (Scan, case '%'): Remove handling of obsolescent check
3231 (Scan, case '|'): Call Post_Scan
3232 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
3233 * scng.ads Remove Obsolescent_Check argument from Scng generic
3234 (Post_Scan): Now called for Tok_Vertical_Bar
3235 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
3236
3237 2010-09-09 Doug Rupp <rupp@adacore.com>
3238
3239 * gnatlbr.adb: Removed.
3240 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
3241
3242 2010-09-09 Robert Dewar <dewar@adacore.com>
3243
3244 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
3245 conversions.
3246
3247 2010-09-09 Vincent Celier <celier@adacore.com>
3248
3249 * gnatlbr.adb: Remove redundant conversions.
3250
3251 2010-09-09 Vincent Celier <celier@adacore.com>
3252
3253 * prj-proc.adb: Minor comment spelling error fix.
3254 * osint.ads (Env_Vars_Case_Sensitive): Use function
3255 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
3256 compute value.
3257
3258 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3259
3260 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
3261 resolution of conditional expressions whose dependent expressions are
3262 anonymous access types.
3263
3264 2010-09-09 Robert Dewar <dewar@adacore.com>
3265
3266 * a-ststio.adb: Minor code reorganization.
3267 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
3268 conversion.
3269 * types.ads: Minor reformatting.
3270 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
3271 redundant conversions.
3272 * output.adb: Minor reformatting.
3273 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
3274 types.
3275 * opt.ads: Add pragma Ordered for Verbosity_Level.
3276 * prj.ads: Add pragma Ordered for type Verbosity.
3277
3278 2010-09-09 Vincent Celier <celier@adacore.com>
3279
3280 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
3281 System.Case_Util
3282 (Canonical_Case_Env_Var_Name): Ditto
3283
3284 2010-09-09 Bob Duff <duff@adacore.com>
3285
3286 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
3287
3288 2010-09-09 Robert Dewar <dewar@adacore.com>
3289
3290 * cstand.adb: Mark Boolean and Character types as Ordered
3291 * einfo.adb (Has_Pragma_Ordered): New flag
3292 * einfo.ads (Has_Pragma_Ordered): New flag
3293 * g-calend.ads: Mark Day_Name as Ordered
3294 * opt.ads: Mark Ada_Version_Type as Ordered
3295 (Warn_On_Unordered_Enumeration_Type): New flag
3296 * par-prag.adb: Add procdessing for pragma Ordered
3297 * s-ficobl.ads (Read_File_Mode): New subtype
3298 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
3299 * s-taskin.ads: Mark Entry_Call_State as ordered
3300 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
3301 Has_Pragma_Ordered.
3302 * sem_ch6.ads: Mark Conformance_Type as Ordered
3303 * sem_prag.adb: Implement pragma Ordered
3304 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
3305 (Resolve_Comparison_Op): Diagnose unordered comparison
3306 (Resolve_Range): Diagnose unordered range
3307 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
3308 -gnatw.u/U)
3309 * snames.ads-tmpl: Add entry for pragma Ordered
3310 * style.ads (Check_Enumeration_Subrange): Removed
3311 * styleg.adb (Check_Enumeration_Subrange): Removed
3312 * styleg.ads (Check_Enumeration_Subrange): Removed
3313 * stylesw.adb: Remove handling of -gnatyE switch
3314 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
3315 * vms_data.ads: Remove -gnatyE entries
3316 Add -gnatw.u entries
3317 * ug_words: Entries for -gnatw.u and -gnatw.U
3318 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
3319 * gnat_rm.texi: Document pragma Ordered.
3320 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
3321 * s-tpobop.adb: Remove comparison on unordered enumeration type.
3322
3323 2010-09-09 Vincent Celier <celier@adacore.com>
3324
3325 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
3326 for VMS and Windows, and 1 for all other platforms.
3327 * adaint.h: New function __gnat_get_env_vars_case_sensitive
3328 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
3329 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
3330 Canonical_Case_File_Name, as we are dealing with environment variables,
3331 not files.
3332
3333 2010-09-09 Robert Dewar <dewar@adacore.com>
3334
3335 * sem_util.adb: Minor reformatting
3336
3337 2010-09-09 Vincent Celier <celier@adacore.com>
3338
3339 * vms_data.ads: Add documentation for S_Make_Single.
3340
3341 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3342
3343 * sem_util.adb (Same_Object): include formal parameters.
3344
3345 2010-09-09 Vincent Celier <celier@adacore.com>
3346
3347 * make.adb (Queue): New package implementing a new impementation of the
3348 queue, taking into account the new switch --single-compile-per-obj-dir.
3349 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
3350 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
3351 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
3352 False.
3353 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
3354 switch --single-compile-per-obj-dir.
3355 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
3356 switch --single-compile-per-obj-dir.
3357 * gnat_ugn.texi: Add documentation for new gnatmake switch
3358 --single-compile-per-obj-dir.
3359
3360 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3361
3362 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
3363
3364 2010-09-09 Javier Miranda <miranda@adacore.com>
3365
3366 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
3367 (Replace_Type): Code cleanup.
3368 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
3369
3370 2010-09-09 Thomas Quinot <quinot@adacore.com>
3371
3372 * exp_ch8.adb: Minor reformatting.
3373
3374 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3375
3376 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
3377 Corresponding_Protected_Entry.
3378
3379 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3380
3381 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
3382 inequality, it is always rewritten as the negation of the corresponding
3383 equality operation.
3384 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
3385 the predefined equality of an untagged record, create a body at the
3386 point of the renaming, to capture the current meaning of equality for
3387 the type.
3388
3389 2010-09-09 Robert Dewar <dewar@adacore.com>
3390
3391 * sem.adb, sem_warn.adb: Minor reformatting.
3392
3393 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3394
3395 * sem_ch6.adb: Improve error message on untagged equality.
3396 * sem.adb (Semantics): Include subprogram bodies that act as spec.
3397
3398 2010-09-09 Javier Miranda <miranda@adacore.com>
3399
3400 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
3401
3402 2010-09-09 Robert Dewar <dewar@adacore.com>
3403
3404 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
3405
3406 2010-09-09 Robert Dewar <dewar@adacore.com>
3407
3408 * einfo.adb (Is_Aggregate_Type): New function.
3409 * einfo.ads (Aggregate_Kind): New enumeration subtype
3410 (Is_Aggregate_Type): New function.
3411 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
3412 Is_Aggregate_Typea.
3413
3414 2010-09-09 Robert Dewar <dewar@adacore.com>
3415
3416 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
3417 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
3418 where appropriate.
3419 * restrict.ads, restrict.adb: Ditto.
3420 (Restriction_Check_Needed): New function
3421
3422 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3423
3424 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
3425 Build_Master_Entity, to find the proper scope for the master entity of
3426 a type that may contain tasks, in the presence of transient scopes.
3427 * exp_ch9.adb (Build_Master_Entity) Use new function.
3428 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
3429
3430 2010-09-09 Vincent Celier <celier@adacore.com>
3431
3432 * prj-attr.adb: Add new attributes Leading_Library_Options and
3433 Linker'Leading_Switches.
3434 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
3435 Leading_Switches.
3436
3437 2010-09-09 Javier Miranda <miranda@adacore.com>
3438
3439 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
3440 dispatching primitive covers some interface primitive is incomplete.
3441 Replace such code by the invocation of a new subprogram that provides
3442 this functionality.
3443 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
3444 * sem_ch6.adb (Check_Missing_Return): Minor reformating
3445 (Check_Convention): Complete if-statement conditition when reporting
3446 errors (to avoid assertion failure).
3447 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
3448 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
3449 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
3450 overridden null interface primitives.
3451 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
3452 private type is an interface then use the parent of its full view to
3453 climb to its ancestor type.
3454 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
3455 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
3456 null interface primitives.
3457 (Is_Null_Interface_Primitive): New subprogram.
3458 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
3459 (Expand_Freeze_Record_Type): Do not generate specs of null interface
3460 subprograms because they are now generated by Analyze_Freeze_Entity.
3461
3462 2010-09-09 Robert Dewar <dewar@adacore.com>
3463
3464 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
3465
3466 2010-09-09 Robert Dewar <dewar@adacore.com>
3467
3468 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
3469 (Gen_Restrictions_C): Avoid explicit enumeration ranges
3470 (Set_String_Replace): New procedure
3471 * casing.ads (Known_Casing): New subtype declaration
3472 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
3473 declaration
3474 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
3475 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
3476 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
3477 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
3478 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
3479 ranges.
3480 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
3481 rule.
3482 * sem_type.adb (Is_Array_Class_Record_Type): New.
3483 * style.ads (Check_Enumeration_Subrange): New procedure
3484 * styleg.adb (Check_Enumeration_Subrange): New procedure
3485 * styleg.ads (Check_Enumeration_Subrange): New procedure
3486 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
3487 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
3488 * usage.adb: Add line for -gnatyE
3489 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
3490 Add missing entry for NOBOOLEAN_OPERATORS
3491 * gnat_ugn.texi: Add documentation for -gnatyE
3492
3493 2010-09-09 Robert Dewar <dewar@adacore.com>
3494
3495 * namet.adb (Initialize): Is now a dummy procedure
3496 (Reinitialize): New procedure
3497 Call Reinitialize from package initialization
3498 * namet.ads (Initialize): Is now a dummy procedure
3499 (Reinitialize): New procedure
3500 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
3501 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
3502 Namet.Initialize.
3503
3504 2010-09-09 Bob Duff <duff@adacore.com>
3505
3506 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
3507
3508 2010-09-09 Robert Dewar <dewar@adacore.com>
3509
3510 * s-bitops.adb (Raise_Error): Add exception message
3511
3512 2010-09-09 Robert Dewar <dewar@adacore.com>
3513
3514 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
3515 null statement after label.
3516 * sinfo.ads: Minor comment updates.
3517
3518 2010-09-09 Robert Dewar <dewar@adacore.com>
3519
3520 * nlists.ads, nlists.adb (In_Same_List): New function.
3521 Use Node_Or_Entity_Id where appropriate.
3522 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
3523
3524 2010-09-09 Robert Dewar <dewar@adacore.com>
3525
3526 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
3527 procedure.
3528 * sem_ch3.adb: Use Check_Wide_Character_Restriction
3529 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
3530 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
3531 (Find_Expanded_Name): Check violation of No_Wide_Characters
3532
3533 2010-09-09 Robert Dewar <dewar@adacore.com>
3534
3535 * par-ch5.adb: Minor reformatting.
3536
3537 2010-09-09 Robert Dewar <dewar@adacore.com>
3538
3539 * prj-env.adb: Minor code reorganization.
3540 * par-ch3.adb: Minor reformatting.
3541 * gcc-interface/Make-lang.in: Update dependencies.
3542
3543 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3544
3545 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
3546 a task declaration can be an entry body.
3547
3548 2010-09-09 Javier Miranda <miranda@adacore.com>
3549
3550 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
3551 tags of library level tagged types.
3552 (Make_Tags): Disable backend optimizations about aliasing for
3553 declarations of access to dispatch tables.
3554
3555 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3556
3557 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
3558 subtype for a null-excluding access type, recover the original
3559 subtype_mark to get the proper visibility on the original name.
3560
3561 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3562
3563 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
3564 create the primitive equality operation for an untagged record. The
3565 operation is the predefined equality if no record component has a
3566 user-defined equality, or if there is a user-defined equality for the
3567 type as a whole, or when the type is derived and it has an inherited
3568 equality. Otherwise the body of the operations is built as for tagged
3569 types.
3570 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
3571 (Make_Eq_Body): New function to create the expanded body of the
3572 equality operation for tagged and untagged records. In both cases the
3573 operation composes, and the primitive operation of each record
3574 component is used to generate the equality function for the type.
3575 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
3576 has an abstract equality defined, replace its call with a
3577 Raise_Program_Error.
3578 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
3579 user-defined equality operator for an untagged record type does not
3580 happen after type is frozen, and appears in the visible part if partial
3581 view of type is not limited.
3582
3583 2010-09-09 Tristan Gingold <gingold@adacore.com>
3584
3585 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
3586
3587 2010-09-09 Bob Duff <duff@adacore.com>
3588
3589 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
3590
3591 2010-09-09 Pascal Obry <obry@adacore.com>
3592
3593 * gnat_ugn.texi: Update doc on windows related topics.
3594
3595 2010-09-09 Geert Bosch <bosch@adacore.com>
3596
3597 * s-fatgen.adb: Update comments.
3598
3599 2010-09-09 Robert Dewar <dewar@adacore.com>
3600
3601 * par-ch4.adb (Box_Error): New procedure.
3602
3603 2010-09-09 Thomas Quinot <quinot@adacore.com>
3604
3605 * sem.adb: Minor reformatting.
3606
3607 2010-09-09 Pascal Obry <obry@adacore.com>
3608
3609 * prj-env.adb: Style fix, use /and then/ and /or else/.
3610 * gnat_ugn.texi: Fix typos.
3611
3612 2010-09-03 Joseph Myers <joseph@codesourcery.com>
3613
3614 PR ada/45499
3615 * gcc-interface/misc.c (gnat_init_options): Allow options with
3616 empty canonical form. Generate a single save_argv element from -I
3617 options.
3618
3619 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
3620
3621 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
3622 Attach fake PARM_DECLs to the topmost block of the function.
3623
3624 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
3625
3626 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
3627 for the call to a function whose return type was unconstrained.
3628
3629 2010-08-30 Olivier Hainque <hainque@adacore.com>
3630
3631 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
3632 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
3633 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
3634
3635 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
3636
3637 * tracebak.c: Fix typo in comment.
3638
3639 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3640
3641 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
3642 * gcc-interface/trans.c: Likewise.
3643 * gcc-interface/utils.c: Likewise.
3644
3645 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
3646
3647 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
3648
3649 2010-08-10 Robert Dewar <dewar@adacore.com>
3650
3651 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
3652 * sem_util.adb: Minor reformatting.
3653
3654 2010-08-10 Javier Miranda <miranda@adacore.com>
3655
3656 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
3657 constructors that leave the object partially initialized.
3658 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
3659 that copies from parent of Typ the dispatch table slots of inherited
3660 C++ primitives. It handles primary and secondary dispatch tables.
3661 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
3662 use this attribute with E_Variable entities.
3663 (Set_Is_Tag): Relax assertion to allow its use with variables that
3664 store tags.
3665 (Set_Related_Type): Relax assertion to allow its use with variables
3666 that store the tag of a C++ class.
3667 (Write_26_Field_Name): Remove Related_Type.
3668 (Write_27_Field_Name): Add Related_Type.
3669 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
3670 with E_Variable entities.
3671 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
3672 pragma.
3673 * sem_util.adb (Search_Tag): Add missing support for CPP types.
3674 (Enclosing_CPP_Parent): New subprogram.
3675 (Has_Suffix): New subprogram.
3676 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
3677 closest ancestor of a type that is a C++ type.
3678 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
3679 internal entities.
3680 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
3681 instance in derivations of C++ types.
3682 * exp_tss.adb (CPP_Init_Proc): New subprogram.
3683 (Is_CPP_Init_Proc): New subprogram.
3684 (Set_TSS): Handle new C++ init routines.
3685 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
3686 dispatch tables.
3687 (CPP_Init_Proc): New subprogram.
3688 (Is_CPP_Init_Proc): New subprogram.
3689 * exp_disp.adb (CPP_Num_Prims): New subprogram.
3690 (Has_CPP_Constructors): New subprogram.
3691 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
3692 initialize slots located in the C++ part of the dispatch table.
3693 (Make_Tags): For CPP types declare variables used by the IP routine to
3694 store the C++ tag values after the first invocation of the C++
3695 constructor.
3696 (Build_CPP_Init_DT): New subprogram.
3697 (Set_CPP_Constructors): New implementation that builds an IP for each
3698 CPP constructor. These IP are wrappers of the C++ constructors that,
3699 after the first invocation of the constructor, read the C++ tags from
3700 the object and save them locally. These copies of the C++ tags are used
3701 by the IC routines to initialize tables of Ada derivations of CPP
3702 types.
3703 (Write_DT): Indicate what primitives are imported from C++
3704 * exp_disp.ads (CPP_Num_Prims): New subprogram.
3705 (Has_CPP_Constructors): New subprogram.
3706 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
3707 invoke the IC routine to inherit the slots of the parents.
3708 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
3709 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
3710 (Is_Variable_Size_Record): Factorize code calling
3711 Is_Variable_Size_Array.
3712 (Build_CPP_Init_Procedure): New subprogram that builds the tree
3713 corresponding to the procedure that initializes the C++ part of the
3714 dispatch table of an Ada tagged type that is a derivation of a CPP
3715 type.
3716 (Build_Init_Procedure): Adding documentation plus code reorganization
3717 to leave more clear the construction of the IP with C++ types.
3718 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
3719 it cannot be called after Make_Tags has been invoked.
3720 (Inherit_CPP_Tag): Removed.
3721 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
3722 located at variable offset.
3723 * freeze.ads: Minor reformating.
3724 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
3725 available in gdb.
3726 * gcc-interface/Make-lang.in: Update dependencies.
3727
3728 2010-08-10 Robert Dewar <dewar@adacore.com>
3729
3730 * a-chahan.ads: Add comments on handling of obsolescent entries.
3731 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
3732 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
3733 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
3734 * sem_attr.adb (Analyze_Access_Attribute): Call
3735 Check_Obsolescent_2005_Entity to check for access to obsolescent
3736 Ada.Characters.Handling subprogram.
3737 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
3738 type is obsolescent in Ada 2005.
3739 (Analyze_Attribute, case Constrained): Better placement of flag when
3740 flagged as obsolescent feature.
3741 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
3742 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
3743 is an obsolescent feature.
3744 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
3745 feature.
3746 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
3747 Check_Obsolescent_2005_Entity to check for renaming obsolete
3748 Ada.Characters.Handling subprogram.
3749 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
3750 for obsolescent restrictions in Ada 2005.
3751 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
3752 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
3753 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
3754 check for obsolescent references to Ada.Characters.Handling subprograms
3755
3756 2010-08-10 Robert Dewar <dewar@adacore.com>
3757
3758 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
3759
3760 2010-08-10 Robert Dewar <dewar@adacore.com>
3761
3762 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
3763 * par-ch4.adb: Change wording of Ada 2012 messages
3764 * vms_data.ads: Add VMS entries for /2005, /12, /2012
3765
3766 2010-08-10 Robert Dewar <dewar@adacore.com>
3767
3768 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
3769 codes in the range 16#80#..16#7FF#.
3770 * sem_ch10.adb: Minor reformatting.
3771
3772 2010-08-10 Arnaud Charlet <charlet@adacore.com>
3773
3774 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
3775 generate ali files in CodePeer mode, so that a gnatmake -c -k will
3776 proceed further when possible
3777 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
3778 messages when ignoring representation clauses (-gnatI).
3779
3780 2010-08-10 Ed Schonberg <schonberg@adacore.com>
3781
3782 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
3783 constant-fold discriminant reference if the constraint is an object
3784 with non-static expression. Expression may contain volatile references
3785 in the presence of renamings.
3786
3787 2010-08-10 Vincent Celier <celier@adacore.com>
3788
3789 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
3790 returns Index.
3791 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
3792 index for an associative array where it is allowed.
3793
3794 2010-08-10 Thomas Quinot <quinot@adacore.com>
3795
3796 * exp_attr.adb: Add comments.
3797
3798 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
3799
3800 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
3801
3802 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
3803
3804 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
3805
3806 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
3807
3808 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
3809 (build_vms_descriptor): Likewise.
3810
3811 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3812
3813 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
3814 (build_vms_descriptor32): Adjust calls to it for new parameter.
3815 (build_vms_descriptor): Likewise.
3816
3817 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3818
3819 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
3820 (build_variant_list): Take and return a VEC instead of a tree.
3821 (create_variant_part_from): Take a VEC instead of a tree for
3822 variant_list. Adjust accordingly.
3823 (gnat_to_gnu_entity): Adjust for changes to previous functions.
3824
3825 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
3826
3827 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
3828 of alloca.
3829 (components_to_record): Likewise.
3830 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
3831 * gcc-interface/utils.c (max_size): Likewise.
3832 (build_vms_descriptor32): Likewise.
3833 (build_vms_descriptor): Likewise.
3834
3835 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
3836
3837 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
3838 (build_subst_list): Return a VEC instead of a tree.
3839 (build_variant_list): Take a VEC for subst_list. Adjust
3840 accordingly.
3841 (create_field_decl_from): Likewise.
3842 (create_variant_part_from): Likewise.
3843 (copy_and_substitute_in_size): Likewise.
3844 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
3845 Free the built vector.
3846
3847 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
3848
3849 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
3850 allocator for large imported objects.
3851
3852 2010-08-05 Robert Dewar <dewar@adacore.com>
3853
3854 * gnat1drv.adb: Minor reformatting.
3855
3856 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3857
3858 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
3859 instantiation, process its body before the spec of the main unit,
3860 because it may contain subprograms invoked in the spec of main.
3861 * einfo.ads: Add documention of delayed freeze.
3862
3863 2010-08-05 Vincent Celier <celier@adacore.com>
3864
3865 * prj-nmsc.adb (Process_Linker): Take into account new values for
3866 attribute Response_File_Format.
3867 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
3868 GCC_Object_List and GCC_Option_List.
3869
3870 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3871
3872 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
3873 selected component that denotes a discriminant if it is the
3874 discriminant of a component of an unconstrained record type.
3875
3876 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3877
3878 * exp_util.adb (Insert_Actions): If the action appears within a
3879 conditional expression that is already analyzed, insert action further
3880 out.
3881
3882 2010-08-05 Robert Dewar <dewar@adacore.com>
3883
3884 * exp_ch4.adb: Minor reformatting.
3885
3886 2010-08-05 Thomas Quinot <quinot@adacore.com>
3887
3888 * exp_ch4.adb: Minor reformatting
3889 * gnat1drv.adb: Minor reformatting.
3890 Minor code reorganization (use Nkind_In).
3891
3892 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3893
3894 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
3895 determine whether the expression in an address clause for an
3896 initialized object must be constant. Code moved from freeze.adb.
3897 (Remove_Side_Effects): When the temporary is initialized with a
3898 reference, indicate that the temporary is a constant as done in all
3899 other cases.
3900 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
3901 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
3902 If object does not need a constant address, remove side effects from
3903 address expression, so it is elaborated at the point of the address
3904 clause and not at the freeze point of the object, so that elaboration
3905 order is respected.
3906
3907 2010-08-05 Vincent Celier <celier@adacore.com>
3908
3909 * prj.adb (Is_Compilable): Return False for header files of non Ada
3910 languages.
3911
3912 2010-08-05 Emmanuel Briot <briot@adacore.com>
3913
3914 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
3915 exec directory as a warning rather than an error.
3916
3917 2010-08-05 Thomas Quinot <quinot@adacore.com>
3918
3919 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
3920 reformatting.
3921
3922 2010-08-05 Steve Baird <baird@adacore.com>
3923
3924 * exp_util.adb (Remove_Side_Effects): An access value which designates
3925 a volatile object of a nonvolatile type is prohibited.
3926 Do not call Make_Reference to construct a reference to such an object.
3927
3928 2010-08-05 Robert Dewar <dewar@adacore.com>
3929
3930 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
3931 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
3932 a-suewen.adb, a-suewen.ads: New files.
3933 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
3934 encoding packages.
3935 * sem_elab.adb: Minor reformatting.
3936
3937 2010-08-05 Arnaud Charlet <charlet@adacore.com>
3938
3939 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
3940 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
3941 in case of null Comp.
3942
3943 2010-08-05 Robert Dewar <dewar@adacore.com>
3944
3945 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
3946
3947 2010-08-05 Gary Dismukes <dismukes@adacore.com>
3948
3949 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
3950 nested access type whose designated type has tasks or is a protected
3951 object when the restrictions No_Task_Hierarchy or
3952 No_Local_Protected_Objects apply. Add ??? comment.
3953 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
3954 type is not a library-level type and No_Local_Protected_Objects applies.
3955 (Analyze_Task_Type): Give a warning when a task type is not a
3956 library-level type and No_Task_Hierarchy applies.
3957
3958 2010-08-05 Arnaud Charlet <charlet@adacore.com>
3959
3960 * sem.adb: Minor reformatting
3961 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
3962 mode, not useful.
3963
3964 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
3965
3966 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
3967 include expr.h.
3968 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
3969 for the debug-only entity.
3970 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
3971
3972 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3973
3974 * gcc-interface/lang-specs.h: Don't pass -a options.
3975
3976 2010-07-28 Joseph Myers <joseph@codesourcery.com>
3977
3978 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
3979 options. Check canonical_option_num_elements on options copied.
3980
3981 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3982
3983 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
3984 return value type. Don't check for missing arguments here.
3985
3986 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3987
3988 * gcc-interface/misc.c (gnat_option_lang_mask): New.
3989 (gnat_init_options): Update prototype. Reconstruct argv array
3990 from decoded options.
3991
3992 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
3993
3994 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
3995 case, merge the alias set of the old pointer type.
3996
3997 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
3998
3999 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
4000 and recurse only for multidimensional array types instead.
4001
4002 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
4003
4004 PR ada/44892
4005 * gcc-interface/utils.c (convert): Fix thinko in test.
4006 (unchecked_convert): When converting from a scalar type to a type with
4007 a different size, pad to have the same size on both sides.
4008
4009 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
4010
4011 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
4012 equality for the component type of array types.
4013
4014 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4015
4016 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4017 * gcc-interface/trans.c: Likewise.
4018 * gcc-interface/utils.c: Likewise.
4019 * gcc-interface/utils2.c: Likewise.
4020
4021 2010-07-13 Laurent GUERBY <laurent@guerby.net>
4022
4023 PR bootstrap/44458
4024 * gcc-interface/targtyps.c: Include tm_p.h.
4025 * gcc-interface/Make-lang.in: Update dependencies.
4026
4027 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
4028
4029 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
4030 CALL_EXPR.
4031
4032 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4033
4034 * gcc-interface/utils.c: Include diagnostic-core.h in every file
4035 that includes toplev.h.
4036
4037 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
4038
4039 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
4040 Branch to common code handling the alignment of discrete types.
4041 <E_Signed_Integer_Type>: Likewise.
4042 <E_Modular_Integer_Type>: Likewise.
4043
4044 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
4045
4046 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
4047 (gnat_handle_option): Allocate only one element for gnat_argv.
4048 (gnat_init): Do not populate gnat_argv.
4049
4050 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4051
4052 * gcc-interface/trans.c: Do not include tree-flow.h.
4053 * gcc-interface/Make-lang.in: Adjust dependencies.
4054
4055 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4056
4057 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
4058 of a TREE_LIST. Update comment.
4059 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
4060 Adjust call to gnat_build_constructor.
4061 (Attribute_to_gnu): Likewise.
4062 (gnat_to_gnu): Likewise.
4063 (pos_to_constructor): Likewise.
4064 (extract_values): Likewise.
4065 * gcc-interface/utils.c (build_template): Likewise.
4066 (convert_vms_descriptor64): Likewise.
4067 (convert_vms_descriptor32): Likewise.
4068 (convert_to_fat_pointer): Likewise.
4069 (convert): Likewise.
4070 (unchecked_convert): Likewise.
4071 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
4072 * gcc-interface/utils2.c (build_allocator): Likewise.
4073 (fill_vms_descriptor): Likewise.
4074 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
4075 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
4076 instead of TREE_LISTs.
4077
4078 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4079
4080 * gcc-interface/misc.c: Do not include except.h.
4081 * gcc-interface/Make-lang.in: Update dependencies.
4082
4083 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
4084
4085 * gcc-interface/trans.c: Include tree-flow.h.
4086 (gnu_switch_label_stack): Delete.
4087 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
4088 its associated block cannot fall through. Do not emit the final label
4089 if no cases branch to it.
4090 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
4091
4092 2010-06-23 Thomas Quinot <quinot@adacore.com>
4093
4094 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
4095 reference to a protected subprogram outside of the protected's scope,
4096 ensure the corresponding external subprogram is frozen before the
4097 reference.
4098
4099 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4100
4101 * sem_prag.adb: Fix typo in error message.
4102 * sem.adb: Refine previous change.
4103
4104 2010-06-23 Robert Dewar <dewar@adacore.com>
4105
4106 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
4107 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
4108 Implement Ada 2012 string encoding packages.
4109
4110 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4111
4112 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
4113 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
4114 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
4115 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
4116 files.
4117 * gcc-interface/Makefile.in: Enable use of above files.
4118
4119 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4120
4121 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
4122 of address clauses if if Ignore_Rep_Clauses is active.
4123 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
4124 remove address clause from tree so that it does not reach the backend.
4125
4126 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4127
4128 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
4129 expand 'Valid from user code in CodePeer mode, will be handled by the
4130 back-end directly.
4131
4132 2010-06-23 Bob Duff <duff@adacore.com>
4133
4134 * g-comlin.ads: Minor comment improvements.
4135
4136 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4137
4138 * sem_res.adb (Uses_SS): The expression that initializes a controlled
4139 component of a record type may be a user-defined operator that is
4140 rewritten as a function call.
4141
4142 2010-06-23 Bob Duff <duff@adacore.com>
4143
4144 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
4145
4146 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
4147
4148 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
4149 label to the new sequence of statements. Set the sloc of the raise
4150 statement onto the new goto statements.
4151
4152 2010-06-23 Robert Dewar <dewar@adacore.com>
4153
4154 * a-stuten.ads, a-stuten.adb: New files.
4155 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
4156 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
4157
4158 2010-06-23 Robert Dewar <dewar@adacore.com>
4159
4160 * gnat_ugn.texi: Add documentation of -gnat12 switch
4161 Add documentation of -gnatX switch.
4162
4163 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4164
4165 * inline.ads: Include the current Ada_Version in the info for pending
4166 instance bodies, so that declaration and body are compiled with the
4167 same Ada_Version.
4168 * inline.adb: Move with_clause for Opt to spec.
4169 * sem_ch12.adb (Analyze_Package_Instantiation,
4170 Analyze_Subprogram_Instantiation): Save current Ada_Version in
4171 Pending_Instantiation information.
4172 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
4173 Inline_Package_Body): Use the Ada_Version present in the body
4174 information.
4175
4176 2010-06-23 Robert Dewar <dewar@adacore.com>
4177
4178 * usage.adb: Add documentation for -gnat12 switch.
4179 * errout.ads: Add VMS alias entry for -gnat12 switch
4180 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
4181 Add documentation for pragma Extensions_Allowed.
4182 * opt.ads: Add entry for Ada 2012 mode.
4183 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
4184 features.
4185 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
4186 Ada_2012.
4187 * sem_ch13.adb: Add handling for Ada 2012 mode.
4188 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
4189 * switch-c.adb: Add handling for -gnat12 switch.
4190 Implement -gnat2005 and -gnat2012.
4191 * usage.adb: Add documentation for -gnat12 switch.
4192 * vms_data.ads: Add /12 switch for Ada 2012 mode.
4193
4194 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4195
4196 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
4197 No_Task_Hierarchy restriction. Add comment.
4198 * exp_ch9.adb, exp_ch3.adb: Update comments.
4199
4200 2010-06-23 Robert Dewar <dewar@adacore.com>
4201
4202 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
4203 * sem_res.adb: Add comments.
4204 * sem_util.adb: Minor reformatting. Add comments.
4205 Change increment on Actuals_In_Call table.
4206 * opt.ads: Minor: add 'constant'.
4207
4208 2010-06-23 Javier Miranda <miranda@adacore.com>
4209
4210 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
4211 TSD to Null_Address if No_Dispatching_Calls is active.
4212
4213 2010-06-23 Vincent Celier <celier@adacore.com>
4214
4215 * a-comlin.ads: Indicate that use of this package is not supported
4216 during the elaboration of an auto-initialized Stand-Alone Library.
4217
4218 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4219
4220 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
4221 alignment clause on a record type to determine if a component may be
4222 misaligned. The decision must be taken in the back-end where target
4223 alignment information is known.
4224
4225 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4226
4227 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
4228 systematically in CodePeer mode to simplify generated code.
4229 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
4230 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
4231 No_Task_Hierarchy is set instead of crasshing.
4232
4233 2010-06-23 Thomas Quinot <quinot@adacore.com>
4234
4235 * sem_util.adb: Minor code cleanup: test for proper entity instead of
4236 testing just Chars attribute when checking whether a given scope is
4237 System.
4238 * exp_ch4.adb, einfo.adb: Minor reformatting.
4239
4240 2010-06-23 Vincent Celier <celier@adacore.com>
4241
4242 PR ada/44633
4243 * switch-m.adb (Normalize_Compiler_Switches): Take into account
4244 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
4245 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
4246
4247 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4248
4249 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
4250 operation with a universal real operand, and the right operand is a
4251 range with universal bounds, find unique fixed point that may be
4252 candidate, and warn appropriately.
4253
4254 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4255
4256 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
4257 properly the rare cases where VMS operators are visible through
4258 Extend_System, but the default System is being used and Address is a
4259 private type.
4260 * sem_util.adb: Widen predicate Is_VMS_Operator.
4261
4262 2010-06-23 Vincent Celier <celier@adacore.com>
4263
4264 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
4265 and -gnateS.
4266
4267 2010-06-23 Olivier Hainque <hainque@adacore.com>
4268
4269 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
4270 Interface_Name as foreign. These are GCC builtin imports for
4271 which Ada specific processing doesn't apply.
4272
4273 2010-06-23 Thomas Quinot <quinot@adacore.com>
4274
4275 * sem_ch12.adb: Minor reformatting.
4276
4277 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4278
4279 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
4280 determine whether an intrinsic subprogram is VMS specific.
4281
4282 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4283
4284 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
4285 is present in the entity.
4286
4287 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4288
4289 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
4290 Fix handling of parameters.
4291 Add protection against unexpected cases.
4292 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
4293 access level, since "A" suffix is already used elsewhere. Similarly,
4294 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
4295 for xxx'Class.
4296
4297 2010-06-23 Thomas Quinot <quinot@adacore.com>
4298
4299 * sem_util.adb, sem_util.ads: Minor reformatting.
4300
4301 2010-06-23 Vincent Celier <celier@adacore.com>
4302
4303 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
4304 the previous behavior of gprclean when there are missing files.
4305
4306 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4307
4308 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
4309 generic body is not a fatal error.
4310 (Mark_Context): Handle properly names of child units.
4311 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
4312 instantiations.
4313
4314 2010-06-23 Vincent Celier <celier@adacore.com>
4315
4316 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
4317 non-empty line.
4318
4319 2010-06-23 Bob Duff <duff@adacore.com>
4320
4321 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
4322 Memory_Space, because CPU_Time doesn't seem to provide any significant
4323 speed advantage in practice. Cleanup: Get rid of constant
4324 Default_Optimization; doesn't seem to add anything. Use case
4325 statements instead of if statements; seems cleaner.
4326
4327 2010-06-23 Olivier Hainque <hainque@adacore.com>
4328
4329 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
4330 Wshadow instead of Wextra to guard warning on absence of internal
4331 builtin decl for an import. Fix use of quote in warning text.
4332 (intrin_arglists_compatible_p): Remove processing of integer trailing
4333 args on the Ada side. Fix use of literal > in warning text.
4334 (intrin_return_compatible_p): Never warn on "function imported as
4335 procedure". Defer the void/void case to the common type compatibility
4336 check.
4337 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
4338 of GCC builtin imports.
4339
4340 2010-06-23 Olivier Hainque <hainque@adacore.com>
4341
4342 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
4343 helper for ...
4344 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
4345 functions, helpers for ...
4346 (intrin_profiles_compatible_p): New function, replacement for ...
4347 (compatible_signatures_p): Removed.
4348 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
4349 attempt to bind an unregistered builtin function. When we have
4350 one, use it and warn on profile incompatibilities.
4351
4352 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4353
4354 * gcc-interface/Make-lang.in: Update dependencies.
4355
4356 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4357
4358 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
4359 for a coextension in an object declaration is a concatenation, treat
4360 coextension as dynamic.
4361
4362 2010-06-23 Javier Miranda <miranda@adacore.com>
4363
4364 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
4365 internal entities are added to the scope of the tagged type.
4366 (Derive_Subprograms): Do not stop derivation when we find the first
4367 internal entity that has attribute Interface_Alias. After the change
4368 done to Override_Dispatching_Operations it is no longer true that
4369 these primirives are always located at the end of the list of
4370 primitives.
4371 * einfo.ads (Primitive_Operations): Add documentation.
4372 * exp_disp.adb (Write_DT): Improve output adding to the name of the
4373 primitive a prefix indicating its corresponding tagged type.
4374 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
4375 entity covers the primitive of an interface that is not an ancestor of
4376 this tagged type then the new primitive is added at the end of the list
4377 of primitives. Required to fulfill the C++ ABI.
4378
4379 2010-06-23 Javier Miranda <miranda@adacore.com>
4380
4381 * atree.ads (Set_Reporting_Proc): New subprogram.
4382 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
4383 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
4384 to routines of package Scil_ll by indirect call to the registered
4385 subprogram.
4386 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
4387 that is invoked when a node is allocated, replaced or rewritten.
4388 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
4389 the SCIL node. Used as argument for Set_Reporting_Proc.
4390 (Initialize): Register Copy_SCIL_Node as the reporting routine that
4391 is invoked by atree.
4392
4393 2010-06-23 Thomas Quinot <quinot@adacore.com>
4394
4395 * sem_ch3.ads: Minor reformatting.
4396
4397 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4398
4399 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
4400 always analyze the generic body and instance, because it may be needed
4401 downstream.
4402 (Mark_Context): Prepend the with clauses for needed generic units, so
4403 they appear in a better order for CodePeer.
4404 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
4405
4406 2010-06-23 Emmanuel Briot <briot@adacore.com>
4407
4408 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
4409
4410 2010-06-23 Robert Dewar <dewar@adacore.com>
4411
4412 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
4413
4414 2010-06-23 Thomas Quinot <quinot@adacore.com>
4415
4416 * a-tags.ads: Fix description of TSD structure.
4417
4418 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4419
4420 * sem_ch12.adb (Mark_Context): When indicating that the body of a
4421 generic unit is needed prior to the unit containing an instantiation,
4422 search recursively the context of the generic to add other generic
4423 bodies that may be instantiated indirectly through the current instance.
4424
4425 2010-06-23 Robert Dewar <dewar@adacore.com>
4426
4427 * freeze.adb: Minor reformatting.
4428
4429 2010-06-23 Bob Duff <duff@adacore.com>
4430
4431 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
4432
4433 2010-06-23 Vincent Celier <celier@adacore.com>
4434
4435 * make.adb (Compile_Sources): Complete previous change.
4436
4437 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4438
4439 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
4440 Constrained extra formal.
4441
4442 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4443
4444 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
4445 Initialize_Scalars are enabled, compile the generated equality function
4446 for a composite type with full checks enabled, so that validity checks
4447 are performed on individual components.
4448
4449 2010-06-23 Emmanuel Briot <briot@adacore.com>
4450
4451 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
4452 Missing_Source_Files.
4453
4454 2010-06-23 Robert Dewar <dewar@adacore.com>
4455
4456 * exp_ch3.adb, exp_util.adb: Minor reformatting.
4457
4458 2010-06-23 Jose Ruiz <ruiz@adacore.com>
4459
4460 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
4461 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
4462 Clock (without delays) use a run time which is properly initialized.
4463
4464 2010-06-23 Vincent Celier <celier@adacore.com>
4465
4466 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
4467 when -f -u and a main is specified on the command line. However,
4468 attempt to compile even when the ALI file is read-only when
4469 Must_Compile is True.
4470
4471 2010-06-23 Thomas Quinot <quinot@adacore.com>
4472
4473 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
4474
4475 2010-06-23 Javier Miranda <miranda@adacore.com>
4476
4477 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
4478 entities for parent types that are interfaces. Needed in generics to
4479 handle formals that implement interfaces.
4480 (Derive_Subprograms): Add assertion for derivation of tagged types that
4481 do not cover interfaces. For generics, complete code that handles
4482 derivation of type that covers interfaces because the previous
4483 condition was weak (it required only name consistency; arguments were
4484 not checked). Add new code to locate primitives covering interfaces
4485 defined in generic units or instantiatons.
4486 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
4487 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
4488 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
4489 interfaces that are parents of the type because they share the primary
4490 dispatch table.
4491 (Register_Primitive): Do not register primitives of interfaces that
4492 are parents of the type.
4493 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
4494 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
4495 primitives skip primitives of interfaces that are parents of the type.
4496
4497 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4498
4499 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
4500 attribute cannot be constant-folded if an index type is a formal type,
4501 or is derived from one.
4502 * checks.adb (Determine_Range): ditto.
4503
4504 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4505
4506 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
4507
4508 2010-06-23 Bob Duff <duff@adacore.com>
4509
4510 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
4511 (Insert): Disallow nul characters.
4512 (misc output routines): Assert no nul characters.
4513
4514 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4515
4516 * exp_ch4.adb: Use predefined unsigned type in all cases.
4517
4518 2010-06-23 Bob Duff <duff@adacore.com>
4519
4520 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
4521 * g-pehage.ads: Minor comment fixes.
4522 * g-pehage.adb: Minor: Add some additional debugging printouts under
4523 Verbose flag.
4524
4525 2010-06-23 Robert Dewar <dewar@adacore.com>
4526
4527 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
4528 (Worse_Choice): Always prefer Pure/Preelab.
4529
4530 2010-06-23 Vincent Celier <celier@adacore.com>
4531
4532 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
4533
4534 2010-06-23 Robert Dewar <dewar@adacore.com>
4535
4536 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
4537 checking returns in generic case.
4538 (Check_Missing_Return): New procedure.
4539
4540 2010-06-23 Robert Dewar <dewar@adacore.com>
4541
4542 * bindgen.adb, switch-b.adb: Minor reformatting.
4543
4544 2010-06-23 Javier Miranda <miranda@adacore.com>
4545
4546 * frontend.adb (Frontend): Add call to initialize the new package
4547 SCIL_LL.
4548 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
4549 Adjust_SCIL_Node.
4550 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
4551 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
4552 Adjust_SCIL_Node.
4553 * exp_util.adb (Insert_Actions): Remove code for
4554 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4555 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
4556 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
4557 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
4558 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
4559 * sinfo.ads (SCIL_Related_Node): Field removed.
4560 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
4561 (N_SCIL_Tag_Init): Node removed.
4562 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
4563 (Check_SCIL_Node): New implementation.
4564 (Find_SCIL_Node): Removed.
4565 * sem.adb (Analyze): Remove management of
4566 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4567 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
4568 Adjust_SCIL_Node.
4569 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
4570 Set_SCIL_Related_Node and avoid adding the SCIL node before the
4571 referenced node using Insert_Action because this is not longer
4572 required.
4573 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
4574 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
4575 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
4576 Adjust_SCIL_Node.
4577 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
4578 because we no longer require to generate the SCIL node before the call.
4579 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
4580 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
4581 nodes before the referenced node using Insert_Action because this
4582 is not longer required.
4583 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
4584 update the SCIL_Node field.
4585 * sprint.adb (Sprint_Node_Actual): Remove code for
4586 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
4587 * treepr.adb (Print_Node): Print the SCIL node field (if available).
4588 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
4589 SCIL_Tag_Init nodes.
4590 * scil_ll.ads, scil_ll.adb: New files.
4591 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4592 dependencies.
4593
4594 2010-06-23 Robert Dewar <dewar@adacore.com>
4595
4596 * sem_ch6.adb: Minor reformatting.
4597
4598 2010-06-23 Doug Rupp <rupp@adacore.com>
4599
4600 * bindusg.adb (Display): Write -Hnn line.
4601 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
4602 necessary.
4603 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
4604 valid values to 32 and 64.
4605 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
4606 ENABLE, DISABLE as valid settings.
4607 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
4608 * opt.ads (Heap_Size): New global variable.
4609 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
4610 TARGET_MALLOC64 check. Fix comment.
4611
4612 2010-06-23 Robert Dewar <dewar@adacore.com>
4613
4614 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
4615 reformatting. Add comments.
4616 * errout.adb (Finalize): Properly adjust warning count when deleting
4617 continuations.
4618
4619 2010-06-22 Robert Dewar <dewar@adacore.com>
4620
4621 * errout.adb (Finalize): Set Prev pointers.
4622 (Finalize): Delete continuations for deletion by warnings off(str).
4623 * erroutc.ads: Add Prev pointer to error message structure.
4624
4625 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4626
4627 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
4628 child unit, examine context of parent units to locate instantiated
4629 generics whose bodies may be needed.
4630 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
4631 with_clause for the instantiated generic, examine the context of its
4632 parents, to set Withed_Body flag, so that it can be visited earlier.
4633 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
4634 an unsigned type, use a type of the proper size for the intermediate
4635 value, to prevent alignment problems on unchecked conversion.
4636
4637 2010-06-22 Geert Bosch <bosch@adacore.com>
4638
4639 * s-rannum.ads Change Generator type to be self-referential to allow
4640 Random to update its argument. Use "in" mode for the generator in the
4641 Reset procedures to allow them to be called from the Ada.Numerics
4642 packages without tricks.
4643 * s-rannum.adb: Use the self-referencing argument to get write access
4644 to the internal state of the random generator.
4645 * a-nudira.ads: Make Generator a derived type of
4646 System.Random_Numbers.Generator.
4647 * a-nudira.adb: Remove use of 'Unrestricted_Access.
4648 Put subprograms in alpha order and add headers.
4649 * g-mbdira.ads: Change Generator type to be self-referential.
4650 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
4651
4652 2010-06-22 Robert Dewar <dewar@adacore.com>
4653
4654 * freeze.adb: Minor reformatting
4655 Minor code reorganization (use Nkind_In and Ekind_In).
4656
4657 2010-06-22 Bob Duff <duff@adacore.com>
4658
4659 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
4660 -gnatc when a file is compiled that we cannot generate code for, not
4661 helpful and confusing.
4662
4663 2010-06-22 Vincent Celier <celier@adacore.com>
4664
4665 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
4666 switches -gnatknn.
4667
4668 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4669
4670 * s-rannum.adb: Replace constants with commented symbols.
4671 * s-rannum.ads: Explain significance of the initial value of the data
4672 structure.
4673
4674 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4675
4676 * a-ngcoty.adb: Clarify comment.
4677
4678 2010-06-22 Gary Dismukes <dismukes@adacore.com>
4679
4680 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
4681 expansion for indexing packed arrays with small power-of-2 component
4682 sizes when the target is AAMP.
4683 (Expand_Packed_Element_Reference): Return without expansion for
4684 indexing packed arrays with small power-of-2 component sizes when the
4685 target is AAMP.
4686
4687 2010-06-22 Geert Bosch <bosch@adacore.com>
4688
4689 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
4690 Float'Range.
4691
4692 2010-06-22 Robert Dewar <dewar@adacore.com>
4693
4694 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
4695 updates.
4696
4697 2010-06-22 Doug Rupp <rupp@adacore.com>
4698
4699 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
4700 packages.
4701 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
4702 (pragma Ident): Add a default ident string in the private part.
4703
4704 2010-06-22 Robert Dewar <dewar@adacore.com>
4705
4706 * cstand.adb: Minor reformatting.
4707
4708 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4709
4710 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
4711 recognize the Shift and Rotation intrinsics that are known to the
4712 compiler but have no interface name.
4713
4714 2010-06-22 Geert Bosch <bosch@adacore.com>
4715
4716 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
4717 scaling in case of overflow or NaN results.
4718
4719 2010-06-22 Robert Dewar <dewar@adacore.com>
4720
4721 * cstand.adb: Complete previous change.
4722 * g-dirope.ads: Add comment.
4723 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
4724
4725 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4726
4727 * cstand.adb: Add tree nodes for pragma Pack on string types.
4728
4729 2010-06-22 Javier Miranda <miranda@adacore.com>
4730
4731 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
4732 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
4733 formal of a primitive.
4734 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
4735 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
4736 formal of a primitive.
4737 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
4738 to obtain the last formal of a primitive.
4739
4740 2010-06-22 Geert Bosch <bosch@adacore.com>
4741
4742 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
4743 depending on __EMX__ or MSDOS being defined.
4744 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
4745 * a-excpol-abort.adb: Update comment indicating users of the file.
4746 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
4747 Windows.
4748 * env.c: Remove empty conditional for MSDOS.
4749 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
4750 of OS/2 in comment.
4751
4752 2010-06-22 Robert Dewar <dewar@adacore.com>
4753
4754 * s-rannum.adb: Minor reformatting.
4755
4756 2010-06-22 Javier Miranda <miranda@adacore.com>
4757
4758 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
4759 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
4760 package Sem_Util to package Sem_Aux.
4761
4762 2010-06-22 Javier Miranda <miranda@adacore.com>
4763
4764 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
4765 remove useless restriction on imported routines when building the
4766 dispatch tables.
4767
4768 2010-06-22 Robert Dewar <dewar@adacore.com>
4769
4770 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
4771 types.
4772
4773 2010-06-22 Javier Miranda <miranda@adacore.com>
4774
4775 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
4776 generic subprogram declarations to ensure proper context. Add missing
4777 support for generic actuals.
4778 (Try_Primitive_Operation): Add missing support for concurrent types
4779 that have no Corresponding_Record_Type. Required to diagnose errors
4780 compiling
4781 generics or when compiling with no code generation (-gnatc).
4782 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
4783 the corresponding record type.
4784 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
4785 documentation. Do minimum decoration when processing a primitive of a
4786 concurrent tagged type that covers interfaces. Required to diagnose
4787 errors in the Object.Operation notation compiling generics or under
4788 -gnatc.
4789 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
4790 propagation of attribute Interface_List to the corresponding record.
4791 (Expand_N_Task_Type_Declaration): Code cleanup.
4792 (Expand_N_Protected_Type_Declaration): Code cleanup.
4793
4794 2010-06-22 Matthew Heaney <heaney@adacore.com>
4795
4796 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
4797
4798 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4799
4800 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
4801 that is able to produce all representable floating-point numbers in the
4802 unit interval. Remove template parameter Shift_Right, no longer used.
4803 * gnat_rm.texi: Document the period of the pseudo-random number
4804 generator under the description of its algorithm.
4805 * gcc-interface/Make-lang.in: Update dependencies.
4806
4807 2010-06-22 Thomas Quinot <quinot@adacore.com>
4808
4809 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
4810 reference to discriminant (can be an expanded name as well as an
4811 identifier).
4812
4813 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4814
4815 * exp_ch6.adb: Clarify comment.
4816
4817 2010-06-22 Geert Bosch <bosch@adacore.com>
4818
4819 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
4820 with decimal small as decimal types, avoiding FP arithmetic.
4821 (Has_Decimal_Small): New function.
4822 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
4823 fixed point types.
4824 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
4825 callers to call the new function in Einfo that takes the entity as
4826 parameter.
4827
4828 2010-06-22 Robert Dewar <dewar@adacore.com>
4829
4830 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
4831
4832 2010-06-22 Thomas Quinot <quinot@adacore.com>
4833
4834 * sem_elab.adb: Minor reformatting.
4835
4836 2010-06-22 Vincent Celier <celier@adacore.com>
4837
4838 * gnatsym.adb: Put the object files in the table in increasing
4839 aphabetical order of base names.
4840
4841 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4842
4843 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
4844 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
4845 the corresponding discriminal within a record declaration.
4846
4847 2010-06-22 Thomas Quinot <quinot@adacore.com>
4848
4849 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
4850 expression referring to a discriminal of the type of the aggregate (not
4851 a discriminal of some other unrelated type), and the prefix in the
4852 generated selected component must come from Lhs, not Obj.
4853
4854 2010-06-22 Thomas Quinot <quinot@adacore.com>
4855
4856 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
4857 when to freeze the parent type.
4858
4859 2010-06-22 Robert Dewar <dewar@adacore.com>
4860
4861 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
4862 exp_aggr.adb: Minor reformatting.
4863 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
4864 GNAT.MBSS_Float_Random.
4865 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
4866
4867 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4868
4869 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
4870 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
4871 (Random_Float_Template, Random): New method of creating
4872 uniform floating-point variables that allow the creation of all machine
4873 values in [0 .. 1).
4874
4875 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
4876
4877 2010-06-22 Gary Dismukes <dismukes@adacore.com>
4878
4879 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
4880 to abstract targets to check that the type is tagged and comes from
4881 source, rather than only testing for targets of interface types. Remove
4882 premature return.
4883
4884 2010-06-22 Vincent Celier <celier@adacore.com>
4885
4886 * vms_data.ads: Modify the declarations of qualifiers
4887 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
4888 without error.
4889
4890 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4891
4892 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
4893 expansion is disabled.
4894
4895 2010-06-22 Robert Dewar <dewar@adacore.com>
4896
4897 * makeusg.adb: Minor reformatting.
4898
4899 2010-06-22 Robert Dewar <dewar@adacore.com>
4900
4901 * types.ads: (Dint): Removed, no longer used anywhere.
4902 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
4903 (UI_Mul): Avoid use of UI_From_Dint.
4904 (UI_From_Dint): Removed, not used.
4905 * uintp.ads (UI_From_Dint): Removed, not used.
4906 (Uint_Min/Max_Simple_Mul): New constants.
4907
4908 2010-06-22 Vincent Celier <celier@adacore.com>
4909
4910 * clean.adb (Parse_Cmd_Line): Recognize switch
4911 --unchecked-shared-lib-imports.
4912 (Usage): Add line for switch --unchecked-shared-lib-imports
4913 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
4914 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
4915 moved from GPR_Util.
4916 * switch-m.adb (Scan_Make_Switches): Recognize switch
4917 --unchecked-shared-lib-imports.
4918 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
4919 * gnat_ugn.texi: Add documentation for new switch
4920 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
4921
4922 2010-06-22 Javier Miranda <miranda@adacore.com>
4923
4924 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
4925 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
4926 this patch replaces duplication of code that traverses the chain of
4927 aliased primitives by a call to routine Ultimate_Alias that
4928 provides this functionality.
4929
4930 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4931
4932 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
4933 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
4934 Warnings Off/On.
4935
4936 2010-06-22 Thomas Quinot <quinot@adacore.com>
4937
4938 * einfo.ads: Minor reformatting.
4939
4940 2010-06-22 Javier Miranda <miranda@adacore.com>
4941
4942 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
4943 eliminated primitives.
4944 (Make_DT): Avoid referencing eliminated primitives.
4945 (Register_Primitive): Do not register eliminated primitives in the
4946 dispatch table. Required to add this functionality when the program is
4947 compiled without static dispatch tables (-gnatd.t)
4948
4949 2010-06-22 Emmanuel Briot <briot@adacore.com>
4950
4951 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
4952 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
4953 warnings on use of internal GNAT units.
4954
4955 2010-06-22 Jose Ruiz <ruiz@adacore.com>
4956
4957 * s-taprop-vxworks.adb (Set_Priority): Update comments.
4958
4959 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4960
4961 * s-rannum.adb: Make stylistic change to remove mystery constant in
4962 Extract_Value. Image_Numeral_Length: new symbolic constant.
4963
4964 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4965
4966 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
4967 Is_Synchronized_Interface, Is_Task_Interface into computable
4968 predicates, to free three flags in entity nodes.
4969 * sem_ch3.adb: Remove setting of these flags.
4970
4971 2010-06-22 Robert Dewar <dewar@adacore.com>
4972
4973 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
4974 reformatting.
4975 * s-taprop-vxworks.adb: Add comment for Set_Priority.
4976 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
4977 * projects.texi: Move @cindex to the left margin, since otherwise we
4978 are missing entries in the index.
4979
4980 2010-06-22 Emmanuel Briot <briot@adacore.com>
4981
4982 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
4983 packages from the GNAT hierarchy instead of System when possible.
4984 * gcc-interface/Make-lang.in: Update dependencies.
4985
4986 2010-06-22 Jose Ruiz <ruiz@adacore.com>
4987
4988 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
4989 previously in place to reorder the ready queue when a task drops its
4990 priority due to the loss of inherited priority.
4991
4992 2010-06-22 Vincent Celier <celier@adacore.com>
4993
4994 * projects.texi: Minor spelling error fixes.
4995 Minor reformatting.
4996
4997 2010-06-22 Emmanuel Briot <briot@adacore.com>
4998
4999 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
5000 warnings for some with clauses.
5001
5002 2010-06-22 Robert Dewar <dewar@adacore.com>
5003
5004 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
5005 test to catch more cases where first subtype is the results we want.
5006 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
5007 error case, since Errout will now handle this correctly.
5008 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
5009 Update dependencies.
5010
5011 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5012
5013 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
5014 when calling Make_Temporary.
5015
5016 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5017
5018 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
5019 subprogram can be associated with an entry body.
5020
5021 2010-06-22 Robert Dewar <dewar@adacore.com>
5022
5023 * scos.ads: Add note on membership test handling.
5024
5025 2010-06-22 Vincent Celier <celier@adacore.com>
5026
5027 * projects.texi: Minor spelling fixes.
5028 Minor reformatting.
5029
5030 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5031
5032 * s-rannum.adb: Correct off-by-one error in Extract_Value.
5033
5034 2010-06-22 Vincent Celier <celier@adacore.com>
5035
5036 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
5037 argument.
5038 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
5039 gcc command if it is too long.
5040
5041 2010-06-22 Robert Dewar <dewar@adacore.com>
5042
5043 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
5044
5045 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5046
5047 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
5048 calling Make_Temporary.
5049
5050 2010-06-22 Robert Dewar <dewar@adacore.com>
5051
5052 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
5053
5054 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5055
5056 * sem_res.adb: Additional special-case for VMS.
5057
5058 2010-06-22 Vincent Celier <celier@adacore.com>
5059
5060 * gnatsym.adb: Minor comment fix.
5061
5062 2010-06-22 Vincent Celier <celier@adacore.com>
5063
5064 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
5065
5066 2010-06-22 Robert Dewar <dewar@adacore.com>
5067
5068 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
5069 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
5070 Ada 95 mode as an implementation defined attribute.
5071
5072 2010-06-22 Vincent Celier <celier@adacore.com>
5073
5074 * bindusg.adb (Display): Update line for -R
5075 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
5076 generated files when -R is used.
5077
5078 2010-06-22 Vincent Celier <celier@adacore.com>
5079
5080 * prj-nmsc.adb (Lib_Data_Table): New table.
5081 (Check_Library_Attributes): Check if the same library name is used in
5082 two different projects that do not extend each other.
5083
5084 2010-06-22 Robert Dewar <dewar@adacore.com>
5085
5086 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
5087
5088 2010-06-22 Vincent Celier <celier@adacore.com>
5089
5090 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
5091 empty, make it the current working directory.
5092
5093 2010-06-22 Thomas Quinot <quinot@adacore.com>
5094
5095 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
5096 private type with discriminants, make sure the parent type is frozen.
5097
5098 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
5099
5100 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
5101 with packed array references specially.
5102 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
5103 to a component of a bit packed array if it is the prefix of 'Bit.
5104 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
5105 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
5106 'Bit reference, where the prefix involves a packed array reference.
5107 (Get_Base_And_Bit_Offset): New helper, extracted from...
5108 (Expand_Packed_Address_Reference): ...here. Call above procedure to
5109 get the outer object and offset expression.
5110
5111 2010-06-22 Thomas Quinot <quinot@adacore.com>
5112
5113 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
5114 * einfo.adb (Related_Expression, Set_Related_Expression): Add
5115 assertions.
5116
5117 2010-06-22 Javier Miranda <miranda@adacore.com>
5118
5119 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
5120 reorganization to properly check if the operation has been inherited as
5121 an abstract operation.
5122
5123 2010-06-22 Ed Falis <falis@adacore.com>
5124
5125 * s-osinte-vxworks.ads: Complete previous change.
5126
5127 2010-06-22 Thomas Quinot <quinot@adacore.com>
5128
5129 * sem_res.adb: Add comment.
5130 * projects.texi, gnat_ugn.texi: Remove macro.
5131
5132 2010-06-22 Vincent Celier <celier@adacore.com>
5133
5134 * prj-attr.adb: Remove project level attribute Main_Language.
5135
5136 2010-06-22 Robert Dewar <dewar@adacore.com>
5137
5138 * switch-b.adb, osint-b.adb: Minor reformatting.
5139
5140 2010-06-22 Pascal Obry <obry@adacore.com>
5141
5142 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
5143 vector if previous send was not fully successful. If only part of
5144 the vector data was sent, we exit the loop.
5145
5146 2010-06-22 Thomas Quinot <quinot@adacore.com>
5147
5148 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
5149 error reporting with generic types.
5150
5151 2010-06-22 Thomas Quinot <quinot@adacore.com>
5152
5153 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
5154 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
5155 vms_data.ads: Add a new command line switch -A to gnatbind to output
5156 the list of all ALI files for the partition.
5157
5158 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5159
5160 * s-osinte-vxworks.ads: Fix casing.
5161 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
5162 change: Interfaces.C does not provide a long_long type.
5163
5164 2010-06-22 Emmanuel Briot <briot@adacore.com>
5165
5166 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
5167 native user's guide, since this document contains the two versions.
5168 * gcc-interface/Make-lang.in: Update doc dependencies.
5169
5170 2010-06-22 Robert Dewar <dewar@adacore.com>
5171
5172 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
5173
5174 2010-06-22 Emmanuel Briot <briot@adacore.com>
5175
5176 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
5177 not build this file on its own (only through gnat_ugn.texi).
5178 Remove macro definitions and insert simpler version in gnat_ugn.texi.
5179
5180 2010-06-22 Robert Dewar <dewar@adacore.com>
5181
5182 * ali-util.ads: Minor comment update.
5183 * g-socthi-mingw.adb: Minor reformatting.
5184
5185 2010-06-22 Ed Falis <falis@adacore.com>
5186
5187 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
5188 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
5189 for specific versions of VxWorks.
5190
5191 2010-06-22 Emmanuel Briot <briot@adacore.com>
5192
5193 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
5194 related sections from user's guide and reference manual, since they
5195 have now been merged together into a separate document (projects.texi).
5196 This removes a lot of duplication where attributes where described
5197 in several places.
5198 The grammar for the project files is now in each of the sections
5199 (packages,expressions,...) instead of being duplicates in two other
5200 sections (one in the user's guide that contained the full grammar,
5201 and various sections in the rm that contained extracts of the same
5202 grammar).
5203 Added the full list of all supported attributes, since existing lists
5204 were incomplete
5205 Rename "associative array" into "indexed attribute"
5206 Remove sections that were duplicates ("External References in
5207 Project Files" and "External Values", and "Project Extensions"
5208 for instance). The list of valid packages in project files is now in
5209 a single place.
5210
5211 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5212
5213 * sem_ch3.adb (Add_Internal_Interface_Entities): If
5214 Find_Primitive_Covering_Interface does not find the operation, it may
5215 be because of a name conflict between the inherited operation and a
5216 local non-overloadable name. In that case look for the operation among
5217 the primitive operations of the type. This search must succeed
5218 regardless of visibility.
5219
5220 2010-06-22 Pascal Obry <obry@adacore.com>
5221
5222 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
5223 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
5224 recvmsg emulation.
5225
5226 2010-06-22 Robert Dewar <dewar@adacore.com>
5227
5228 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
5229 malformed tree.
5230 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
5231 Ditto.
5232
5233 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5234
5235 * s-intman-vxworks.ads: Code clean up.
5236
5237 2010-06-22 Thomas Quinot <quinot@adacore.com>
5238
5239 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
5240 dereference, construct actual subtype of designated object to generate
5241 proper bounds checks.
5242
5243 2010-06-22 Thomas Quinot <quinot@adacore.com>
5244
5245 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
5246 Read_Withed_ALIs, which is more descriptive.
5247
5248 2010-06-22 Pascal Obry <obry@adacore.com>
5249
5250 * g-sothco.ads: Minor reformatting.
5251 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
5252 C_Sendmsg implementation.
5253 (C_Sendmsg): Do not use lock (not needed).
5254 (C_Recvmsg): Likewise and also do not wait for incoming data.
5255
5256 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5257
5258 * uintp.adb: Fix scope error in operator call.
5259
5260 2010-06-22 Vincent Celier <celier@adacore.com>
5261
5262 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
5263 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
5264 autoconfiguration is needed, fail indicating that no config project
5265 file can be found, as there is no autoconfiguration on VMS.
5266
5267 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5268
5269 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
5270 for an operator in a functional notation, when operands are universal.
5271
5272 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5273
5274 * gcc-interface/Make-lang.in: Update dependencies.
5275
5276 2010-06-22 Robert Dewar <dewar@adacore.com>
5277
5278 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
5279 name.
5280 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
5281 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
5282 style check.
5283 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
5284 literals.
5285
5286 2010-06-22 Vincent Celier <celier@adacore.com>
5287
5288 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
5289 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
5290
5291 2010-06-22 Pascal Obry <obry@adacore.com>
5292
5293 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
5294 Windows.
5295 (C_Recvmsg): Make sure the routine is atomic. Also fully
5296 fill vectors in the proper order.
5297 (C_Sendmsg): Make sure the routine is atomic.
5298
5299 2010-06-22 Robert Dewar <dewar@adacore.com>
5300
5301 * sem_ch8.adb: Update comment.
5302 * sem_res.adb: Minor code reorganization (use Ekind_In).
5303
5304 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5305
5306 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
5307 name is a call, use the number of actuals to determine whether this is
5308 a binary or unary operator, rather than relying on later information
5309 to resolve the overload.
5310
5311 2010-06-22 Robert Dewar <dewar@adacore.com>
5312
5313 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
5314
5315 2010-06-22 Robert Dewar <dewar@adacore.com>
5316
5317 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
5318 * sem_eval.adb: Minor reformatting.
5319
5320 2010-06-22 Vincent Celier <celier@adacore.com>
5321
5322 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
5323 to gnatlink, except on Open VMS.
5324 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
5325 object directories if -nostdlib is used.
5326
5327 2010-06-22 Robert Dewar <dewar@adacore.com>
5328
5329 * sem_util.adb (Is_Delegate): Put in proper alpha order.
5330 * sem_eval.adb: Minor reformatting.
5331
5332 2010-06-22 Robert Dewar <dewar@adacore.com>
5333
5334 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
5335 * exp_aggr.adb: Minor comment changes and reformatting.
5336 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
5337 order.
5338 * sem_util.ads: Add some missing pragma Inline's.
5339
5340 2010-06-22 Thomas Quinot <quinot@adacore.com>
5341
5342 * sem_util.adb (Build_Actual_Subtype): Record original expression in
5343 Related_Expression attribute of the constructed subtype.
5344 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
5345 Node24 on types for...
5346 (Related_Expression): Make attribute available on types as well.
5347
5348 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5349
5350 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
5351 of Directly_Designated_Type when the type argument is an access type.
5352 (Find_Interface_Tag): Retrieve Designated_Type instead of
5353 Directly_Designated_Type when the type argument is an access type.
5354 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
5355 Directly_Designated_Type of each access discriminant.
5356 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
5357 instead of Directly_Designated_Type when the operand and target types
5358 are access types.
5359
5360 2010-06-22 Thomas Quinot <quinot@adacore.com>
5361
5362 * exp_aggr.adb (Flatten): Return False if one choice is statically
5363 known to be out of bounds.
5364
5365 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5366
5367 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
5368 a parameterless function call, preserve parentheses of original
5369 expression, for proper handling by pretty printer.
5370 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
5371 procedure, to handle quietly identifiers that have no entity names.
5372 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
5373 elsif_part is missing, it has been rewritten as a nested if, and there
5374 is no useful information on the current value of the variable.
5375
5376 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5377
5378 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
5379 discriminals to the current scope.
5380 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
5381 scope, which could overwrite a different already set value.
5382
5383 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5384
5385 * sem_res.adb (Valid_Conversion): If expression is a predefined
5386 operator, use sloc of type of interpretation to improve error message
5387 when operand is of some derived type.
5388 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
5389
5390 2010-06-22 Emmanuel Briot <briot@adacore.com>
5391
5392 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
5393 that it can set out parameters as well. When a process has died, reset
5394 its Input_Fd to Invalid_Fd, so that when using multiple processes we
5395 can find out which process has died.
5396
5397 2010-06-22 Thomas Quinot <quinot@adacore.com>
5398
5399 * sem_eval.adb (Find_Universal_Operator_Type): New
5400 subprogram to identify the operand type of an operator on universal
5401 operands, when an explicit scope indication is present. Diagnose the
5402 case where such a call is ambiguous.
5403 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
5404 Use the above to identify the operand type so it can be properly
5405 frozen.
5406 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
5407 type, done in an arbitrary, possibly incorrect type (the presence of
5408 some numeric type in the scope is checked for legality, but when more
5409 than one such type is in the scope, we just pick a random one, not
5410 necessarily the expected one).
5411 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
5412 subprogram.
5413
5414 2010-06-22 Robert Dewar <dewar@adacore.com>
5415
5416 * sem_eval.adb: Minor reformatting.
5417
5418 2010-06-22 Robert Dewar <dewar@adacore.com>
5419
5420 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
5421 Expression_With_Actions to clean up the code generated when folding
5422 constant expressions.
5423
5424 2010-06-22 Vincent Celier <celier@adacore.com>
5425
5426 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
5427 Has_Process.
5428
5429 2010-06-22 Vincent Celier <celier@adacore.com>
5430
5431 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
5432 found, check if it's path has aready been found, whatever its index.
5433
5434 2010-06-22 Robert Dewar <dewar@adacore.com>
5435
5436 * atree.adb, gnatbind.adb: Minor reformatting.
5437 Minor code reorganization.
5438
5439 2010-06-21 Robert Dewar <dewar@adacore.com>
5440
5441 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
5442 known at compile time.
5443
5444 2010-06-21 Gary Dismukes <dismukes@adacore.com>
5445
5446 * atree.adb: Fix comment typo.
5447
5448 2010-06-21 Ed Schonberg <schonberg@adacore.com>
5449
5450 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
5451 whether a universal arithmetic expression in a conversion, which is
5452 rewritten from a function call with an expanded name, is ambiguous.
5453
5454 2010-06-21 Vincent Celier <celier@adacore.com>
5455
5456 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
5457 source files in specified list of sources.
5458 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
5459 are never used.
5460 (Add_Source): Set the Location of the new source
5461 (Process_Exceptions_File_Based): Call Add_Source with the Location
5462 (Get_Sources_From_File): If an exception is found, set its Listed to
5463 True
5464 (Find_Sources): When Source_Files is specified, if an exception is
5465 found, set its Listed to True. Remove any exception that is not in a
5466 specified list of sources.
5467 * prj.ads (Source_Data): New component Location
5468
5469 2010-06-21 Vincent Celier <celier@adacore.com>
5470
5471 * gnatbind.adb (Closure_Sources): Global table, moved from block.
5472
5473 2010-06-21 Thomas Quinot <quinot@adacore.com>
5474
5475 * sem_res.adb: Minor reformatting.
5476 * atree.adb: New debugging hook "rr" for node rewrites.
5477
5478 2010-06-21 Robert Dewar <dewar@adacore.com>
5479
5480 * g-expect.ads, g-expect.adb: Minor reformatting.
5481
5482 2010-06-21 Emmanuel Briot <briot@adacore.com>
5483
5484 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
5485
5486 2010-06-21 Arnaud Charlet <charlet@adacore.com>
5487
5488 * gcc-interface/Make-lang.in: Update dependencies.
5489
5490 2010-06-21 Thomas Quinot <quinot@adacore.com>
5491
5492 * bindgen.ads: Update comments.
5493
5494 2010-06-21 Vincent Celier <celier@adacore.com>
5495
5496 * gnatbind.adb: Suppress dupicates when listing the sources in the
5497 closure (switch -R).
5498
5499 2010-06-21 Emmanuel Briot <briot@adacore.com>
5500
5501 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
5502 is too small.
5503
5504 2010-06-21 Emmanuel Briot <briot@adacore.com>
5505
5506 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
5507 New subprograms.
5508 (Expect_Internal): No longer raises an exception, so that it can set
5509 out parameters as well. When a process has died, reset its Input_Fd
5510 to Invalid_Fd, so that when using multiple processes we can find out
5511 which process has died.
5512
5513 2010-06-21 Robert Dewar <dewar@adacore.com>
5514
5515 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
5516 checks.adb, sem_res.adb: Minor reformatting. Add comments.
5517
5518 2010-06-21 Ed Schonberg <schonberg@adacore.com>
5519
5520 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
5521 rederivation associated with a full declaration in a private part, and
5522 there is a partial view that derives the same parent subprogram, the
5523 new entity does not become visible. This check must be applied to
5524 interface operations as well.
5525
5526 2010-06-21 Thomas Quinot <quinot@adacore.com>
5527
5528 * checks.adb: Add comments.
5529 * prj-nmsc.adb: Minor reformatting.
5530
5531 2010-06-21 Thomas Quinot <quinot@adacore.com>
5532
5533 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
5534 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
5535 extract bounds, to ensure that we get the proper captured values,
5536 rather than an expression that may have changed value since the point
5537 where the subtype was elaborated.
5538 (Find_Body_Discriminal): New utility subprogram to share code
5539 between...
5540 (Eval_Attribute): For the case of a subtype bound that references a
5541 discriminant of the current concurrent type, insert appropriate
5542 discriminal reference.
5543 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
5544 requeue to an entry in a family in the current task, use corresponding
5545 body discriminal.
5546 (Analyze_Accept_Statement): Rely on expansion of attribute references
5547 to insert proper discriminal references in range check for entry in
5548 family.
5549
5550 2010-06-21 Emmanuel Briot <briot@adacore.com>
5551
5552 * s-regpat.adb (Compile): Fix handling of big patterns.
5553
5554 2010-06-21 Robert Dewar <dewar@adacore.com>
5555
5556 * a-tifiio.adb: Minor reformatting.
5557
5558 2010-06-21 Pascal Obry <obry@adacore.com>
5559
5560 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
5561 path to open it.
5562
5563 2010-06-21 Javier Miranda <miranda@adacore.com>
5564
5565 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
5566 external name.
5567
5568 2010-06-21 Ed Schonberg <schonberg@adacore.com>
5569
5570 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
5571 to hold the result, indicate that the target of the declaration does
5572 not need an initialization, to prevent spurious errors when
5573 Initialize_Scalars is enabled.
5574
5575 2010-06-21 Ed Schonberg <schonberg@adacore.com>
5576
5577 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
5578 Fore is not bound by line length. The Fore parameter of the internal
5579 procedure that performs the operation is an integer.
5580
5581 2010-06-21 Thomas Quinot <quinot@adacore.com>
5582
5583 * sem_res.adb, checks.adb: Minor reformatting.
5584
5585 2010-06-21 Emmanuel Briot <briot@adacore.com>
5586
5587 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
5588 into Get_Next.
5589 (Insert_Operator_Before): New subprogram, avoids duplicated code
5590 (Compile): Avoid doing two compilations when the pattern matcher ends
5591 up being small.
5592
5593 2010-06-21 Emmanuel Briot <briot@adacore.com>
5594
5595 * s-regpat.adb: Improve debug traces
5596 (Dump): Change output format to keep it smaller.
5597
5598 2010-06-21 Javier Miranda <miranda@adacore.com>
5599
5600 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
5601 output to the output file when this routine completes its work.
5602
5603 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
5604
5605 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
5606 for loop. Call build_constructor_from_list directly in the CICO case.
5607
5608 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5609
5610 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
5611 declaration appears in the same unit and ealier than the renamed
5612 entity, retain generated body to prevent order-of-elaboration issues in
5613 gigi.
5614
5615 2010-06-18 Arnaud Charlet <charlet@adacore.com>
5616
5617 * s-tpoben.adb: Update comments.
5618
5619 2010-06-18 Robert Dewar <dewar@adacore.com>
5620
5621 * debug.adb: Minor comment change.
5622
5623 2010-06-18 Javier Miranda <miranda@adacore.com>
5624
5625 * exp_cg.adb: Code clean up.
5626 * debug.adb: Complete documentation of switch -gnatd.Z.
5627 * gcc-interface/misc.c (callgraph_info_file): Declare.
5628
5629 2010-06-18 Javier Miranda <miranda@adacore.com>
5630
5631 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
5632
5633 2010-06-18 Thomas Quinot <quinot@adacore.com>
5634
5635 * sprint.ads: Minor reformatting.
5636 * output.ads: Update obsolete comment.
5637
5638 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5639
5640 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
5641 an external intrinsic operation (e.g. a GCC numeric function) indicate
5642 that the renaming entity has the same characteristics, so a call to it
5643 is properly expanded.
5644
5645 2010-06-18 Javier Miranda <miranda@adacore.com>
5646
5647 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
5648 support for dispatch table/callgraph info generation.
5649 * gcc-interface/Make-lang.in: Update dependencies.
5650
5651 2010-06-18 Robert Dewar <dewar@adacore.com>
5652
5653 * exp_ch6.adb: Minor reformatting.
5654 * gnatname.adb: Add comment.
5655
5656 2010-06-18 Vincent Celier <celier@adacore.com>
5657
5658 * gnatname.adb (Scan_Args): When --and is used, make sure that the
5659 dynamic tables in the newly allocated Argument_Data are properly
5660 initialized.
5661
5662 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
5663
5664 * gnat1drv.adb: Fix comment.
5665
5666 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5667
5668 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
5669 renaming, re-expand the call with the renamed subprogram if that one
5670 is marked inlined as well.
5671
5672 2010-06-18 Gary Dismukes <dismukes@adacore.com>
5673
5674 * gnat1drv.adb (Adjust_Global_Switches): Enable
5675 Use_Expression_With_Actions for AAMP and VM targets.
5676
5677 2010-06-18 Vincent Celier <celier@adacore.com>
5678
5679 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
5680
5681 2010-06-18 Thomas Quinot <quinot@adacore.com>
5682
5683 * exp_ch4.adb: Minor reformatting.
5684
5685 2010-06-18 Javier Miranda <miranda@adacore.com>
5686
5687 * debug.ads Add documentation on -gnatd.Z.
5688
5689 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5690
5691 * sem_elim.adb: Proper error message on improperly eliminated instances
5692
5693 2010-06-18 Vincent Celier <celier@adacore.com>
5694
5695 * prj.ads (Response_File_Format): New value GCC.
5696
5697 2010-06-18 Thomas Quinot <quinot@adacore.com>
5698
5699 * gnat1drv.adb: Minor reformatting.
5700
5701 2010-06-18 Robert Dewar <dewar@adacore.com>
5702
5703 * make.adb, sem_cat.adb: Minor reformatting.
5704 * sem_eval.adb: Fix typos.
5705
5706 2010-06-18 Pascal Obry <obry@adacore.com>
5707
5708 * prj-nmsc.adb: Fix source filenames casing in debug output.
5709
5710 2010-06-18 Robert Dewar <dewar@adacore.com>
5711
5712 * gnatcmd.adb: Minor reformatting.
5713
5714 2010-06-18 Robert Dewar <dewar@adacore.com>
5715
5716 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
5717 condition and both sub-expressions are static (and result is selected
5718 expression).
5719
5720 2010-06-18 Robert Dewar <dewar@adacore.com>
5721
5722 * g-pehage.adb: Minor reformatting
5723
5724 2010-06-18 Pascal Obry <obry@adacore.com>
5725
5726 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
5727 source hash table.
5728
5729 2010-06-18 Arnaud Charlet <charlet@adacore.com>
5730
5731 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5732 dependencies. Fix target pairs on darwin.
5733 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
5734
5735 2010-06-18 Pascal Obry <obry@adacore.com>
5736
5737 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
5738
5739 2010-06-18 Vincent Celier <celier@adacore.com>
5740
5741 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
5742 configuration pragmas file and, if -U is not used, for a local one.
5743
5744 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5745
5746 * sem_elim.adb (Check_Eliminated): Use full information on entity name
5747 when it is given in the pragma by a selected component.
5748 (Check_For_Eliminated_Subprogram): Do no emit error if within a
5749 instance body that is itself within a generic unit.
5750 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
5751 eliminated, mark as well the anonymous subprogram that is its alias
5752 and appears within the wrapper package.
5753
5754 2010-06-18 Bob Duff <duff@adacore.com>
5755
5756 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
5757 Raise an exception if the output file cannot be opened. Add comments.
5758
5759 2010-06-18 Thomas Quinot <quinot@adacore.com>
5760
5761 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
5762 not illegal per E.2.2(7) if it occurs in the private part of a
5763 Remote_Types unit.
5764
5765 2010-06-18 Arnaud Charlet <charlet@adacore.com>
5766
5767 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
5768 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
5769 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
5770 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
5771 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
5772 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
5773 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
5774 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
5775 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
5776 errout.ads: Update comments. Minor reformatting.
5777
5778 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
5779 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
5780 a-strunb.adb (Big_String. Big_String_Access): New type.
5781
5782 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
5783 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
5784 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
5785
5786 2010-06-18 Geert Bosch <bosch@adacore.com>
5787
5788 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
5789 Darwin.
5790
5791 2010-06-18 Robert Dewar <dewar@adacore.com>
5792
5793 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
5794 true for gcc.
5795
5796 2010-06-18 Robert Dewar <dewar@adacore.com>
5797
5798 * sprint.adb: Minor format change for N_Expression_With_Actions.
5799 * repinfo.adb: Minor reformatting.
5800
5801 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5802
5803 * sem_elim.adb (Check_Eliminated): If within a subunit, use
5804 Defining_Entity to obtain the name of the entity in the proper body, to
5805 properly handle both separate packages and subprograms.
5806
5807 2010-06-18 Emmanuel Briot <briot@adacore.com>
5808
5809 * prj-nmsc.adb (Check_File): New parameter Display_Path.
5810
5811 2010-06-18 Thomas Quinot <quinot@adacore.com>
5812
5813 * g-socket.adb, g-socket.ads (Null_Selector): New object.
5814
5815 2010-06-18 Pascal Obry <obry@adacore.com>
5816
5817 * gnat_ugn.texi: Minor clarification.
5818
5819 2010-06-18 Emmanuel Briot <briot@adacore.com>
5820
5821 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
5822 code when using the project dir as the source dir.
5823 (Search_Directories): use the normalized name for the source directory,
5824 where symbolic names have potentially been resolved.
5825
5826 2010-06-18 Robert Dewar <dewar@adacore.com>
5827
5828 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
5829 when we create N_Expression_With_Actions node.
5830 (Expand_Short_Circuit): Ditto.
5831
5832 2010-06-18 Robert Dewar <dewar@adacore.com>
5833
5834 * exp_util.adb: Minor reformatting.
5835
5836 2010-06-18 Thomas Quinot <quinot@adacore.com>
5837
5838 * types.ads: Clean up obsolete comments
5839 * tbuild.adb: Minor reformatting.
5840 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
5841 exp_strm.adb, aa_drive.adb: Minor reformatting.
5842 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
5843 intrinsic with an Interface_Name denotes an imported back-end builtin,
5844 and must be rewritten into a call, not left in the tree as an operator,
5845 so return False in that case.
5846
5847 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
5848
5849 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
5850
5851 2010-06-18 Robert Dewar <dewar@adacore.com>
5852
5853 * scos.ads: Add proposed output for case expression
5854
5855 2010-06-18 Jose Ruiz <ruiz@adacore.com>
5856
5857 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
5858 RTSS modules, we need to use the Microsoft linker.
5859
5860 2010-06-18 Robert Dewar <dewar@adacore.com>
5861
5862 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
5863 expression (cannot count on a particular branch being executed).
5864 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
5865 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
5866 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
5867 within case expression.
5868 * expander.adb (Expand): Add call to Expand_N_Case_Expression
5869 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
5870 (P_Case_Expression): New procedure
5871 (P_Case_Expression_Alternative): New procedure
5872 * par.adb (P_Case_Expression): New procedure
5873 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
5874 N_Case_Expression.
5875 * sem.adb (Analyze): Add call to Analyze_Case_Expression
5876 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
5877 this is a documentation change only.
5878 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
5879 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
5880 expressions.
5881 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
5882 * sem_res.adb (Resolve_Case_Expression): New procedure.
5883 * sem_scil.adb (Find_SCIL_Node): Add processing for
5884 N_Case_Expression_Alternative.
5885 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
5886 (N_Case_Expression_Alternative): New node.
5887 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
5888 N_Case_Expression and N_Case_Expression_Alternative.
5889
5890 2010-06-18 Robert Dewar <dewar@adacore.com>
5891
5892 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
5893 reformatting.
5894 * gnat1drv.adb: Fix typo.
5895
5896 2010-06-18 Robert Dewar <dewar@adacore.com>
5897
5898 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
5899 for -gnatg.
5900 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
5901 gnat style for -gnatg.
5902 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
5903
5904 2010-06-18 Thomas Quinot <quinot@adacore.com>
5905
5906 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
5907 code between...
5908 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
5909 Test_In_Range.
5910
5911 2010-06-18 Robert Dewar <dewar@adacore.com>
5912
5913 * sprint.adb: Minor change in output format for expression wi actions.
5914 * par-ch3.adb: Minor code reorganization. Minor reformatting.
5915 * sem_ch5.adb: Minor comment fix.
5916
5917 2010-06-18 Robert Dewar <dewar@adacore.com>
5918
5919 * debug.adb: New debug flag -gnatd.L to control
5920 Back_End_Handles_Limited_Types.
5921 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
5922 limited case if Back_End_Handles_Limited_Types is True.
5923 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
5924 simplify expansion if Use_Expression_With_Actions is True.
5925 * gnat1drv.adb (Adjust_Global_Switches): Set
5926 Back_End_Handles_Limited_Types.
5927 * opt.ads (Back_End_Handles_Limited_Types): New flag.
5928
5929 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5930
5931 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
5932 intrinsic operator if expansion is not enabled, because in an
5933 instantiation the original operator must be present to verify the
5934 legality of the operation.
5935
5936 2010-06-18 Robert Dewar <dewar@adacore.com>
5937
5938 * exp_disp.adb, sem_ch12.adb: Minor reformatting
5939
5940 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5941
5942 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
5943 the class-wide type for a private extension, and the completion is a
5944 subtype, set the type of the class-wide type to the base type of the
5945 full view.
5946
5947 2010-06-18 Robert Dewar <dewar@adacore.com>
5948
5949 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
5950 sem_intr.adb, sem_eval.adb: Minor reformatting
5951
5952 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5953
5954 * sem_type.adb (Is_Ancestor): If either type is private, examine full
5955 view.
5956
5957 2010-06-18 Thomas Quinot <quinot@adacore.com>
5958
5959 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
5960 parameter rather than IN OUT.
5961
5962 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5963
5964 * exp_ch6.adb: Add extra guard.
5965
5966 2010-06-18 Gary Dismukes <dismukes@adacore.com>
5967
5968 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
5969 accessibility level of a function call from the level of the innermost
5970 enclosing dynamic scope.
5971 (Innermost_Master_Scope_Depth): New function to find the depth of the
5972 nearest dynamic scope enclosing a node.
5973
5974 2010-06-18 Tristan Gingold <gingold@adacore.com>
5975
5976 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
5977
5978 2010-06-18 Thomas Quinot <quinot@adacore.com>
5979
5980 * g-socket.ads: Minor reformatting.
5981
5982 2010-06-18 Vincent Celier <celier@adacore.com>
5983
5984 * make.adb (Must_Compile): New Boolean global variable
5985 (Main_On_Command_Line): New Boolean global variable
5986 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
5987 even when the project is externally built.
5988 (Start_Compile_If_Possible): Compile in -aL directories if
5989 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
5990 when the project is externally built.
5991 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
5992 invoked with -f -u and one or several mains on the command line.
5993 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
5994 main is specified on the command line.
5995
5996 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5997
5998 * sem_ch6.adb (Build_Body_For_Inline): Handle
5999 extended_return_statements.
6000 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
6001 containing extented_return statements.
6002 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
6003 constrained, do not build subtype declaration.
6004
6005 2010-06-18 Robert Dewar <dewar@adacore.com>
6006
6007 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
6008 Warn on assigning to packed atomic component.
6009
6010 2010-06-18 Robert Dewar <dewar@adacore.com>
6011
6012 * sem_util.ads: Minor reformatting
6013 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
6014 Expression_With_Actions).
6015 * snames.ads-tmpl: Minor comment fix
6016
6017 2010-06-18 Robert Dewar <dewar@adacore.com>
6018
6019 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
6020 (Set_Imported): Use Import_Interface_Present to control message output
6021 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
6022 * gnat_rm.texi: Document that we can have pragma Import and pragma
6023 Interface for the same subprogram.
6024
6025 2010-06-18 Robert Dewar <dewar@adacore.com>
6026
6027 * lib-xref.adb (Generate_Reference): Fix bad reference to
6028 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
6029
6030 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6031
6032 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
6033 function.
6034 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
6035 Use set_gnu_expr_location_from_node to set location information on the
6036 result.
6037
6038 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6039
6040 * gcc-interface/Make-lang.in: Update dependencies.
6041
6042 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6043
6044 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
6045 subprograms.
6046
6047 2010-06-17 Robert Dewar <dewar@adacore.com>
6048
6049 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
6050 style check messages.
6051 * sem_res.adb (Resolve_Call): Don't call
6052 Check_For_Eliminated_Subprogram if we are analyzing within a spec
6053 expression.
6054
6055 2010-06-17 Robert Dewar <dewar@adacore.com>
6056
6057 * debug.adb: Add documentation for debug flags .X and .Y
6058 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
6059 Use_Expression_With_Actions.
6060 * gnat1drv.adb (Adjust_Global_Switches): Set
6061 Use_Expression_With_Actions.
6062 * opt.ads (Use_Expression_With_Actions): New switch.
6063
6064 2010-06-17 Robert Dewar <dewar@adacore.com>
6065
6066 * exp_intr.adb: Minor code reorganization (use UI_Max)
6067 * sem_intr.adb: use underlying type to check legality.
6068 * einfo.adb (Known_Static_Esize): False for generic types
6069 (Known_Static_RM_Size): False for generic types
6070 * einfo.ads (Known_Static_Esize): False for generic types
6071 (Known_Static_RM_Size): False for generic types
6072
6073 2010-06-17 Robert Dewar <dewar@adacore.com>
6074
6075 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
6076
6077 2010-06-17 Robert Dewar <dewar@adacore.com>
6078
6079 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
6080 node when expanding short circuit form with actions present for right
6081 opnd.
6082 * exp_ch4.adb: Minor reformatting
6083 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
6084 if right opeand has actions present, and debug flag -gnatd.X is set.
6085 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
6086 node.
6087 * nlists.adb (Prepend_List): New procedure
6088 (Prepend_List_To): New procedure
6089 * nlists.ads (Prepend_List): New procedure
6090 (Prepend_List_To): New procedure
6091 * sem.adb: Add processing for Expression_With_Actions
6092 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
6093 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
6094 * sem_res.adb: Add processing for Expression_With_Actions.
6095 * sem_scil.adb: Add processing for Expression_With_Actions
6096 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
6097 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
6098
6099 2010-06-17 Doug Rupp <rupp@adacore.com>
6100
6101 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
6102 involved both have underlying integer types.
6103 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
6104 to an intrinsic operator when the operand types or sizes are not
6105 identical.
6106 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
6107 64/32 Address/Integer works.
6108
6109 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6110
6111 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
6112 that it marks a unit as needed by a spec only if the corresponding
6113 instantiation appears in that spec (and not in the corresponding body).
6114 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
6115 in the pragma Eliminate has been parsed as a child unit, but the
6116 current compilation unit is in fact the parent in which the subunit is
6117 embedded.
6118
6119 2010-06-17 Vincent Celier <celier@adacore.com>
6120
6121 * gnat_rm.texi: Fix typo
6122
6123 2010-06-17 Robert Dewar <dewar@adacore.com>
6124
6125 * sem_util.adb: Minor reformatting
6126
6127 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6128
6129 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
6130 instance, the clause now denotes the instance body. Traverse the
6131 corresponding spec because there may be no other dependence that will
6132 force the traversal of its own context.
6133
6134 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6135
6136 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
6137 Install_Limited_Context_Clauses, to determine whether a limited_with in
6138 some parent of the current unit designates some other parent, in which
6139 case the limited_with clause must not be installed.
6140 (In_Context): Refine test.
6141
6142 2010-06-17 Gary Dismukes <dismukes@adacore.com>
6143
6144 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
6145 type with a dispatching equality operator that is overridden (for a
6146 tagged full type), don't include the overridden equality in the list of
6147 primitives. The overridden equality is detected by testing for an
6148 Aliased field that references the overriding equality.
6149
6150 2010-06-17 Robert Dewar <dewar@adacore.com>
6151
6152 * freeze.adb: Minor reformatting.
6153
6154 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
6155
6156 * gnat_ugn.texi: Add a section introducing gdbserver.
6157
6158 2010-06-17 Thomas Quinot <quinot@adacore.com>
6159
6160 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
6161 reformatting.
6162
6163 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6164
6165 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
6166 constrained discriminated parent that is a private type.
6167 (Analyze_Record_Aggregate): when collecting inherited discriminants,
6168 handle properly an ancestor type that is a constrained private type.
6169
6170 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6171
6172 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
6173 protected, use the protected_subprogram_body only if the original
6174 subprogram has not been eliminated.
6175
6176 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6177
6178 * freeze.adb (Freeze_Expression): The designated type of an
6179 access_to_suprogram type can only be frozen if all types in its profile
6180 are fully defined.
6181
6182 2010-06-17 Robert Dewar <dewar@adacore.com>
6183
6184 * par.adb: Minor comment fix
6185 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
6186
6187 2010-06-17 Doug Rupp <rupp@adacore.com>
6188
6189 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
6190 change Address to Short_Address in functions where both must be the
6191 same size for intrinsics to work.
6192
6193 2010-06-17 Thomas Quinot <quinot@adacore.com>
6194
6195 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
6196 not denote a (private) component of a protected object.
6197
6198 2010-06-17 Bob Duff <duff@adacore.com>
6199
6200 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
6201 the same list.
6202
6203 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
6204
6205 * gnat_ugn.texi: Update the documentation about GDB re: exception
6206 catchpoints.
6207
6208 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6209
6210 * gnatvsn.ads: Bump to 4.6 version.
6211
6212 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6213
6214 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
6215 designated type of the generated pointer is the type of the original
6216 expression, not that of the function call itself, because the return
6217 type may be an untagged derived type and the function may be an
6218 inherited operation.
6219
6220 2010-06-17 Robert Dewar <dewar@adacore.com>
6221
6222 * exp_ch4.adb: Minor reformatting.
6223
6224 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6225
6226 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
6227 N_Component_Association nodes, to indicate that a component association
6228 of an extension aggregate denotes the value of a discriminant of an
6229 ancestor type that has been constrained by the derivation.
6230 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
6231 double expansion of the aggregate appearing in a context that delays
6232 expansion, to prevent double insertion of discriminant values when the
6233 aggregate is reanalyzed.
6234
6235 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6236
6237 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
6238 Allocator as the Related_Node of Return_Obj_Access in call to
6239 Make_Temporary below as this would create a sort of infinite
6240 "recursion".
6241
6242 2010-06-17 Ben Brosgol <brosgol@adacore.com>
6243
6244 * gnat_ugn.texi: Update gnatcheck doc.
6245
6246 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6247
6248 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
6249 incomplete view of the type that is not tagged, and the full type is a
6250 tagged extension, create class_wide type now, and warn that the
6251 incomplete view should be tagged as well.
6252
6253 2010-06-17 Vincent Celier <celier@adacore.com>
6254
6255 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
6256 Update the last line of the usage, indicating what commands do not
6257 accept project file switches.
6258 * vms_conv.adb: Do not issue usage line for GNAT SYNC
6259 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
6260 GNAT ELIM.
6261 * gnat_ugn.texi: Document the relaxed rules for library directories in
6262 externally built library projects.
6263
6264 2010-06-17 Doug Rupp <rupp@adacore.com>
6265
6266 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
6267 where possible.
6268 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
6269 * gcc-interface/Makefile.in: Update VMS target pairs.
6270
6271 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
6272
6273 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
6274 compatible with Windows NT 4.0 which doesn't provide this function.
6275
6276 2010-06-17 Vincent Celier <celier@adacore.com>
6277
6278 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
6279 different timestamps but the checksum is the same, issue a short
6280 message saying so.
6281
6282 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6283
6284 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
6285 it means that we cannot reset interrupt handlers since this would
6286 require potentially sending the abort signal to the Server_Task.
6287
6288 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6289
6290 * exp_ch4.adb: expand NOT for VMS types.
6291 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
6292
6293 2010-06-17 Sergey Rybin <rybin@adacore.com>
6294
6295 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
6296 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
6297 option.
6298
6299 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6300
6301 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
6302 protected operation if the subprogram has been eliminated.
6303
6304 2010-06-17 Vincent Celier <celier@adacore.com>
6305
6306 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
6307 directories associated with a library to be any directory when the
6308 library project is externally built.
6309
6310 2010-06-17 Vincent Celier <celier@adacore.com>
6311
6312 * make.adb (Check): If switch -m is used, deallocate the memory that
6313 may be allocated when computing the checksum.
6314
6315 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6316
6317 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
6318 (C_Sendmsg): Likewise.
6319
6320 2010-06-17 Thomas Quinot <quinot@adacore.com>
6321
6322 * sem_res.adb: Update comments.
6323
6324 2010-06-17 Vincent Celier <celier@adacore.com>
6325
6326 * back_end.adb (Scan_Compiler_Arguments): Process last argument
6327
6328 2010-06-17 Robert Dewar <dewar@adacore.com>
6329
6330 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
6331 * layout.adb, freeze.adb: Use Make_Temporary.
6332
6333 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
6334
6335 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
6336 .NET/JVM normally as this is now perfectly supported by the backend.
6337
6338 2010-06-17 Pascal Obry <obry@adacore.com>
6339
6340 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
6341
6342 2010-06-17 Vincent Celier <celier@adacore.com>
6343
6344 * make.adb (Collect_Arguments_And_Compile): Create include path file
6345 only when -x is specified.
6346 (Gnatmake): Ditto
6347 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
6348 False.
6349 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
6350 Objects_Path, defaulted to True. Only create include path file if
6351 Include_Path is True, only create objects path file if Objects_Path is
6352 True.
6353 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
6354 Objects_Path, defaulted to True.
6355 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
6356 when -x is used.
6357
6358 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6359
6360 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
6361 determine whether it has the controlling type, when the formal is an
6362 access parameter.
6363
6364 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6365
6366 * s-crtl.ads (ssize_t): New type.
6367 (read): Fix signature.
6368 (write): Likewise.
6369 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
6370 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6371 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6372 (C_Sendmsg): Likewise.
6373 * g-socthi.adb (Syscall_Recvmsg): Likewise.
6374 (Syscall_Sendmsg): Likewise.
6375 (C_Recvmsg): Likewise.
6376 (C_Sendmsg): Likewise.
6377 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
6378 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6379 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6380 (C_Sendmsg): Likewise.
6381 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
6382 (C_Sendmsg): Likewise.
6383 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
6384 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6385 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6386 (C_Sendmsg): Likewise.
6387 * g-socthi-vms.adb (C_Recvmsg): Likewise.
6388 (C_Sendmsg): Likewise.
6389 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
6390 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
6391 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
6392 (C_Sendmsg): Likewise.
6393 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
6394 (C_Sendmsg): Likewise.
6395 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
6396 (Write): Likewise to call 'write'.
6397 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
6398 (Write): Use correct type to call System.CRTL.write.
6399 * s-tasdeb.adb (Write): Likewise.
6400
6401 2010-06-17 Vincent Celier <celier@adacore.com>
6402
6403 * prj-proc.adb (Copy_Package_Declarations): Change argument name
6404 Naming_Restricted to Restricted. If Restricted is True, do not copy the
6405 value of attribute Linker_Options.
6406
6407 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6408
6409 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
6410 (Case_Statement_to_gnu): Adjust.
6411 (Loop_Statement_to_gnu): Likewise.
6412 (Subprogram_Body_to_gnu): Likewise.
6413 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6414 (Compilation_Unit_to_gnu): Likewise.
6415
6416 2010-06-17 Robert Dewar <dewar@adacore.com>
6417
6418 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
6419 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
6420 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
6421 sem_dist.adb, sem_util.adb: Use Make_Temporary
6422 * itypes.ads, tbuild.ads: Minor comment update
6423 * exp_ch9.adb, exp_dist.adb: Minor reformatting
6424
6425 2010-06-17 Thomas Quinot <quinot@adacore.com>
6426
6427 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
6428
6429 2010-06-17 Robert Dewar <dewar@adacore.com>
6430
6431 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
6432
6433 2010-06-17 Thomas Quinot <quinot@adacore.com>
6434
6435 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
6436
6437 2010-06-17 Robert Dewar <dewar@adacore.com>
6438
6439 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
6440 * tbuild.ads (Make_Temporary): More comment updates
6441 * tbuild.adb: Minor reformatting
6442
6443 2010-06-17 Robert Dewar <dewar@adacore.com>
6444
6445 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
6446 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
6447 Use Make_Temporary.
6448 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
6449 instead of Node_Id.
6450 (Make_Temporary): Add more extensive documentation
6451
6452 2010-06-17 Robert Dewar <dewar@adacore.com>
6453
6454 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
6455 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
6456 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
6457 where the slice's actions are inserted.
6458 (Decompose_Expr): Account for possible rewriting of slice bounds
6459 resulting from side effects suppression caused by the above freezing,
6460 so that folding of bounds is preserved by such rewriting.
6461
6462 2010-06-17 Robert Dewar <dewar@adacore.com>
6463
6464 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
6465 function.
6466 * freeze.adb (Freeze_Record_Type): Add call to
6467 Check_Record_Representation_Clause.
6468 * sem_ch13.adb (Check_Record_Representation_Clause): New function
6469 (Analyze_Record_Representation_Clause): Split out overlap code into
6470 this new function.
6471 (Check_Component_Overlap): Moved inside
6472 Check_Record_Representation_Clause.
6473 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
6474
6475 2010-06-17 Robert Dewar <dewar@adacore.com>
6476
6477 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
6478 reformatting.
6479 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
6480 sem_eval.adb: Use Ekind_In
6481
6482 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6483
6484 * sem_ch8.adb: better error message for illegal inherited discriminant
6485
6486 2010-06-17 Vincent Celier <celier@adacore.com>
6487
6488 * bindusg.adb: Remove lines for -A and -C
6489 * gnat_ugn.texi: Remove all documentation and examples of switches -A
6490 and -C for gnatbind and gnatlink.
6491 * gnatlink.adb (Usage): Remove lines for -A and -C
6492 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
6493 specified.
6494 * gcc-interface/Make-lang.in: Update dependencies.
6495
6496 2010-06-17 Vincent Celier <celier@adacore.com>
6497
6498 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
6499 local Argument_List variable Args.
6500 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
6501 Args.
6502 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
6503 for subsequent switches in Args.
6504 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
6505 Args.
6506 * gcc-interface/Make-lang.in: Update dependencies.
6507
6508 2010-06-17 Robert Dewar <dewar@adacore.com>
6509
6510 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
6511 Equivalent_Type to match documentation.
6512
6513 2010-06-17 Robert Dewar <dewar@adacore.com>
6514
6515 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
6516 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
6517 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
6518
6519 2010-06-17 Thomas Quinot <quinot@adacore.com>
6520
6521 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
6522
6523 2010-06-17 Thomas Quinot <quinot@adacore.com>
6524
6525 * freeze.adb (Freeze_Expression): Short circuit operators are valid
6526 freeze node insertion points.
6527
6528 2010-06-17 Robert Dewar <dewar@adacore.com>
6529
6530 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
6531 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
6532
6533 2010-06-17 Gary Dismukes <dismukes@adacore.com>
6534
6535 * layout.adb (Layout_Type): Broaden test for setting an array type's
6536 Component_Size to include all scalar types, not just discrete types
6537 (components of real types were missed).
6538 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
6539 on the itype created for an index (consistent with Make_Index and
6540 avoids possible Assert_Failures).
6541
6542 2010-06-17 Robert Dewar <dewar@adacore.com>
6543
6544 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
6545 * einfo.adb: Minor code reformatting (use Ekind_In)
6546
6547 2010-06-17 Robert Dewar <dewar@adacore.com>
6548
6549 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
6550 found.
6551
6552 2010-06-17 Vincent Celier <celier@adacore.com>
6553
6554 * back_end.adb: Minor comment updates
6555 * switch-c.adb: Remove dependencies on gcc C sources
6556 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
6557 for the compiler.
6558
6559 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6560
6561 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
6562 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
6563 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
6564 Remove use of Node field in SCOs table
6565 (Output_Header): Set 'd' to initially disable pragma entry
6566 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
6567 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
6568 Use C2 field of pragma decision header to indicate enabled.
6569 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
6570 * gcc-interface/Make-lang.in: Update dependencies.
6571
6572 2010-06-17 Vincent Celier <celier@adacore.com>
6573
6574 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
6575 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
6576 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
6577 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
6578 Switch.C.
6579 * switch-c.adb: Copied a number of global declarations from
6580 back_end.adb.
6581 (Len_Arg): New function copied from back_end.adb
6582 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
6583 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
6584 Switch_Subsequently_Cancelled.
6585 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
6586 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
6587 with -lexc on Tru64.
6588
6589 2010-06-17 Robert Dewar <dewar@adacore.com>
6590
6591 * prj.ads, prj.adb: Minor reformatting
6592
6593 2010-06-17 Thomas Quinot <quinot@adacore.com>
6594
6595 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
6596 CP line for a disabled pragma.
6597
6598 2010-06-17 Emmanuel Briot <briot@adacore.com>
6599
6600 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
6601 subprogram.
6602 (Process_Declarative_Item): An invalid value in an typed variable
6603 declaration is no longer always fatal.
6604
6605 2010-06-16 Arnaud Charlet <charlet@adacore.com>
6606
6607 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
6608 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
6609 documentation.
6610
6611 2010-06-16 Javier Miranda <miranda@adacore.com>
6612
6613 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
6614 node referenced by the SCIL node of dispatching "=" to skip the tags
6615 comparison.
6616
6617 2010-06-16 Ed Schonberg <schonberg@adacore.com>
6618
6619 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
6620 to prevent cascaded errors and compilation aborts.
6621
6622 2010-06-16 Robert Dewar <dewar@adacore.com>
6623
6624 * back_end.adb (Switch_Subsequently_Cancelled): New function
6625 Move declarations to package body level to support this change
6626 * back_end.ads (Switch_Subsequently_Cancelled): New function
6627 * gnat_ugn.texi: Document -gnat-p switch
6628 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
6629 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
6630 * usage.adb: Add line for -gnat-p switch
6631 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
6632
6633 2010-06-16 Robert Dewar <dewar@adacore.com>
6634
6635 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
6636 modification.
6637
6638 2010-06-16 Robert Dewar <dewar@adacore.com>
6639
6640 * exp_disp.adb: Minor reformatting
6641
6642 2010-06-16 Ed Schonberg <schonberg@adacore.com>
6643
6644 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
6645 base type only if it was not previously created for the partial view.
6646
6647 2010-06-16 Thomas Quinot <quinot@adacore.com>
6648
6649 * tbuild.ads: Minor comment fix
6650
6651 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
6652
6653 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
6654 (gnu_except_ptr_stack): Change type to VEC. Update comment.
6655 (gnu_elab_proc_stack): Likewise.
6656 (gnu_return_label_stack): Likewise.
6657 (gnu_loop_label_stack): Likewise.
6658 (gnu_switch_label_stack): Likewise.
6659 (gnu_constraint_label_stack): Likewise.
6660 (gnu_storage_error_label_stack): Likewise.
6661 (gnu_program_error_label_stack): Likewise.
6662 (push_exception_label_stack): Take a VEC ** instead of a tree *.
6663 (push_stack): Likewise. Remove unused second parameter. Update
6664 callers.
6665 (pop_stack): Take a VEC * instead of a tree *. Update callers.
6666 (gigi): Initialize stacks as VECs.
6667 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
6668 (Case_Statement_to_gnu): Likewise.
6669 (Subprogram_Body_to_gnu): Likewise.
6670 (call_to_gnu): Likewise.
6671 (Exception_Handler_to_gnu_sjlj): Likewise.
6672 (gnat_to_gnu): Likewise.
6673 (get_exception_label): Likewise.
6674
6675 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6676
6677 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
6678 anonymous base generated when the parent is a constrained discriminated
6679 type, propagate interface list to first subtype because it may appear
6680 in a current instance within the extension part of the derived type
6681 declaration, and its own subtype declaration has not been elaborated
6682 yet.
6683 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
6684 determine whether it has the controlling type.
6685
6686 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
6687
6688 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
6689 raise of CE, SE and PE have the reason correctly set and are properly
6690 expanded before stopping the expansions of .NET/JVM exceptions.
6691
6692 2010-06-14 Robert Dewar <dewar@adacore.com>
6693
6694 * opt.ads (Check_Policy_List): Add some clarifying comments
6695 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
6696 on rewritten Assert pragma.
6697
6698 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6699
6700 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
6701 controlled operations, so that they will be treated as overriding even
6702 if the overridden subprogram is marked Is_Hidden, as long as the
6703 overridden subprogram's parent subprogram is not hidden.
6704
6705 2010-06-14 Robert Dewar <dewar@adacore.com>
6706
6707 * debug.adb: Entry for gnatw.d no longer specific for while loops
6708 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
6709 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
6710 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
6711 new calling sequence to include test for EXIT WHEN.
6712 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
6713 chain
6714 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
6715 EXIT WHEN case.
6716 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
6717 node.
6718 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
6719 PRAGMA, not to pragma identifier).
6720 (Next_Exit_Statement): New attribute of N_Exit_Statement node
6721
6722 2010-06-14 Robert Dewar <dewar@adacore.com>
6723
6724 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
6725 would fail" msg.
6726
6727 2010-06-14 Robert Dewar <dewar@adacore.com>
6728
6729 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
6730 missing pragma argument identifier.
6731
6732 2010-06-14 Robert Dewar <dewar@adacore.com>
6733
6734 * atree.ads, atree.adb (Ekind_In): New functions.
6735
6736 2010-06-14 Robert Dewar <dewar@adacore.com>
6737
6738 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
6739
6740 2010-06-14 Robert Dewar <dewar@adacore.com>
6741
6742 * usage.adb (Usage): Redo documentation of -gnatwa.
6743
6744 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6745
6746 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
6747 an untagged incomplete type that is a limited view.
6748
6749 2010-06-14 Sergey Rybin <rybin@adacore.com>
6750
6751 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
6752 and gnatppa.
6753
6754 2010-06-14 Thomas Quinot <quinot@adacore.com>
6755
6756 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
6757 factoring duplicated code between...
6758 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
6759 * a-envvar.ads: Minor reformatting
6760
6761 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6762
6763 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
6764 static entities.
6765 (Scan_ALI): Take into account new Visibility field.
6766 (Visibility_Kind): New type.
6767 (Xref_Entity_Record): Replace Lib field by Visibility.
6768
6769 * gcc-interface/Make-lang.in: Update dependencies.
6770
6771 2010-06-14 Pascal Obry <obry@adacore.com>
6772
6773 * raise.h: Remove unused defintions.
6774
6775 2010-06-14 Bob Duff <duff@adacore.com>
6776
6777 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
6778 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
6779 the incorrect error "proper body expected".
6780 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
6781 allowed here" error in case of subunits, which was triggered by the
6782 above change to P_Subunit.
6783
6784 2010-06-14 Sergey Rybin <rybin@adacore.com>
6785
6786 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
6787
6788 2010-06-14 Thomas Quinot <quinot@adacore.com>
6789
6790 * lib-util.adb: Minor code reorganization.
6791
6792 2010-06-14 Robert Dewar <dewar@adacore.com>
6793
6794 * ali.adb (Scan_ALI): Implement reading and storing of N lines
6795 (Known_ALI_Lines): Add entry for 'N' (notes)
6796 * ali.ads (Notes): New table to store Notes information
6797 * alloc.ads: Add entries for Notes table
6798 * lib-util.adb (Write_Info_Int): New procedure
6799 (Write_Info_Slit): New procedure
6800 (Write_Info_Uint): New procedure
6801 * lib-util.ads (Write_Info_Int): New procedure
6802 (Write_Info_Slit): New procedure
6803 (Write_Info_Uint): New procedure
6804 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
6805 * lib-writ.ads: Update documentation for N (Notes) lines
6806 * lib.adb (Store_Note): New procedure
6807 * lib.ads (Notes): New table
6808 (Store_Note): New procedure
6809 * sem_prag.adb: Call Store_Note for affected pragmas
6810
6811 2010-06-14 Thomas Quinot <quinot@adacore.com>
6812
6813 * socket.c: Fix wrong condition in #ifdef
6814 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
6815 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
6816 because on VMS this type is a 32-bit pointer which is not compatible
6817 with the default for C pointers for code compiled with gcc on that
6818 platform.
6819
6820 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6821
6822 * sem_util (Is_VMS_Operator): New predicate to determine whether an
6823 operator is an intrinsic operator declared in the DEC system extension.
6824 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
6825 if the operator is a VMS intrinsic.
6826 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
6827 constant-folded if the operands are signed and the operator is a VMS
6828 intrinsic.
6829
6830 2010-06-14 Robert Dewar <dewar@adacore.com>
6831
6832 * g-socket.adb, gnatcmd.adb: Minor reformatting.
6833
6834 2010-06-14 Pascal Obry <obry@adacore.com>
6835
6836 * s-finimp.adb: Fix typo.
6837 * raise.h: Remove duplicate blank line.
6838
6839 2010-06-14 Vincent Celier <celier@adacore.com>
6840
6841 * prj-nmsc.adb (Add_Sources): Always set the object file and the
6842 switches file names, as the configuration of the language may change
6843 in an extending project.
6844 (Process_Naming_Scheme): For sources of projects that are extended, set
6845 the configuration of the language from the highest extending project
6846 where the language is declared.
6847
6848 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6849
6850 * sem_res.adb (Resolve_Call): For infinite recursion check, test
6851 whether the called subprogram is inherited from a containing
6852 subprogram.
6853 (Same_Or_Aliased_Subprograms): New function
6854
6855 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6856
6857 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
6858 use-visible, check whether it is a primitive for more than one type.
6859
6860 2010-06-14 Robert Dewar <dewar@adacore.com>
6861
6862 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
6863
6864 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
6865 Has_Pragma_Unmodified flag.
6866
6867 2010-06-14 Thomas Quinot <quinot@adacore.com>
6868
6869 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
6870 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
6871 now done in GNAT.Sockets if necessary.
6872 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
6873 Ensure mutual exclusion for netdb operations if the target platform
6874 requires it.
6875 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
6876 struct hostent as an opaque type to improve portability.
6877 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
6878 gethostbyYYY using proprietary VxWorks API so that a uniform interface
6879 is available for the Ada side.
6880 * gcc-interface/Makefile.in: Remove g-sttsne-*
6881 * gcc-interface/Make-lang.in: Update dependencies.
6882
6883 2010-06-14 Vincent Celier <celier@adacore.com>
6884
6885 * gnatcmd.adb (Mapping_File): New function.
6886
6887 2010-06-14 Javier Miranda <miranda@adacore.com>
6888
6889 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
6890
6891 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6892
6893 * ali.adb: Fix typo.
6894 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
6895
6896 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6897
6898 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
6899 instances.
6900
6901 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
6902 the context does not have a homonym of the selector, emit default
6903 error message.
6904
6905 2010-06-14 Robert Dewar <dewar@adacore.com>
6906
6907 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
6908 comment addition.
6909
6910 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6911
6912 * lib-xref.ads: Doc updates:
6913 - Allocate 'Q' for #include entity kind
6914 - Free 'Z'
6915 - Allocate 'g' for regular macros
6916 - Allocate 'G' for function-like macros
6917
6918 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6919
6920 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
6921 Indicates that there is an instantiation in the current unit that
6922 loaded the body of the unit denoted by the with_clause.
6923 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
6924 whether a with_clause in the current context denotes the unit that
6925 holds the generic declaration, and mark the with_clause accordingly.
6926 (Instantiate_Package_Body): call Mark_Context.
6927 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
6928 whether a given body should be traversed before the spec of the main
6929 unit.
6930
6931 2010-06-14 Ed Falis <falis@adacore.com>
6932
6933 * sysdep.c: Fix 653 build against vThreads headers.
6934
6935 2010-06-14 Robert Dewar <dewar@adacore.com>
6936
6937 * sinfo.ads: Minor reformatting.
6938
6939 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6940
6941 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
6942 the spec has been generated for a body without spec that carries an
6943 Inline_Always pragma.
6944
6945 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6946
6947 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
6948 macro.
6949
6950 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
6951
6952 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
6953 declaration for VMs, as those are useless and might lead to duplicated
6954 local variable names in the generated code.
6955 * gcc-interface/Make-lang.in: Update dependencies.
6956
6957 2010-06-14 Robert Dewar <dewar@adacore.com>
6958
6959 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
6960
6961 2010-06-14 Robert Dewar <dewar@adacore.com>
6962
6963 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
6964 is renamed as Has_Following_Address_Clause.
6965 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
6966 to allow the caller to avoid Initialize_Scalars having an effect.
6967 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
6968 scalars with an address clause specified.
6969 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
6970 to allow the caller to avoid Initialize_Scalars having an effect.
6971 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
6972 (where it was called Has_Address_Clause).
6973 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
6974 (where it was called Has_Address_Clause).
6975 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
6976 problems for Initialize_Scalars (since we no longer initialize objects
6977 with an address clause.
6978
6979 2010-06-14 Robert Dewar <dewar@adacore.com>
6980
6981 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
6982 condition.
6983
6984 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6985
6986 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
6987 on the entity of an implicitly generated postcondition procedure.
6988
6989 2010-06-14 Thomas Quinot <quinot@adacore.com>
6990
6991 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
6992 Discriminant_Constraint elist from full view to private view.
6993
6994 2010-06-14 Robert Dewar <dewar@adacore.com>
6995
6996 * sem_res.adb: Minor reformatting.
6997
6998 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6999
7000 * sem.adb: New version of unit traversal.
7001
7002 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
7003 within a generic unit in the table of delayed calls.
7004
7005 2010-06-14 Robert Dewar <dewar@adacore.com>
7006
7007 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
7008
7009 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7010
7011 * sem_ch12.adb (Save_References): If an identifier has been rewritten
7012 during analysis as an explicit dereference, keep the reference implicit
7013 in the generic, but preserve the entity if global. This prevents
7014 malformed generic trees in the presence of some nested generics.
7015
7016 2010-06-14 Sergey Rybin <rybin@adacore.com>
7017
7018 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
7019 tool with '-files=' option. Also fix some small errors (wrong brackets)
7020
7021 2010-06-14 Vincent Celier <celier@adacore.com>
7022
7023 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
7024 the ALI files on the command line.
7025
7026 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
7027 the same value as the parameter of the same name.
7028 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
7029 to False.
7030 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
7031 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
7032 emit version symbols only for the units of the library.
7033 (Gen_Versions_C): Ditto.
7034
7035 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7036
7037 * sem_ch4.adb: Fix typo.
7038
7039 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
7040
7041 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
7042 vector IO doesn't work at default value properly.
7043
7044 2010-06-14 Doug Rupp <rupp@adacore.com>
7045
7046 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
7047
7048 2010-06-14 Vincent Celier <celier@adacore.com>
7049
7050 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
7051 sources of the project if a switch -files= is used.
7052
7053 2010-06-14 Thomas Quinot <quinot@adacore.com>
7054
7055 * exp_attr.adb: Minor reformatting.
7056
7057 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7058
7059 * gnat_ugn.texi: Minor typo fixes and wording changes.
7060
7061 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7062
7063 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
7064 prefixed form, do not re-analyze first actual, which may need an
7065 implicit dereference.
7066 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
7067 prefixed notation, the analysis will rewrite the node, and possible
7068 errors appear in the rewritten name of the node.
7069 * sem_res.adb: If a call is ambiguous because its first parameter is
7070 an overloaded call, report list of candidates, to clarify ambiguity of
7071 enclosing call.
7072
7073 2010-06-14 Doug Rupp <rupp@adacore.com>
7074
7075 * s-auxdec-vms-alpha.adb: New package body implementing legacy
7076 VAX instructions with Asm insertions.
7077 * s-auxdec-vms_64.ads: Inline VAX queue functions
7078 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
7079 that show up only on VMS.
7080 * gcc-interface/Makefile.in: Provide translation for
7081 s-auxdec-vms-alpha.adb.
7082
7083 2010-06-14 Olivier Hainque <hainque@adacore.com>
7084
7085 * initialize.c (VxWorks section): Update comments.
7086
7087 2010-06-14 Robert Dewar <dewar@adacore.com>
7088
7089 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
7090
7091 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
7092
7093 * init.c: Code clean up.
7094
7095 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7096
7097 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
7098 not insert address clause in table for later validation if type of
7099 entity is generic, to prevent possible spurious errors.
7100
7101 * sem_ch8.adb: Code clean up.
7102
7103 2010-06-14 Ben Brosgol <brosgol@adacore.com>
7104
7105 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
7106 texi2pdf and texi2html.
7107 Document how to change scheduling properties on HP-UX.
7108
7109 2010-06-14 Thomas Quinot <quinot@adacore.com>
7110
7111 * g-socket.ads: Remove misleading comments.
7112
7113 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7114
7115 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
7116 CLI_Target as this prevents proper detection of exported names
7117 duplicates when the exported language is different to CIL.
7118 (Process_Interface_Name): Add check for CIL convention exports,
7119 replacing the old one from Check_Duplicated_Export_Name.
7120
7121 2010-06-14 Matthew Heaney <heaney@adacore.com>
7122
7123 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
7124 and new last satisfy constraints.
7125 (Delete_Last): prevent overflow for subtraction of index values
7126 (To_Vector): prevent overflow for addition of index values
7127
7128 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7129
7130 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
7131 rewritten call, preserve the resulting type to prevent spurious errors,
7132 when the call is implicitly dereferenced in the context of an in-out
7133 actual.
7134
7135 * checks.adb (Apply_Discriminant_Check): If the target of the
7136 assignment is a renaming of a heap object, create constrained type for
7137 it to apply check.
7138
7139 2010-06-14 Pascal Obry <obry@adacore.com>
7140
7141 * prj-proc.adb: Fix copy of object directory for extending projects.
7142
7143 2010-06-14 Jose Ruiz <ruiz@adacore.com>
7144
7145 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
7146 (__gnat_install_handler, PowerPC linux): Activate the alternative
7147 signal stack.
7148
7149 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
7150
7151 * gnat_rm.texi: Move to GFDL version 1.3.
7152 * gnat-style.texi: Ditto.
7153 * gnat_ugn.texi: Ditto.
7154
7155 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
7156
7157 PR ada/43731
7158 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
7159 mingw targets.
7160
7161 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
7162
7163 * gcc-interface/utils.c (update_pointer_to): Initialize last.
7164
7165 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
7166
7167 * gcc-interface/ada-tree.h: Fix formatting nits.
7168
7169 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7170
7171 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
7172 allocation.
7173 (init_dummy_type): Likewise.
7174 (gnat_pushlevel): Likewise.
7175
7176 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7177 (Subprogram_Body_to_gnu): Likewise.
7178 (Compilation_Unit_to_gnu): Likewise.
7179 (start_stmt_group): Likewise.
7180 (extract_encoding): Likewise.
7181 (decode_name): Likewise.
7182
7183 * gcc-interface/misc.c (gnat_printable_name): Likewise.
7184
7185 * gcc-interface/decl.c (annotate_value): Likewise.
7186
7187 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
7188 GTY option.
7189 (struct lang_decl): Likewise.
7190 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
7191 (SET_DECL_LANG_SPECIFIC): Likewise.
7192
7193 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
7194
7195 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
7196 * gcc-interface/lang-specs.h: Likewise.
7197
7198 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
7199
7200 PR c++/44294
7201 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
7202
7203 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7204
7205 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
7206
7207 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7208
7209 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
7210 TYPE_DECL of the equivalent type instead of building a new one.
7211
7212 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7213
7214 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
7215 Fix nits in comments.
7216 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
7217 * gcc-interface/trans.c (gigi): Likewise.
7218 (Attribute_to_gnu): Likewise.
7219 (Case_Statement_to_gnu): Likewise.
7220 (gnat_to_gnu): Adjust warning message.
7221 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
7222 (build_vms_descriptor32): Likewise.
7223
7224 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
7225
7226 * gcc-interface/decl.c: Pretend to be a backend file by undefining
7227 IN_GCC_FRONTEND (still need rtl.h here).
7228
7229 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7230
7231 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
7232 (gigi): Adjust call to set_stack_check_libfunc.
7233
7234 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7235
7236 * gcc-interface/utils.c: Do not include rtl.h.
7237
7238 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7239
7240 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
7241 and gimple.h. Explain why rtl.h has to be included.
7242 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
7243 * gcc-interface/targtyps.c: Do not include tm_p.h
7244 * gcc-interface/utils2.c: Do not include flags.h.
7245 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
7246 and explain why it has to be included.
7247 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
7248 and optabs.h.
7249 Include function.h and explain why. Explain why except.h is included.
7250 (enumerate_modes): Remove unused function.
7251 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
7252 * gcc-interface/Make-lang.in: Update dependencies.
7253
7254 2010-05-25 Joseph Myers <joseph@codesourcery.com>
7255
7256 * gcc-interface/misc.c (internal_error_function): Add context
7257 parameter. Use it to access show_column flag and instead of using
7258 global_dc. Call warn_if_plugins.
7259 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
7260
7261 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
7262
7263 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
7264 * gcc-interface/trans.c (unshare_save_expr): Delete.
7265 (gigi): Do not unshare trees under SAVE_EXPRs here.
7266
7267 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
7268
7269 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
7270 build_call_list.
7271 * gcc-interface/utils.c (build_function_stub): Likewise.
7272
7273 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7274
7275 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
7276 for Wuninitialized without -O.
7277
7278 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
7279
7280 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
7281 ADT_exception_data_name_id.
7282 (exception_data_name_id): New define.
7283 * gcc-interface/trans.c (gigi): Initialize it.
7284 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
7285 exception type for standard exception definitions. Do not make them
7286 volatile.
7287 <E_Record_Type>: Equate fields of types associated with an exception
7288 definition to those of the standard exception type.
7289
7290 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
7291
7292 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
7293
7294 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
7295
7296 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
7297 code, improve comments and fix formatting nits.
7298
7299 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
7300
7301 * gcc-interface/utils.c (update_pointer_to): Return early if the old
7302 pointer already points to the new type. Chain the old pointer and its
7303 variants at the end of new pointer's chain after updating them.
7304
7305 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
7306
7307 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
7308 built for interfaces.
7309 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
7310 imported_p instead of Is_Imported when considering constants.
7311 Do not promote alignment of exported objects.
7312 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
7313
7314 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7315
7316 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
7317 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
7318 constants really constant.
7319 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
7320
7321 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7322
7323 * gcc-interface/decl.c (make_aligning_type): Declare the type.
7324
7325 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7326
7327 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
7328 expressions of variant part of record types declared at library level.
7329
7330 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7331
7332 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
7333 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
7334 (rest_of_record_type_compilation): Adjust call to create_field_decl.
7335 (make_descriptor_field): Likewise and pass correctly typed constants.
7336 (build_unc_object_type): Likewise.
7337 (unchecked_convert): Likewise.
7338 * gcc-interface/decl.c (elaborate_expression_2): New static function.
7339 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
7340 Adjust call to create_field_decl.
7341 (make_aligning_type): Likewise.
7342 (make_packable_type): Likewise.
7343 (maybe_pad_type): Likewise.
7344 (gnat_to_gnu_field): Likewise.
7345 (components_to_record): Likewise.
7346 (create_field_decl_from): Likewise.
7347 (create_variant_part_from): Remove superfluous test.
7348 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
7349
7350 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7351
7352 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
7353 (build_unc_object_type_from_ptr): Likewise.
7354 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
7355 and pass it to create_type_decl. Declare the type. Simplify.
7356 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
7357 it to build_unc_object_type.
7358 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
7359 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7360 (gnat_to_gnu): Likewise.
7361 * gcc-interface/utils2.c (build_allocator): Likewise.
7362
7363 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
7364
7365 PR 40989
7366 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
7367
7368 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7369
7370 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
7371
7372 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7373
7374 PR 40989
7375 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
7376
7377 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
7378
7379 * gnathtml.pl: Use 755 as mask for new directories.
7380
7381 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
7382
7383 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
7384 constant constructors before taking their address.
7385
7386 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
7387
7388 * exp_dbug.ads: Fix outdated description. Mention link between XVS
7389 and XVZ objects.
7390 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
7391 XVZ variable as unit size of XVS type.
7392 (maybe_pad_type): Likewise.
7393
7394 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
7395
7396 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
7397 use memmove if the array type is bit-packed.
7398
7399 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
7400
7401 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
7402 build_common_tree_nodes.
7403
7404 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
7405
7406 * gsocket.h: Make sure that winsock2.h is included before windows.h.
7407
7408 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
7409
7410 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
7411 issue warning.
7412
7413 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
7414
7415 * uintp.h (UI_Lt): Declare.
7416 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
7417 computation in sizetype.
7418 <E_Array_Subtype>: Use unified handling for all index types. Do not
7419 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
7420 bypass for PATs.
7421 (annotate_value): Change test for negative values.
7422 (validate_size): Apply test for negative values on GNAT nodes.
7423 (set_rm_size): Likewise.
7424 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
7425 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
7426 for negative values.
7427 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
7428 (builtin_type_for_size): Adjust definition of signed_size_type_node.
7429 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
7430 lengths against zero.
7431
7432 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
7433
7434 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
7435 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
7436 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
7437 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
7438 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
7439 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
7440 rm_size.
7441 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
7442 flag_signed_char. Tag sizetype with "size_type" moniker.
7443 * gcc-interface/trans.c (gigi): Add standard_character parameter.
7444 Remove useless built-in types. Equate unsigned_char_type_node to
7445 Standard.Character. Use it instead of char_type_node throughout.
7446 (Attribute_to_gnu): Likewise.
7447 (gnat_to_gnu): Likewise.
7448 * gcc-interface/utils2.c (build_call_raise): Likewise.
7449
7450 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
7451
7452 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
7453 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
7454 (sbitsize_one_node): New macro.
7455 (sbitsize_unit_node): Likewise.
7456 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
7457 latent bug in the computation of subrange_p. Fold wider_p predicate.
7458 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
7459 the final comparison.
7460 (make_aligning_type): Build real negation and use sizetype throughout
7461 the offset computation.
7462 (maybe_pad_type): Do not issue the warning when the new size expression
7463 is too complex.
7464 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
7465 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
7466 sbitsize_unit_node.
7467 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
7468 double negation.
7469 (gnat_to_gnu) <N_Free_Statement>: Likewise.
7470 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
7471 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
7472 constants in sizetype. Remove dead code and tweak comments. Generate
7473 equality instead of inequality comparisons for zero length tests.
7474
7475 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7476
7477 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
7478 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
7479 <object>: Do not create the fake PARM_DECL if no debug info is needed.
7480 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
7481 purposes if no debug info is needed.
7482 Fix formatting. Reorder and add comments.
7483 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
7484 variable and remove obsolete comment.
7485 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
7486 (convert_vms_descriptor32): Likewise.
7487 (convert): Remove dead code.
7488 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
7489 the reference to the P_ARRAY pointer.
7490 <POINTER_TYPE>: Likewise.
7491 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
7492 (gnat_init_decl_processing): Delete, move contents to...
7493 * gcc-interface/misc.c (gnat_init): ...here.
7494
7495 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7496
7497 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
7498 calls. Return true for conversion from a record subtype to its type.
7499
7500 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7501
7502 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
7503 lieu of integer_type_node for boolean operations.
7504 (choices_to_gnu): Likewise.
7505 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7506 (Loop_Statement_to_gnu): Likewise.
7507 (establish_gnat_vms_condition_handler): Likewise.
7508 (Exception_Handler_to_gnu_sjlj): Likewise.
7509 (gnat_to_gnu): Likewise.
7510 (build_unary_op_trapv): Likewise.
7511 (build_binary_op_trapv): Likewise.
7512 (emit_range_check): Likewise.
7513 (emit_index_check): Likewise.
7514 (convert_with_check): Likewise.
7515 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
7516 (convert_vms_descriptor32): Likewise.
7517 (convert_vms_descriptor): Likewise.
7518 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
7519 (compare_arrays): Use boolean instead of integer constants.
7520 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
7521 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
7522 is a boolean type.
7523 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
7524 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
7525 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
7526 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
7527 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
7528 for boolean operations.
7529 (fill_vms_descriptor): Likewise. Fix formatting nits.
7530
7531 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7532
7533 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
7534 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
7535 Merge into...
7536 (LOOP_STMT_COND): ...this.
7537 (LOOP_STMT_BOTTOM_COND_P): New flag.
7538 (LOOP_STMT_TOP_UPDATE_P): Likewise.
7539 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
7540 (can_equal_min_val_p): New static inline function.
7541 (can_equal_max_val_p): Likewise.
7542 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
7543 new LOOP_STMT semantics. Use two different strategies depending on
7544 whether optimization is enabled to translate the loop.
7545 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
7546
7547 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7548
7549 * uintp.adb (UI_From_Dint): Remove useless code.
7550 (UI_From_Int): Likewise.
7551 * uintp.h: Reorder declarations.
7552 (UI_From_gnu): Declare.
7553 (UI_Base): Likewise.
7554 (Vector_Template): Likewise.
7555 (Vector_To_Uint): Likewise.
7556 (Uint_0): Remove.
7557 (Uint_1): Likewise.
7558 * gcc-interface/gigi.h: Tweak comments.
7559 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
7560 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
7561 overflows.
7562 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
7563 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
7564 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
7565 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
7566 TYPE_MAX_VALUE.
7567
7568 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
7569
7570 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
7571 TYPE_NAME.
7572 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
7573 (smaller_form_type_p): ...this. Change parameter and variable names.
7574 (call_to_gnu): Use the nominal type of the parameter to create the
7575 temporary if it's a smaller form of the actual type.
7576 (addressable_p): Return false if the actual type is integral and its
7577 size is greater than that of the expected type.
7578
7579 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7580
7581 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
7582 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
7583 (process_attributes): Delete.
7584 (post_error_ne_num): Change parameter name.
7585 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
7586 with -g3. Remove a couple of obsolete lines. Minor tweaks.
7587 If type annotating mode, operate on trees to compute the adjustment to
7588 the sizes of tagged types. Fix long line.
7589 (cannot_be_superflat_p): Tweak head comment.
7590 (annotate_value): Fold local constant.
7591 (set_rm_size): Fix long line.
7592 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
7593 (Attribute_to_gnu): Fix long line.
7594 <Attr_Size>: Remove useless assertion.
7595 Reorder statements. Use size_binop routine.
7596 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
7597 Create local variables for the label and the test. Tweak comments.
7598 (Subprogram_Body_to_gnu): Reset cfun to NULL.
7599 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
7600 (process_inlined_subprograms): Integrate into...
7601 (Compilation_Unit_to_gnu): ...this.
7602 (gnat_to_gnu): Fix long line.
7603 (post_error_ne_num): Change parameter name.
7604 * gcc-interface/utils.c (process_attributes): Static-ify.
7605 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
7606 (create_type_decl): Add comment.
7607 (create_var_decl_1): Process the attributes after adding the VAR_DECL
7608 to the current binding level.
7609 (create_subprog_decl): Likewise for the FUNCTION_DECL.
7610 (end_subprog_body): Do not reset cfun to NULL.
7611 (build_vms_descriptor32): Fix long line.
7612 (build_vms_descriptor): Likewise.
7613 (handle_nonnull_attribute): Likewise.
7614 (convert_vms_descriptor64): Likewise.
7615 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
7616 (gnat_protect_expr): Fix thinko.
7617
7618 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7619
7620 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
7621 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
7622 before translating the top-level node.
7623 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
7624 <N_Object_Declaration>: Likewise.
7625 <N_Assignment_Statement>: Likewise.
7626 <N_Unchecked_Type_Conversion>: Likewise.
7627 (call_to_gnu): Remove kludge.
7628 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
7629 associated with user returns to be preserved.
7630 (gnat_to_gnu): Add special code to deal with boolean rvalues.
7631 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
7632 comparisons.
7633 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
7634 <INDIRECT_REF>: Call build_fold_indirect_ref.
7635
7636 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
7637
7638 * g-socket.adb: A target can have multiple missing errno's. This
7639 will result in multiple errno's being defined as -1. Because of this
7640 we can not use a case but must use a series of if's to avoid
7641 a duplicate case error in GNAT.Sockets.Resolve_Error.
7642
7643 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7644
7645 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
7646 a statement. Otherwise, if at top-level, push the processing of the
7647 elaboration routine. In the misaligned case, issue the error messages
7648 again on entry and create the temporary explicitly. Do not issue them
7649 for CONSTRUCTORs.
7650 For a function call, emit the range check if necessary.
7651 In the copy-in copy-out case, create the temporary for the return
7652 value explicitly.
7653 Do not unnecessarily convert by-ref parameters to the formal's type.
7654 Remove obsolete guards in conditions.
7655 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
7656 target to call_to_gnu in all cases.
7657 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
7658 (addressable_p) <CONSTRUCTOR>: Return false if not static.
7659 <COMPOUND_EXPR>: New case.
7660 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
7661 expression if it has unconstrained array type.
7662 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
7663 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
7664 individual basis.
7665
7666 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7667
7668 * gcc-interface/trans.c (gigi): Do not start statement group.
7669 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
7670 Start statement group and push binding level here...
7671 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
7672 Do not push fake contexts at top level. Remove redundant code.
7673 (call_to_gnu): Rename a local variable and constify another.
7674 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
7675 (set_current_block_context): Set it as the group's block.
7676 (gnat_init_decl_processing): Delete unrelated init code.
7677 (end_subprog_body): Use NULL_TREE.
7678
7679 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7680
7681 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
7682 side-effects of actual parameters before the call.
7683
7684 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
7685
7686 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
7687 and warning.
7688 (set_rm_size): Reorder and remove obsolete test.
7689
7690 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
7691
7692 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
7693 (gigi): Adjust ATTRIBUTE_UNUSED markers.
7694 * gcc-interface/gadaint.h: New file.
7695 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
7696 (__gnat_to_canonical_file_spec): Remove declaration.
7697 (number_names): Delete.
7698 (number_files): Likewise.
7699 (gigi): Adjust.
7700 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
7701 above change.
7702
7703 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
7704
7705 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
7706 comment.
7707 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
7708 Ekind. Return early for class-wide types. Do not compute initializer
7709 unless necessary. Reuse the tree for an associated class-wide type
7710 only if processing its root type.
7711
7712 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
7713
7714 * gsocket.h: Run-time can no longer be built without network
7715 OS headers available. Changing RTEMS GNAT build procedure to
7716 reflect this and letting run-time build use network .h files.
7717
7718 2010-04-13 Duncan Sands <baldrick@free.fr>
7719
7720 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
7721 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
7722
7723 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
7724
7725 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
7726 (parent_name_id): New macro.
7727 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
7728 * gcc-interface/trans.c (gigi): Initialize it.
7729 (lvalue_required_p) <N_Type_Conversion>: New case.
7730 <N_Qualified_Expression>: Likewise.
7731 <N_Allocator>: Likewise.
7732 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
7733
7734 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
7735
7736 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
7737 (DECL_CONST_ADDRESS_P): New macro.
7738 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
7739 (SAME_FIELD_P): Likewise.
7740 * gcc-interface/decl.c (constructor_address_p): New static function.
7741 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
7742 the return value of above function.
7743 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
7744 passed by reference.
7745 <E_Record_Subtype>: Likewise.
7746 Set TREE_ADDRESSABLE on the type if it passed by reference.
7747 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
7748 (create_field_decl_from): Likewise.
7749 (substitute_in_type): Likewise.
7750 (purpose_member_field): Use SAME_FIELD_P.
7751 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
7752 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
7753 parameter and adjust recursive calls.
7754 <N_Explicit_Dereference>: New case.
7755 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
7756 Adjust calls to lvalue_required_p. Do not return the initializer of a
7757 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
7758 (call_to_gnu): Delay issuing error message for a misaligned actual and
7759 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
7760 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
7761 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
7762 type is passed by reference.
7763 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
7764 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
7765 (build_simple_component_ref): Use SAME_FIELD_P.
7766
7767 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
7768
7769 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
7770 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
7771 front-end's predicate Is_By_Reference_Type. Use consistent order and
7772 remove ??? comment. Use original conversion in all cases, if any.
7773 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
7774 (convert): Use local copy in more cases.
7775 <INDIRECT_REF>: Remove deactivated code.
7776 (unchecked_convert): Use a couple of local copies.
7777
7778 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
7779
7780 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
7781 function.
7782 (lvalue_required_p) <N_Attribute_Reference>: Call it.
7783 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
7784 folding the result only if lvalue_required_for_attribute_p is true.
7785 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
7786 typed constant to build_component_ref.
7787 (unchecked_convert): Likewise.
7788 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
7789 (build_allocator): Likewise.
7790
7791 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
7792
7793 * gcc-interface/utils2.c (build_cond_expr): Take the address and
7794 dereference if the result type is passed by reference.
7795
7796 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
7797
7798 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
7799 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
7800 goto to the next statement.
7801
7802 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
7803
7804 * gcc-interface/gigi.h (maybe_variable): Delete.
7805 (protect_multiple_eval): Likewise.
7806 (maybe_stabilize_reference): Likewise.
7807 (gnat_save_expr): Declare.
7808 (gnat_protect_expr): Likewise.
7809 (gnat_stabilize_reference): Likewise.
7810 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
7811 gnat_stabilize_reference.
7812 (maybe_variable): Delete.
7813 (elaborate_expression_1): Use gnat_save_expr.
7814 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
7815 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
7816 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
7817 <N_Slice>: Use gnat_protect_exp.
7818 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
7819 <N_In>: Use gnat_protect_expr.
7820 Pass NULL to gnat_stabilize_reference.
7821 (build_unary_op_trapv): Use gnat_protect_expr.
7822 (build_binary_op_trapv): Likewise.
7823 (emit_range_check): Likewise.
7824 (emit_index_check): Likewise.
7825 (convert_with_check): Likewise.
7826 (protect_multiple_eval): Move to utils2.c file.
7827 (maybe_stabilize_reference): Merge into...
7828 (gnat_stabilize_reference): ...this. Move to utils2.c file.
7829 (gnat_stabilize_reference_1): Likewise.
7830 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
7831 instead of protect_multiple_eval.
7832 * gcc-interface/utils2.c (compare_arrays): Likewise.
7833 (nonbinary_modular_operation): Likewise.
7834 (maybe_wrap_malloc): Likewise.
7835 (build_allocator): Likewise.
7836 (gnat_save_expr): New function.
7837 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
7838 in common cases. Propagate TREE_READONLY onto dereferences.
7839 (gnat_stabilize_reference_1): Move from trans.c file.
7840 (gnat_stabilize_reference): Likewise.
7841
7842 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
7843
7844 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
7845 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
7846 node. Use the type of the operand to set TREE_READONLY.
7847 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
7848 _REF node. Do not overwrite TREE_READONLY.
7849 (call_to_gnu): Rename local variable and fix various nits. In the
7850 copy-in/copy-out case, build the SAVE_EXPR manually.
7851 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
7852 and fold the computations.
7853 (protect_multiple_eval): Always save entire fat pointers.
7854 (maybe_stabilize_reference): Minor tweaks.
7855 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
7856 tcc_type and tcc_statement.
7857 * gcc-interface/utils.c (convert_to_fat_pointer): Call
7858 protect_multiple_eval in lieu of save_expr.
7859 (convert): Minor tweaks.
7860 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
7861 (builtin_type_for_size): Call gnat_type_for_size directly.
7862 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
7863 (contains_null_expr): Likewise
7864 (gnat_build_constructor): Do not call it.
7865 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
7866 instead of gnat_stabilize_reference to protect the operands.
7867 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
7868 save_expr.
7869 (maybe_wrap_malloc): Likewise.
7870 (build_allocator): Likewise.
7871 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
7872 (gnat_mark_addressable): Rename parameter.
7873
7874 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
7875
7876 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
7877 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
7878 (TYPE_RETURNS_BY_REF_P): Rename into.
7879 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
7880 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
7881 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
7882 (build_return_expr): Likewise.
7883 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
7884 Rename local variables. If the return Mechanism is By_Reference, pass
7885 return_by_invisible_ref_p to create_subprog_type instead of toggling
7886 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
7887 the mechanism. Use regular return for contrained types with non-static
7888 size and return by invisible reference for unconstrained return types
7889 with default discriminants. Update comment.
7890 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
7891 returns by invisible reference, turn the RESULT_DECL into a pointer.
7892 Do not handle DECL_BY_REF_P in the CICO case here.
7893 (call_to_gnu): Remove code handling return by target pointer. For a
7894 function call, if the return type has non-constant size, generate the
7895 assignment with an INIT_EXPR.
7896 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
7897 If the function returns by invisible reference, build the copy return
7898 operation manually.
7899 (add_decl_expr): Initialize the variable with an INIT_EXPR.
7900 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
7901 Adjust for renaming of macros. Copy the node only when necessary.
7902 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
7903 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
7904 (convert_from_reference): Delete.
7905 (is_byref_result): Likewise.
7906 (gnat_genericize_r): Likewise.
7907 (gnat_genericize): Likewise.
7908 (end_subprog_body): Do not call gnat_genericize.
7909 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
7910 (build_return_expr): Adjust parameter names, logic and comment.
7911
7912 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7913
7914 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
7915 if the size is small enough. Propagate the alignment if there is an
7916 alignment clause on the original array type.
7917 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
7918 Deal with under-aligned packed array types. Copy the size onto the
7919 justified modular type and don't lay it out again. Likewise for the
7920 padding type built for other under-aligned subtypes.
7921 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
7922 on the type.
7923
7924 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7925
7926 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
7927 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
7928
7929 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7930
7931 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
7932 do not set the result type if there is a specified target and do not
7933 convert the result in any cases.
7934 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
7935 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
7936
7937 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
7938
7939 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
7940
7941 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
7942
7943 PR ada/42253
7944 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
7945 pointer base types are variant of each other. Apply special treatment
7946 for null to fat pointer types in all cases.
7947
7948 2010-01-28 Pascal Obry <obry@adacore.com>
7949
7950 * s-win32.ads: Add some missing constants.
7951
7952 2010-01-28 Vincent Celier <celier@adacore.com>
7953
7954 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
7955 Unknown_Package.
7956
7957 2010-01-28 Robert Dewar <dewar@adacore.com>
7958
7959 * gnat_rm.texi: Minor correction
7960
7961 2010-01-27 Pascal Obry <obry@adacore.com>
7962
7963 * g-awk.adb: ensure that an AWK session is reusable.
7964
7965 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
7966
7967 * g-regist.adb (For_Every_Key): Fix previous change.
7968 Minor reformatting.
7969
7970 2010-01-27 Thomas Quinot <quinot@adacore.com>
7971
7972 * lib-writ.ads: Current version of spec for new N (note) ALI lines
7973
7974 2010-01-27 Yannick Moy <moy@adacore.com>
7975
7976 * a-cdlili.adb (Insert): Correct exception message when cursor
7977 designates wrong list.
7978
7979 2010-01-27 Vincent Celier <celier@adacore.com>
7980
7981 * gnatcmd.adb: When there is only one main specified, the package
7982 support Switches (<main>) and attribute Switches is specified for the
7983 main, use these switches, instead of Default_Switches ("Ada").
7984
7985 2010-01-27 Robert Dewar <dewar@adacore.com>
7986
7987 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
7988 implementation.
7989 * exp_disp.adb: Minor reformatting
7990
7991 2010-01-27 Tristan Gingold <gingold@adacore.com>
7992
7993 * seh_init.c: Use __ImageBase instead of _ImageBase.
7994
7995 2010-01-27 Javier Miranda <miranda@adacore.com>
7996
7997 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
7998 profile of interface thunks. The type of the controlling formal is now
7999 the covered interface type (instead of the target tagged type).
8000
8001 2010-01-27 Sergey Rybin <rybin@adacore.com>
8002
8003 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
8004
8005 2010-01-27 Robert Dewar <dewar@adacore.com>
8006
8007 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
8008 changed from Expr to N.
8009
8010 2010-01-26 Thomas Quinot <quinot@adacore.com>
8011
8012 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
8013 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
8014 -gnatzr.
8015
8016 2010-01-26 Vincent Celier <celier@adacore.com>
8017
8018 * prj-attr.adb: Add new attribute Library_Install_Name_Option
8019 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
8020 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
8021 attributes Run_Path_Option and Library_Install_Name_Option.
8022 * prj.ads (Project_Configuration): Replace component
8023 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
8024 component Library_Install_Name_Option.
8025 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
8026 Replace Run_Path_Origin_Supported with Run_Path_Origin
8027
8028 2010-01-26 Ed Schonberg <schonberg@adacore.com>
8029
8030 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
8031 is not hidden by a homograph declared in another actual package.
8032
8033 2010-01-26 Robert Dewar <dewar@adacore.com>
8034
8035 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
8036 decisions for pragmas Assert, Check, Precondition, Postcondition if
8037 -gnata set.
8038 * scos.ads: Update comments.
8039 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
8040 Also remove obsolete code for CT (exit point) SCOs.
8041
8042 2010-01-26 Thomas Quinot <quinot@adacore.com>
8043
8044 * switch-c.adb: Fix handling of -gnatz*
8045
8046 2010-01-26 Robert Dewar <dewar@adacore.com>
8047
8048 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
8049 qualifiers for FOR/WHILE loops
8050 * scos.ads: Use separate type letters F/W for for/while loops
8051
8052 2010-01-26 Robert Dewar <dewar@adacore.com>
8053
8054 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
8055 entries per line, one for each statement in the sequence).
8056 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
8057 size from 100 to 10_000 for SC_Array to avoid any real possibility of
8058 overflow. Output decisions in for loops.
8059 Exclude labels from CS lines.
8060 * scos.ads: Clarify that label is not included in the entry point
8061
8062 2010-01-26 Robert Dewar <dewar@adacore.com>
8063
8064 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
8065 format of statement sequence SCO entries (one location/statement).
8066 * put_scos.adb (Put_SCOs): Implement new format of CS lines
8067 * scos.ads: Update comments.
8068 * sem_eval.adb: Minor reformatting.
8069
8070 2010-01-26 Robert Dewar <dewar@adacore.com>
8071
8072 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
8073 (Extend_Statement_Sequence): New procedures
8074 (Traverse_Declarations_Or_Statements): New handling for exits.
8075
8076 2010-01-26 Robert Dewar <dewar@adacore.com>
8077
8078 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
8079 Case.
8080
8081 2010-01-26 Robert Dewar <dewar@adacore.com>
8082
8083 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
8084 * scos.ads: Clarify handling of logical operators
8085
8086 2010-01-26 Arnaud Charlet <charlet@adacore.com>
8087
8088 * s-tpoben.adb: Update comments.
8089
8090 2010-01-26 Robert Dewar <dewar@adacore.com>
8091
8092 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
8093 present.
8094
8095 2010-01-26 Robert Dewar <dewar@adacore.com>
8096
8097 * scos.ads: Clean up documentation, remove obsolete XOR references
8098 2010-01-26 Vincent Celier <celier@adacore.com>
8099
8100 * gnat_ugn.texi: Complete documentation on the restrictions for
8101 combined options in -gnatxxx switches.
8102 Fix typo.
8103
8104 2010-01-26 Arnaud Charlet <charlet@adacore.com>
8105
8106 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
8107 a controlled operation, abort is already deferred at this point, so we
8108 need to use Defer_Abort_Nestable.
8109
8110 2010-01-26 Vincent Celier <celier@adacore.com>
8111
8112 * prj-conf.adb (Get_Config_Switches): Check for a default language for
8113 a project extending a project with no languages.
8114
8115 2010-01-26 Vincent Celier <celier@adacore.com>
8116
8117 * switch-c.adb (Scan_Front_End_Switches): Take into account options
8118 that follow -gnatef.
8119 Allow -gnateG to be followed by other options.
8120
8121 2010-01-26 Robert Dewar <dewar@adacore.com>
8122
8123 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
8124 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
8125 reformatting.
8126
8127 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
8128
8129 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
8130 that allows to iterate over all subkeys of a key.
8131
8132 2010-01-26 Ed Falis <falis@adacore.com>
8133
8134 * sysdep.c: enable NFS for VxWorks MILS
8135 * env.c: enable __gnat_environ for VxWorks MILS
8136 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
8137
8138 2010-01-25 Bob Duff <duff@adacore.com>
8139
8140 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
8141 is an internally-generated positional aggregate, and the bounds are
8142 already correctly set. We don't want to overwrite those bounds with
8143 bounds determined by context.
8144
8145 2010-01-25 Robert Dewar <dewar@adacore.com>
8146
8147 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
8148 exp_ch9.adb, g-sechas.ads: Minor reformatting.
8149
8150 2010-01-25 Thomas Quinot <quinot@adacore.com>
8151
8152 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
8153 integer type) before subtracting 1, otherwise the computation may wrap
8154 (because size_t is modular) and cause the conversion to fail.
8155
8156 2010-01-25 Ed Falis <falis@adacore.com>
8157
8158 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
8159
8160 2010-01-25 Vincent Celier <celier@adacore.com>
8161
8162 * prj-attr.adb: New attribute Run_Path_Origin_Required
8163 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
8164 attribute Run_Path_Origin_Required.
8165 * prj.ads (Project_Configuration): New component
8166 Run_Path_Origin_Supported.
8167 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
8168
8169 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8170
8171 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
8172 have errors, do not continue resolution of the aggregate.
8173 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
8174 the array type indicates an error.
8175
8176 2010-01-25 Bob Duff <duff@adacore.com>
8177
8178 * sinfo.ads: Minor comment fixes.
8179
8180 2010-01-25 Bob Duff <duff@adacore.com>
8181
8182 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
8183
8184 2010-01-25 Arnaud Charlet <charlet@adacore.com>
8185
8186 * gnatvsn.ads (Current_Year): Update.
8187
8188 2010-01-25 Florian Villoing <villoing@adacore.com>
8189
8190 * gnat_ugn.texi: Fix typo.
8191
8192 2010-01-25 Thomas Quinot <quinot@adacore.com>
8193
8194 * scos.ads: Update specification.
8195
8196 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8197
8198 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
8199 enclosing subprogram has no previous spec, attach postcondition
8200 procedure to the defining entity for the body.
8201
8202 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8203
8204 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
8205 initialization procedure of the ancestor part of an extension aggregate
8206 if it is an interface type.
8207
8208 2010-01-25 Vincent Celier <celier@adacore.com>
8209
8210 * gnatlink.adb (Process_Binder_File): The directory for the shared
8211 version of libgcc in the run path options is found in the subdirectory
8212 indicated by __gnat_default_libgcc_subdir.
8213 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
8214 each platform.
8215
8216 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8217
8218 * sem_prag.adb: More flexible pragma Annotate.
8219
8220 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
8221
8222 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
8223 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
8224
8225 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
8226
8227 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
8228
8229 2010-01-18 Jan Hubicka <jh@suse.cz>
8230
8231 PR middle-end/42068
8232 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
8233 unit local variables.
8234
8235 2010-01-17 Laurent GUERBY <laurent@guerby.net>
8236
8237 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
8238
8239 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
8240
8241 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
8242 * system-linux-armeb.ads, system-linux-armel.ads: New files.
8243
8244 2010-01-09 Simon Wright <simon@pushface.org>
8245
8246 PR ada/42626
8247 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
8248 end-quote.
8249
8250
8251 \f
8252 Copyright (C) 2010 Free Software Foundation, Inc.
8253
8254 Copying and distribution of this file, with or without modification,
8255 are permitted in any medium without royalty provided the copyright
8256 notice and this notice are preserved.