[multiple changes]
[gcc.git] / gcc / ada / ChangeLog
1 2010-06-23 Thomas Quinot <quinot@adacore.com>
2
3 * sem_util.adb: Minor code cleanup: test for proper entity instead of
4 testing just Chars attribute when checking whether a given scope is
5 System.
6 * exp_ch4.adb, einfo.adb: Minor reformatting.
7
8 2010-06-23 Vincent Celier <celier@adacore.com>
9
10 PR ada/44633
11 * switch-m.adb (Normalize_Compiler_Switches): Take into account
12 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
13 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
14
15 2010-06-23 Ed Schonberg <schonberg@adacore.com>
16
17 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
18 operation with a universal real operand, and the right operand is a
19 range with universal bounds, find unique fixed point that may be
20 candidate, and warn appropriately.
21
22 2010-06-23 Ed Schonberg <schonberg@adacore.com>
23
24 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
25 properly the rare cases where VMS operators are visible through
26 Extend_System, but the default System is being used and Address is a
27 private type.
28 * sem_util.adb: Widen predicate Is_VMS_Operator.
29
30 2010-06-23 Vincent Celier <celier@adacore.com>
31
32 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
33 and -gnateS.
34
35 2010-06-23 Olivier Hainque <hainque@adacore.com>
36
37 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
38 Interface_Name as foreign. These are GCC builtin imports for
39 which Ada specific processing doesn't apply.
40
41 2010-06-23 Thomas Quinot <quinot@adacore.com>
42
43 * sem_ch12.adb: Minor reformatting.
44
45 2010-06-23 Ed Schonberg <schonberg@adacore.com>
46
47 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
48 determine whether an intrinsic subprogram is VMS specific.
49
50 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
51
52 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
53 is present in the entity.
54
55 2010-06-23 Arnaud Charlet <charlet@adacore.com>
56
57 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
58 Fix handling of parameters.
59 Add protection against unexpected cases.
60 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
61 access level, since "A" suffix is already used elsewhere. Similarly,
62 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
63 for xxx'Class.
64
65 2010-06-23 Thomas Quinot <quinot@adacore.com>
66
67 * sem_util.adb, sem_util.ads: Minor reformatting.
68
69 2010-06-23 Vincent Celier <celier@adacore.com>
70
71 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
72 the previous behavior of gprclean when there are missing files.
73
74 2010-06-23 Ed Schonberg <schonberg@adacore.com>
75
76 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
77 generic body is not a fatal error.
78 (Mark_Context): Handle properly names of child units.
79 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
80 instantiations.
81
82 2010-06-23 Vincent Celier <celier@adacore.com>
83
84 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
85 non-empty line.
86
87 2010-06-23 Bob Duff <duff@adacore.com>
88
89 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
90 Memory_Space, because CPU_Time doesn't seem to provide any significant
91 speed advantage in practice. Cleanup: Get rid of constant
92 Default_Optimization; doesn't seem to add anything. Use case
93 statements instead of if statements; seems cleaner.
94
95 2010-06-23 Olivier Hainque <hainque@adacore.com>
96
97 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
98 Wshadow instead of Wextra to guard warning on absence of internal
99 builtin decl for an import. Fix use of quote in warning text.
100 (intrin_arglists_compatible_p): Remove processing of integer trailing
101 args on the Ada side. Fix use of literal > in warning text.
102 (intrin_return_compatible_p): Never warn on "function imported as
103 procedure". Defer the void/void case to the common type compatibility
104 check.
105 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
106 of GCC builtin imports.
107
108 2010-06-23 Olivier Hainque <hainque@adacore.com>
109
110 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
111 helper for ...
112 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
113 functions, helpers for ...
114 (intrin_profiles_compatible_p): New function, replacement for ...
115 (compatible_signatures_p): Removed.
116 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
117 attempt to bind an unregistered builtin function. When we have
118 one, use it and warn on profile incompatibilities.
119
120 2010-06-23 Arnaud Charlet <charlet@adacore.com>
121
122 * gcc-interface/Make-lang.in: Update dependencies.
123
124 2010-06-23 Ed Schonberg <schonberg@adacore.com>
125
126 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
127 for a coextension in an object declaration is a concatenation, treat
128 coextension as dynamic.
129
130 2010-06-23 Javier Miranda <miranda@adacore.com>
131
132 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
133 internal entities are added to the scope of the tagged type.
134 (Derive_Subprograms): Do not stop derivation when we find the first
135 internal entity that has attribute Interface_Alias. After the change
136 done to Override_Dispatching_Operations it is no longer true that
137 these primirives are always located at the end of the list of
138 primitives.
139 * einfo.ads (Primitive_Operations): Add documentation.
140 * exp_disp.adb (Write_DT): Improve output adding to the name of the
141 primitive a prefix indicating its corresponding tagged type.
142 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
143 entity covers the primitive of an interface that is not an ancestor of
144 this tagged type then the new primitive is added at the end of the list
145 of primitives. Required to fulfill the C++ ABI.
146
147 2010-06-23 Javier Miranda <miranda@adacore.com>
148
149 * atree.ads (Set_Reporting_Proc): New subprogram.
150 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
151 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
152 to routines of package Scil_ll by indirect call to the registered
153 subprogram.
154 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
155 that is invoked when a node is allocated, replaced or rewritten.
156 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
157 the SCIL node. Used as argument for Set_Reporting_Proc.
158 (Initialize): Register Copy_SCIL_Node as the reporting routine that
159 is invoked by atree.
160
161 2010-06-23 Thomas Quinot <quinot@adacore.com>
162
163 * sem_ch3.ads: Minor reformatting.
164
165 2010-06-23 Ed Schonberg <schonberg@adacore.com>
166
167 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
168 always analyze the generic body and instance, because it may be needed
169 downstream.
170 (Mark_Context): Prepend the with clauses for needed generic units, so
171 they appear in a better order for CodePeer.
172 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
173
174 2010-06-23 Emmanuel Briot <briot@adacore.com>
175
176 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
177
178 2010-06-23 Robert Dewar <dewar@adacore.com>
179
180 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
181
182 2010-06-23 Thomas Quinot <quinot@adacore.com>
183
184 * a-tags.ads: Fix description of TSD structure.
185
186 2010-06-23 Ed Schonberg <schonberg@adacore.com>
187
188 * sem_ch12.adb (Mark_Context): When indicating that the body of a
189 generic unit is needed prior to the unit containing an instantiation,
190 search recursively the context of the generic to add other generic
191 bodies that may be instantiated indirectly through the current instance.
192
193 2010-06-23 Robert Dewar <dewar@adacore.com>
194
195 * freeze.adb: Minor reformatting.
196
197 2010-06-23 Bob Duff <duff@adacore.com>
198
199 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
200
201 2010-06-23 Vincent Celier <celier@adacore.com>
202
203 * make.adb (Compile_Sources): Complete previous change.
204
205 2010-06-23 Ed Schonberg <schonberg@adacore.com>
206
207 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
208 Constrained extra formal.
209
210 2010-06-23 Ed Schonberg <schonberg@adacore.com>
211
212 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
213 Initialize_Scalars are enabled, compile the generated equality function
214 for a composite type with full checks enabled, so that validity checks
215 are performed on individual components.
216
217 2010-06-23 Emmanuel Briot <briot@adacore.com>
218
219 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
220 Missing_Source_Files.
221
222 2010-06-23 Robert Dewar <dewar@adacore.com>
223
224 * exp_ch3.adb, exp_util.adb: Minor reformatting.
225
226 2010-06-23 Jose Ruiz <ruiz@adacore.com>
227
228 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
229 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
230 Clock (without delays) use a run time which is properly initialized.
231
232 2010-06-23 Vincent Celier <celier@adacore.com>
233
234 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
235 when -f -u and a main is specified on the command line. However,
236 attempt to compile even when the ALI file is read-only when
237 Must_Compile is True.
238
239 2010-06-23 Thomas Quinot <quinot@adacore.com>
240
241 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
242
243 2010-06-23 Javier Miranda <miranda@adacore.com>
244
245 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
246 entities for parent types that are interfaces. Needed in generics to
247 handle formals that implement interfaces.
248 (Derive_Subprograms): Add assertion for derivation of tagged types that
249 do not cover interfaces. For generics, complete code that handles
250 derivation of type that covers interfaces because the previous
251 condition was weak (it required only name consistency; arguments were
252 not checked). Add new code to locate primitives covering interfaces
253 defined in generic units or instantiatons.
254 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
255 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
256 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
257 interfaces that are parents of the type because they share the primary
258 dispatch table.
259 (Register_Primitive): Do not register primitives of interfaces that
260 are parents of the type.
261 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
262 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
263 primitives skip primitives of interfaces that are parents of the type.
264
265 2010-06-23 Ed Schonberg <schonberg@adacore.com>
266
267 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
268 attribute cannot be constant-folded if an index type is a formal type,
269 or is derived from one.
270 * checks.adb (Determine_Range): ditto.
271
272 2010-06-23 Arnaud Charlet <charlet@adacore.com>
273
274 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
275
276 2010-06-23 Bob Duff <duff@adacore.com>
277
278 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
279 (Insert): Disallow nul characters.
280 (misc output routines): Assert no nul characters.
281
282 2010-06-23 Ed Schonberg <schonberg@adacore.com>
283
284 * exp_ch4.adb: Use predefined unsigned type in all cases.
285
286 2010-06-23 Bob Duff <duff@adacore.com>
287
288 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
289 * g-pehage.ads: Minor comment fixes.
290 * g-pehage.adb: Minor: Add some additional debugging printouts under
291 Verbose flag.
292
293 2010-06-23 Robert Dewar <dewar@adacore.com>
294
295 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
296 (Worse_Choice): Always prefer Pure/Preelab.
297
298 2010-06-23 Vincent Celier <celier@adacore.com>
299
300 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
301
302 2010-06-23 Robert Dewar <dewar@adacore.com>
303
304 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
305 checking returns in generic case.
306 (Check_Missing_Return): New procedure.
307
308 2010-06-23 Robert Dewar <dewar@adacore.com>
309
310 * bindgen.adb, switch-b.adb: Minor reformatting.
311
312 2010-06-23 Javier Miranda <miranda@adacore.com>
313
314 * frontend.adb (Frontend): Add call to initialize the new package
315 SCIL_LL.
316 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
317 Adjust_SCIL_Node.
318 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
319 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
320 Adjust_SCIL_Node.
321 * exp_util.adb (Insert_Actions): Remove code for
322 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
323 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
324 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
325 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
326 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
327 * sinfo.ads (SCIL_Related_Node): Field removed.
328 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
329 (N_SCIL_Tag_Init): Node removed.
330 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
331 (Check_SCIL_Node): New implementation.
332 (Find_SCIL_Node): Removed.
333 * sem.adb (Analyze): Remove management of
334 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
335 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
336 Adjust_SCIL_Node.
337 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
338 Set_SCIL_Related_Node and avoid adding the SCIL node before the
339 referenced node using Insert_Action because this is not longer required.
340 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
341 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
342 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
343 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
344 because we no longer require to generate the SCIL node before the call.
345 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
346 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
347 nodes before the referenced node using Insert_Action because this
348 is not longer required.
349 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
350 update the SCIL_Node field.
351 * sprint.adb (Sprint_Node_Actual): Remove code for
352 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
353 * treepr.adb (Print_Node): Print the SCIL node field (if available).
354 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
355 SCIL_Tag_Init nodes.
356 * scil_ll.ads, scil_ll.adb: New files.
357 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
358 dependencies.
359
360 2010-06-23 Robert Dewar <dewar@adacore.com>
361
362 * sem_ch6.adb: Minor reformatting.
363
364 2010-06-23 Doug Rupp <rupp@adacore.com>
365
366 * bindusg.adb (Display): Write -Hnn line.
367 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
368 necessary.
369 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
370 valid values to 32 and 64.
371 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
372 ENABLE, DISABLE as valid settings.
373 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
374 * opt.ads (Heap_Size): New global variable.
375 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
376 TARGET_MALLOC64 check. Fix comment.
377
378 2010-06-23 Robert Dewar <dewar@adacore.com>
379
380 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
381 reformatting. Add comments.
382 * errout.adb (Finalize): Properly adjust warning count when deleting
383 continuations.
384
385 2010-06-22 Robert Dewar <dewar@adacore.com>
386
387 * errout.adb (Finalize): Set Prev pointers.
388 (Finalize): Delete continuations for deletion by warnings off(str).
389 * erroutc.ads: Add Prev pointer to error message structure.
390
391 2010-06-22 Ed Schonberg <schonberg@adacore.com>
392
393 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
394 child unit, examine context of parent units to locate instantiated
395 generics whose bodies may be needed.
396 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
397 with_clause for the instantiated generic, examine the context of its
398 parents, to set Withed_Body flag, so that it can be visited earlier.
399 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
400 an unsigned type, use a type of the proper size for the intermediate
401 value, to prevent alignment problems on unchecked conversion.
402
403 2010-06-22 Geert Bosch <bosch@adacore.com>
404
405 * s-rannum.ads Change Generator type to be self-referential to allow
406 Random to update its argument. Use "in" mode for the generator in the
407 Reset procedures to allow them to be called from the Ada.Numerics
408 packages without tricks.
409 * s-rannum.adb: Use the self-referencing argument to get write access
410 to the internal state of the random generator.
411 * a-nudira.ads: Make Generator a derived type of
412 System.Random_Numbers.Generator.
413 * a-nudira.adb: Remove use of 'Unrestricted_Access.
414 Put subprograms in alpha order and add headers.
415 * g-mbdira.ads: Change Generator type to be self-referential.
416 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
417
418 2010-06-22 Robert Dewar <dewar@adacore.com>
419
420 * freeze.adb: Minor reformatting
421 Minor code reorganization (use Nkind_In and Ekind_In).
422
423 2010-06-22 Bob Duff <duff@adacore.com>
424
425 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
426 -gnatc when a file is compiled that we cannot generate code for, not
427 helpful and confusing.
428
429 2010-06-22 Vincent Celier <celier@adacore.com>
430
431 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
432 switches -gnatknn.
433
434 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
435
436 * s-rannum.adb: Replace constants with commented symbols.
437 * s-rannum.ads: Explain significance of the initial value of the data
438 structure.
439
440 2010-06-22 Ed Schonberg <schonberg@adacore.com>
441
442 * a-ngcoty.adb: Clarify comment.
443
444 2010-06-22 Gary Dismukes <dismukes@adacore.com>
445
446 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
447 expansion for indexing packed arrays with small power-of-2 component
448 sizes when the target is AAMP.
449 (Expand_Packed_Element_Reference): Return without expansion for
450 indexing packed arrays with small power-of-2 component sizes when the
451 target is AAMP.
452
453 2010-06-22 Geert Bosch <bosch@adacore.com>
454
455 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
456 Float'Range.
457
458 2010-06-22 Robert Dewar <dewar@adacore.com>
459
460 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
461 updates.
462
463 2010-06-22 Doug Rupp <rupp@adacore.com>
464
465 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
466 packages.
467 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
468 (pragma Ident): Add a default ident string in the private part.
469
470 2010-06-22 Robert Dewar <dewar@adacore.com>
471
472 * cstand.adb: Minor reformatting.
473
474 2010-06-22 Ed Schonberg <schonberg@adacore.com>
475
476 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
477 recognize the Shift and Rotation intrinsics that are known to the
478 compiler but have no interface name.
479
480 2010-06-22 Geert Bosch <bosch@adacore.com>
481
482 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
483 scaling in case of overflow or NaN results.
484
485 2010-06-22 Robert Dewar <dewar@adacore.com>
486
487 * cstand.adb: Complete previous change.
488 * g-dirope.ads: Add comment.
489 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
490
491 2010-06-22 Ed Schonberg <schonberg@adacore.com>
492
493 * cstand.adb: Add tree nodes for pragma Pack on string types.
494
495 2010-06-22 Javier Miranda <miranda@adacore.com>
496
497 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
498 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
499 formal of a primitive.
500 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
501 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
502 formal of a primitive.
503 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
504 to obtain the last formal of a primitive.
505
506 2010-06-22 Geert Bosch <bosch@adacore.com>
507
508 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
509 depending on __EMX__ or MSDOS being defined.
510 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
511 * a-excpol-abort.adb: Update comment indicating users of the file.
512 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
513 Windows.
514 * env.c: Remove empty conditional for MSDOS.
515 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
516 of OS/2 in comment.
517
518 2010-06-22 Robert Dewar <dewar@adacore.com>
519
520 * s-rannum.adb: Minor reformatting.
521
522 2010-06-22 Javier Miranda <miranda@adacore.com>
523
524 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
525 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
526 package Sem_Util to package Sem_Aux.
527
528 2010-06-22 Javier Miranda <miranda@adacore.com>
529
530 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
531 remove useless restriction on imported routines when building the
532 dispatch tables.
533
534 2010-06-22 Robert Dewar <dewar@adacore.com>
535
536 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
537 types.
538
539 2010-06-22 Javier Miranda <miranda@adacore.com>
540
541 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
542 generic subprogram declarations to ensure proper context. Add missing
543 support for generic actuals.
544 (Try_Primitive_Operation): Add missing support for concurrent types that
545 have no Corresponding_Record_Type. Required to diagnose errors compiling
546 generics or when compiling with no code generation (-gnatc).
547 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
548 the corresponding record type.
549 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
550 documentation. Do minimum decoration when processing a primitive of a
551 concurrent tagged type that covers interfaces. Required to diagnose
552 errors in the Object.Operation notation compiling generics or under
553 -gnatc.
554 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
555 propagation of attribute Interface_List to the corresponding record.
556 (Expand_N_Task_Type_Declaration): Code cleanup.
557 (Expand_N_Protected_Type_Declaration): Code cleanup.
558
559 2010-06-22 Matthew Heaney <heaney@adacore.com>
560
561 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
562
563 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
564
565 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
566 that is able to produce all representable floating-point numbers in the
567 unit interval. Remove template parameter Shift_Right, no longer used.
568 * gnat_rm.texi: Document the period of the pseudo-random number
569 generator under the description of its algorithm.
570 * gcc-interface/Make-lang.in: Update dependencies.
571
572 2010-06-22 Thomas Quinot <quinot@adacore.com>
573
574 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
575 reference to discriminant (can be an expanded name as well as an
576 identifier).
577
578 2010-06-22 Ed Schonberg <schonberg@adacore.com>
579
580 * exp_ch6.adb: Clarify comment.
581
582 2010-06-22 Geert Bosch <bosch@adacore.com>
583
584 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
585 with decimal small as decimal types, avoiding floating-point arithmetic.
586 (Has_Decimal_Small): New function.
587 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
588 fixed point types.
589 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
590 callers to call the new function in Einfo that takes the entity as
591 parameter.
592
593 2010-06-22 Robert Dewar <dewar@adacore.com>
594
595 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
596
597 2010-06-22 Thomas Quinot <quinot@adacore.com>
598
599 * sem_elab.adb: Minor reformatting.
600
601 2010-06-22 Vincent Celier <celier@adacore.com>
602
603 * gnatsym.adb: Put the object files in the table in increasing
604 aphabetical order of base names.
605
606 2010-06-22 Ed Schonberg <schonberg@adacore.com>
607
608 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
609 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
610 the corresponding discriminal within a record declaration.
611
612 2010-06-22 Thomas Quinot <quinot@adacore.com>
613
614 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
615 expression referring to a discriminal of the type of the aggregate (not
616 a discriminal of some other unrelated type), and the prefix in the
617 generated selected component must come from Lhs, not Obj.
618
619 2010-06-22 Thomas Quinot <quinot@adacore.com>
620
621 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
622 when to freeze the parent type.
623
624 2010-06-22 Robert Dewar <dewar@adacore.com>
625
626 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
627 exp_aggr.adb: Minor reformatting.
628 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
629 GNAT.MBSS_Float_Random.
630 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
631
632 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
633
634 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
635 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
636 (Random_Float_Template, Random): New method of creating
637 uniform floating-point variables that allow the creation of all machine
638 values in [0 .. 1).
639
640 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
641
642 2010-06-22 Gary Dismukes <dismukes@adacore.com>
643
644 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
645 to abstract targets to check that the type is tagged and comes from
646 source, rather than only testing for targets of interface types. Remove
647 premature return.
648
649 2010-06-22 Vincent Celier <celier@adacore.com>
650
651 * vms_data.ads: Modify the declarations of qualifiers
652 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
653 without error.
654
655 2010-06-22 Ed Schonberg <schonberg@adacore.com>
656
657 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
658 expansion is disabled.
659
660 2010-06-22 Robert Dewar <dewar@adacore.com>
661
662 * makeusg.adb: Minor reformatting.
663
664 2010-06-22 Robert Dewar <dewar@adacore.com>
665
666 * types.ads: (Dint): Removed, no longer used anywhere.
667 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
668 (UI_Mul): Avoid use of UI_From_Dint.
669 (UI_From_Dint): Removed, not used.
670 * uintp.ads (UI_From_Dint): Removed, not used.
671 (Uint_Min/Max_Simple_Mul): New constants.
672
673 2010-06-22 Vincent Celier <celier@adacore.com>
674
675 * clean.adb (Parse_Cmd_Line): Recognize switch
676 --unchecked-shared-lib-imports.
677 (Usage): Add line for switch --unchecked-shared-lib-imports
678 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
679 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
680 moved from GPR_Util.
681 * switch-m.adb (Scan_Make_Switches): Recognize switch
682 --unchecked-shared-lib-imports.
683 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
684 * gnat_ugn.texi: Add documentation for new switch
685 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
686
687 2010-06-22 Javier Miranda <miranda@adacore.com>
688
689 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
690 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
691 this patch replaces duplication of code that traverses the chain of
692 aliased primitives by a call to routine Ultimate_Alias that
693 provides this functionality.
694
695 2010-06-22 Arnaud Charlet <charlet@adacore.com>
696
697 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
698 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
699 Warnings Off/On.
700
701 2010-06-22 Thomas Quinot <quinot@adacore.com>
702
703 * einfo.ads: Minor reformatting.
704
705 2010-06-22 Javier Miranda <miranda@adacore.com>
706
707 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
708 eliminated primitives.
709 (Make_DT): Avoid referencing eliminated primitives.
710 (Register_Primitive): Do not register eliminated primitives in the
711 dispatch table. Required to add this functionality when the program is
712 compiled without static dispatch tables (-gnatd.t)
713
714 2010-06-22 Emmanuel Briot <briot@adacore.com>
715
716 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
717 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
718 warnings on use of internal GNAT units.
719
720 2010-06-22 Jose Ruiz <ruiz@adacore.com>
721
722 * s-taprop-vxworks.adb (Set_Priority): Update comments.
723
724 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
725
726 * s-rannum.adb: Make stylistic change to remove mystery constant in
727 Extract_Value. Image_Numeral_Length: new symbolic constant.
728
729 2010-06-22 Ed Schonberg <schonberg@adacore.com>
730
731 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
732 Is_Synchronized_Interface, Is_Task_Interface into computable
733 predicates, to free three flags in entity nodes.
734 * sem_ch3.adb: Remove setting of these flags.
735
736 2010-06-22 Robert Dewar <dewar@adacore.com>
737
738 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
739 reformatting.
740 * s-taprop-vxworks.adb: Add comment for Set_Priority.
741 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
742 * projects.texi: Move @cindex to the left margin, since otherwise we
743 are missing entries in the index.
744
745 2010-06-22 Emmanuel Briot <briot@adacore.com>
746
747 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
748 packages from the GNAT hierarchy instead of System when possible.
749 * gcc-interface/Make-lang.in: Update dependencies.
750
751 2010-06-22 Jose Ruiz <ruiz@adacore.com>
752
753 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
754 previously in place to reorder the ready queue when a task drops its
755 priority due to the loss of inherited priority.
756
757 2010-06-22 Vincent Celier <celier@adacore.com>
758
759 * projects.texi: Minor spelling error fixes.
760 Minor reformatting.
761
762 2010-06-22 Emmanuel Briot <briot@adacore.com>
763
764 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
765 warnings for some with clauses.
766
767 2010-06-22 Robert Dewar <dewar@adacore.com>
768
769 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
770 test to catch more cases where first subtype is the results we want.
771 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
772 error case, since Errout will now handle this correctly.
773 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
774 Update dependencies.
775
776 2010-06-22 Arnaud Charlet <charlet@adacore.com>
777
778 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
779 when calling Make_Temporary.
780
781 2010-06-22 Ed Schonberg <schonberg@adacore.com>
782
783 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
784 subprogram can be associated with an entry body.
785
786 2010-06-22 Robert Dewar <dewar@adacore.com>
787
788 * scos.ads: Add note on membership test handling.
789
790 2010-06-22 Vincent Celier <celier@adacore.com>
791
792 * projects.texi: Minor spelling fixes.
793 Minor reformatting.
794
795 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
796
797 * s-rannum.adb: Correct off-by-one error in Extract_Value.
798
799 2010-06-22 Vincent Celier <celier@adacore.com>
800
801 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
802 argument.
803 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
804 gcc command if it is too long.
805
806 2010-06-22 Robert Dewar <dewar@adacore.com>
807
808 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
809
810 2010-06-22 Arnaud Charlet <charlet@adacore.com>
811
812 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
813 calling Make_Temporary.
814
815 2010-06-22 Robert Dewar <dewar@adacore.com>
816
817 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
818
819 2010-06-22 Ed Schonberg <schonberg@adacore.com>
820
821 * sem_res.adb: Additional special-case for VMS.
822
823 2010-06-22 Vincent Celier <celier@adacore.com>
824
825 * gnatsym.adb: Minor comment fix.
826
827 2010-06-22 Vincent Celier <celier@adacore.com>
828
829 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
830
831 2010-06-22 Robert Dewar <dewar@adacore.com>
832
833 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
834 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
835 Ada 95 mode as an implementation defined attribute.
836
837 2010-06-22 Vincent Celier <celier@adacore.com>
838
839 * bindusg.adb (Display): Update line for -R
840 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
841 generated files when -R is used.
842
843 2010-06-22 Vincent Celier <celier@adacore.com>
844
845 * prj-nmsc.adb (Lib_Data_Table): New table.
846 (Check_Library_Attributes): Check if the same library name is used in
847 two different projects that do not extend each other.
848
849 2010-06-22 Robert Dewar <dewar@adacore.com>
850
851 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
852
853 2010-06-22 Vincent Celier <celier@adacore.com>
854
855 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
856 empty, make it the current working directory.
857
858 2010-06-22 Thomas Quinot <quinot@adacore.com>
859
860 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
861 private type with discriminants, make sure the parent type is frozen.
862
863 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
864
865 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
866 with packed array references specially.
867 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
868 to a component of a bit packed array if it is the prefix of 'Bit.
869 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
870 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
871 'Bit reference, where the prefix involves a packed array reference.
872 (Get_Base_And_Bit_Offset): New helper, extracted from...
873 (Expand_Packed_Address_Reference): ...here. Call above procedure to
874 get the outer object and offset expression.
875
876 2010-06-22 Thomas Quinot <quinot@adacore.com>
877
878 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
879 * einfo.adb (Related_Expression, Set_Related_Expression): Add
880 assertions.
881
882 2010-06-22 Javier Miranda <miranda@adacore.com>
883
884 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
885 reorganization to properly check if the operation has been inherited as
886 an abstract operation.
887
888 2010-06-22 Ed Falis <falis@adacore.com>
889
890 * s-osinte-vxworks.ads: Complete previous change.
891
892 2010-06-22 Thomas Quinot <quinot@adacore.com>
893
894 * sem_res.adb: Add comment.
895 * projects.texi, gnat_ugn.texi: Remove macro.
896
897 2010-06-22 Vincent Celier <celier@adacore.com>
898
899 * prj-attr.adb: Remove project level attribute Main_Language.
900
901 2010-06-22 Robert Dewar <dewar@adacore.com>
902
903 * switch-b.adb, osint-b.adb: Minor reformatting.
904
905 2010-06-22 Pascal Obry <obry@adacore.com>
906
907 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
908 vector if previous send was not fully successful. If only part of
909 the vector data was sent, we exit the loop.
910
911 2010-06-22 Thomas Quinot <quinot@adacore.com>
912
913 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
914 error reporting with generic types.
915
916 2010-06-22 Thomas Quinot <quinot@adacore.com>
917
918 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
919 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
920 vms_data.ads: Add a new command line switch -A to gnatbind to output
921 the list of all ALI files for the partition.
922
923 2010-06-22 Arnaud Charlet <charlet@adacore.com>
924
925 * s-osinte-vxworks.ads: Fix casing.
926 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
927 change: Interfaces.C does not provide a long_long type.
928
929 2010-06-22 Emmanuel Briot <briot@adacore.com>
930
931 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
932 native user's guide, since this document contains the two versions.
933 * gcc-interface/Make-lang.in: Update doc dependencies.
934
935 2010-06-22 Robert Dewar <dewar@adacore.com>
936
937 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
938
939 2010-06-22 Emmanuel Briot <briot@adacore.com>
940
941 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
942 not build this file on its own (only through gnat_ugn.texi).
943 Remove macro definitions and insert simpler version in gnat_ugn.texi.
944
945 2010-06-22 Robert Dewar <dewar@adacore.com>
946
947 * ali-util.ads: Minor comment update.
948 * g-socthi-mingw.adb: Minor reformatting.
949
950 2010-06-22 Ed Falis <falis@adacore.com>
951
952 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
953 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
954 for specific versions of VxWorks.
955
956 2010-06-22 Emmanuel Briot <briot@adacore.com>
957
958 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
959 related sections from user's guide and reference manual, since they
960 have now been merged together into a separate document (projects.texi).
961 This removes a lot of duplication where attributes where described
962 in several places.
963 The grammar for the project files is now in each of the sections
964 (packages,expressions,...) instead of being duplicates in two other
965 sections (one in the user's guide that contained the full grammar,
966 and various sections in the rm that contained extracts of the same
967 grammar).
968 Added the full list of all supported attributes, since existing lists
969 were incomplete
970 Rename "associative array" into "indexed attribute"
971 Remove sections that were duplicates ("External References in
972 Project Files" and "External Values", and "Project Extensions"
973 for instance). The list of valid packages in project files is now in
974 a single place.
975
976 2010-06-22 Ed Schonberg <schonberg@adacore.com>
977
978 * sem_ch3.adb (Add_Internal_Interface_Entities): If
979 Find_Primitive_Covering_Interface does not find the operation, it may
980 be because of a name conflict between the inherited operation and a
981 local non-overloadable name. In that case look for the operation among
982 the primitive operations of the type. This search must succeed
983 regardless of visibility.
984
985 2010-06-22 Pascal Obry <obry@adacore.com>
986
987 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
988 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
989 recvmsg emulation.
990
991 2010-06-22 Robert Dewar <dewar@adacore.com>
992
993 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
994 malformed tree.
995 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
996
997 2010-06-22 Arnaud Charlet <charlet@adacore.com>
998
999 * s-intman-vxworks.ads: Code clean up.
1000
1001 2010-06-22 Thomas Quinot <quinot@adacore.com>
1002
1003 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
1004 dereference, construct actual subtype of designated object to generate
1005 proper bounds checks.
1006
1007 2010-06-22 Thomas Quinot <quinot@adacore.com>
1008
1009 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
1010 Read_Withed_ALIs, which is more descriptive.
1011
1012 2010-06-22 Pascal Obry <obry@adacore.com>
1013
1014 * g-sothco.ads: Minor reformatting.
1015 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
1016 C_Sendmsg implementation.
1017 (C_Sendmsg): Do not use lock (not needed).
1018 (C_Recvmsg): Likewise and also do not wait for incoming data.
1019
1020 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1021
1022 * uintp.adb: Fix scope error in operator call.
1023
1024 2010-06-22 Vincent Celier <celier@adacore.com>
1025
1026 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
1027 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
1028 autoconfiguration is needed, fail indicating that no config project
1029 file can be found, as there is no autoconfiguration on VMS.
1030
1031 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1032
1033 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
1034 for an operator in a functional notation, when operands are universal.
1035
1036 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1037
1038 * gcc-interface/Make-lang.in: Update dependencies.
1039
1040 2010-06-22 Robert Dewar <dewar@adacore.com>
1041
1042 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
1043 name.
1044 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
1045 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
1046 style check.
1047 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
1048 literals.
1049
1050 2010-06-22 Vincent Celier <celier@adacore.com>
1051
1052 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
1053 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
1054
1055 2010-06-22 Pascal Obry <obry@adacore.com>
1056
1057 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
1058 Windows.
1059 (C_Recvmsg): Make sure the routine is atomic. Also fully
1060 fill vectors in the proper order.
1061 (C_Sendmsg): Make sure the routine is atomic.
1062
1063 2010-06-22 Robert Dewar <dewar@adacore.com>
1064
1065 * sem_ch8.adb: Update comment.
1066 * sem_res.adb: Minor code reorganization (use Ekind_In).
1067
1068 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1069
1070 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
1071 name is a call, use the number of actuals to determine whether this is
1072 a binary or unary operator, rather than relying on later information
1073 to resolve the overload.
1074
1075 2010-06-22 Robert Dewar <dewar@adacore.com>
1076
1077 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
1078
1079 2010-06-22 Robert Dewar <dewar@adacore.com>
1080
1081 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
1082 * sem_eval.adb: Minor reformatting.
1083
1084 2010-06-22 Vincent Celier <celier@adacore.com>
1085
1086 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
1087 to gnatlink, except on Open VMS.
1088 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
1089 object directories if -nostdlib is used.
1090
1091 2010-06-22 Robert Dewar <dewar@adacore.com>
1092
1093 * sem_util.adb (Is_Delegate): Put in proper alpha order.
1094 * sem_eval.adb: Minor reformatting.
1095
1096 2010-06-22 Robert Dewar <dewar@adacore.com>
1097
1098 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
1099 * exp_aggr.adb: Minor comment changes and reformatting.
1100 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
1101 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
1102
1103 2010-06-22 Thomas Quinot <quinot@adacore.com>
1104
1105 * sem_util.adb (Build_Actual_Subtype): Record original expression in
1106 Related_Expression attribute of the constructed subtype.
1107 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
1108 Node24 on types for...
1109 (Related_Expression): Make attribute available on types as well.
1110
1111 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1112
1113 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
1114 Directly_Designated_Type when the type argument is an access type.
1115 (Find_Interface_Tag): Retrieve Designated_Type instead of
1116 Directly_Designated_Type when the type argument is an access type.
1117 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
1118 Directly_Designated_Type of each access discriminant.
1119 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
1120 instead of Directly_Designated_Type when the operand and target types
1121 are access types.
1122
1123 2010-06-22 Thomas Quinot <quinot@adacore.com>
1124
1125 * exp_aggr.adb (Flatten): Return False if one choice is statically
1126 known to be out of bounds.
1127
1128 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1129
1130 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
1131 a parameterless function call, preserve parentheses of original
1132 expression, for proper handling by pretty printer.
1133 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
1134 procedure, to handle quietly identifiers that have no entity names.
1135 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
1136 elsif_part is missing, it has been rewritten as a nested if, and there
1137 is no useful information on the current value of the variable.
1138
1139 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1140
1141 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
1142 discriminals to the current scope.
1143 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
1144 scope, which could overwrite a different already set value.
1145
1146 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1147
1148 * sem_res.adb (Valid_Conversion): If expression is a predefined
1149 operator, use sloc of type of interpretation to improve error message
1150 when operand is of some derived type.
1151 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
1152
1153 2010-06-22 Emmanuel Briot <briot@adacore.com>
1154
1155 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
1156 that it can set out parameters as well. When a process has died, reset
1157 its Input_Fd to Invalid_Fd, so that when using multiple processes we
1158 can find out which process has died.
1159
1160 2010-06-22 Thomas Quinot <quinot@adacore.com>
1161
1162 * sem_eval.adb (Find_Universal_Operator_Type): New
1163 subprogram to identify the operand type of an operator on universal
1164 operands, when an explicit scope indication is present. Diagnose the
1165 case where such a call is ambiguous.
1166 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
1167 Use the above to identify the operand type so it can be properly frozen.
1168 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
1169 type, done in an arbitrary, possibly incorrect type (the presence of
1170 some numeric type in the scope is checked for legality, but when more
1171 than one such type is in the scope, we just pick a random one, not
1172 necessarily the expected one).
1173 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
1174 subprogram.
1175
1176 2010-06-22 Robert Dewar <dewar@adacore.com>
1177
1178 * sem_eval.adb: Minor reformatting.
1179
1180 2010-06-22 Robert Dewar <dewar@adacore.com>
1181
1182 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
1183 Expression_With_Actions to clean up the code generated when folding
1184 constant expressions.
1185
1186 2010-06-22 Vincent Celier <celier@adacore.com>
1187
1188 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
1189 Has_Process.
1190
1191 2010-06-22 Vincent Celier <celier@adacore.com>
1192
1193 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
1194 found, check if it's path has aready been found, whatever its index.
1195
1196 2010-06-22 Robert Dewar <dewar@adacore.com>
1197
1198 * atree.adb, gnatbind.adb: Minor reformatting.
1199 Minor code reorganization.
1200
1201 2010-06-21 Robert Dewar <dewar@adacore.com>
1202
1203 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
1204 known at compile time.
1205
1206 2010-06-21 Gary Dismukes <dismukes@adacore.com>
1207
1208 * atree.adb: Fix comment typo.
1209
1210 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1211
1212 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
1213 whether a universal arithmetic expression in a conversion, which is
1214 rewritten from a function call with an expanded name, is ambiguous.
1215
1216 2010-06-21 Vincent Celier <celier@adacore.com>
1217
1218 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
1219 source files in specified list of sources.
1220 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
1221 are never used.
1222 (Add_Source): Set the Location of the new source
1223 (Process_Exceptions_File_Based): Call Add_Source with the Location
1224 (Get_Sources_From_File): If an exception is found, set its Listed to
1225 True
1226 (Find_Sources): When Source_Files is specified, if an exception is
1227 found, set its Listed to True. Remove any exception that is not in a
1228 specified list of sources.
1229 * prj.ads (Source_Data): New component Location
1230
1231 2010-06-21 Vincent Celier <celier@adacore.com>
1232
1233 * gnatbind.adb (Closure_Sources): Global table, moved from block.
1234
1235 2010-06-21 Thomas Quinot <quinot@adacore.com>
1236
1237 * sem_res.adb: Minor reformatting.
1238 * atree.adb: New debugging hook "rr" for node rewrites.
1239
1240 2010-06-21 Robert Dewar <dewar@adacore.com>
1241
1242 * g-expect.ads, g-expect.adb: Minor reformatting.
1243
1244 2010-06-21 Emmanuel Briot <briot@adacore.com>
1245
1246 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
1247
1248 2010-06-21 Arnaud Charlet <charlet@adacore.com>
1249
1250 * gcc-interface/Make-lang.in: Update dependencies.
1251
1252 2010-06-21 Thomas Quinot <quinot@adacore.com>
1253
1254 * bindgen.ads: Update comments.
1255
1256 2010-06-21 Vincent Celier <celier@adacore.com>
1257
1258 * gnatbind.adb: Suppress dupicates when listing the sources in the
1259 closure (switch -R).
1260
1261 2010-06-21 Emmanuel Briot <briot@adacore.com>
1262
1263 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
1264 is too small.
1265
1266 2010-06-21 Emmanuel Briot <briot@adacore.com>
1267
1268 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
1269 New subprograms.
1270 (Expect_Internal): No longer raises an exception, so that it can set
1271 out parameters as well. When a process has died, reset its Input_Fd
1272 to Invalid_Fd, so that when using multiple processes we can find out
1273 which process has died.
1274
1275 2010-06-21 Robert Dewar <dewar@adacore.com>
1276
1277 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
1278 checks.adb, sem_res.adb: Minor reformatting. Add comments.
1279
1280 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1281
1282 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
1283 rederivation associated with a full declaration in a private part, and
1284 there is a partial view that derives the same parent subprogram, the
1285 new entity does not become visible. This check must be applied to
1286 interface operations as well.
1287
1288 2010-06-21 Thomas Quinot <quinot@adacore.com>
1289
1290 * checks.adb: Add comments.
1291 * prj-nmsc.adb: Minor reformatting.
1292
1293 2010-06-21 Thomas Quinot <quinot@adacore.com>
1294
1295 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
1296 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
1297 extract bounds, to ensure that we get the proper captured values,
1298 rather than an expression that may have changed value since the point
1299 where the subtype was elaborated.
1300 (Find_Body_Discriminal): New utility subprogram to share code between...
1301 (Eval_Attribute): For the case of a subtype bound that references a
1302 discriminant of the current concurrent type, insert appropriate
1303 discriminal reference.
1304 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
1305 requeue to an entry in a family in the current task, use corresponding
1306 body discriminal.
1307 (Analyze_Accept_Statement): Rely on expansion of attribute references
1308 to insert proper discriminal references in range check for entry in
1309 family.
1310
1311 2010-06-21 Emmanuel Briot <briot@adacore.com>
1312
1313 * s-regpat.adb (Compile): Fix handling of big patterns.
1314
1315 2010-06-21 Robert Dewar <dewar@adacore.com>
1316
1317 * a-tifiio.adb: Minor reformatting.
1318
1319 2010-06-21 Pascal Obry <obry@adacore.com>
1320
1321 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
1322 path to open it.
1323
1324 2010-06-21 Javier Miranda <miranda@adacore.com>
1325
1326 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
1327 external name.
1328
1329 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1330
1331 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
1332 to hold the result, indicate that the target of the declaration does
1333 not need an initialization, to prevent spurious errors when
1334 Initialize_Scalars is enabled.
1335
1336 2010-06-21 Ed Schonberg <schonberg@adacore.com>
1337
1338 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
1339 Fore is not bound by line length. The Fore parameter of the internal
1340 procedure that performs the operation is an integer.
1341
1342 2010-06-21 Thomas Quinot <quinot@adacore.com>
1343
1344 * sem_res.adb, checks.adb: Minor reformatting.
1345
1346 2010-06-21 Emmanuel Briot <briot@adacore.com>
1347
1348 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
1349 into Get_Next.
1350 (Insert_Operator_Before): New subprogram, avoids duplicated code
1351 (Compile): Avoid doing two compilations when the pattern matcher ends
1352 up being small.
1353
1354 2010-06-21 Emmanuel Briot <briot@adacore.com>
1355
1356 * s-regpat.adb: Improve debug traces
1357 (Dump): Change output format to keep it smaller.
1358
1359 2010-06-21 Javier Miranda <miranda@adacore.com>
1360
1361 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
1362 output to the output file when this routine completes its work.
1363
1364 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
1365
1366 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
1367 for loop. Call build_constructor_from_list directly in the CICO case.
1368
1369 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1370
1371 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
1372 declaration appears in the same unit and ealier than the renamed
1373 entity, retain generated body to prevent order-of-elaboration issues in
1374 gigi.
1375
1376 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1377
1378 * s-tpoben.adb: Update comments.
1379
1380 2010-06-18 Robert Dewar <dewar@adacore.com>
1381
1382 * debug.adb: Minor comment change.
1383
1384 2010-06-18 Javier Miranda <miranda@adacore.com>
1385
1386 * exp_cg.adb: Code clean up.
1387 * debug.adb: Complete documentation of switch -gnatd.Z.
1388 * gcc-interface/misc.c (callgraph_info_file): Declare.
1389
1390 2010-06-18 Javier Miranda <miranda@adacore.com>
1391
1392 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
1393
1394 2010-06-18 Thomas Quinot <quinot@adacore.com>
1395
1396 * sprint.ads: Minor reformatting.
1397 * output.ads: Update obsolete comment.
1398
1399 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1400
1401 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
1402 an external intrinsic operation (e.g. a GCC numeric function) indicate
1403 that the renaming entity has the same characteristics, so a call to it
1404 is properly expanded.
1405
1406 2010-06-18 Javier Miranda <miranda@adacore.com>
1407
1408 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
1409 support for dispatch table/callgraph info generation.
1410 * gcc-interface/Make-lang.in: Update dependencies.
1411
1412 2010-06-18 Robert Dewar <dewar@adacore.com>
1413
1414 * exp_ch6.adb: Minor reformatting.
1415 * gnatname.adb: Add comment.
1416
1417 2010-06-18 Vincent Celier <celier@adacore.com>
1418
1419 * gnatname.adb (Scan_Args): When --and is used, make sure that the
1420 dynamic tables in the newly allocated Argument_Data are properly
1421 initialized.
1422
1423 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1424
1425 * gnat1drv.adb: Fix comment.
1426
1427 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1428
1429 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
1430 renaming, re-expand the call with the renamed subprogram if that one
1431 is marked inlined as well.
1432
1433 2010-06-18 Gary Dismukes <dismukes@adacore.com>
1434
1435 * gnat1drv.adb (Adjust_Global_Switches): Enable
1436 Use_Expression_With_Actions for AAMP and VM targets.
1437
1438 2010-06-18 Vincent Celier <celier@adacore.com>
1439
1440 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
1441
1442 2010-06-18 Thomas Quinot <quinot@adacore.com>
1443
1444 * exp_ch4.adb: Minor reformatting.
1445
1446 2010-06-18 Javier Miranda <miranda@adacore.com>
1447
1448 * debug.ads Add documentation on -gnatd.Z.
1449
1450 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1451
1452 * sem_elim.adb: Proper error message on improperly eliminated instances
1453
1454 2010-06-18 Vincent Celier <celier@adacore.com>
1455
1456 * prj.ads (Response_File_Format): New value GCC.
1457
1458 2010-06-18 Thomas Quinot <quinot@adacore.com>
1459
1460 * gnat1drv.adb: Minor reformatting.
1461
1462 2010-06-18 Robert Dewar <dewar@adacore.com>
1463
1464 * make.adb, sem_cat.adb: Minor reformatting.
1465 * sem_eval.adb: Fix typos.
1466
1467 2010-06-18 Pascal Obry <obry@adacore.com>
1468
1469 * prj-nmsc.adb: Fix source filenames casing in debug output.
1470
1471 2010-06-18 Robert Dewar <dewar@adacore.com>
1472
1473 * gnatcmd.adb: Minor reformatting.
1474
1475 2010-06-18 Robert Dewar <dewar@adacore.com>
1476
1477 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
1478 condition and both sub-expressions are static (and result is selected
1479 expression).
1480
1481 2010-06-18 Robert Dewar <dewar@adacore.com>
1482
1483 * g-pehage.adb: Minor reformatting
1484
1485 2010-06-18 Pascal Obry <obry@adacore.com>
1486
1487 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
1488 source hash table.
1489
1490 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1491
1492 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1493 dependencies. Fix target pairs on darwin.
1494 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
1495
1496 2010-06-18 Pascal Obry <obry@adacore.com>
1497
1498 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
1499
1500 2010-06-18 Vincent Celier <celier@adacore.com>
1501
1502 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
1503 configuration pragmas file and, if -U is not used, for a local one.
1504
1505 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1506
1507 * sem_elim.adb (Check_Eliminated): Use full information on entity name
1508 when it is given in the pragma by a selected component.
1509 (Check_For_Eliminated_Subprogram): Do no emit error if within a
1510 instance body that is itself within a generic unit.
1511 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
1512 eliminated, mark as well the anonymous subprogram that is its alias
1513 and appears within the wrapper package.
1514
1515 2010-06-18 Bob Duff <duff@adacore.com>
1516
1517 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
1518 Raise an exception if the output file cannot be opened. Add comments.
1519
1520 2010-06-18 Thomas Quinot <quinot@adacore.com>
1521
1522 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
1523 not illegal per E.2.2(7) if it occurs in the private part of a
1524 Remote_Types unit.
1525
1526 2010-06-18 Arnaud Charlet <charlet@adacore.com>
1527
1528 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
1529 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
1530 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
1531 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
1532 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
1533 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
1534 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
1535 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
1536 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
1537 errout.ads: Update comments. Minor reformatting.
1538
1539 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
1540 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
1541 a-strunb.adb (Big_String. Big_String_Access): New type.
1542
1543 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
1544 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
1545 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
1546
1547 2010-06-18 Geert Bosch <bosch@adacore.com>
1548
1549 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
1550 Darwin.
1551
1552 2010-06-18 Robert Dewar <dewar@adacore.com>
1553
1554 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
1555 true for gcc.
1556
1557 2010-06-18 Robert Dewar <dewar@adacore.com>
1558
1559 * sprint.adb: Minor format change for N_Expression_With_Actions.
1560 * repinfo.adb: Minor reformatting.
1561
1562 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1563
1564 * sem_elim.adb (Check_Eliminated): If within a subunit, use
1565 Defining_Entity to obtain the name of the entity in the proper body, to
1566 properly handle both separate packages and subprograms.
1567
1568 2010-06-18 Emmanuel Briot <briot@adacore.com>
1569
1570 * prj-nmsc.adb (Check_File): New parameter Display_Path.
1571
1572 2010-06-18 Thomas Quinot <quinot@adacore.com>
1573
1574 * g-socket.adb, g-socket.ads (Null_Selector): New object.
1575
1576 2010-06-18 Pascal Obry <obry@adacore.com>
1577
1578 * gnat_ugn.texi: Minor clarification.
1579
1580 2010-06-18 Emmanuel Briot <briot@adacore.com>
1581
1582 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
1583 code when using the project dir as the source dir.
1584 (Search_Directories): use the normalized name for the source directory,
1585 where symbolic names have potentially been resolved.
1586
1587 2010-06-18 Robert Dewar <dewar@adacore.com>
1588
1589 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
1590 when we create N_Expression_With_Actions node.
1591 (Expand_Short_Circuit): Ditto.
1592
1593 2010-06-18 Robert Dewar <dewar@adacore.com>
1594
1595 * exp_util.adb: Minor reformatting.
1596
1597 2010-06-18 Thomas Quinot <quinot@adacore.com>
1598
1599 * types.ads: Clean up obsolete comments
1600 * tbuild.adb: Minor reformatting.
1601 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
1602 exp_strm.adb, aa_drive.adb: Minor reformatting.
1603 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
1604 intrinsic with an Interface_Name denotes an imported back-end builtin,
1605 and must be rewritten into a call, not left in the tree as an operator,
1606 so return False in that case.
1607
1608 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1609
1610 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
1611
1612 2010-06-18 Robert Dewar <dewar@adacore.com>
1613
1614 * scos.ads: Add proposed output for case expression
1615
1616 2010-06-18 Jose Ruiz <ruiz@adacore.com>
1617
1618 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
1619 RTSS modules, we need to use the Microsoft linker.
1620
1621 2010-06-18 Robert Dewar <dewar@adacore.com>
1622
1623 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
1624 expression (cannot count on a particular branch being executed).
1625 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
1626 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
1627 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
1628 within case expression.
1629 * expander.adb (Expand): Add call to Expand_N_Case_Expression
1630 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
1631 (P_Case_Expression): New procedure
1632 (P_Case_Expression_Alternative): New procedure
1633 * par.adb (P_Case_Expression): New procedure
1634 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
1635 N_Case_Expression.
1636 * sem.adb (Analyze): Add call to Analyze_Case_Expression
1637 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
1638 this is a documentation change only.
1639 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
1640 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
1641 expressions.
1642 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
1643 * sem_res.adb (Resolve_Case_Expression): New procedure.
1644 * sem_scil.adb (Find_SCIL_Node): Add processing for
1645 N_Case_Expression_Alternative.
1646 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
1647 (N_Case_Expression_Alternative): New node.
1648 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
1649 N_Case_Expression and N_Case_Expression_Alternative.
1650
1651 2010-06-18 Robert Dewar <dewar@adacore.com>
1652
1653 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
1654 * gnat1drv.adb: Fix typo.
1655
1656 2010-06-18 Robert Dewar <dewar@adacore.com>
1657
1658 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
1659 for -gnatg.
1660 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
1661 gnat style for -gnatg.
1662 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
1663
1664 2010-06-18 Thomas Quinot <quinot@adacore.com>
1665
1666 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
1667 code between...
1668 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
1669 Test_In_Range.
1670
1671 2010-06-18 Robert Dewar <dewar@adacore.com>
1672
1673 * sprint.adb: Minor change in output format for expression wi actions.
1674 * par-ch3.adb: Minor code reorganization. Minor reformatting.
1675 * sem_ch5.adb: Minor comment fix.
1676
1677 2010-06-18 Robert Dewar <dewar@adacore.com>
1678
1679 * debug.adb: New debug flag -gnatd.L to control
1680 Back_End_Handles_Limited_Types.
1681 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
1682 limited case if Back_End_Handles_Limited_Types is True.
1683 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
1684 simplify expansion if Use_Expression_With_Actions is True.
1685 * gnat1drv.adb (Adjust_Global_Switches): Set
1686 Back_End_Handles_Limited_Types.
1687 * opt.ads (Back_End_Handles_Limited_Types): New flag.
1688
1689 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1690
1691 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
1692 intrinsic operator if expansion is not enabled, because in an
1693 instantiation the original operator must be present to verify the
1694 legality of the operation.
1695
1696 2010-06-18 Robert Dewar <dewar@adacore.com>
1697
1698 * exp_disp.adb, sem_ch12.adb: Minor reformatting
1699
1700 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1701
1702 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
1703 the class-wide type for a private extension, and the completion is a
1704 subtype, set the type of the class-wide type to the base type of the
1705 full view.
1706
1707 2010-06-18 Robert Dewar <dewar@adacore.com>
1708
1709 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
1710 sem_intr.adb, sem_eval.adb: Minor reformatting
1711
1712 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1713
1714 * sem_type.adb (Is_Ancestor): If either type is private, examine full
1715 view.
1716
1717 2010-06-18 Thomas Quinot <quinot@adacore.com>
1718
1719 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
1720 parameter rather than IN OUT.
1721
1722 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1723
1724 * exp_ch6.adb: Add extra guard.
1725
1726 2010-06-18 Gary Dismukes <dismukes@adacore.com>
1727
1728 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
1729 accessibility level of a function call from the level of the innermost
1730 enclosing dynamic scope.
1731 (Innermost_Master_Scope_Depth): New function to find the depth of the
1732 nearest dynamic scope enclosing a node.
1733
1734 2010-06-18 Tristan Gingold <gingold@adacore.com>
1735
1736 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
1737
1738 2010-06-18 Thomas Quinot <quinot@adacore.com>
1739
1740 * g-socket.ads: Minor reformatting.
1741
1742 2010-06-18 Vincent Celier <celier@adacore.com>
1743
1744 * make.adb (Must_Compile): New Boolean global variable
1745 (Main_On_Command_Line): New Boolean global variable
1746 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
1747 even when the project is externally built.
1748 (Start_Compile_If_Possible): Compile in -aL directories if
1749 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
1750 when the project is externally built.
1751 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
1752 invoked with -f -u and one or several mains on the command line.
1753 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
1754 is specified on the command line.
1755
1756 2010-06-18 Ed Schonberg <schonberg@adacore.com>
1757
1758 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
1759 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
1760 containing extented_return statements.
1761 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
1762 constrained, do not build subtype declaration.
1763
1764 2010-06-18 Robert Dewar <dewar@adacore.com>
1765
1766 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
1767 Warn on assigning to packed atomic component.
1768
1769 2010-06-18 Robert Dewar <dewar@adacore.com>
1770
1771 * sem_util.ads: Minor reformatting
1772 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
1773 Expression_With_Actions).
1774 * snames.ads-tmpl: Minor comment fix
1775
1776 2010-06-18 Robert Dewar <dewar@adacore.com>
1777
1778 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
1779 (Set_Imported): Use Import_Interface_Present to control message output
1780 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
1781 * gnat_rm.texi: Document that we can have pragma Import and pragma
1782 Interface for the same subprogram.
1783
1784 2010-06-18 Robert Dewar <dewar@adacore.com>
1785
1786 * lib-xref.adb (Generate_Reference): Fix bad reference to
1787 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
1788
1789 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
1790
1791 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
1792 function.
1793 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
1794 Use set_gnu_expr_location_from_node to set location information on the
1795 result.
1796
1797 2010-06-17 Arnaud Charlet <charlet@adacore.com>
1798
1799 * gcc-interface/Make-lang.in: Update dependencies.
1800
1801 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1802
1803 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
1804 subprograms.
1805
1806 2010-06-17 Robert Dewar <dewar@adacore.com>
1807
1808 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
1809 style check messages.
1810 * sem_res.adb (Resolve_Call): Don't call
1811 Check_For_Eliminated_Subprogram if we are analyzing within a spec
1812 expression.
1813
1814 2010-06-17 Robert Dewar <dewar@adacore.com>
1815
1816 * debug.adb: Add documentation for debug flags .X and .Y
1817 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
1818 Use_Expression_With_Actions.
1819 * gnat1drv.adb (Adjust_Global_Switches): Set
1820 Use_Expression_With_Actions.
1821 * opt.ads (Use_Expression_With_Actions): New switch.
1822
1823 2010-06-17 Robert Dewar <dewar@adacore.com>
1824
1825 * exp_intr.adb: Minor code reorganization (use UI_Max)
1826 * sem_intr.adb: use underlying type to check legality.
1827 * einfo.adb (Known_Static_Esize): False for generic types
1828 (Known_Static_RM_Size): False for generic types
1829 * einfo.ads (Known_Static_Esize): False for generic types
1830 (Known_Static_RM_Size): False for generic types
1831
1832 2010-06-17 Robert Dewar <dewar@adacore.com>
1833
1834 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
1835
1836 2010-06-17 Robert Dewar <dewar@adacore.com>
1837
1838 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
1839 node when expanding short circuit form with actions present for right
1840 opnd.
1841 * exp_ch4.adb: Minor reformatting
1842 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
1843 right opeand has actions present, and debug flag -gnatd.X is set.
1844 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
1845 node.
1846 * nlists.adb (Prepend_List): New procedure
1847 (Prepend_List_To): New procedure
1848 * nlists.ads (Prepend_List): New procedure
1849 (Prepend_List_To): New procedure
1850 * sem.adb: Add processing for Expression_With_Actions
1851 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
1852 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
1853 * sem_res.adb: Add processing for Expression_With_Actions.
1854 * sem_scil.adb: Add processing for Expression_With_Actions
1855 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
1856 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
1857
1858 2010-06-17 Doug Rupp <rupp@adacore.com>
1859
1860 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
1861 involved both have underlying integer types.
1862 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
1863 to an intrinsic operator when the operand types or sizes are not
1864 identical.
1865 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
1866 64/32 Address/Integer works.
1867
1868 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1869
1870 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
1871 that it marks a unit as needed by a spec only if the corresponding
1872 instantiation appears in that spec (and not in the corresponding body).
1873 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
1874 in the pragma Eliminate has been parsed as a child unit, but the
1875 current compilation unit is in fact the parent in which the subunit is
1876 embedded.
1877
1878 2010-06-17 Vincent Celier <celier@adacore.com>
1879
1880 * gnat_rm.texi: Fix typo
1881
1882 2010-06-17 Robert Dewar <dewar@adacore.com>
1883
1884 * sem_util.adb: Minor reformatting
1885
1886 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1887
1888 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
1889 instance, the clause now denotes the instance body. Traverse the
1890 corresponding spec because there may be no other dependence that will
1891 force the traversal of its own context.
1892
1893 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1894
1895 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
1896 Install_Limited_Context_Clauses, to determine whether a limited_with in
1897 some parent of the current unit designates some other parent, in which
1898 case the limited_with clause must not be installed.
1899 (In_Context): Refine test.
1900
1901 2010-06-17 Gary Dismukes <dismukes@adacore.com>
1902
1903 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
1904 type with a dispatching equality operator that is overridden (for a
1905 tagged full type), don't include the overridden equality in the list of
1906 primitives. The overridden equality is detected by testing for an
1907 Aliased field that references the overriding equality.
1908
1909 2010-06-17 Robert Dewar <dewar@adacore.com>
1910
1911 * freeze.adb: Minor reformatting.
1912
1913 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
1914
1915 * gnat_ugn.texi: Add a section introducing gdbserver.
1916
1917 2010-06-17 Thomas Quinot <quinot@adacore.com>
1918
1919 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
1920 reformatting.
1921
1922 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1923
1924 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
1925 constrained discriminated parent that is a private type.
1926 (Analyze_Record_Aggregate): when collecting inherited discriminants,
1927 handle properly an ancestor type that is a constrained private type.
1928
1929 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1930
1931 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
1932 protected, use the protected_subprogram_body only if the original
1933 subprogram has not been eliminated.
1934
1935 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1936
1937 * freeze.adb (Freeze_Expression): The designated type of an
1938 access_to_suprogram type can only be frozen if all types in its profile
1939 are fully defined.
1940
1941 2010-06-17 Robert Dewar <dewar@adacore.com>
1942
1943 * par.adb: Minor comment fix
1944 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
1945
1946 2010-06-17 Doug Rupp <rupp@adacore.com>
1947
1948 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
1949 change Address to Short_Address in functions where both must be the
1950 same size for intrinsics to work.
1951
1952 2010-06-17 Thomas Quinot <quinot@adacore.com>
1953
1954 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
1955 not denote a (private) component of a protected object.
1956
1957 2010-06-17 Bob Duff <duff@adacore.com>
1958
1959 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
1960 the same list.
1961
1962 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
1963
1964 * gnat_ugn.texi: Update the documentation about GDB re: exception
1965 catchpoints.
1966
1967 2010-06-17 Arnaud Charlet <charlet@adacore.com>
1968
1969 * gnatvsn.ads: Bump to 4.6 version.
1970
1971 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1972
1973 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
1974 designated type of the generated pointer is the type of the original
1975 expression, not that of the function call itself, because the return
1976 type may be an untagged derived type and the function may be an
1977 inherited operation.
1978
1979 2010-06-17 Robert Dewar <dewar@adacore.com>
1980
1981 * exp_ch4.adb: Minor reformatting.
1982
1983 2010-06-17 Ed Schonberg <schonberg@adacore.com>
1984
1985 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
1986 N_Component_Association nodes, to indicate that a component association
1987 of an extension aggregate denotes the value of a discriminant of an
1988 ancestor type that has been constrained by the derivation.
1989 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
1990 double expansion of the aggregate appearing in a context that delays
1991 expansion, to prevent double insertion of discriminant values when the
1992 aggregate is reanalyzed.
1993
1994 2010-06-17 Arnaud Charlet <charlet@adacore.com>
1995
1996 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
1997 Allocator as the Related_Node of Return_Obj_Access in call to
1998 Make_Temporary below as this would create a sort of infinite
1999 "recursion".
2000
2001 2010-06-17 Ben Brosgol <brosgol@adacore.com>
2002
2003 * gnat_ugn.texi: Update gnatcheck doc.
2004
2005 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2006
2007 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
2008 incomplete view of the type that is not tagged, and the full type is a
2009 tagged extension, create class_wide type now, and warn that the
2010 incomplete view should be tagged as well.
2011
2012 2010-06-17 Vincent Celier <celier@adacore.com>
2013
2014 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
2015 Update the last line of the usage, indicating what commands do not
2016 accept project file switches.
2017 * vms_conv.adb: Do not issue usage line for GNAT SYNC
2018 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
2019 GNAT ELIM.
2020 * gnat_ugn.texi: Document the relaxed rules for library directories in
2021 externally built library projects.
2022
2023 2010-06-17 Doug Rupp <rupp@adacore.com>
2024
2025 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
2026 where possible.
2027 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
2028 * gcc-interface/Makefile.in: Update VMS target pairs.
2029
2030 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
2031
2032 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
2033 compatible with Windows NT 4.0 which doesn't provide this function.
2034
2035 2010-06-17 Vincent Celier <celier@adacore.com>
2036
2037 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
2038 different timestamps but the checksum is the same, issue a short
2039 message saying so.
2040
2041 2010-06-17 Arnaud Charlet <charlet@adacore.com>
2042
2043 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
2044 it means that we cannot reset interrupt handlers since this would
2045 require potentially sending the abort signal to the Server_Task.
2046
2047 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2048
2049 * exp_ch4.adb: expand NOT for VMS types.
2050 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
2051
2052 2010-06-17 Sergey Rybin <rybin@adacore.com>
2053
2054 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
2055 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
2056 option.
2057
2058 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2059
2060 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
2061 protected operation if the subprogram has been eliminated.
2062
2063 2010-06-17 Vincent Celier <celier@adacore.com>
2064
2065 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
2066 directories associated with a library to be any directory when the
2067 library project is externally built.
2068
2069 2010-06-17 Vincent Celier <celier@adacore.com>
2070
2071 * make.adb (Check): If switch -m is used, deallocate the memory that
2072 may be allocated when computing the checksum.
2073
2074 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2075
2076 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
2077 (C_Sendmsg): Likewise.
2078
2079 2010-06-17 Thomas Quinot <quinot@adacore.com>
2080
2081 * sem_res.adb: Update comments.
2082
2083 2010-06-17 Vincent Celier <celier@adacore.com>
2084
2085 * back_end.adb (Scan_Compiler_Arguments): Process last argument
2086
2087 2010-06-17 Robert Dewar <dewar@adacore.com>
2088
2089 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
2090 * layout.adb, freeze.adb: Use Make_Temporary.
2091
2092 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
2093
2094 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
2095 .NET/JVM normally as this is now perfectly supported by the backend.
2096
2097 2010-06-17 Pascal Obry <obry@adacore.com>
2098
2099 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
2100
2101 2010-06-17 Vincent Celier <celier@adacore.com>
2102
2103 * make.adb (Collect_Arguments_And_Compile): Create include path file
2104 only when -x is specified.
2105 (Gnatmake): Ditto
2106 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
2107 False.
2108 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
2109 Objects_Path, defaulted to True. Only create include path file if
2110 Include_Path is True, only create objects path file if Objects_Path is
2111 True.
2112 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
2113 Objects_Path, defaulted to True.
2114 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
2115 when -x is used.
2116
2117 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2118
2119 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2120 determine whether it has the controlling type, when the formal is an
2121 access parameter.
2122
2123 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2124
2125 * s-crtl.ads (ssize_t): New type.
2126 (read): Fix signature.
2127 (write): Likewise.
2128 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2129 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2130 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2131 (C_Sendmsg): Likewise.
2132 * g-socthi.adb (Syscall_Recvmsg): Likewise.
2133 (Syscall_Sendmsg): Likewise.
2134 (C_Recvmsg): Likewise.
2135 (C_Sendmsg): Likewise.
2136 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
2137 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2138 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2139 (C_Sendmsg): Likewise.
2140 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
2141 (C_Sendmsg): Likewise.
2142 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
2143 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2144 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2145 (C_Sendmsg): Likewise.
2146 * g-socthi-vms.adb (C_Recvmsg): Likewise.
2147 (C_Sendmsg): Likewise.
2148 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
2149 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2150 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2151 (C_Sendmsg): Likewise.
2152 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
2153 (C_Sendmsg): Likewise.
2154 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
2155 (Write): Likewise to call 'write'.
2156 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
2157 (Write): Use correct type to call System.CRTL.write.
2158 * s-tasdeb.adb (Write): Likewise.
2159
2160 2010-06-17 Vincent Celier <celier@adacore.com>
2161
2162 * prj-proc.adb (Copy_Package_Declarations): Change argument name
2163 Naming_Restricted to Restricted. If Restricted is True, do not copy the
2164 value of attribute Linker_Options.
2165
2166 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
2167
2168 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
2169 (Case_Statement_to_gnu): Adjust.
2170 (Loop_Statement_to_gnu): Likewise.
2171 (Subprogram_Body_to_gnu): Likewise.
2172 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2173 (Compilation_Unit_to_gnu): Likewise.
2174
2175 2010-06-17 Robert Dewar <dewar@adacore.com>
2176
2177 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
2178 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
2179 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
2180 sem_dist.adb, sem_util.adb: Use Make_Temporary
2181 * itypes.ads, tbuild.ads: Minor comment update
2182 * exp_ch9.adb, exp_dist.adb: Minor reformatting
2183
2184 2010-06-17 Thomas Quinot <quinot@adacore.com>
2185
2186 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
2187
2188 2010-06-17 Robert Dewar <dewar@adacore.com>
2189
2190 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
2191
2192 2010-06-17 Thomas Quinot <quinot@adacore.com>
2193
2194 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
2195
2196 2010-06-17 Robert Dewar <dewar@adacore.com>
2197
2198 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
2199 * tbuild.ads (Make_Temporary): More comment updates
2200 * tbuild.adb: Minor reformatting
2201
2202 2010-06-17 Robert Dewar <dewar@adacore.com>
2203
2204 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
2205 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
2206 Use Make_Temporary.
2207 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
2208 instead of Node_Id.
2209 (Make_Temporary): Add more extensive documentation
2210
2211 2010-06-17 Robert Dewar <dewar@adacore.com>
2212
2213 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
2214 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
2215 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
2216 where the slice's actions are inserted.
2217 (Decompose_Expr): Account for possible rewriting of slice bounds
2218 resulting from side effects suppression caused by the above freezing,
2219 so that folding of bounds is preserved by such rewriting.
2220
2221 2010-06-17 Robert Dewar <dewar@adacore.com>
2222
2223 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
2224 * freeze.adb (Freeze_Record_Type): Add call to
2225 Check_Record_Representation_Clause.
2226 * sem_ch13.adb (Check_Record_Representation_Clause): New function
2227 (Analyze_Record_Representation_Clause): Split out overlap code into this
2228 new function.
2229 (Check_Component_Overlap): Moved inside
2230 Check_Record_Representation_Clause.
2231 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
2232
2233 2010-06-17 Robert Dewar <dewar@adacore.com>
2234
2235 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
2236 reformatting.
2237 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
2238 sem_eval.adb: Use Ekind_In
2239
2240 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2241
2242 * sem_ch8.adb: better error message for illegal inherited discriminant
2243
2244 2010-06-17 Vincent Celier <celier@adacore.com>
2245
2246 * bindusg.adb: Remove lines for -A and -C
2247 * gnat_ugn.texi: Remove all documentation and examples of switches -A
2248 and -C for gnatbind and gnatlink.
2249 * gnatlink.adb (Usage): Remove lines for -A and -C
2250 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
2251 specified.
2252 * gcc-interface/Make-lang.in: Update dependencies.
2253
2254 2010-06-17 Vincent Celier <celier@adacore.com>
2255
2256 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
2257 local Argument_List variable Args.
2258 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
2259 Args.
2260 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
2261 for subsequent switches in Args.
2262 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
2263 Args.
2264 * gcc-interface/Make-lang.in: Update dependencies.
2265
2266 2010-06-17 Robert Dewar <dewar@adacore.com>
2267
2268 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
2269 Equivalent_Type to match documentation.
2270
2271 2010-06-17 Robert Dewar <dewar@adacore.com>
2272
2273 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
2274 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
2275 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
2276
2277 2010-06-17 Thomas Quinot <quinot@adacore.com>
2278
2279 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
2280
2281 2010-06-17 Thomas Quinot <quinot@adacore.com>
2282
2283 * freeze.adb (Freeze_Expression): Short circuit operators are valid
2284 freeze node insertion points.
2285
2286 2010-06-17 Robert Dewar <dewar@adacore.com>
2287
2288 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
2289 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
2290
2291 2010-06-17 Gary Dismukes <dismukes@adacore.com>
2292
2293 * layout.adb (Layout_Type): Broaden test for setting an array type's
2294 Component_Size to include all scalar types, not just discrete types
2295 (components of real types were missed).
2296 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
2297 on the itype created for an index (consistent with Make_Index and
2298 avoids possible Assert_Failures).
2299
2300 2010-06-17 Robert Dewar <dewar@adacore.com>
2301
2302 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
2303 * einfo.adb: Minor code reformatting (use Ekind_In)
2304
2305 2010-06-17 Robert Dewar <dewar@adacore.com>
2306
2307 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
2308 found.
2309
2310 2010-06-17 Vincent Celier <celier@adacore.com>
2311
2312 * back_end.adb: Minor comment updates
2313 * switch-c.adb: Remove dependencies on gcc C sources
2314 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
2315 for the compiler.
2316
2317 2010-06-17 Ed Schonberg <schonberg@adacore.com>
2318
2319 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
2320 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
2321 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
2322 Remove use of Node field in SCOs table
2323 (Output_Header): Set 'd' to initially disable pragma entry
2324 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
2325 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
2326 Use C2 field of pragma decision header to indicate enabled.
2327 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
2328 * gcc-interface/Make-lang.in: Update dependencies.
2329
2330 2010-06-17 Vincent Celier <celier@adacore.com>
2331
2332 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
2333 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
2334 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
2335 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
2336 Switch.C.
2337 * switch-c.adb: Copied a number of global declarations from back_end.adb
2338 (Len_Arg): New function copied from back_end.adb
2339 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
2340 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
2341 Switch_Subsequently_Cancelled.
2342 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
2343 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
2344 with -lexc on Tru64.
2345
2346 2010-06-17 Robert Dewar <dewar@adacore.com>
2347
2348 * prj.ads, prj.adb: Minor reformatting
2349
2350 2010-06-17 Thomas Quinot <quinot@adacore.com>
2351
2352 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
2353 CP line for a disabled pragma.
2354
2355 2010-06-17 Emmanuel Briot <briot@adacore.com>
2356
2357 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
2358 subprogram.
2359 (Process_Declarative_Item): An invalid value in an typed variable
2360 declaration is no longer always fatal.
2361
2362 2010-06-16 Arnaud Charlet <charlet@adacore.com>
2363
2364 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
2365 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
2366 documentation.
2367
2368 2010-06-16 Javier Miranda <miranda@adacore.com>
2369
2370 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
2371 node referenced by the SCIL node of dispatching "=" to skip the tags
2372 comparison.
2373
2374 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2375
2376 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
2377 to prevent cascaded errors and compilation aborts.
2378
2379 2010-06-16 Robert Dewar <dewar@adacore.com>
2380
2381 * back_end.adb (Switch_Subsequently_Cancelled): New function
2382 Move declarations to package body level to support this change
2383 * back_end.ads (Switch_Subsequently_Cancelled): New function
2384 * gnat_ugn.texi: Document -gnat-p switch
2385 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
2386 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
2387 * usage.adb: Add line for -gnat-p switch
2388 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
2389
2390 2010-06-16 Robert Dewar <dewar@adacore.com>
2391
2392 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
2393 modification.
2394
2395 2010-06-16 Robert Dewar <dewar@adacore.com>
2396
2397 * exp_disp.adb: Minor reformatting
2398
2399 2010-06-16 Ed Schonberg <schonberg@adacore.com>
2400
2401 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
2402 base type only if it was not previously created for the partial view.
2403
2404 2010-06-16 Thomas Quinot <quinot@adacore.com>
2405
2406 * tbuild.ads: Minor comment fix
2407
2408 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
2409
2410 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
2411 (gnu_except_ptr_stack): Change type to VEC. Update comment.
2412 (gnu_elab_proc_stack): Likewise.
2413 (gnu_return_label_stack): Likewise.
2414 (gnu_loop_label_stack): Likewise.
2415 (gnu_switch_label_stack): Likewise.
2416 (gnu_constraint_label_stack): Likewise.
2417 (gnu_storage_error_label_stack): Likewise.
2418 (gnu_program_error_label_stack): Likewise.
2419 (push_exception_label_stack): Take a VEC ** instead of a tree *.
2420 (push_stack): Likewise. Remove unused second parameter. Update
2421 callers.
2422 (pop_stack): Take a VEC * instead of a tree *. Update callers.
2423 (gigi): Initialize stacks as VECs.
2424 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
2425 (Case_Statement_to_gnu): Likewise.
2426 (Subprogram_Body_to_gnu): Likewise.
2427 (call_to_gnu): Likewise.
2428 (Exception_Handler_to_gnu_sjlj): Likewise.
2429 (gnat_to_gnu): Likewise.
2430 (get_exception_label): Likewise.
2431
2432 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2433
2434 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
2435 anonymous base generated when the parent is a constrained discriminated
2436 type, propagate interface list to first subtype because it may appear
2437 in a current instance within the extension part of the derived type
2438 declaration, and its own subtype declaration has not been elaborated
2439 yet.
2440 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2441 determine whether it has the controlling type.
2442
2443 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
2444
2445 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
2446 raise of CE, SE and PE have the reason correctly set and are properly
2447 expanded before stopping the expansions of .NET/JVM exceptions.
2448
2449 2010-06-14 Robert Dewar <dewar@adacore.com>
2450
2451 * opt.ads (Check_Policy_List): Add some clarifying comments
2452 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
2453 on rewritten Assert pragma.
2454
2455 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2456
2457 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
2458 controlled operations, so that they will be treated as overriding even
2459 if the overridden subprogram is marked Is_Hidden, as long as the
2460 overridden subprogram's parent subprogram is not hidden.
2461
2462 2010-06-14 Robert Dewar <dewar@adacore.com>
2463
2464 * debug.adb: Entry for gnatw.d no longer specific for while loops
2465 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
2466 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
2467 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
2468 new calling sequence to include test for EXIT WHEN.
2469 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
2470 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
2471 EXIT WHEN case.
2472 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
2473 node.
2474 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
2475 PRAGMA, not to pragma identifier).
2476 (Next_Exit_Statement): New attribute of N_Exit_Statement node
2477
2478 2010-06-14 Robert Dewar <dewar@adacore.com>
2479
2480 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
2481 would fail" msg.
2482
2483 2010-06-14 Robert Dewar <dewar@adacore.com>
2484
2485 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
2486 missing pragma argument identifier.
2487
2488 2010-06-14 Robert Dewar <dewar@adacore.com>
2489
2490 * atree.ads, atree.adb (Ekind_In): New functions.
2491
2492 2010-06-14 Robert Dewar <dewar@adacore.com>
2493
2494 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
2495
2496 2010-06-14 Robert Dewar <dewar@adacore.com>
2497
2498 * usage.adb (Usage): Redo documentation of -gnatwa.
2499
2500 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2501
2502 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
2503 an untagged incomplete type that is a limited view.
2504
2505 2010-06-14 Sergey Rybin <rybin@adacore.com>
2506
2507 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
2508 and gnatppa.
2509
2510 2010-06-14 Thomas Quinot <quinot@adacore.com>
2511
2512 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
2513 factoring duplicated code between...
2514 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
2515 * a-envvar.ads: Minor reformatting
2516
2517 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2518
2519 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
2520 static entities.
2521 (Scan_ALI): Take into account new Visibility field.
2522 (Visibility_Kind): New type.
2523 (Xref_Entity_Record): Replace Lib field by Visibility.
2524
2525 * gcc-interface/Make-lang.in: Update dependencies.
2526
2527 2010-06-14 Pascal Obry <obry@adacore.com>
2528
2529 * raise.h: Remove unused defintions.
2530
2531 2010-06-14 Bob Duff <duff@adacore.com>
2532
2533 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
2534 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
2535 the incorrect error "proper body expected".
2536 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
2537 allowed here" error in case of subunits, which was triggered by the
2538 above change to P_Subunit.
2539
2540 2010-06-14 Sergey Rybin <rybin@adacore.com>
2541
2542 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
2543
2544 2010-06-14 Thomas Quinot <quinot@adacore.com>
2545
2546 * lib-util.adb: Minor code reorganization.
2547
2548 2010-06-14 Robert Dewar <dewar@adacore.com>
2549
2550 * ali.adb (Scan_ALI): Implement reading and storing of N lines
2551 (Known_ALI_Lines): Add entry for 'N' (notes)
2552 * ali.ads (Notes): New table to store Notes information
2553 * alloc.ads: Add entries for Notes table
2554 * lib-util.adb (Write_Info_Int): New procedure
2555 (Write_Info_Slit): New procedure
2556 (Write_Info_Uint): New procedure
2557 * lib-util.ads (Write_Info_Int): New procedure
2558 (Write_Info_Slit): New procedure
2559 (Write_Info_Uint): New procedure
2560 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
2561 * lib-writ.ads: Update documentation for N (Notes) lines
2562 * lib.adb (Store_Note): New procedure
2563 * lib.ads (Notes): New table
2564 (Store_Note): New procedure
2565 * sem_prag.adb: Call Store_Note for affected pragmas
2566
2567 2010-06-14 Thomas Quinot <quinot@adacore.com>
2568
2569 * socket.c: Fix wrong condition in #ifdef
2570 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
2571 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
2572 because on VMS this type is a 32-bit pointer which is not compatible
2573 with the default for C pointers for code compiled with gcc on that
2574 platform.
2575
2576 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2577
2578 * sem_util (Is_VMS_Operator): New predicate to determine whether an
2579 operator is an intrinsic operator declared in the DEC system extension.
2580 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
2581 if the operator is a VMS intrinsic.
2582 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
2583 constant-folded if the operands are signed and the operator is a VMS
2584 intrinsic.
2585
2586 2010-06-14 Robert Dewar <dewar@adacore.com>
2587
2588 * g-socket.adb, gnatcmd.adb: Minor reformatting.
2589
2590 2010-06-14 Pascal Obry <obry@adacore.com>
2591
2592 * s-finimp.adb: Fix typo.
2593 * raise.h: Remove duplicate blank line.
2594
2595 2010-06-14 Vincent Celier <celier@adacore.com>
2596
2597 * prj-nmsc.adb (Add_Sources): Always set the object file and the
2598 switches file names, as the configuration of the language may change
2599 in an extending project.
2600 (Process_Naming_Scheme): For sources of projects that are extended, set
2601 the configuration of the language from the highest extending project
2602 where the language is declared.
2603
2604 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2605
2606 * sem_res.adb (Resolve_Call): For infinite recursion check, test
2607 whether the called subprogram is inherited from a containing subprogram.
2608 (Same_Or_Aliased_Subprograms): New function
2609
2610 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2611
2612 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
2613 use-visible, check whether it is a primitive for more than one type.
2614
2615 2010-06-14 Robert Dewar <dewar@adacore.com>
2616
2617 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
2618
2619 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
2620 Has_Pragma_Unmodified flag.
2621
2622 2010-06-14 Thomas Quinot <quinot@adacore.com>
2623
2624 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
2625 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
2626 now done in GNAT.Sockets if necessary.
2627 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
2628 Ensure mutual exclusion for netdb operations if the target platform
2629 requires it.
2630 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
2631 hostent as an opaque type to improve portability.
2632 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
2633 gethostbyYYY using proprietary VxWorks API so that a uniform interface
2634 is available for the Ada side.
2635 * gcc-interface/Makefile.in: Remove g-sttsne-*
2636 * gcc-interface/Make-lang.in: Update dependencies.
2637
2638 2010-06-14 Vincent Celier <celier@adacore.com>
2639
2640 * gnatcmd.adb (Mapping_File): New function.
2641
2642 2010-06-14 Javier Miranda <miranda@adacore.com>
2643
2644 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
2645
2646 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2647
2648 * ali.adb: Fix typo.
2649 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
2650
2651 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2652
2653 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
2654 instances.
2655
2656 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
2657 the context does not have a homonym of the selector, emit default
2658 error message.
2659
2660 2010-06-14 Robert Dewar <dewar@adacore.com>
2661
2662 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
2663 comment addition.
2664
2665 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2666
2667 * lib-xref.ads: Doc updates:
2668 - Allocate 'Q' for #include entity kind
2669 - Free 'Z'
2670 - Allocate 'g' for regular macros
2671 - Allocate 'G' for function-like macros
2672
2673 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2674
2675 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
2676 Indicates that there is an instantiation in the current unit that
2677 loaded the body of the unit denoted by the with_clause.
2678 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
2679 whether a with_clause in the current context denotes the unit that
2680 holds the generic declaration, and mark the with_clause accordingly.
2681 (Instantiate_Package_Body): call Mark_Context.
2682 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
2683 whether a given body should be traversed before the spec of the main
2684 unit.
2685
2686 2010-06-14 Ed Falis <falis@adacore.com>
2687
2688 * sysdep.c: Fix 653 build against vThreads headers.
2689
2690 2010-06-14 Robert Dewar <dewar@adacore.com>
2691
2692 * sinfo.ads: Minor reformatting.
2693
2694 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2695
2696 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
2697 the spec has been generated for a body without spec that carries an
2698 Inline_Always pragma.
2699
2700 2010-06-14 Arnaud Charlet <charlet@adacore.com>
2701
2702 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
2703 macro.
2704
2705 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
2706
2707 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
2708 declaration for VMs, as those are useless and might lead to duplicated
2709 local variable names in the generated code.
2710 * gcc-interface/Make-lang.in: Update dependencies.
2711
2712 2010-06-14 Robert Dewar <dewar@adacore.com>
2713
2714 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
2715
2716 2010-06-14 Robert Dewar <dewar@adacore.com>
2717
2718 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
2719 is renamed as Has_Following_Address_Clause.
2720 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
2721 to allow the caller to avoid Initialize_Scalars having an effect.
2722 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
2723 scalars with an address clause specified.
2724 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
2725 to allow the caller to avoid Initialize_Scalars having an effect.
2726 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
2727 (where it was called Has_Address_Clause).
2728 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
2729 (where it was called Has_Address_Clause).
2730 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
2731 problems for Initialize_Scalars (since we no longer initialize objects
2732 with an address clause.
2733
2734 2010-06-14 Robert Dewar <dewar@adacore.com>
2735
2736 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
2737 condition.
2738
2739 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2740
2741 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
2742 on the entity of an implicitly generated postcondition procedure.
2743
2744 2010-06-14 Thomas Quinot <quinot@adacore.com>
2745
2746 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
2747 Discriminant_Constraint elist from full view to private view.
2748
2749 2010-06-14 Robert Dewar <dewar@adacore.com>
2750
2751 * sem_res.adb: Minor reformatting.
2752
2753 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2754
2755 * sem.adb: New version of unit traversal.
2756
2757 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
2758 within a generic unit in the table of delayed calls.
2759
2760 2010-06-14 Robert Dewar <dewar@adacore.com>
2761
2762 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
2763
2764 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2765
2766 * sem_ch12.adb (Save_References): If an identifier has been rewritten
2767 during analysis as an explicit dereference, keep the reference implicit
2768 in the generic, but preserve the entity if global. This prevents
2769 malformed generic trees in the presence of some nested generics.
2770
2771 2010-06-14 Sergey Rybin <rybin@adacore.com>
2772
2773 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
2774 tool with '-files=' option. Also fix some small errors (wrong brackets)
2775
2776 2010-06-14 Vincent Celier <celier@adacore.com>
2777
2778 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
2779 the ALI files on the command line.
2780
2781 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
2782 the same value as the parameter of the same name.
2783 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
2784 to False.
2785 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
2786 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
2787 emit version symbols only for the units of the library.
2788 (Gen_Versions_C): Ditto.
2789
2790 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2791
2792 * sem_ch4.adb: Fix typo.
2793
2794 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
2795
2796 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
2797 vector IO doesn't work at default value properly.
2798
2799 2010-06-14 Doug Rupp <rupp@adacore.com>
2800
2801 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
2802
2803 2010-06-14 Vincent Celier <celier@adacore.com>
2804
2805 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
2806 sources of the project if a switch -files= is used.
2807
2808 2010-06-14 Thomas Quinot <quinot@adacore.com>
2809
2810 * exp_attr.adb: Minor reformatting.
2811
2812 2010-06-14 Gary Dismukes <dismukes@adacore.com>
2813
2814 * gnat_ugn.texi: Minor typo fixes and wording changes.
2815
2816 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2817
2818 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
2819 prefixed form, do not re-analyze first actual, which may need an
2820 implicit dereference.
2821 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
2822 prefixed notation, the analysis will rewrite the node, and possible
2823 errors appear in the rewritten name of the node.
2824 * sem_res.adb: If a call is ambiguous because its first parameter is
2825 an overloaded call, report list of candidates, to clarify ambiguity of
2826 enclosing call.
2827
2828 2010-06-14 Doug Rupp <rupp@adacore.com>
2829
2830 * s-auxdec-vms-alpha.adb: New package body implementing legacy
2831 VAX instructions with Asm insertions.
2832 * s-auxdec-vms_64.ads: Inline VAX queue functions
2833 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
2834 that show up only on VMS.
2835 * gcc-interface/Makefile.in: Provide translation for
2836 s-auxdec-vms-alpha.adb.
2837
2838 2010-06-14 Olivier Hainque <hainque@adacore.com>
2839
2840 * initialize.c (VxWorks section): Update comments.
2841
2842 2010-06-14 Robert Dewar <dewar@adacore.com>
2843
2844 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
2845
2846 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
2847
2848 * init.c: Code clean up.
2849
2850 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2851
2852 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
2853 not insert address clause in table for later validation if type of
2854 entity is generic, to prevent possible spurious errors.
2855
2856 * sem_ch8.adb: Code clean up.
2857
2858 2010-06-14 Ben Brosgol <brosgol@adacore.com>
2859
2860 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
2861 texi2pdf and texi2html.
2862 Document how to change scheduling properties on HP-UX.
2863
2864 2010-06-14 Thomas Quinot <quinot@adacore.com>
2865
2866 * g-socket.ads: Remove misleading comments.
2867
2868 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
2869
2870 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
2871 CLI_Target as this prevents proper detection of exported names
2872 duplicates when the exported language is different to CIL.
2873 (Process_Interface_Name): Add check for CIL convention exports,
2874 replacing the old one from Check_Duplicated_Export_Name.
2875
2876 2010-06-14 Matthew Heaney <heaney@adacore.com>
2877
2878 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
2879 and new last satisfy constraints.
2880 (Delete_Last): prevent overflow for subtraction of index values
2881 (To_Vector): prevent overflow for addition of index values
2882
2883 2010-06-14 Ed Schonberg <schonberg@adacore.com>
2884
2885 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
2886 rewritten call, preserve the resulting type to prevent spurious errors,
2887 when the call is implicitly dereferenced in the context of an in-out
2888 actual.
2889
2890 * checks.adb (Apply_Discriminant_Check): If the target of the
2891 assignment is a renaming of a heap object, create constrained type for
2892 it to apply check.
2893
2894 2010-06-14 Pascal Obry <obry@adacore.com>
2895
2896 * prj-proc.adb: Fix copy of object directory for extending projects.
2897
2898 2010-06-14 Jose Ruiz <ruiz@adacore.com>
2899
2900 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
2901 (__gnat_install_handler, PowerPC linux): Activate the alternative
2902 signal stack.
2903
2904 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
2905
2906 * gnat_rm.texi: Move to GFDL version 1.3.
2907 * gnat-style.texi: Ditto.
2908 * gnat_ugn.texi: Ditto.
2909
2910 2010-06-12 Kai Tietz
2911
2912 PR ada/43731
2913 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
2914 mingw targets.
2915
2916 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
2917
2918 * gcc-interface/utils.c (update_pointer_to): Initialize last.
2919
2920 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
2921
2922 * gcc-interface/ada-tree.h: Fix formatting nits.
2923
2924 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2925
2926 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
2927 allocation.
2928 (init_dummy_type): Likewise.
2929 (gnat_pushlevel): Likewise.
2930
2931 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
2932 (Subprogram_Body_to_gnu): Likewise.
2933 (Compilation_Unit_to_gnu): Likewise.
2934 (start_stmt_group): Likewise.
2935 (extract_encoding): Likewise.
2936 (decode_name): Likewise.
2937
2938 * gcc-interface/misc.c (gnat_printable_name): Likewise.
2939
2940 * gcc-interface/decl.c (annotate_value): Likewise.
2941
2942 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
2943 GTY option.
2944 (struct lang_decl): Likewise.
2945 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
2946 (SET_DECL_LANG_SPECIFIC): Likewise.
2947
2948 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
2949
2950 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
2951 * gcc-interface/lang-specs.h: Likewise.
2952
2953 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
2954
2955 PR c++/44294
2956 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
2957
2958 2010-06-01 Arnaud Charlet <charlet@adacore.com>
2959
2960 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
2961
2962 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
2963
2964 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
2965 TYPE_DECL of the equivalent type instead of building a new one.
2966
2967 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
2968
2969 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
2970 Fix nits in comments.
2971 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
2972 * gcc-interface/trans.c (gigi): Likewise.
2973 (Attribute_to_gnu): Likewise.
2974 (Case_Statement_to_gnu): Likewise.
2975 (gnat_to_gnu): Adjust warning message.
2976 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
2977 (build_vms_descriptor32): Likewise.
2978
2979 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
2980
2981 * gcc-interface/decl.c: Pretend to be a backend file by undefining
2982 IN_GCC_FRONTEND (still need rtl.h here).
2983
2984 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2985
2986 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
2987 (gigi): Adjust call to set_stack_check_libfunc.
2988
2989 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2990
2991 * gcc-interface/utils.c: Do not include rtl.h.
2992
2993 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
2994
2995 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
2996 and gimple.h. Explain why rtl.h has to be included.
2997 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
2998 * gcc-interface/targtyps.c: Do not include tm_p.h
2999 * gcc-interface/utils2.c: Do not include flags.h.
3000 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
3001 and explain why it has to be included.
3002 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
3003 and optabs.h.
3004 Include function.h and explain why. Explain why except.h is included.
3005 (enumerate_modes): Remove unused function.
3006 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
3007 * gcc-interface/Make-lang.in: Update dependencies.
3008
3009 2010-05-25 Joseph Myers <joseph@codesourcery.com>
3010
3011 * gcc-interface/misc.c (internal_error_function): Add context
3012 parameter. Use it to access show_column flag and instead of using
3013 global_dc. Call warn_if_plugins.
3014 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
3015
3016 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
3017
3018 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
3019 * gcc-interface/trans.c (unshare_save_expr): Delete.
3020 (gigi): Do not unshare trees under SAVE_EXPRs here.
3021
3022 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3023
3024 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
3025 build_call_list.
3026 * gcc-interface/utils.c (build_function_stub): Likewise.
3027
3028 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3029
3030 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
3031 for Wuninitialized without -O.
3032
3033 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3034
3035 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
3036 ADT_exception_data_name_id.
3037 (exception_data_name_id): New define.
3038 * gcc-interface/trans.c (gigi): Initialize it.
3039 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
3040 exception type for standard exception definitions. Do not make them
3041 volatile.
3042 <E_Record_Type>: Equate fields of types associated with an exception
3043 definition to those of the standard exception type.
3044
3045 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3046
3047 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
3048
3049 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3050
3051 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
3052 code, improve comments and fix formatting nits.
3053
3054 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
3055
3056 * gcc-interface/utils.c (update_pointer_to): Return early if the old
3057 pointer already points to the new type. Chain the old pointer and its
3058 variants at the end of new pointer's chain after updating them.
3059
3060 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
3061
3062 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
3063 built for interfaces.
3064 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
3065 imported_p instead of Is_Imported when considering constants.
3066 Do not promote alignment of exported objects.
3067 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
3068
3069 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3070
3071 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
3072 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
3073 constants really constant.
3074 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
3075
3076 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3077
3078 * gcc-interface/decl.c (make_aligning_type): Declare the type.
3079
3080 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3081
3082 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
3083 expressions of variant part of record types declared at library level.
3084
3085 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3086
3087 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
3088 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
3089 (rest_of_record_type_compilation): Adjust call to create_field_decl.
3090 (make_descriptor_field): Likewise and pass correctly typed constants.
3091 (build_unc_object_type): Likewise.
3092 (unchecked_convert): Likewise.
3093 * gcc-interface/decl.c (elaborate_expression_2): New static function.
3094 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
3095 Adjust call to create_field_decl.
3096 (make_aligning_type): Likewise.
3097 (make_packable_type): Likewise.
3098 (maybe_pad_type): Likewise.
3099 (gnat_to_gnu_field): Likewise.
3100 (components_to_record): Likewise.
3101 (create_field_decl_from): Likewise.
3102 (create_variant_part_from): Remove superfluous test.
3103 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
3104
3105 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3106
3107 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
3108 (build_unc_object_type_from_ptr): Likewise.
3109 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
3110 and pass it to create_type_decl. Declare the type. Simplify.
3111 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
3112 it to build_unc_object_type.
3113 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
3114 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3115 (gnat_to_gnu): Likewise.
3116 * gcc-interface/utils2.c (build_allocator): Likewise.
3117
3118 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
3119
3120 PR 40989
3121 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
3122
3123 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3124
3125 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
3126
3127 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3128
3129 PR 40989
3130 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
3131
3132 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
3133
3134 * gnathtml.pl: Use 755 as mask for new directories.
3135
3136 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3137
3138 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
3139 constant constructors before taking their address.
3140
3141 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3142
3143 * exp_dbug.ads: Fix outdated description. Mention link between XVS
3144 and XVZ objects.
3145 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
3146 XVZ variable as unit size of XVS type.
3147 (maybe_pad_type): Likewise.
3148
3149 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
3150
3151 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
3152 use memmove if the array type is bit-packed.
3153
3154 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3155
3156 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
3157 build_common_tree_nodes.
3158
3159 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
3160
3161 * gsocket.h: Make sure that winsock2.h is included before windows.h.
3162
3163 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3164
3165 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
3166 issue warning.
3167
3168 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3169
3170 * uintp.h (UI_Lt): Declare.
3171 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
3172 computation in sizetype.
3173 <E_Array_Subtype>: Use unified handling for all index types. Do not
3174 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
3175 bypass for PATs.
3176 (annotate_value): Change test for negative values.
3177 (validate_size): Apply test for negative values on GNAT nodes.
3178 (set_rm_size): Likewise.
3179 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
3180 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
3181 for negative values.
3182 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
3183 (builtin_type_for_size): Adjust definition of signed_size_type_node.
3184 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
3185 lengths against zero.
3186
3187 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3188
3189 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
3190 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
3191 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
3192 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
3193 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
3194 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
3195 rm_size.
3196 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
3197 flag_signed_char. Tag sizetype with "size_type" moniker.
3198 * gcc-interface/trans.c (gigi): Add standard_character parameter.
3199 Remove useless built-in types. Equate unsigned_char_type_node to
3200 Standard.Character. Use it instead of char_type_node throughout.
3201 (Attribute_to_gnu): Likewise.
3202 (gnat_to_gnu): Likewise.
3203 * gcc-interface/utils2.c (build_call_raise): Likewise.
3204
3205 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
3206
3207 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
3208 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
3209 (sbitsize_one_node): New macro.
3210 (sbitsize_unit_node): Likewise.
3211 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
3212 latent bug in the computation of subrange_p. Fold wider_p predicate.
3213 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
3214 the final comparison.
3215 (make_aligning_type): Build real negation and use sizetype throughout
3216 the offset computation.
3217 (maybe_pad_type): Do not issue the warning when the new size expression
3218 is too complex.
3219 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
3220 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
3221 sbitsize_unit_node.
3222 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
3223 double negation.
3224 (gnat_to_gnu) <N_Free_Statement>: Likewise.
3225 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
3226 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
3227 constants in sizetype. Remove dead code and tweak comments. Generate
3228 equality instead of inequality comparisons for zero length tests.
3229
3230 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3231
3232 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
3233 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
3234 <object>: Do not create the fake PARM_DECL if no debug info is needed.
3235 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
3236 purposes if no debug info is needed.
3237 Fix formatting. Reorder and add comments.
3238 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
3239 variable and remove obsolete comment.
3240 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
3241 (convert_vms_descriptor32): Likewise.
3242 (convert): Remove dead code.
3243 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
3244 the reference to the P_ARRAY pointer.
3245 <POINTER_TYPE>: Likewise.
3246 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
3247 (gnat_init_decl_processing): Delete, move contents to...
3248 * gcc-interface/misc.c (gnat_init): ...here.
3249
3250 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3251
3252 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
3253 calls. Return true for conversion from a record subtype to its type.
3254
3255 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3256
3257 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
3258 lieu of integer_type_node for boolean operations.
3259 (choices_to_gnu): Likewise.
3260 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3261 (Loop_Statement_to_gnu): Likewise.
3262 (establish_gnat_vms_condition_handler): Likewise.
3263 (Exception_Handler_to_gnu_sjlj): Likewise.
3264 (gnat_to_gnu): Likewise.
3265 (build_unary_op_trapv): Likewise.
3266 (build_binary_op_trapv): Likewise.
3267 (emit_range_check): Likewise.
3268 (emit_index_check): Likewise.
3269 (convert_with_check): Likewise.
3270 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
3271 (convert_vms_descriptor32): Likewise.
3272 (convert_vms_descriptor): Likewise.
3273 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
3274 (compare_arrays): Use boolean instead of integer constants.
3275 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
3276 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
3277 is a boolean type.
3278 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
3279 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
3280 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
3281 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
3282 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
3283 for boolean operations.
3284 (fill_vms_descriptor): Likewise. Fix formatting nits.
3285
3286 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3287
3288 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
3289 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
3290 Merge into...
3291 (LOOP_STMT_COND): ...this.
3292 (LOOP_STMT_BOTTOM_COND_P): New flag.
3293 (LOOP_STMT_TOP_UPDATE_P): Likewise.
3294 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
3295 (can_equal_min_val_p): New static inline function.
3296 (can_equal_max_val_p): Likewise.
3297 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
3298 new LOOP_STMT semantics. Use two different strategies depending on
3299 whether optimization is enabled to translate the loop.
3300 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
3301
3302 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3303
3304 * uintp.adb (UI_From_Dint): Remove useless code.
3305 (UI_From_Int): Likewise.
3306 * uintp.h: Reorder declarations.
3307 (UI_From_gnu): Declare.
3308 (UI_Base): Likewise.
3309 (Vector_Template): Likewise.
3310 (Vector_To_Uint): Likewise.
3311 (Uint_0): Remove.
3312 (Uint_1): Likewise.
3313 * gcc-interface/gigi.h: Tweak comments.
3314 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
3315 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
3316 overflows.
3317 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
3318 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
3319 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
3320 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
3321 TYPE_MAX_VALUE.
3322
3323 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
3324
3325 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
3326 TYPE_NAME.
3327 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
3328 (smaller_form_type_p): ...this. Change parameter and variable names.
3329 (call_to_gnu): Use the nominal type of the parameter to create the
3330 temporary if it's a smaller form of the actual type.
3331 (addressable_p): Return false if the actual type is integral and its
3332 size is greater than that of the expected type.
3333
3334 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3335
3336 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
3337 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
3338 (process_attributes): Delete.
3339 (post_error_ne_num): Change parameter name.
3340 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
3341 with -g3. Remove a couple of obsolete lines. Minor tweaks.
3342 If type annotating mode, operate on trees to compute the adjustment to
3343 the sizes of tagged types. Fix long line.
3344 (cannot_be_superflat_p): Tweak head comment.
3345 (annotate_value): Fold local constant.
3346 (set_rm_size): Fix long line.
3347 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
3348 (Attribute_to_gnu): Fix long line.
3349 <Attr_Size>: Remove useless assertion.
3350 Reorder statements. Use size_binop routine.
3351 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
3352 Create local variables for the label and the test. Tweak comments.
3353 (Subprogram_Body_to_gnu): Reset cfun to NULL.
3354 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
3355 (process_inlined_subprograms): Integrate into...
3356 (Compilation_Unit_to_gnu): ...this.
3357 (gnat_to_gnu): Fix long line.
3358 (post_error_ne_num): Change parameter name.
3359 * gcc-interface/utils.c (process_attributes): Static-ify.
3360 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
3361 (create_type_decl): Add comment.
3362 (create_var_decl_1): Process the attributes after adding the VAR_DECL
3363 to the current binding level.
3364 (create_subprog_decl): Likewise for the FUNCTION_DECL.
3365 (end_subprog_body): Do not reset cfun to NULL.
3366 (build_vms_descriptor32): Fix long line.
3367 (build_vms_descriptor): Likewise.
3368 (handle_nonnull_attribute): Likewise.
3369 (convert_vms_descriptor64): Likewise.
3370 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
3371 (gnat_protect_expr): Fix thinko.
3372
3373 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3374
3375 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
3376 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
3377 before translating the top-level node.
3378 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
3379 <N_Object_Declaration>: Likewise.
3380 <N_Assignment_Statement>: Likewise.
3381 <N_Unchecked_Type_Conversion>: Likewise.
3382 (call_to_gnu): Remove kludge.
3383 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
3384 associated with user returns to be preserved.
3385 (gnat_to_gnu): Add special code to deal with boolean rvalues.
3386 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
3387 comparisons.
3388 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
3389 <INDIRECT_REF>: Call build_fold_indirect_ref.
3390
3391 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
3392
3393 * g-socket.adb: A target can have multiple missing errno's. This
3394 will result in multiple errno's being defined as -1. Because of this
3395 we can not use a case but must use a series of if's to avoid
3396 a duplicate case error in GNAT.Sockets.Resolve_Error.
3397
3398 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3399
3400 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
3401 a statement. Otherwise, if at top-level, push the processing of the
3402 elaboration routine. In the misaligned case, issue the error messages
3403 again on entry and create the temporary explicitly. Do not issue them
3404 for CONSTRUCTORs.
3405 For a function call, emit the range check if necessary.
3406 In the copy-in copy-out case, create the temporary for the return
3407 value explicitly.
3408 Do not unnecessarily convert by-ref parameters to the formal's type.
3409 Remove obsolete guards in conditions.
3410 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
3411 target to call_to_gnu in all cases.
3412 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
3413 (addressable_p) <CONSTRUCTOR>: Return false if not static.
3414 <COMPOUND_EXPR>: New case.
3415 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
3416 expression if it has unconstrained array type.
3417 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
3418 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
3419 individual basis.
3420
3421 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3422
3423 * gcc-interface/trans.c (gigi): Do not start statement group.
3424 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
3425 Start statement group and push binding level here...
3426 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
3427 Do not push fake contexts at top level. Remove redundant code.
3428 (call_to_gnu): Rename a local variable and constify another.
3429 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
3430 (set_current_block_context): Set it as the group's block.
3431 (gnat_init_decl_processing): Delete unrelated init code.
3432 (end_subprog_body): Use NULL_TREE.
3433
3434 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3435
3436 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
3437 side-effects of actual parameters before the call.
3438
3439 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
3440
3441 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
3442 and warning.
3443 (set_rm_size): Reorder and remove obsolete test.
3444
3445 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3446
3447 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
3448 (gigi): Adjust ATTRIBUTE_UNUSED markers.
3449 * gcc-interface/gadaint.h: New file.
3450 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
3451 (__gnat_to_canonical_file_spec): Remove declaration.
3452 (number_names): Delete.
3453 (number_files): Likewise.
3454 (gigi): Adjust.
3455 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
3456 above change.
3457
3458 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
3459
3460 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
3461 comment.
3462 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
3463 Ekind. Return early for class-wide types. Do not compute initializer
3464 unless necessary. Reuse the tree for an associated class-wide type
3465 only if processing its root type.
3466
3467 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
3468
3469 * gsocket.h: Run-time can no longer be built without network
3470 OS headers available. Changing RTEMS GNAT build procedure to
3471 reflect this and letting run-time build use network .h files.
3472
3473 2010-04-13 Duncan Sands <baldrick@free.fr>
3474
3475 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
3476 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
3477
3478 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3479
3480 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
3481 (parent_name_id): New macro.
3482 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
3483 * gcc-interface/trans.c (gigi): Initialize it.
3484 (lvalue_required_p) <N_Type_Conversion>: New case.
3485 <N_Qualified_Expression>: Likewise.
3486 <N_Allocator>: Likewise.
3487 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
3488
3489 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3490
3491 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
3492 (DECL_CONST_ADDRESS_P): New macro.
3493 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
3494 (SAME_FIELD_P): Likewise.
3495 * gcc-interface/decl.c (constructor_address_p): New static function.
3496 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
3497 the return value of above function.
3498 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
3499 passed by reference.
3500 <E_Record_Subtype>: Likewise.
3501 Set TREE_ADDRESSABLE on the type if it passed by reference.
3502 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
3503 (create_field_decl_from): Likewise.
3504 (substitute_in_type): Likewise.
3505 (purpose_member_field): Use SAME_FIELD_P.
3506 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
3507 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
3508 parameter and adjust recursive calls.
3509 <N_Explicit_Dereference>: New case.
3510 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
3511 Adjust calls to lvalue_required_p. Do not return the initializer of a
3512 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
3513 (call_to_gnu): Delay issuing error message for a misaligned actual and
3514 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
3515 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
3516 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
3517 type is passed by reference.
3518 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
3519 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
3520 (build_simple_component_ref): Use SAME_FIELD_P.
3521
3522 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
3523
3524 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
3525 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
3526 front-end's predicate Is_By_Reference_Type. Use consistent order and
3527 remove ??? comment. Use original conversion in all cases, if any.
3528 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
3529 (convert): Use local copy in more cases.
3530 <INDIRECT_REF>: Remove deactivated code.
3531 (unchecked_convert): Use a couple of local copies.
3532
3533 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3534
3535 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
3536 function.
3537 (lvalue_required_p) <N_Attribute_Reference>: Call it.
3538 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
3539 folding the result only if lvalue_required_for_attribute_p is true.
3540 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
3541 typed constant to build_component_ref.
3542 (unchecked_convert): Likewise.
3543 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
3544 (build_allocator): Likewise.
3545
3546 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3547
3548 * gcc-interface/utils2.c (build_cond_expr): Take the address and
3549 dereference if the result type is passed by reference.
3550
3551 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
3552
3553 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
3554 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
3555 goto to the next statement.
3556
3557 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
3558
3559 * gcc-interface/gigi.h (maybe_variable): Delete.
3560 (protect_multiple_eval): Likewise.
3561 (maybe_stabilize_reference): Likewise.
3562 (gnat_save_expr): Declare.
3563 (gnat_protect_expr): Likewise.
3564 (gnat_stabilize_reference): Likewise.
3565 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
3566 gnat_stabilize_reference.
3567 (maybe_variable): Delete.
3568 (elaborate_expression_1): Use gnat_save_expr.
3569 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
3570 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
3571 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
3572 <N_Slice>: Use gnat_protect_exp.
3573 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
3574 <N_In>: Use gnat_protect_expr.
3575 Pass NULL to gnat_stabilize_reference.
3576 (build_unary_op_trapv): Use gnat_protect_expr.
3577 (build_binary_op_trapv): Likewise.
3578 (emit_range_check): Likewise.
3579 (emit_index_check): Likewise.
3580 (convert_with_check): Likewise.
3581 (protect_multiple_eval): Move to utils2.c file.
3582 (maybe_stabilize_reference): Merge into...
3583 (gnat_stabilize_reference): ...this. Move to utils2.c file.
3584 (gnat_stabilize_reference_1): Likewise.
3585 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
3586 instead of protect_multiple_eval.
3587 * gcc-interface/utils2.c (compare_arrays): Likewise.
3588 (nonbinary_modular_operation): Likewise.
3589 (maybe_wrap_malloc): Likewise.
3590 (build_allocator): Likewise.
3591 (gnat_save_expr): New function.
3592 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
3593 in common cases. Propagate TREE_READONLY onto dereferences.
3594 (gnat_stabilize_reference_1): Move from trans.c file.
3595 (gnat_stabilize_reference): Likewise.
3596
3597 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
3598
3599 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
3600 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
3601 node. Use the type of the operand to set TREE_READONLY.
3602 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
3603 _REF node. Do not overwrite TREE_READONLY.
3604 (call_to_gnu): Rename local variable and fix various nits. In the
3605 copy-in/copy-out case, build the SAVE_EXPR manually.
3606 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
3607 and fold the computations.
3608 (protect_multiple_eval): Always save entire fat pointers.
3609 (maybe_stabilize_reference): Minor tweaks.
3610 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
3611 tcc_type and tcc_statement.
3612 * gcc-interface/utils.c (convert_to_fat_pointer): Call
3613 protect_multiple_eval in lieu of save_expr.
3614 (convert): Minor tweaks.
3615 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
3616 (builtin_type_for_size): Call gnat_type_for_size directly.
3617 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
3618 (contains_null_expr): Likewise
3619 (gnat_build_constructor): Do not call it.
3620 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
3621 instead of gnat_stabilize_reference to protect the operands.
3622 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
3623 save_expr.
3624 (maybe_wrap_malloc): Likewise.
3625 (build_allocator): Likewise.
3626 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
3627 (gnat_mark_addressable): Rename parameter.
3628
3629 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
3630
3631 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
3632 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
3633 (TYPE_RETURNS_BY_REF_P): Rename into.
3634 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
3635 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
3636 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
3637 (build_return_expr): Likewise.
3638 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
3639 Rename local variables. If the return Mechanism is By_Reference, pass
3640 return_by_invisible_ref_p to create_subprog_type instead of toggling
3641 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
3642 the mechanism. Use regular return for contrained types with non-static
3643 size and return by invisible reference for unconstrained return types
3644 with default discriminants. Update comment.
3645 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
3646 returns by invisible reference, turn the RESULT_DECL into a pointer.
3647 Do not handle DECL_BY_REF_P in the CICO case here.
3648 (call_to_gnu): Remove code handling return by target pointer. For a
3649 function call, if the return type has non-constant size, generate the
3650 assignment with an INIT_EXPR.
3651 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
3652 If the function returns by invisible reference, build the copy return
3653 operation manually.
3654 (add_decl_expr): Initialize the variable with an INIT_EXPR.
3655 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
3656 Adjust for renaming of macros. Copy the node only when necessary.
3657 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
3658 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
3659 (convert_from_reference): Delete.
3660 (is_byref_result): Likewise.
3661 (gnat_genericize_r): Likewise.
3662 (gnat_genericize): Likewise.
3663 (end_subprog_body): Do not call gnat_genericize.
3664 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
3665 (build_return_expr): Adjust parameter names, logic and comment.
3666
3667 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3668
3669 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
3670 if the size is small enough. Propagate the alignment if there is an
3671 alignment clause on the original array type.
3672 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
3673 Deal with under-aligned packed array types. Copy the size onto the
3674 justified modular type and don't lay it out again. Likewise for the
3675 padding type built for other under-aligned subtypes.
3676 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
3677 on the type.
3678
3679 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3680
3681 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
3682 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
3683
3684 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
3685
3686 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
3687 do not set the result type if there is a specified target and do not
3688 convert the result in any cases.
3689 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
3690 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
3691
3692 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
3693
3694 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
3695
3696 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
3697
3698 PR ada/42253
3699 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
3700 pointer base types are variant of each other. Apply special treatment
3701 for null to fat pointer types in all cases.
3702
3703 2010-01-28 Pascal Obry <obry@adacore.com>
3704
3705 * s-win32.ads: Add some missing constants.
3706
3707 2010-01-28 Vincent Celier <celier@adacore.com>
3708
3709 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
3710 Unknown_Package.
3711
3712 2010-01-28 Robert Dewar <dewar@adacore.com>
3713
3714 * gnat_rm.texi: Minor correction
3715
3716 2010-01-27 Pascal Obry <obry@adacore.com>
3717
3718 * g-awk.adb: ensure that an AWK session is reusable.
3719
3720 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
3721
3722 * g-regist.adb (For_Every_Key): Fix previous change.
3723 Minor reformatting.
3724
3725 2010-01-27 Thomas Quinot <quinot@adacore.com>
3726
3727 * lib-writ.ads: Current version of spec for new N (note) ALI lines
3728
3729 2010-01-27 Yannick Moy <moy@adacore.com>
3730
3731 * a-cdlili.adb (Insert): Correct exception message when cursor
3732 designates wrong list.
3733
3734 2010-01-27 Vincent Celier <celier@adacore.com>
3735
3736 * gnatcmd.adb: When there is only one main specified, the package
3737 support Switches (<main>) and attribute Switches is specified for the
3738 main, use these switches, instead of Default_Switches ("Ada").
3739
3740 2010-01-27 Robert Dewar <dewar@adacore.com>
3741
3742 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
3743 implementation.
3744 * exp_disp.adb: Minor reformatting
3745
3746 2010-01-27 Tristan Gingold <gingold@adacore.com>
3747
3748 * seh_init.c: Use __ImageBase instead of _ImageBase.
3749
3750 2010-01-27 Javier Miranda <miranda@adacore.com>
3751
3752 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
3753 profile of interface thunks. The type of the controlling formal is now
3754 the covered interface type (instead of the target tagged type).
3755
3756 2010-01-27 Sergey Rybin <rybin@adacore.com>
3757
3758 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
3759
3760 2010-01-27 Robert Dewar <dewar@adacore.com>
3761
3762 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
3763 changed from Expr to N.
3764
3765 2010-01-26 Thomas Quinot <quinot@adacore.com>
3766
3767 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
3768 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
3769 -gnatzr.
3770
3771 2010-01-26 Vincent Celier <celier@adacore.com>
3772
3773 * prj-attr.adb: Add new attribute Library_Install_Name_Option
3774 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
3775 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
3776 attributes Run_Path_Option and Library_Install_Name_Option.
3777 * prj.ads (Project_Configuration): Replace component
3778 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
3779 component Library_Install_Name_Option.
3780 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
3781 Replace Run_Path_Origin_Supported with Run_Path_Origin
3782
3783 2010-01-26 Ed Schonberg <schonberg@adacore.com>
3784
3785 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
3786 is not hidden by a homograph declared in another actual package.
3787
3788 2010-01-26 Robert Dewar <dewar@adacore.com>
3789
3790 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
3791 decisions for pragmas Assert, Check, Precondition, Postcondition if
3792 -gnata set.
3793 * scos.ads: Update comments.
3794 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
3795 Also remove obsolete code for CT (exit point) SCOs.
3796
3797 2010-01-26 Thomas Quinot <quinot@adacore.com>
3798
3799 * switch-c.adb: Fix handling of -gnatz*
3800
3801 2010-01-26 Robert Dewar <dewar@adacore.com>
3802
3803 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
3804 qualifiers for FOR/WHILE loops
3805 * scos.ads: Use separate type letters F/W for for/while loops
3806
3807 2010-01-26 Robert Dewar <dewar@adacore.com>
3808
3809 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
3810 entries per line, one for each statement in the sequence).
3811 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
3812 size from 100 to 10_000 for SC_Array to avoid any real possibility of
3813 overflow. Output decisions in for loops.
3814 Exclude labels from CS lines.
3815 * scos.ads: Clarify that label is not included in the entry point
3816
3817 2010-01-26 Robert Dewar <dewar@adacore.com>
3818
3819 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
3820 format of statement sequence SCO entries (one location/statement).
3821 * put_scos.adb (Put_SCOs): Implement new format of CS lines
3822 * scos.ads: Update comments.
3823 * sem_eval.adb: Minor reformatting.
3824
3825 2010-01-26 Robert Dewar <dewar@adacore.com>
3826
3827 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
3828 (Extend_Statement_Sequence): New procedures
3829 (Traverse_Declarations_Or_Statements): New handling for exits.
3830
3831 2010-01-26 Robert Dewar <dewar@adacore.com>
3832
3833 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
3834 Case.
3835
3836 2010-01-26 Robert Dewar <dewar@adacore.com>
3837
3838 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
3839 * scos.ads: Clarify handling of logical operators
3840
3841 2010-01-26 Arnaud Charlet <charlet@adacore.com>
3842
3843 * s-tpoben.adb: Update comments.
3844
3845 2010-01-26 Robert Dewar <dewar@adacore.com>
3846
3847 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
3848 present.
3849
3850 2010-01-26 Robert Dewar <dewar@adacore.com>
3851
3852 * scos.ads: Clean up documentation, remove obsolete XOR references
3853 2010-01-26 Vincent Celier <celier@adacore.com>
3854
3855 * gnat_ugn.texi: Complete documentation on the restrictions for
3856 combined options in -gnatxxx switches.
3857 Fix typo.
3858
3859 2010-01-26 Arnaud Charlet <charlet@adacore.com>
3860
3861 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
3862 a controlled operation, abort is already deferred at this point, so we
3863 need to use Defer_Abort_Nestable.
3864
3865 2010-01-26 Vincent Celier <celier@adacore.com>
3866
3867 * prj-conf.adb (Get_Config_Switches): Check for a default language for
3868 a project extending a project with no languages.
3869
3870 2010-01-26 Vincent Celier <celier@adacore.com>
3871
3872 * switch-c.adb (Scan_Front_End_Switches): Take into account options
3873 that follow -gnatef.
3874 Allow -gnateG to be followed by other options.
3875
3876 2010-01-26 Robert Dewar <dewar@adacore.com>
3877
3878 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
3879 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
3880 reformatting.
3881
3882 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
3883
3884 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
3885 that allows to iterate over all subkeys of a key.
3886
3887 2010-01-26 Ed Falis <falis@adacore.com>
3888
3889 * sysdep.c: enable NFS for VxWorks MILS
3890 * env.c: enable __gnat_environ for VxWorks MILS
3891 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
3892
3893 2010-01-25 Bob Duff <duff@adacore.com>
3894
3895 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
3896 is an internally-generated positional aggregate, and the bounds are
3897 already correctly set. We don't want to overwrite those bounds with
3898 bounds determined by context.
3899
3900 2010-01-25 Robert Dewar <dewar@adacore.com>
3901
3902 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
3903 exp_ch9.adb, g-sechas.ads: Minor reformatting.
3904
3905 2010-01-25 Thomas Quinot <quinot@adacore.com>
3906
3907 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
3908 integer type) before subtracting 1, otherwise the computation may wrap
3909 (because size_t is modular) and cause the conversion to fail.
3910
3911 2010-01-25 Ed Falis <falis@adacore.com>
3912
3913 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
3914
3915 2010-01-25 Vincent Celier <celier@adacore.com>
3916
3917 * prj-attr.adb: New attribute Run_Path_Origin_Required
3918 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
3919 attribute Run_Path_Origin_Required.
3920 * prj.ads (Project_Configuration): New component
3921 Run_Path_Origin_Supported.
3922 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
3923
3924 2010-01-25 Ed Schonberg <schonberg@adacore.com>
3925
3926 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
3927 have errors, do not continue resolution of the aggregate.
3928 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
3929 the array type indicates an error.
3930
3931 2010-01-25 Bob Duff <duff@adacore.com>
3932
3933 * sinfo.ads: Minor comment fixes.
3934
3935 2010-01-25 Bob Duff <duff@adacore.com>
3936
3937 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
3938
3939 2010-01-25 Arnaud Charlet <charlet@adacore.com>
3940
3941 * gnatvsn.ads (Current_Year): Update.
3942
3943 2010-01-25 Florian Villoing <villoing@adacore.com>
3944
3945 * gnat_ugn.texi: Fix typo.
3946
3947 2010-01-25 Thomas Quinot <quinot@adacore.com>
3948
3949 * scos.ads: Update specification.
3950
3951 2010-01-25 Ed Schonberg <schonberg@adacore.com>
3952
3953 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
3954 enclosing subprogram has no previous spec, attach postcondition
3955 procedure to the defining entity for the body.
3956
3957 2010-01-25 Ed Schonberg <schonberg@adacore.com>
3958
3959 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
3960 initialization procedure of the ancestor part of an extension aggregate
3961 if it is an interface type.
3962
3963 2010-01-25 Vincent Celier <celier@adacore.com>
3964
3965 * gnatlink.adb (Process_Binder_File): The directory for the shared
3966 version of libgcc in the run path options is found in the subdirectory
3967 indicated by __gnat_default_libgcc_subdir.
3968 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
3969 each platform.
3970
3971 2010-01-25 Ed Schonberg <schonberg@adacore.com>
3972
3973 * sem_prag.adb: More flexible pragma Annotate.
3974
3975 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
3976
3977 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
3978 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
3979
3980 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
3981
3982 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
3983
3984 2010-01-18 Jan Hubicka <jh@suse.cz>
3985
3986 PR middle-end/42068
3987 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
3988 unit local variables.
3989
3990 2010-01-17 Laurent GUERBY <laurent@guerby.net>
3991
3992 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
3993
3994 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
3995
3996 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
3997 * system-linux-armeb.ads, system-linux-armel.ads: New files.
3998
3999 2010-01-09 Simon Wright <simon@pushface.org>
4000
4001 PR ada/42626
4002 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
4003 end-quote.
4004
4005
4006 \f
4007 Copyright (C) 2010 Free Software Foundation, Inc.
4008
4009 Copying and distribution of this file, with or without modification,
4010 are permitted in any medium without royalty provided the copyright
4011 notice and this notice are preserved.