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