[multiple changes]
[gcc.git] / gcc / ada / ChangeLog
1 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
2
3 * a-calend.adb: Add new constant Nanos_In_Four_Years.
4 (Formatting_Operations.Time_Of): Change the way four year chunks of
5 nanoseconds are added to the intermediate result.
6
7 2009-04-15 Nicolas Setton <setton@adacore.com>
8
9 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
10 does not need to wait for a carriage return.
11
12 2009-04-15 Tristan Gingold <gingold@adacore.com>
13
14 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
15 is set.
16
17 2009-04-15 Ed Schonberg <schonberg@adacore.com>
18
19 * freeze.adb (Freeze_Entity): improve error message for improper use of
20 incomplete types.
21 Diagnose additional illegal uses of incomplete types in formal parts.
22 appearing in formal parts.
23
24 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
25
26 2009-04-15 Robert Dewar <dewar@adacore.com>
27
28 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
29
30 2009-04-15 Nicolas Roche <roche@adacore.com>
31
32 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
33 current thread.
34
35 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
36
37 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
38
39 2009-04-15 Ed Schonberg <schonberg@adacore.com>
40
41 * sem_ch4.adb: improve error message on exponentiation.
42
43 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
44
45 * a-calend.adb: Move constant Epoch_Offset from package
46 Conversion_Operations to top level.
47 (Delay_Operations.To_Duration): Define a constant which represents
48 "end of time" and use it as a guard against very distant delay dates.
49 Protect the code against overflow when performing the origin shift to
50 Unix time.
51
52 2009-04-15 Robert Dewar <dewar@adacore.com>
53
54 * sem_prag.adb: Minor reformatting.
55
56 * sem_type.adb: Minor reformatting
57
58 2009-04-15 Javier Miranda <miranda@adacore.com>
59
60 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
61 support to check eliminated subprograms.
62
63 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
64
65 * sem_elim.adb (Set_Eliminated): Add support for elimination of
66 dispatching subprograms.
67
68 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
69 operations. Initialize with "null" the slots of eliminated dispaching
70 primitives.
71 (Write_DT): Add output for eliminated primitives.
72
73 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
74
75 2009-04-15 Ed Schonberg <schonberg@adacore.com>
76
77 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
78 the second is redundant, regardless of scopes.
79
80 2009-04-15 Vincent Celier <celier@adacore.com>
81
82 * prj-nmsc.adb (Get_Directories): Check for sources before checking
83 the object directory as when there are no sources, they may not be any
84 object directory.
85
86 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
87 directory, when there are no exec directory.
88
89 2009-04-15 Ed Schonberg <schonberg@adacore.com>
90
91 * sem_type.adb (Remove_Conversions): In order to resolve spurious
92 ambiguities, refine removal of universal interpretations from complex
93 expressions with literal arguments, when some numeric operators have
94 been declared abstract.
95
96 2009-04-15 Ed Falis <falis@adacore.com>
97
98 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
99 and backward compatibility for targets using probing for stack overflow
100
101 2009-04-15 Ed Schonberg <schonberg@adacore.com>
102
103 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
104 after any declaration, including renaming declarations.
105
106 2009-04-15 Arnaud Charlet <charlet@adacore.com>
107
108 * gcc-interface/Make-lang.in: Update dependencies.
109
110 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
111 Update xenomai target pairs.
112
113 2009-04-15 Javier Miranda <miranda@adacore.com>
114
115 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
116
117 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
118 functions returning anonymous access to class-wide limited types. Mark
119 also the containing scope as a task master.
120
121 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
122 limited-withed packages. Required to restore their visibility after
123 processing packages associated with implicit with-clauses.
124
125 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
126 associated with return statements because this work is now done by
127 Check_Anonymous_Return.
128 (Build_Master): Code cleanup.
129
130 2009-04-15 Thomas Quinot <quinot@adacore.com>
131
132 * sem_warn.ads: Minor reformatting
133
134 2009-04-15 Ed Schonberg <schonberg@adacore.com>
135
136 * sem_ch3.adb: better error message for illegal interfaces
137
138 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
139 formal is an incomplete type from a limited_with clause.
140
141 2009-04-15 Vincent Celier <celier@adacore.com>
142
143 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
144 Externally_Built indicating if the project is externally built. If it
145 is, and --subdirs is specified, but the subdir does not exist, look
146 for the specified directory, without the subdir.
147
148 2009-04-15 Gary Dismukes <dismukes@adacore.com>
149
150 * a-tasatt.adb: Fix typo, plus minor reformatting
151
152 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
153
154 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
155
156 2009-04-15 Ed Schonberg <schonberg@adacore.com>
157
158 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
159 private extension whose parent is a synchronized interface carries an
160 explicit synchronized keyword.
161
162 2009-04-15 Thomas Quinot <quinot@adacore.com>
163
164 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
165 instantiate generic shared object package with the corresponding
166 record type.
167
168 2009-04-15 Arnaud Charlet <charlet@adacore.com>
169
170 * system-linux-sparc.ads: Remove obsolete entries.
171
172 2009-04-15 Thomas Quinot <quinot@adacore.com>
173
174 * s-tasuti.ads: Add ??? comment
175
176 2009-04-15 Ed Schonberg <schonberg@adacore.com>
177
178 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
179 type even if the designated type comes from a limited_with clause, to
180 ensure that the symbol for the finalization list of the access type is
181 created.
182
183 2009-04-10 Robert Dewar <dewar@adacore.com>
184
185 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
186 for warning suppression.
187
188 2009-04-10 Ed Schonberg <schonberg@adacore.com>
189
190 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
191 identical, there is no redudancy to check.
192
193 2009-04-10 Gary Dismukes <dismukes@adacore.com>
194
195 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
196 calls initializing SS_Allocator (which is initialized in following
197 code).
198 (Expand_Simple_Function_Return): Add comment about False value for
199 Comes_From_Source on secondary-stack allocator.
200
201 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
202 (Build_Entry_Name): Add comment.
203
204 2009-04-10 Robert Dewar <dewar@adacore.com>
205
206 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
207
208 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
209 bound tested, since this is now done more generally in Sem_Res.
210
211 * sem_res.adb (Resolve_Comparison_Op): Add call to
212 Check_Lower_Bound_Tested.
213 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
214
215 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
216 (Low_Bound_Tested): New name for Low_Bound_Known flag
217
218 * exp_ch5.adb: Minor reformatting
219
220 * exp_ch4.adb:
221 Add comments on copying the Comes_From_Source flag for allocators
222
223 * sinfo.ads:
224 Add comments on copying the Comes_From_Source flag for allocators
225
226 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
227 Comes_From_Source flag from old allocator to new one.
228
229 2009-04-10 Ed Schonberg <schonberg@adacore.com>
230
231 * sem_ch6.ads: Address missing documentation query
232
233 2009-04-10 Vincent Celier <celier@adacore.com>
234
235 * prj-attr.adb:
236 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
237 and Response_File_Switches.
238
239 * prj-nmsc.adb (Process_Linker): Process new attributes
240 Max_Command_Line_Length, Response_File_Format and
241 Response_File_Switches.
242
243 * prj.ads (Response_File_Format): New enumeration type
244 (Project_Configuration): New componants Max_Command_Line_Length,
245 Resp_File_Format and Resp_File_Options.
246
247 * snames.ads-tmpl: Add new standard names for linking response files
248 for gprbuild: GNU, None, Object_List, Option_List,
249 Max_Command_Line_Length, Response_File_Format and
250 Response_File_Switches.
251
252 2009-04-10 Geert Bosch <bosch@adacore.com>
253
254 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
255 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
256 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
257 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
258 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
259 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
260 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
261 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
262 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
263 system-vxworks-arm.ads, system-vxworks-m68k.ads,
264 system-vxworks-mips.ads, system-vxworks-ppc.ads,
265 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
266 (Backend_Overflow_Checks): Set to True.
267
268 2009-04-10 Thomas Quinot <quinot@adacore.com>
269
270 * exp_attr.adb: Minor reformatting
271
272 2009-04-10 Ed Schonberg <schonberg@adacore.com>
273
274 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
275 analyze the expression for a postcondition, even if the compiler mode
276 is Generate_Code.
277
278 2009-04-10 Robert Dewar <dewar@adacore.com>
279
280 * sem_aux.adb: Minor reformatting
281
282 2009-04-10 Ed Falis <falis@adacore.com>
283
284 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
285
286 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
287
288 2009-04-10 Thomas Quinot <quinot@adacore.com>
289
290 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
291 undocumented formal.
292 Minor reformatting
293
294 * a-direio.ads: Fix typo in comment
295
296 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
297 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
298 Use uniform phrasing for comment at start of subprogram body.
299
300 * xsnamest.adb: Add note to explain why we use specific names for the
301 newly generated files instead of generating snames.{ads,adb,h} directly
302
303 2009-04-10 Sergey Rybin <rybin@adacore.com>
304
305 * vms_data.ads:
306 Add qualifier for new gnatstub option '--no-exception'
307
308 * gnat_ugn.texi:
309 Add the description of the new gnatstub option '--no-exception'
310
311 2009-04-10 Robert Dewar <dewar@adacore.com>
312
313 * rtsfind.adb: Minor reformatting
314
315 2009-04-10 Thomas Quinot <quinot@adacore.com>
316
317 * sem_disp.adb: Minor reformatting.
318 Add comment pointing to RM clause for the case of warning against a
319 (failed) attempt at declaring a primitive operation elsewhere than in a
320 package spec.
321
322 2009-04-10 Ed Schonberg <schonberg@adacore.com>
323
324 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
325 an actual for a previous formal package of the current instance.
326
327 2009-04-10 Bob Duff <duff@adacore.com>
328
329 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
330 them first, rather than on the extended main unit.
331
332 2009-04-10 Ed Schonberg <schonberg@adacore.com>
333
334 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
335 specification of full view carries a null exclusion indicator, create
336 an itype for it, to check for conformance with partial view.
337
338 2009-04-10 Bob Duff <duff@adacore.com>
339
340 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
341
342 * rtsfind.adb: Minor comment changes, and remove useless code.
343
344 * sinfo.ads: Add ??? comment.
345
346 2009-04-10 Vincent Celier <celier@adacore.com>
347
348 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
349
350 2009-04-10 Ed Schonberg <schonberg@adacore.com>
351
352 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
353 type is a synchronized type, retrieve tag information from the
354 corresponding record, which has the dispatch table link.
355
356 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
357
358 * g-comlin.adb (Group_Analysis): Take care of switches that might be
359 decomposed afterwards, but are present as-is in the command line
360 configuration, and thus should be kept as-is.
361
362 2009-04-10 Robert Dewar <dewar@adacore.com>
363
364 * gnat_rm.texi: Document that postconditions are tested on implicit
365 returns.
366
367 * sem_aux.adb: Minor reformatting
368
369 2009-04-10 Gary Dismukes <dismukes@adacore.com>
370
371 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
372 setting Etype.
373
374 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
375 Null_Exclusion_In_Return_Present when an access-to-function type has a
376 result type with an explicit not null.
377
378 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
379 given on the result type, then create a null-excluding itype for the
380 function.
381
382 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
383 the case where a null exclusion is imposed on a named access type.
384 (Analyze_Subprogram_Specification): Push and pop the scope of the
385 function around the call to Analyze_Return_Type in the case of no
386 formals, for consistency with handling when formals are present
387 (Process_Formals does this). Ensures that any itype created for the
388 return type will be associated with the proper scope.
389
390 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
391 exclusion is given on a generic function's result type, then create a
392 null-excluding itype for the generic function.
393 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
394 for an actual for a formal in object according to the setting on the
395 formal. Ensures null exclusion checks are done when the association is
396 elaborated.
397
398 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
399 N_Access_Function_Definition.
400
401 * sinfo.adb: Add Get_ and Set_ operations for
402 Null_Exclusion_In_Return_Present.
403
404 2009-04-10 Bob Duff <duff@adacore.com>
405
406 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
407 call to the _Postconditions procedure in the case of implicit returns
408 from analysis to expansion. This eliminates some duplicated code. Use
409 the Postcondition_Proc to find the identity of this procedure during
410 expansion.
411
412 2009-04-10 Robert Dewar <dewar@adacore.com>
413
414 * sem_ch6.adb: Minor code clean up.
415
416 * einfo.ads, sem_attr.adb: Minor comment fixes.
417
418 2009-04-10 Robert Dewar <dewar@adacore.com>
419
420 * sem_ch8.adb: Minor reformatting
421
422 2009-04-10 Robert Dewar <dewar@adacore.com>
423
424 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
425 procedures.
426
427 * sem_ch6.adb: Minor code clean up.
428
429 2009-04-10 Robert Dewar <dewar@adacore.com>
430
431 * mlib-tgt-specific-xi.adb: Minor reformatting
432
433 2009-04-10 Bob Duff <duff@adacore.com>
434
435 * einfo.ads: Minor comment fixes
436
437 2009-04-10 Vincent Celier <celier@adacore.com>
438
439 * snames.ads-tmpl: Remove names that are no longer used in the
440 Project Manager.
441 Mark specifically those that are used only in gprbuild
442
443 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
444
445 * init.c: Adjust EH support code on Alpha/Tru64.
446
447 2009-04-10 Bob Duff <duff@adacore.com>
448
449 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
450 procedure on every path that could return implicitly (not via a return
451 statement) from a procedure.
452
453 2009-04-10 Ed Schonberg <schonberg@adacore.com>
454
455 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
456 valid scope for a task declarations and therefore for a master id.
457
458 2009-04-10 Robert Dewar <dewar@adacore.com>
459
460 * sem_aux.adb: Minor reformatting
461
462 2009-04-10 Vincent Celier <celier@adacore.com>
463
464 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
465 True.
466 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
467 (Set_Obsolescent_Check): New procedure to change the value of
468 Obsolescent_Check_Flag.
469
470 * scn.ads (Set_Obsolescent_Check): New procedure to control
471 Obsolescent_Check.
472
473 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
474 obsolescent features while preprocessing.
475
476 2009-04-10 Thomas Quinot <quinot@adacore.com>
477
478 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
479 generated files on all platforms.
480
481 2009-04-10 Robert Dewar <dewar@adacore.com>
482
483 * sem_aux.adb: Minor reformatting
484
485 2009-04-10 Ed Schonberg <schonberg@adacore.com>
486
487 * sem_ch3.adb (Access_Definition): Handle properly the case of a
488 protected function with formals that returns an anonymous access type.
489
490 2009-04-10 Thomas Quinot <quinot@adacore.com>
491
492 * sem_disp.adb: Minor reformatting
493
494 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
495
496 * seh_init.c: Do not use the 32-bit specific implementation of
497 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
498 version TBD).
499
500 2009-04-10 Jose Ruiz <ruiz@adacore.com>
501
502 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
503 a '/' at the end so we better use the complete target name to determine
504 whether it is a PowerPC 55xx target.
505
506 2009-04-10 Thomas Quinot <quinot@adacore.com>
507
508 * sem_eval.adb: Minor reformatting
509
510 2009-04-10 Thomas Quinot <quinot@adacore.com>
511
512 * snames.h, snames.ads, snames.adb: Remove files, now generated from
513 templates.
514
515 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
516 above.
517
518 * xsnamest.adb: New file.
519
520 * gcc-interface/Make-lang.in: New target for automated generation of
521 snames.ads, snames.adb and snames.h
522
523 2009-04-10 Tristan Gingold <gingold@adacore.com>
524
525 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
526 avoid compile time warnings.
527 Do not add gcc/config in include search list while compiling the RTS.
528 Pragma Thread_Local_Storage is available on any target.
529
530 2009-04-10 Bob Duff <duff@adacore.com>
531
532 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
533
534 2009-04-10 Tristan Gingold <gingold@adacore.com>
535
536 * init.c: Install signal handler on Darwin.
537
538 2009-04-10 Robert Dewar <dewar@adacore.com>
539
540 * sem_prag.adb: Minor reformatting
541
542 * exp_util.adb (Make_Non_Empty_Check): New function
543 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
544 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
545
546 2009-04-10 Arnaud Charlet <charlet@adacore.com>
547
548 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
549
550 2009-04-10 Jose Ruiz <ruiz@adacore.com>
551
552 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
553 tool prefix for AVR and PowerPC 55xx targets.
554
555 2009-04-10 Robert Dewar <dewar@adacore.com>
556
557 * sem_warn.adb (Within_Postcondition): New function
558 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
559
560 2009-04-10 Robert Dewar <dewar@adacore.com>
561
562 * sem_warn.adb: Minor reformatting
563
564 * make.adb: Minor reformatting.
565
566 2009-04-10 Gary Dismukes <dismukes@adacore.com>
567
568 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
569 entity and the scope is a subprogram, retrieve the Sloc of the
570 subprogram's body rather than using the sloc of the spec, for better
571 line-stepping behavior in gdb.
572 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
573 controller, use the Sloc of the first declaration of the containing list
574 rather than that of the node that triggered creation of the list
575 controller.
576
577 2009-04-10 Vincent Celier <celier@adacore.com>
578
579 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
580 to avoid gcc warning.
581
582 2009-04-10 Robert Dewar <dewar@adacore.com>
583
584 * g-comlin.adb: Add ??? comment
585
586 2009-04-10 Ed Schonberg <schonberg@adacore.com>
587
588 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
589 unreferenced entities for a package with no visible declarations.
590
591 2009-04-10 Robert Dewar <dewar@adacore.com>
592
593 * exp_ch9.adb: Minor reformatting
594
595 2009-04-10 Thomas Quinot <quinot@adacore.com>
596
597 * sem_prag.adb: Minor reformatting
598
599 2009-04-10 Vincent Celier <celier@adacore.com>
600
601 * prj-nmsc.adb:
602 (Check_Library_Attributes): For a project qualified as a library project
603 that is not a library project, indicate in the error message which
604 attributes are missing (Library_Dir and/or Library_Name).
605
606 2009-04-10 Bob Duff <duff@adacore.com>
607
608 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
609 generated nodes, because it might confuse various circuits in the FE.
610
611 2009-04-10 Ed Schonberg <schonberg@adacore.com>
612
613 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
614 of pragma. It will be recopied and analyzed when used in call to
615 Create_Task.
616
617 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
618 initialization operations and recognize use of it in procedure calls
619 within init_procs.
620
621 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
622 argument, because it may have side-effects.
623
624 * exp_ch2.adb: Remove obsolete comments on default functions
625
626 2009-04-10 Jose Ruiz <ruiz@adacore.com>
627
628 * adaint.c (RTX section): Do for RTX the same thing as we do for
629 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
630
631 2009-04-10 Robert Dewar <dewar@adacore.com>
632
633 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
634
635 * sem_res.adb (Resolve_Call): Fix test for
636 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
637 a non-dynamic scope).
638
639 2009-04-10 Robert Dewar <dewar@adacore.com>
640
641 * make.adb: Add comment.
642 Minor reformatting
643
644 2009-04-10 Nicolas Setton <setton@adacore.com>
645
646 * s-osprim-darwin.adb: New file.
647
648 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
649
650 2009-04-10 Thomas Quinot <quinot@adacore.com>
651
652 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
653
654 2009-04-09 Nick Clifton <nickc@redhat.com>
655
656 * adadecode.h: Change copyright header to refer to version
657 3 of the GNU General Public License with version 3.1 of the
658 GCC Runtime Library Exception and to point readers at the
659 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
660 page.
661 * 9drpc.adb: Likewise.
662 * a-assert.adb: Likewise.
663 * a-astaco.adb: Likewise.
664 * a-calari.adb: Likewise.
665 * a-calcon.adb: Likewise.
666 * a-calcon.ads: Likewise.
667 * a-caldel.ads: Likewise.
668 * a-calend-vms.adb: Likewise.
669 * a-calend-vms.ads: Likewise.
670 * a-calend.adb: Likewise.
671 * a-calend.ads: Likewise.
672 * a-calfor.adb: Likewise.
673 * a-catizo.adb: Likewise.
674 * a-cdlili.adb: Likewise.
675 * a-cdlili.ads: Likewise.
676 * a-cgaaso.adb: Likewise.
677 * a-cgaaso.ads: Likewise.
678 * a-cgarso.adb: Likewise.
679 * a-cgcaso.adb: Likewise.
680 * a-chacon.adb: Likewise.
681 * a-chacon.ads: Likewise.
682 * a-chahan.adb: Likewise.
683 * a-chahan.ads: Likewise.
684 * a-chlat9.ads: Likewise.
685 * a-chtgke.adb: Likewise.
686 * a-chtgke.ads: Likewise.
687 * a-chtgop.adb: Likewise.
688 * a-chtgop.ads: Likewise.
689 * a-chzla1.ads: Likewise.
690 * a-chzla9.ads: Likewise.
691 * a-cidlli.adb: Likewise.
692 * a-cidlli.ads: Likewise.
693 * a-cihama.adb: Likewise.
694 * a-cihama.ads: Likewise.
695 * a-cihase.adb: Likewise.
696 * a-cihase.ads: Likewise.
697 * a-ciorma.adb: Likewise.
698 * a-ciorma.ads: Likewise.
699 * a-ciormu.adb: Likewise.
700 * a-ciormu.ads: Likewise.
701 * a-ciorse.adb: Likewise.
702 * a-ciorse.ads: Likewise.
703 * a-clrefi.adb: Likewise.
704 * a-clrefi.ads: Likewise.
705 * a-cohama.adb: Likewise.
706 * a-cohama.ads: Likewise.
707 * a-cohase.adb: Likewise.
708 * a-cohase.ads: Likewise.
709 * a-cohata.ads: Likewise.
710 * a-coinve.adb: Likewise.
711 * a-coinve.ads: Likewise.
712 * a-colien.adb: Likewise.
713 * a-colien.ads: Likewise.
714 * a-colire.adb: Likewise.
715 * a-colire.ads: Likewise.
716 * a-comlin.adb: Likewise.
717 * a-comlin.ads: Likewise.
718 * a-convec.adb: Likewise.
719 * a-convec.ads: Likewise.
720 * a-coorma.adb: Likewise.
721 * a-coorma.ads: Likewise.
722 * a-coormu.adb: Likewise.
723 * a-coormu.ads: Likewise.
724 * a-coorse.adb: Likewise.
725 * a-coorse.ads: Likewise.
726 * a-coprnu.adb: Likewise.
727 * a-coprnu.ads: Likewise.
728 * a-crbltr.ads: Likewise.
729 * a-crbtgk.adb: Likewise.
730 * a-crbtgk.ads: Likewise.
731 * a-crbtgo.adb: Likewise.
732 * a-crbtgo.ads: Likewise.
733 * a-crdlli.adb: Likewise.
734 * a-crdlli.ads: Likewise.
735 * a-cwila1.ads: Likewise.
736 * a-cwila9.ads: Likewise.
737 * a-decima.adb: Likewise.
738 * a-decima.ads: Likewise.
739 * a-diocst.adb: Likewise.
740 * a-diocst.ads: Likewise.
741 * a-direct.adb: Likewise.
742 * a-direct.ads: Likewise.
743 * a-direio.adb: Likewise.
744 * a-direio.ads: Likewise.
745 * a-dirval-mingw.adb: Likewise.
746 * a-dirval-vms.adb: Likewise.
747 * a-dirval.adb: Likewise.
748 * a-dirval.ads: Likewise.
749 * a-dynpri.adb: Likewise.
750 * a-einuoc.adb: Likewise.
751 * a-einuoc.ads: Likewise.
752 * a-elchha.adb: Likewise.
753 * a-elchha.ads: Likewise.
754 * a-envvar.adb: Likewise.
755 * a-excach.adb: Likewise.
756 * a-except-2005.adb: Likewise.
757 * a-except-2005.ads: Likewise.
758 * a-except.adb: Likewise.
759 * a-except.ads: Likewise.
760 * a-excpol-abort.adb: Likewise.
761 * a-excpol.adb: Likewise.
762 * a-exctra.adb: Likewise.
763 * a-exctra.ads: Likewise.
764 * a-exetim-mingw.adb: Likewise.
765 * a-exetim-mingw.ads: Likewise.
766 * a-exexda.adb: Likewise.
767 * a-exexpr-gcc.adb: Likewise.
768 * a-exexpr.adb: Likewise.
769 * a-exextr.adb: Likewise.
770 * a-exstat.adb: Likewise.
771 * a-filico.adb: Likewise.
772 * a-filico.ads: Likewise.
773 * a-finali.adb: Likewise.
774 * a-finali.ads: Likewise.
775 * a-interr.ads: Likewise.
776 * a-intnam-aix.ads: Likewise.
777 * a-intnam-darwin.ads: Likewise.
778 * a-intnam-dummy.ads: Likewise.
779 * a-intnam-freebsd.ads: Likewise.
780 * a-intnam-hpux.ads: Likewise.
781 * a-intnam-irix.ads: Likewise.
782 * a-intnam-linux.ads: Likewise.
783 * a-intnam-lynxos.ads: Likewise.
784 * a-intnam-mingw.ads: Likewise.
785 * a-intnam-rtems.ads: Likewise.
786 * a-intnam-solaris.ads: Likewise.
787 * a-intnam-tru64.ads: Likewise.
788 * a-intnam-vms.ads: Likewise.
789 * a-intnam-vxworks.ads: Likewise.
790 * a-intsig.adb: Likewise.
791 * a-intsig.ads: Likewise.
792 * a-ngcefu.adb: Likewise.
793 * a-ngcoar.adb: Likewise.
794 * a-ngcoty.adb: Likewise.
795 * a-ngcoty.ads: Likewise.
796 * a-ngelfu.adb: Likewise.
797 * a-ngrear.adb: Likewise.
798 * a-ngrear.ads: Likewise.
799 * a-nudira.adb: Likewise.
800 * a-nudira.ads: Likewise.
801 * a-nuflra.adb: Likewise.
802 * a-nuflra.ads: Likewise.
803 * a-numaux-darwin.adb: Likewise.
804 * a-numaux-darwin.ads: Likewise.
805 * a-numaux-libc-x86.ads: Likewise.
806 * a-numaux-vxworks.ads: Likewise.
807 * a-numaux-x86.adb: Likewise.
808 * a-numaux-x86.ads: Likewise.
809 * a-numaux.ads: Likewise.
810 * a-rbtgso.adb: Likewise.
811 * a-rbtgso.ads: Likewise.
812 * a-reatim.ads: Likewise.
813 * a-retide.adb: Likewise.
814 * a-retide.ads: Likewise.
815 * a-rttiev.adb: Likewise.
816 * a-rttiev.ads: Likewise.
817 * a-secain.adb: Likewise.
818 * a-secain.ads: Likewise.
819 * a-sequio.adb: Likewise.
820 * a-sequio.ads: Likewise.
821 * a-shcain.adb: Likewise.
822 * a-shcain.ads: Likewise.
823 * a-siocst.adb: Likewise.
824 * a-siocst.ads: Likewise.
825 * a-slcain.adb: Likewise.
826 * a-slcain.ads: Likewise.
827 * a-ssicst.adb: Likewise.
828 * a-ssicst.ads: Likewise.
829 * a-stboha.adb: Likewise.
830 * a-stmaco.ads: Likewise.
831 * a-storio.adb: Likewise.
832 * a-strbou.adb: Likewise.
833 * a-strbou.ads: Likewise.
834 * a-stream.ads: Likewise.
835 * a-strfix.adb: Likewise.
836 * a-strhas.adb: Likewise.
837 * a-strmap.adb: Likewise.
838 * a-strmap.ads: Likewise.
839 * a-strsea.adb: Likewise.
840 * a-strsea.ads: Likewise.
841 * a-strsup.adb: Likewise.
842 * a-strsup.ads: Likewise.
843 * a-strunb.adb: Likewise.
844 * a-strunb.ads: Likewise.
845 * a-ststio.adb: Likewise.
846 * a-ststio.ads: Likewise.
847 * a-stunau.adb: Likewise.
848 * a-stunau.ads: Likewise.
849 * a-stunha.adb: Likewise.
850 * a-stwibo.adb: Likewise.
851 * a-stwibo.ads: Likewise.
852 * a-stwifi.adb: Likewise.
853 * a-stwiha.adb: Likewise.
854 * a-stwima.adb: Likewise.
855 * a-stwima.ads: Likewise.
856 * a-stwise.adb: Likewise.
857 * a-stwise.ads: Likewise.
858 * a-stwisu.adb: Likewise.
859 * a-stwisu.ads: Likewise.
860 * a-stwiun.adb: Likewise.
861 * a-stwiun.ads: Likewise.
862 * a-stzbou.adb: Likewise.
863 * a-stzbou.ads: Likewise.
864 * a-stzfix.adb: Likewise.
865 * a-stzhas.adb: Likewise.
866 * a-stzmap.adb: Likewise.
867 * a-stzmap.ads: Likewise.
868 * a-stzsea.adb: Likewise.
869 * a-stzsea.ads: Likewise.
870 * a-stzsup.adb: Likewise.
871 * a-stzsup.ads: Likewise.
872 * a-stzunb.adb: Likewise.
873 * a-stzunb.ads: Likewise.
874 * a-suteio.adb: Likewise.
875 * a-suteio.ads: Likewise.
876 * a-swbwha.adb: Likewise.
877 * a-swmwco.ads: Likewise.
878 * a-swunau.adb: Likewise.
879 * a-swunau.ads: Likewise.
880 * a-swuwha.adb: Likewise.
881 * a-swuwti.adb: Likewise.
882 * a-swuwti.ads: Likewise.
883 * a-sytaco.adb: Likewise.
884 * a-sytaco.ads: Likewise.
885 * a-szbzha.adb: Likewise.
886 * a-szmzco.ads: Likewise.
887 * a-szunau.adb: Likewise.
888 * a-szunau.ads: Likewise.
889 * a-szuzha.adb: Likewise.
890 * a-szuzti.adb: Likewise.
891 * a-szuzti.ads: Likewise.
892 * a-tags.adb: Likewise.
893 * a-tags.ads: Likewise.
894 * a-tasatt.ads: Likewise.
895 * a-taside.adb: Likewise.
896 * a-taside.ads: Likewise.
897 * a-taster.adb: Likewise.
898 * a-teioed.adb: Likewise.
899 * a-teioed.ads: Likewise.
900 * a-textio.adb: Likewise.
901 * a-textio.ads: Likewise.
902 * a-tiboio.adb: Likewise.
903 * a-ticoau.adb: Likewise.
904 * a-ticoau.ads: Likewise.
905 * a-ticoio.adb: Likewise.
906 * a-ticoio.ads: Likewise.
907 * a-tideau.adb: Likewise.
908 * a-tideau.ads: Likewise.
909 * a-tideio.adb: Likewise.
910 * a-tideio.ads: Likewise.
911 * a-tienau.adb: Likewise.
912 * a-tienau.ads: Likewise.
913 * a-tienio.adb: Likewise.
914 * a-tienio.ads: Likewise.
915 * a-tifiio.adb: Likewise.
916 * a-tifiio.ads: Likewise.
917 * a-tiflau.adb: Likewise.
918 * a-tiflau.ads: Likewise.
919 * a-tiflio.adb: Likewise.
920 * a-tiflio.ads: Likewise.
921 * a-tigeau.adb: Likewise.
922 * a-tigeau.ads: Likewise.
923 * a-tiinau.adb: Likewise.
924 * a-tiinau.ads: Likewise.
925 * a-tiinio.adb: Likewise.
926 * a-tiinio.ads: Likewise.
927 * a-timoau.adb: Likewise.
928 * a-timoau.ads: Likewise.
929 * a-timoio.adb: Likewise.
930 * a-timoio.ads: Likewise.
931 * a-tiocst.adb: Likewise.
932 * a-tiocst.ads: Likewise.
933 * a-titest.adb: Likewise.
934 * a-wichun.adb: Likewise.
935 * a-wichun.ads: Likewise.
936 * a-witeio.adb: Likewise.
937 * a-witeio.ads: Likewise.
938 * a-wtcoau.adb: Likewise.
939 * a-wtcoau.ads: Likewise.
940 * a-wtcoio.adb: Likewise.
941 * a-wtcstr.adb: Likewise.
942 * a-wtcstr.ads: Likewise.
943 * a-wtdeau.adb: Likewise.
944 * a-wtdeau.ads: Likewise.
945 * a-wtdeio.adb: Likewise.
946 * a-wtdeio.ads: Likewise.
947 * a-wtedit.adb: Likewise.
948 * a-wtedit.ads: Likewise.
949 * a-wtenau.adb: Likewise.
950 * a-wtenau.ads: Likewise.
951 * a-wtenio.adb: Likewise.
952 * a-wtenio.ads: Likewise.
953 * a-wtfiio.adb: Likewise.
954 * a-wtfiio.ads: Likewise.
955 * a-wtflau.adb: Likewise.
956 * a-wtflau.ads: Likewise.
957 * a-wtflio.adb: Likewise.
958 * a-wtflio.ads: Likewise.
959 * a-wtgeau.adb: Likewise.
960 * a-wtgeau.ads: Likewise.
961 * a-wtinau.adb: Likewise.
962 * a-wtinau.ads: Likewise.
963 * a-wtinio.adb: Likewise.
964 * a-wtmoau.adb: Likewise.
965 * a-wtmoau.ads: Likewise.
966 * a-wtmoio.adb: Likewise.
967 * a-wtmoio.ads: Likewise.
968 * a-wttest.adb: Likewise.
969 * a-wwboio.adb: Likewise.
970 * a-zchuni.adb: Likewise.
971 * a-zchuni.ads: Likewise.
972 * a-ztcoau.adb: Likewise.
973 * a-ztcoau.ads: Likewise.
974 * a-ztcoio.adb: Likewise.
975 * a-ztcstr.adb: Likewise.
976 * a-ztcstr.ads: Likewise.
977 * a-ztdeau.adb: Likewise.
978 * a-ztdeau.ads: Likewise.
979 * a-ztdeio.adb: Likewise.
980 * a-ztdeio.ads: Likewise.
981 * a-ztedit.adb: Likewise.
982 * a-ztedit.ads: Likewise.
983 * a-ztenau.adb: Likewise.
984 * a-ztenau.ads: Likewise.
985 * a-ztenio.adb: Likewise.
986 * a-ztenio.ads: Likewise.
987 * a-ztexio.adb: Likewise.
988 * a-ztexio.ads: Likewise.
989 * a-ztfiio.adb: Likewise.
990 * a-ztfiio.ads: Likewise.
991 * a-ztflau.adb: Likewise.
992 * a-ztflau.ads: Likewise.
993 * a-ztflio.adb: Likewise.
994 * a-ztflio.ads: Likewise.
995 * a-ztgeau.adb: Likewise.
996 * a-ztgeau.ads: Likewise.
997 * a-ztinau.adb: Likewise.
998 * a-ztinau.ads: Likewise.
999 * a-ztinio.adb: Likewise.
1000 * a-ztmoau.adb: Likewise.
1001 * a-ztmoau.ads: Likewise.
1002 * a-ztmoio.adb: Likewise.
1003 * a-ztmoio.ads: Likewise.
1004 * a-zttest.adb: Likewise.
1005 * a-zzboio.adb: Likewise.
1006 * adadecode.c: Likewise.
1007 * adaint.c: Likewise.
1008 * adaint.h: Likewise.
1009 * alloc.ads: Likewise.
1010 * argv.c: Likewise.
1011 * arit64.c: Likewise.
1012 * atree.adb: Likewise.
1013 * atree.ads: Likewise.
1014 * aux-io.c: Likewise.
1015 * cal.c: Likewise.
1016 * casing.adb: Likewise.
1017 * casing.ads: Likewise.
1018 * cio.c: Likewise.
1019 * csets.adb: Likewise.
1020 * csets.ads: Likewise.
1021 * cstreams.c: Likewise.
1022 * ctrl_c.c: Likewise.
1023 * debug.adb: Likewise.
1024 * debug.ads: Likewise.
1025 * dec.ads: Likewise.
1026 * einfo.adb: Likewise.
1027 * einfo.ads: Likewise.
1028 * elists.adb: Likewise.
1029 * elists.ads: Likewise.
1030 * env.c: Likewise.
1031 * env.h: Likewise.
1032 * errno.c: Likewise.
1033 * exit.c: Likewise.
1034 * fe.h: Likewise.
1035 * final.c: Likewise.
1036 * fname.adb: Likewise.
1037 * fname.ads: Likewise.
1038 * g-allein.ads: Likewise.
1039 * g-alleve.adb: Likewise.
1040 * g-alleve.ads: Likewise.
1041 * g-altcon.adb: Likewise.
1042 * g-altcon.ads: Likewise.
1043 * g-altive.ads: Likewise.
1044 * g-alveop.adb: Likewise.
1045 * g-alveop.ads: Likewise.
1046 * g-alvety.ads: Likewise.
1047 * g-alvevi.ads: Likewise.
1048 * g-arrspl.adb: Likewise.
1049 * g-arrspl.ads: Likewise.
1050 * g-calend.ads: Likewise.
1051 * g-comlin.adb: Likewise.
1052 * g-debpoo.adb: Likewise.
1053 * g-debpoo.ads: Likewise.
1054 * g-eacodu-vms.adb: Likewise.
1055 * g-eacodu.adb: Likewise.
1056 * g-excact.adb: Likewise.
1057 * g-excact.ads: Likewise.
1058 * g-locfil.adb: Likewise.
1059 * g-os_lib.ads: Likewise.
1060 * g-rannum.adb: Likewise.
1061 * g-rannum.ads: Likewise.
1062 * g-regist.adb: Likewise.
1063 * g-regist.ads: Likewise.
1064 * g-signal.adb: Likewise.
1065 * g-signal.ads: Likewise.
1066 * g-soccon.ads: Likewise.
1067 * g-string.adb: Likewise.
1068 * g-string.ads: Likewise.
1069 * g-strspl.ads: Likewise.
1070 * g-timsta.adb: Likewise.
1071 * g-timsta.ads: Likewise.
1072 * g-trasym-vms-alpha.adb: Likewise.
1073 * g-trasym-vms-ia64.adb: Likewise.
1074 * g-utf_32.adb: Likewise.
1075 * g-utf_32.ads: Likewise.
1076 * g-wistsp.ads: Likewise.
1077 * g-zstspl.ads: Likewise.
1078 * gmem.c: Likewise.
1079 * gnatvsn.adb: Likewise.
1080 * gnatvsn.ads: Likewise.
1081 * gsocket.h: Likewise.
1082 * hostparm.ads: Likewise.
1083 * i-c.adb: Likewise.
1084 * i-cexten.ads: Likewise.
1085 * i-cobol.adb: Likewise.
1086 * i-cobol.ads: Likewise.
1087 * i-cpoint.adb: Likewise.
1088 * i-cpoint.ads: Likewise.
1089 * i-cpp.adb: Likewise.
1090 * i-cpp.ads: Likewise.
1091 * i-cstrea-vms.adb: Likewise.
1092 * i-cstrea.adb: Likewise.
1093 * i-cstrea.ads: Likewise.
1094 * i-cstrin.adb: Likewise.
1095 * i-cstrin.ads: Likewise.
1096 * i-forbla-darwin.adb: Likewise.
1097 * i-forbla-unimplemented.ads: Likewise.
1098 * i-forbla.adb: Likewise.
1099 * i-forbla.ads: Likewise.
1100 * i-forlap.ads: Likewise.
1101 * i-fortra.adb: Likewise.
1102 * i-pacdec.adb: Likewise.
1103 * i-pacdec.ads: Likewise.
1104 * i-vxwoio.adb: Likewise.
1105 * i-vxwoio.ads: Likewise.
1106 * indepsw-aix.adb: Likewise.
1107 * indepsw-gnu.adb: Likewise.
1108 * indepsw-mingw.adb: Likewise.
1109 * indepsw.adb: Likewise.
1110 * indepsw.ads: Likewise.
1111 * init.c: Likewise.
1112 * initialize.c: Likewise.
1113 * interfac.ads: Likewise.
1114 * krunch.adb: Likewise.
1115 * krunch.ads: Likewise.
1116 * lib-list.adb: Likewise.
1117 * lib-sort.adb: Likewise.
1118 * lib.adb: Likewise.
1119 * lib.ads: Likewise.
1120 * link.c: Likewise.
1121 * math_lib.adb: Likewise.
1122 * memtrack.adb: Likewise.
1123 * mingw32.h: Likewise.
1124 * mkdir.c: Likewise.
1125 * namet-sp.adb: Likewise.
1126 * namet-sp.ads: Likewise.
1127 * namet.adb: Likewise.
1128 * namet.ads: Likewise.
1129 * nlists.adb: Likewise.
1130 * nlists.ads: Likewise.
1131 * opt.adb: Likewise.
1132 * opt.ads: Likewise.
1133 * output.adb: Likewise.
1134 * output.ads: Likewise.
1135 * raise-gcc.c: Likewise.
1136 * raise.c: Likewise.
1137 * raise.h: Likewise.
1138 * repinfo.adb: Likewise.
1139 * repinfo.ads: Likewise.
1140 * repinfo.h: Likewise.
1141 * rident.ads: Likewise.
1142 * s-addima.adb: Likewise.
1143 * s-addima.ads: Likewise.
1144 * s-addope.adb: Likewise.
1145 * s-addope.ads: Likewise.
1146 * s-arit64.adb: Likewise.
1147 * s-arit64.ads: Likewise.
1148 * s-assert.adb: Likewise.
1149 * s-assert.ads: Likewise.
1150 * s-asthan-vms-alpha.adb: Likewise.
1151 * s-asthan.adb: Likewise.
1152 * s-asthan.ads: Likewise.
1153 * s-atacco.adb: Likewise.
1154 * s-atacco.ads: Likewise.
1155 * s-auxdec-empty.adb: Likewise.
1156 * s-auxdec-empty.ads: Likewise.
1157 * s-auxdec-vms_64.ads: Likewise.
1158 * s-auxdec.adb: Likewise.
1159 * s-auxdec.ads: Likewise.
1160 * s-bitops.adb: Likewise.
1161 * s-bitops.ads: Likewise.
1162 * s-boarop.ads: Likewise.
1163 * s-carsi8.adb: Likewise.
1164 * s-carsi8.ads: Likewise.
1165 * s-carun8.adb: Likewise.
1166 * s-carun8.ads: Likewise.
1167 * s-casi16.adb: Likewise.
1168 * s-casi16.ads: Likewise.
1169 * s-casi32.adb: Likewise.
1170 * s-casi32.ads: Likewise.
1171 * s-casi64.adb: Likewise.
1172 * s-casi64.ads: Likewise.
1173 * s-casuti.ads: Likewise.
1174 * s-caun16.adb: Likewise.
1175 * s-caun16.ads: Likewise.
1176 * s-caun32.adb: Likewise.
1177 * s-caun32.ads: Likewise.
1178 * s-caun64.adb: Likewise.
1179 * s-caun64.ads: Likewise.
1180 * s-chepoo.ads: Likewise.
1181 * s-crc32.adb: Likewise.
1182 * s-crc32.ads: Likewise.
1183 * s-crtl.ads: Likewise.
1184 * s-direio.adb: Likewise.
1185 * s-direio.ads: Likewise.
1186 * s-dsaser.ads: Likewise.
1187 * s-except.adb: Likewise.
1188 * s-except.ads: Likewise.
1189 * s-exctab.adb: Likewise.
1190 * s-exctab.ads: Likewise.
1191 * s-exnint.adb: Likewise.
1192 * s-exnint.ads: Likewise.
1193 * s-exnllf.adb: Likewise.
1194 * s-exnllf.ads: Likewise.
1195 * s-exnlli.adb: Likewise.
1196 * s-exnlli.ads: Likewise.
1197 * s-expint.adb: Likewise.
1198 * s-expint.ads: Likewise.
1199 * s-explli.adb: Likewise.
1200 * s-explli.ads: Likewise.
1201 * s-expllu.adb: Likewise.
1202 * s-expllu.ads: Likewise.
1203 * s-expmod.adb: Likewise.
1204 * s-expmod.ads: Likewise.
1205 * s-expuns.adb: Likewise.
1206 * s-expuns.ads: Likewise.
1207 * s-fatflt.ads: Likewise.
1208 * s-fatgen.adb: Likewise.
1209 * s-fatgen.ads: Likewise.
1210 * s-fatlfl.ads: Likewise.
1211 * s-fatllf.ads: Likewise.
1212 * s-fatsfl.ads: Likewise.
1213 * s-ficobl.ads: Likewise.
1214 * s-fileio.adb: Likewise.
1215 * s-fileio.ads: Likewise.
1216 * s-filofl.ads: Likewise.
1217 * s-finimp.adb: Likewise.
1218 * s-finimp.ads: Likewise.
1219 * s-finroo.adb: Likewise.
1220 * s-finroo.ads: Likewise.
1221 * s-fishfl.ads: Likewise.
1222 * s-fore.adb: Likewise.
1223 * s-fore.ads: Likewise.
1224 * s-fvadfl.ads: Likewise.
1225 * s-fvaffl.ads: Likewise.
1226 * s-fvagfl.ads: Likewise.
1227 * s-gearop.adb: Likewise.
1228 * s-gearop.ads: Likewise.
1229 * s-gecobl.adb: Likewise.
1230 * s-gecobl.ads: Likewise.
1231 * s-gecola.adb: Likewise.
1232 * s-gecola.ads: Likewise.
1233 * s-gerebl.adb: Likewise.
1234 * s-gerebl.ads: Likewise.
1235 * s-gerela.adb: Likewise.
1236 * s-gerela.ads: Likewise.
1237 * s-geveop.adb: Likewise.
1238 * s-geveop.ads: Likewise.
1239 * s-gloloc.adb: Likewise.
1240 * s-gloloc.ads: Likewise.
1241 * s-hibaen.ads: Likewise.
1242 * s-imenne.adb: Likewise.
1243 * s-imenne.ads: Likewise.
1244 * s-imgbiu.adb: Likewise.
1245 * s-imgbiu.ads: Likewise.
1246 * s-imgboo.adb: Likewise.
1247 * s-imgboo.ads: Likewise.
1248 * s-imgcha.adb: Likewise.
1249 * s-imgcha.ads: Likewise.
1250 * s-imgdec.adb: Likewise.
1251 * s-imgdec.ads: Likewise.
1252 * s-imgenu.adb: Likewise.
1253 * s-imgenu.ads: Likewise.
1254 * s-imgint.adb: Likewise.
1255 * s-imgint.ads: Likewise.
1256 * s-imgllb.adb: Likewise.
1257 * s-imgllb.ads: Likewise.
1258 * s-imglld.adb: Likewise.
1259 * s-imglld.ads: Likewise.
1260 * s-imglli.adb: Likewise.
1261 * s-imglli.ads: Likewise.
1262 * s-imgllu.adb: Likewise.
1263 * s-imgllu.ads: Likewise.
1264 * s-imgllw.adb: Likewise.
1265 * s-imgllw.ads: Likewise.
1266 * s-imgrea.adb: Likewise.
1267 * s-imgrea.ads: Likewise.
1268 * s-imguns.adb: Likewise.
1269 * s-imguns.ads: Likewise.
1270 * s-imgwch.adb: Likewise.
1271 * s-imgwch.ads: Likewise.
1272 * s-imgwiu.adb: Likewise.
1273 * s-imgwiu.ads: Likewise.
1274 * s-inmaop-dummy.adb: Likewise.
1275 * s-inmaop-vms.adb: Likewise.
1276 * s-inmaop.ads: Likewise.
1277 * s-interr-hwint.adb: Likewise.
1278 * s-interr-sigaction.adb: Likewise.
1279 * s-interr-vms.adb: Likewise.
1280 * s-interr.adb: Likewise.
1281 * s-interr.ads: Likewise.
1282 * s-intman-dummy.adb: Likewise.
1283 * s-intman-mingw.adb: Likewise.
1284 * s-intman-posix.adb: Likewise.
1285 * s-intman-solaris.adb: Likewise.
1286 * s-intman-vms.adb: Likewise.
1287 * s-intman-vms.ads: Likewise.
1288 * s-intman-vxworks.adb: Likewise.
1289 * s-intman-vxworks.ads: Likewise.
1290 * s-intman.ads: Likewise.
1291 * s-io.adb: Likewise.
1292 * s-io.ads: Likewise.
1293 * s-linux-alpha.ads: Likewise.
1294 * s-linux-hppa.ads: Likewise.
1295 * s-linux.ads: Likewise.
1296 * s-maccod.ads: Likewise.
1297 * s-mantis.adb: Likewise.
1298 * s-mantis.ads: Likewise.
1299 * s-mastop-irix.adb: Likewise.
1300 * s-mastop.adb: Likewise.
1301 * s-mastop.ads: Likewise.
1302 * s-memcop.ads: Likewise.
1303 * s-memory-mingw.adb: Likewise.
1304 * s-memory.adb: Likewise.
1305 * s-memory.ads: Likewise.
1306 * s-os_lib.ads: Likewise.
1307 * s-oscons-tmplt.c: Likewise.
1308 * s-osinte-aix.adb: Likewise.
1309 * s-osinte-darwin.adb: Likewise.
1310 * s-osinte-freebsd.adb: Likewise.
1311 * s-osinte-irix.adb: Likewise.
1312 * s-osinte-lynxos-3.adb: Likewise.
1313 * s-osinte-rtems.ads: Likewise.
1314 * s-osinte-tru64.adb: Likewise.
1315 * s-osinte-vxworks-kernel.adb: Likewise.
1316 * s-osinte-vxworks.adb: Likewise.
1317 * s-osprim-mingw.adb: Likewise.
1318 * s-osprim-posix.adb: Likewise.
1319 * s-osprim-solaris.adb: Likewise.
1320 * s-osprim-unix.adb: Likewise.
1321 * s-osprim-vms.adb: Likewise.
1322 * s-osprim-vms.ads: Likewise.
1323 * s-osprim-vxworks.adb: Likewise.
1324 * s-osprim.ads: Likewise.
1325 * s-pack03.adb: Likewise.
1326 * s-pack03.ads: Likewise.
1327 * s-pack05.adb: Likewise.
1328 * s-pack05.ads: Likewise.
1329 * s-pack06.adb: Likewise.
1330 * s-pack06.ads: Likewise.
1331 * s-pack07.adb: Likewise.
1332 * s-pack07.ads: Likewise.
1333 * s-pack09.adb: Likewise.
1334 * s-pack09.ads: Likewise.
1335 * s-pack10.adb: Likewise.
1336 * s-pack10.ads: Likewise.
1337 * s-pack11.adb: Likewise.
1338 * s-pack11.ads: Likewise.
1339 * s-pack12.adb: Likewise.
1340 * s-pack12.ads: Likewise.
1341 * s-pack13.adb: Likewise.
1342 * s-pack13.ads: Likewise.
1343 * s-pack14.adb: Likewise.
1344 * s-pack14.ads: Likewise.
1345 * s-pack15.adb: Likewise.
1346 * s-pack15.ads: Likewise.
1347 * s-pack17.adb: Likewise.
1348 * s-pack17.ads: Likewise.
1349 * s-pack18.adb: Likewise.
1350 * s-pack18.ads: Likewise.
1351 * s-pack19.adb: Likewise.
1352 * s-pack19.ads: Likewise.
1353 * s-pack20.adb: Likewise.
1354 * s-pack20.ads: Likewise.
1355 * s-pack21.adb: Likewise.
1356 * s-pack21.ads: Likewise.
1357 * s-pack22.adb: Likewise.
1358 * s-pack22.ads: Likewise.
1359 * s-pack23.adb: Likewise.
1360 * s-pack23.ads: Likewise.
1361 * s-pack24.adb: Likewise.
1362 * s-pack24.ads: Likewise.
1363 * s-pack25.adb: Likewise.
1364 * s-pack25.ads: Likewise.
1365 * s-pack26.adb: Likewise.
1366 * s-pack26.ads: Likewise.
1367 * s-pack27.adb: Likewise.
1368 * s-pack27.ads: Likewise.
1369 * s-pack28.adb: Likewise.
1370 * s-pack28.ads: Likewise.
1371 * s-pack29.adb: Likewise.
1372 * s-pack29.ads: Likewise.
1373 * s-pack30.adb: Likewise.
1374 * s-pack30.ads: Likewise.
1375 * s-pack31.adb: Likewise.
1376 * s-pack31.ads: Likewise.
1377 * s-pack33.adb: Likewise.
1378 * s-pack33.ads: Likewise.
1379 * s-pack34.adb: Likewise.
1380 * s-pack34.ads: Likewise.
1381 * s-pack35.adb: Likewise.
1382 * s-pack35.ads: Likewise.
1383 * s-pack36.adb: Likewise.
1384 * s-pack36.ads: Likewise.
1385 * s-pack37.adb: Likewise.
1386 * s-pack37.ads: Likewise.
1387 * s-pack38.adb: Likewise.
1388 * s-pack38.ads: Likewise.
1389 * s-pack39.adb: Likewise.
1390 * s-pack39.ads: Likewise.
1391 * s-pack40.adb: Likewise.
1392 * s-pack40.ads: Likewise.
1393 * s-pack41.adb: Likewise.
1394 * s-pack41.ads: Likewise.
1395 * s-pack42.adb: Likewise.
1396 * s-pack42.ads: Likewise.
1397 * s-pack43.adb: Likewise.
1398 * s-pack43.ads: Likewise.
1399 * s-pack44.adb: Likewise.
1400 * s-pack44.ads: Likewise.
1401 * s-pack45.adb: Likewise.
1402 * s-pack45.ads: Likewise.
1403 * s-pack46.adb: Likewise.
1404 * s-pack46.ads: Likewise.
1405 * s-pack47.adb: Likewise.
1406 * s-pack47.ads: Likewise.
1407 * s-pack48.adb: Likewise.
1408 * s-pack48.ads: Likewise.
1409 * s-pack49.adb: Likewise.
1410 * s-pack49.ads: Likewise.
1411 * s-pack50.adb: Likewise.
1412 * s-pack50.ads: Likewise.
1413 * s-pack51.adb: Likewise.
1414 * s-pack51.ads: Likewise.
1415 * s-pack52.adb: Likewise.
1416 * s-pack52.ads: Likewise.
1417 * s-pack53.adb: Likewise.
1418 * s-pack53.ads: Likewise.
1419 * s-pack54.adb: Likewise.
1420 * s-pack54.ads: Likewise.
1421 * s-pack55.adb: Likewise.
1422 * s-pack55.ads: Likewise.
1423 * s-pack56.adb: Likewise.
1424 * s-pack56.ads: Likewise.
1425 * s-pack57.adb: Likewise.
1426 * s-pack57.ads: Likewise.
1427 * s-pack58.adb: Likewise.
1428 * s-pack58.ads: Likewise.
1429 * s-pack59.adb: Likewise.
1430 * s-pack59.ads: Likewise.
1431 * s-pack60.adb: Likewise.
1432 * s-pack60.ads: Likewise.
1433 * s-pack61.adb: Likewise.
1434 * s-pack61.ads: Likewise.
1435 * s-pack62.adb: Likewise.
1436 * s-pack62.ads: Likewise.
1437 * s-pack63.adb: Likewise.
1438 * s-pack63.ads: Likewise.
1439 * s-parame-ae653.ads: Likewise.
1440 * s-parame-hpux.ads: Likewise.
1441 * s-parame-rtems.adb: Likewise.
1442 * s-parame-vms-alpha.ads: Likewise.
1443 * s-parame-vms-ia64.ads: Likewise.
1444 * s-parame-vms-restrict.ads: Likewise.
1445 * s-parame-vxworks.adb: Likewise.
1446 * s-parame-vxworks.ads: Likewise.
1447 * s-parame.adb: Likewise.
1448 * s-parame.ads: Likewise.
1449 * s-parint.adb: Likewise.
1450 * s-parint.ads: Likewise.
1451 * s-pooglo.adb: Likewise.
1452 * s-pooglo.ads: Likewise.
1453 * s-pooloc.adb: Likewise.
1454 * s-pooloc.ads: Likewise.
1455 * s-poosiz.adb: Likewise.
1456 * s-poosiz.ads: Likewise.
1457 * s-powtab.ads: Likewise.
1458 * s-proinf-irix-athread.adb: Likewise.
1459 * s-proinf-irix-athread.ads: Likewise.
1460 * s-proinf.adb: Likewise.
1461 * s-proinf.ads: Likewise.
1462 * s-purexc.ads: Likewise.
1463 * s-rannum.adb: Likewise.
1464 * s-rannum.ads: Likewise.
1465 * s-restri.adb: Likewise.
1466 * s-restri.ads: Likewise.
1467 * s-rident.ads: Likewise.
1468 * s-rpc.adb: Likewise.
1469 * s-rpc.ads: Likewise.
1470 * s-scaval.adb: Likewise.
1471 * s-scaval.ads: Likewise.
1472 * s-secsta.adb: Likewise.
1473 * s-secsta.ads: Likewise.
1474 * s-sequio.adb: Likewise.
1475 * s-sequio.ads: Likewise.
1476 * s-shasto.adb: Likewise.
1477 * s-shasto.ads: Likewise.
1478 * s-soflin.adb: Likewise.
1479 * s-soflin.ads: Likewise.
1480 * s-solita.adb: Likewise.
1481 * s-solita.ads: Likewise.
1482 * s-sopco3.adb: Likewise.
1483 * s-sopco3.ads: Likewise.
1484 * s-sopco4.adb: Likewise.
1485 * s-sopco4.ads: Likewise.
1486 * s-sopco5.adb: Likewise.
1487 * s-sopco5.ads: Likewise.
1488 * s-stache.adb: Likewise.
1489 * s-stache.ads: Likewise.
1490 * s-stalib.adb: Likewise.
1491 * s-stalib.ads: Likewise.
1492 * s-stausa.adb: Likewise.
1493 * s-stausa.ads: Likewise.
1494 * s-stchop-limit.ads: Likewise.
1495 * s-stchop-rtems.adb: Likewise.
1496 * s-stchop-vxworks.adb: Likewise.
1497 * s-stchop.adb: Likewise.
1498 * s-stchop.ads: Likewise.
1499 * s-stoele.adb: Likewise.
1500 * s-stoele.ads: Likewise.
1501 * s-stopoo.adb: Likewise.
1502 * s-stopoo.ads: Likewise.
1503 * s-stratt.adb: Likewise.
1504 * s-stratt.ads: Likewise.
1505 * s-strcom.adb: Likewise.
1506 * s-strcom.ads: Likewise.
1507 * s-string.adb: Likewise.
1508 * s-string.ads: Likewise.
1509 * s-strops.adb: Likewise.
1510 * s-strops.ads: Likewise.
1511 * s-strxdr.adb: Likewise.
1512 * s-ststop.adb: Likewise.
1513 * s-ststop.ads: Likewise.
1514 * s-taasde.adb: Likewise.
1515 * s-taasde.ads: Likewise.
1516 * s-tadeca.adb: Likewise.
1517 * s-tadeca.ads: Likewise.
1518 * s-tadert.adb: Likewise.
1519 * s-tadert.ads: Likewise.
1520 * s-taenca.adb: Likewise.
1521 * s-taenca.ads: Likewise.
1522 * s-taprob.ads: Likewise.
1523 * s-taprop-dummy.adb: Likewise.
1524 * s-taprop-hpux-dce.adb: Likewise.
1525 * s-taprop-irix.adb: Likewise.
1526 * s-taprop-linux.adb: Likewise.
1527 * s-taprop-lynxos.adb: Likewise.
1528 * s-taprop-mingw.adb: Likewise.
1529 * s-taprop-posix.adb: Likewise.
1530 * s-taprop-solaris.adb: Likewise.
1531 * s-taprop-tru64.adb: Likewise.
1532 * s-taprop-vms.adb: Likewise.
1533 * s-taprop-vxworks.adb: Likewise.
1534 * s-taprop.ads: Likewise.
1535 * s-tarest.adb: Likewise.
1536 * s-tarest.ads: Likewise.
1537 * s-tasdeb.adb: Likewise.
1538 * s-tasdeb.ads: Likewise.
1539 * s-tasinf-irix.ads: Likewise.
1540 * s-tasinf-linux.adb: Likewise.
1541 * s-tasinf-linux.ads: Likewise.
1542 * s-tasinf-mingw.adb: Likewise.
1543 * s-tasinf-mingw.ads: Likewise.
1544 * s-tasinf-solaris.adb: Likewise.
1545 * s-tasinf-solaris.ads: Likewise.
1546 * s-tasinf-tru64.ads: Likewise.
1547 * s-tasinf.adb: Likewise.
1548 * s-tasinf.ads: Likewise.
1549 * s-tasini.adb: Likewise.
1550 * s-tasini.ads: Likewise.
1551 * s-taskin.adb: Likewise.
1552 * s-taskin.ads: Likewise.
1553 * s-taspri-dummy.ads: Likewise.
1554 * s-taspri-hpux-dce.ads: Likewise.
1555 * s-taspri-mingw.ads: Likewise.
1556 * s-taspri-solaris.ads: Likewise.
1557 * s-taspri-tru64.ads: Likewise.
1558 * s-taspri-vms.ads: Likewise.
1559 * s-taspri-vxworks.ads: Likewise.
1560 * s-tasque.adb: Likewise.
1561 * s-tasque.ads: Likewise.
1562 * s-tasren.adb: Likewise.
1563 * s-tasren.ads: Likewise.
1564 * s-tasres.ads: Likewise.
1565 * s-tassta.adb: Likewise.
1566 * s-tassta.ads: Likewise.
1567 * s-tasuti.adb: Likewise.
1568 * s-tasuti.ads: Likewise.
1569 * s-tfsetr-default.adb: Likewise.
1570 * s-tfsetr-vxworks.adb: Likewise.
1571 * s-tpinop.adb: Likewise.
1572 * s-tpinop.ads: Likewise.
1573 * s-tpoben.adb: Likewise.
1574 * s-tpoben.ads: Likewise.
1575 * s-tpobop.adb: Likewise.
1576 * s-tpobop.ads: Likewise.
1577 * s-tpopde-vms.adb: Likewise.
1578 * s-tpopde-vms.ads: Likewise.
1579 * s-tpopsp-lynxos.adb: Likewise.
1580 * s-tpopsp-posix-foreign.adb: Likewise.
1581 * s-tpopsp-posix.adb: Likewise.
1582 * s-tpopsp-solaris.adb: Likewise.
1583 * s-tpopsp-vxworks.adb: Likewise.
1584 * s-tporft.adb: Likewise.
1585 * s-tposen.adb: Likewise.
1586 * s-tposen.ads: Likewise.
1587 * s-traceb.adb: Likewise.
1588 * s-traceb.ads: Likewise.
1589 * s-traces-default.adb: Likewise.
1590 * s-traces.adb: Likewise.
1591 * s-traces.ads: Likewise.
1592 * s-traent-vms.adb: Likewise.
1593 * s-traent-vms.ads: Likewise.
1594 * s-traent.adb: Likewise.
1595 * s-traent.ads: Likewise.
1596 * s-trafor-default.adb: Likewise.
1597 * s-trafor-default.ads: Likewise.
1598 * s-tratas-default.adb: Likewise.
1599 * s-tratas.adb: Likewise.
1600 * s-tratas.ads: Likewise.
1601 * s-unstyp.ads: Likewise.
1602 * s-utf_32.adb: Likewise.
1603 * s-utf_32.ads: Likewise.
1604 * s-vaflop-vms-alpha.adb: Likewise.
1605 * s-vaflop.adb: Likewise.
1606 * s-vaflop.ads: Likewise.
1607 * s-valboo.adb: Likewise.
1608 * s-valboo.ads: Likewise.
1609 * s-valcha.adb: Likewise.
1610 * s-valcha.ads: Likewise.
1611 * s-valdec.adb: Likewise.
1612 * s-valdec.ads: Likewise.
1613 * s-valenu.adb: Likewise.
1614 * s-valenu.ads: Likewise.
1615 * s-valint.adb: Likewise.
1616 * s-valint.ads: Likewise.
1617 * s-vallld.adb: Likewise.
1618 * s-vallld.ads: Likewise.
1619 * s-vallli.adb: Likewise.
1620 * s-vallli.ads: Likewise.
1621 * s-valllu.adb: Likewise.
1622 * s-valllu.ads: Likewise.
1623 * s-valrea.adb: Likewise.
1624 * s-valrea.ads: Likewise.
1625 * s-valuns.adb: Likewise.
1626 * s-valuns.ads: Likewise.
1627 * s-valuti.adb: Likewise.
1628 * s-valuti.ads: Likewise.
1629 * s-valwch.adb: Likewise.
1630 * s-valwch.ads: Likewise.
1631 * s-veboop.adb: Likewise.
1632 * s-veboop.ads: Likewise.
1633 * s-vector.ads: Likewise.
1634 * s-vercon.adb: Likewise.
1635 * s-vercon.ads: Likewise.
1636 * s-vmexta.adb: Likewise.
1637 * s-vmexta.ads: Likewise.
1638 * s-vxwext-kernel.ads: Likewise.
1639 * s-vxwext-rtp.adb: Likewise.
1640 * s-vxwext-rtp.ads: Likewise.
1641 * s-vxwext.ads: Likewise.
1642 * s-vxwork-arm.ads: Likewise.
1643 * s-vxwork-m68k.ads: Likewise.
1644 * s-vxwork-mips.ads: Likewise.
1645 * s-vxwork-ppc.ads: Likewise.
1646 * s-vxwork-sparcv9.ads: Likewise.
1647 * s-vxwork-x86.ads: Likewise.
1648 * s-wchcnv.adb: Likewise.
1649 * s-wchcnv.ads: Likewise.
1650 * s-wchcon.adb: Likewise.
1651 * s-wchcon.ads: Likewise.
1652 * s-wchjis.adb: Likewise.
1653 * s-wchjis.ads: Likewise.
1654 * s-wchstw.adb: Likewise.
1655 * s-wchstw.ads: Likewise.
1656 * s-wchwts.adb: Likewise.
1657 * s-wchwts.ads: Likewise.
1658 * s-widboo.adb: Likewise.
1659 * s-widboo.ads: Likewise.
1660 * s-widcha.adb: Likewise.
1661 * s-widcha.ads: Likewise.
1662 * s-widenu.adb: Likewise.
1663 * s-widenu.ads: Likewise.
1664 * s-widlli.adb: Likewise.
1665 * s-widlli.ads: Likewise.
1666 * s-widllu.adb: Likewise.
1667 * s-widllu.ads: Likewise.
1668 * s-widwch.adb: Likewise.
1669 * s-widwch.ads: Likewise.
1670 * s-win32.ads: Likewise.
1671 * s-winext.ads: Likewise.
1672 * s-wwdcha.adb: Likewise.
1673 * s-wwdcha.ads: Likewise.
1674 * s-wwdenu.adb: Likewise.
1675 * s-wwdenu.ads: Likewise.
1676 * s-wwdwch.adb: Likewise.
1677 * s-wwdwch.ads: Likewise.
1678 * scans.adb: Likewise.
1679 * scans.ads: Likewise.
1680 * seh_init.c: Likewise.
1681 * sfn_scan.adb: Likewise.
1682 * sinfo.adb: Likewise.
1683 * sinfo.ads: Likewise.
1684 * sinput.adb: Likewise.
1685 * sinput.ads: Likewise.
1686 * snames.adb: Likewise.
1687 * snames.ads: Likewise.
1688 * socket.c: Likewise.
1689 * stand.adb: Likewise.
1690 * stand.ads: Likewise.
1691 * stringt.adb: Likewise.
1692 * stringt.ads: Likewise.
1693 * sysdep.c: Likewise.
1694 * system-aix.ads: Likewise.
1695 * system-darwin-ppc.ads: Likewise.
1696 * system-darwin-x86.ads: Likewise.
1697 * system-darwin-x86_64.ads: Likewise.
1698 * system-freebsd-x86.ads: Likewise.
1699 * system-hpux-ia64.ads: Likewise.
1700 * system-hpux.ads: Likewise.
1701 * system-irix-n32.ads: Likewise.
1702 * system-irix-n64.ads: Likewise.
1703 * system-irix-o32.ads: Likewise.
1704 * system-linux-alpha.ads: Likewise.
1705 * system-linux-hppa.ads: Likewise.
1706 * system-linux-ia64.ads: Likewise.
1707 * system-linux-mips.ads: Likewise.
1708 * system-linux-mipsel.ads: Likewise.
1709 * system-linux-ppc.ads: Likewise.
1710 * system-linux-ppc64.ads: Likewise.
1711 * system-linux-s390.ads: Likewise.
1712 * system-linux-s390x.ads: Likewise.
1713 * system-linux-sh4.ads: Likewise.
1714 * system-linux-sparc.ads: Likewise.
1715 * system-linux-sparcv9.ads: Likewise.
1716 * system-linux-x86.ads: Likewise.
1717 * system-linux-x86_64.ads: Likewise.
1718 * system-lynxos-ppc.ads: Likewise.
1719 * system-lynxos-x86.ads: Likewise.
1720 * system-mingw-x86_64.ads: Likewise.
1721 * system-mingw.ads: Likewise.
1722 * system-rtems.ads: Likewise.
1723 * system-solaris-sparc.ads: Likewise.
1724 * system-solaris-sparcv9.ads: Likewise.
1725 * system-solaris-x86.ads: Likewise.
1726 * system-solaris-x86_64.ads: Likewise.
1727 * system-tru64.ads: Likewise.
1728 * system-vms-ia64.ads: Likewise.
1729 * system-vms-zcx.ads: Likewise.
1730 * system-vms.ads: Likewise.
1731 * system-vms_64.ads: Likewise.
1732 * system-vxworks-arm.ads: Likewise.
1733 * system-vxworks-m68k.ads: Likewise.
1734 * system-vxworks-mips.ads: Likewise.
1735 * system-vxworks-ppc.ads: Likewise.
1736 * system-vxworks-sparcv9.ads: Likewise.
1737 * system-vxworks-x86.ads: Likewise.
1738 * system.ads: Likewise.
1739 * table.adb: Likewise.
1740 * table.ads: Likewise.
1741 * targext.c: Likewise.
1742 * targparm.ads: Likewise.
1743 * tree_in.adb: Likewise.
1744 * tree_in.ads: Likewise.
1745 * tree_io.adb: Likewise.
1746 * tree_io.ads: Likewise.
1747 * types.adb: Likewise.
1748 * types.ads: Likewise.
1749 * uintp.adb: Likewise.
1750 * uintp.ads: Likewise.
1751 * uname.adb: Likewise.
1752 * uname.ads: Likewise.
1753 * urealp.adb: Likewise.
1754 * urealp.ads: Likewise.
1755 * vx_stack_info.c: Likewise.
1756 * widechar.adb: Likewise.
1757 * widechar.ads: Likewise.
1758 * exp_attr.adb: Change copyright header to refer to version
1759 3 of the GNU General Public License and to point readers at the
1760 COPYING3 file and the FSF's license web page.
1761 * sem.adb: Likewise.
1762 * sem_attr.ads: Likewise.
1763 * freeze.adb: Likewise.
1764 * freeze.ads: Likewise.
1765 * errout.ads: Likewise.
1766 * erroutc.adb: Likewise.
1767 * exp_ch11.ads: Likewise.
1768
1769 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1770
1771 * config-lang.in: Change copyright header to refer to version
1772 3 of the GNU General Public License and to point readers at the
1773 COPYING3 file and the FSF's license web page.
1774 * gcc-interface/trans.c: Likewise.
1775 * gnathtml.pl: Likewise.
1776 * gcc-interface/ada.h: Likewise. Remove runtime exception.
1777 * gcc-interface/gigi.h: Likewise.
1778 * gcc-interface/misc.c: Likewise.
1779 * gcc-interface/targtyps.c: Likewise.
1780
1781 2009-04-09 Nicolas Setton <setton@adacore.com>
1782
1783 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
1784
1785 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
1786 struct_timeval.
1787
1788 2009-04-09 Bob Duff <duff@adacore.com>
1789
1790 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
1791 internally-generated nodes related to select statements to avoid
1792 confusing the debugger.
1793
1794 2009-04-09 Pascal Obry <obry@adacore.com>
1795
1796 * make.adb: Ensure that all linker arguments are duplicated.
1797
1798 2009-04-09 Robert Dewar <dewar@adacore.com>
1799
1800 * sem_ch5.adb: Minor reformatting
1801
1802 2009-04-09 Vincent Celier <celier@adacore.com>
1803
1804 * vms_data.ads:
1805 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
1806 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
1807 New qualifier /LXDEBUG=nnn for -gnatDnnn
1808 For H820-010
1809
1810 * gnat_ugn.texi:
1811 Update documentation for VMS qualifiers equivalent to -gnatGnn and
1812 -gnatDnn
1813
1814 2009-04-09 Nicolas Setton <setton@adacore.com>
1815
1816 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
1817 to match layout of siginfo_t in sys/signal.h.
1818
1819 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
1820
1821 2009-04-09 Thomas Quinot <quinot@adacore.com>
1822
1823 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
1824
1825 2009-04-09 Nicolas Setton <setton@adacore.com>
1826
1827 * s-oscons-tmplt.c: Allow long lines in the generated spec.
1828 Add generation of Darwin-specific constants needed when binding to the
1829 pthread library.
1830
1831 2009-04-09 Robert Dewar <dewar@adacore.com>
1832
1833 * checks.adb:
1834 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
1835 when no invalid values exist, Avoid duplicate read of atomic variable.
1836
1837 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
1838 (Standard_Unsigned): Set Is_Known_Valid
1839
1840 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
1841 subtype declaration if no constraint.
1842 (Set_Modular_Size): Set Is_Known_Valid if appropriate
1843 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
1844
1845 2009-04-09 Robert Dewar <dewar@adacore.com>
1846
1847 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
1848 switch.ads: for numeric switches, an optional equal sign is always
1849 allowed.
1850
1851 2009-04-09 Vincent Celier <celier@adacore.com>
1852
1853 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
1854 the case of file names is not significant.
1855
1856 2009-04-09 Vincent Celier <celier@adacore.com>
1857
1858 * errout.adb: Remove dependency on package Style
1859
1860 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
1861 moved to Stylesw.
1862
1863 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
1864 Styleg.
1865
1866 * errutil.adb, par.adb: Import Stylesw
1867
1868 2009-04-09 Arnaud Charlet <charlet@adacore.com>
1869
1870 * opt.ads: Fix typos.
1871
1872 2009-04-09 Robert Dewar <dewar@adacore.com>
1873
1874 * einfo.adb: Minor reformatting
1875
1876 2009-04-09 Robert Dewar <dewar@adacore.com>
1877
1878 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
1879 units.
1880
1881 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
1882
1883 2009-04-09 Robert Dewar <dewar@adacore.com>
1884
1885 * g-comver.adb: Minor reformatting.
1886
1887 2009-04-09 Thomas Quinot <quinot@adacore.com>
1888
1889 * lib-load.ads (Load_Unit): Update documentation.
1890
1891 2009-04-09 Ed Schonberg <schonberg@adacore.com>
1892
1893 * lib-load.adb (Load_Unit): When loading the parent of a child unit
1894 named in a with_clause, retain the with_clause to preserve a
1895 limited_with indication.
1896
1897 2009-04-09 Robert Dewar <dewar@adacore.com>
1898
1899 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
1900 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
1901 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
1902 possible to replace an OR of two separate tests.
1903
1904 2009-04-09 Robert Dewar <dewar@adacore.com>
1905
1906 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
1907 Maximum_Messages.
1908
1909 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
1910 warning status as well.
1911
1912 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
1913
1914 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
1915 Maximum_Messages.
1916
1917 * bindusg.adb, usage.adb: Update line for -gnatm switch
1918
1919 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
1920 -mnn binder switch.
1921
1922 2009-04-09 Robert Dewar <dewar@adacore.com>
1923
1924 * sem_ch10.adb: Minor reformatting.
1925
1926 2009-04-09 Bob Duff <duff@adacore.com>
1927
1928 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
1929 Set Sloc of generated nodes for calls to Undefer_Aborts and
1930 Save_Occurrence to No_Location, so the debugger ignores them and
1931 therefore does not jump back and forth when single stepping.
1932
1933 2009-04-09 Robert Dewar <dewar@adacore.com>
1934
1935 * switch-b.adb: Minor reformatting.
1936
1937 2009-04-09 Robert Dewar <dewar@adacore.com>
1938
1939 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
1940 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
1941 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
1942 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
1943 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
1944 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
1945 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
1946 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
1947 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
1948 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
1949 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
1950
1951 2009-04-09 Robert Dewar <dewar@adacore.com>
1952
1953 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
1954
1955 * atree.h: Add Elist26
1956
1957 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
1958 backends.
1959
1960 2009-04-09 Javier Miranda <miranda@adacore.com>
1961
1962 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
1963 retrieve from the Dispatch_Table_Wrappers list the external name.
1964 Addition of documentation.
1965 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
1966 used to export secondary dispatch tables (in the previous version of
1967 the frontend only primary dispatch tables were exported). Addition of
1968 documentation.
1969 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
1970 dispatch table of a given tagged type.
1971 (Make_Tags): Modified to import secondary dispatch tables.
1972
1973 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
1974 (Constant_Redeclaration): Code cleanup.
1975
1976 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
1977 Dispatch_Table_Wrappers. Update documentation.
1978
1979 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
1980 Renamed to Dispatch_Table_Wrappers.
1981
1982 * sem_util.adb (Collect_Interface_Components): Improve handling of
1983 private types.
1984
1985 * atree.ads (Elist26, Set_Elist26): New subprograms
1986
1987 * atree.adb (Elist26, Set_Elist26): New subprograms
1988
1989 2009-04-09 Javier Miranda <miranda@adacore.com>
1990
1991 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
1992 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
1993 tagged types.
1994
1995 2009-04-09 Robert Dewar <dewar@adacore.com>
1996
1997 * s-direio.adb: Minor reformatting
1998
1999 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
2000
2001 2009-04-09 Robert Dewar <dewar@adacore.com>
2002
2003 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
2004
2005 2009-04-09 Pascal Obry <obry@adacore.com>
2006
2007 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
2008 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
2009 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
2010 a-filico.ads: Add some missing overriding keywords.
2011
2012 2009-04-09 Pascal Obry <obry@adacore.com>
2013
2014 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
2015 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
2016 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
2017 reformatting.
2018
2019 2009-04-09 Ed Schonberg <schonberg@adacore.com>
2020
2021 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
2022 missing overriding indicator if the new declaration is not seen as
2023 primitive.
2024
2025 2009-04-09 Thomas Quinot <quinot@adacore.com>
2026
2027 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
2028 overflows in computation of bounds.
2029
2030 2009-04-09 Pascal Obry <obry@adacore.com>
2031
2032 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
2033 typos in comment.
2034
2035 2009-04-09 Robert Dewar <dewar@adacore.com>
2036
2037 * sem_attr.adb (Check_Stream_Attribute): Check violation of
2038 restriction No_Streams
2039
2040 * gnat_rm.texi: Clarify No_Streams restriction
2041
2042 * g-socket.adb: Minor reformatting.
2043
2044 2009-04-09 Thomas Quinot <quinot@adacore.com>
2045
2046 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
2047
2048 2009-04-09 Geert Bosch <bosch@adacore.com>
2049
2050 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
2051 (Set_Result): Likewise.
2052 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
2053 conversion, as required by RM 4.6(31).
2054
2055 2009-04-08 Robert Dewar <dewar@adacore.com>
2056
2057 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
2058 suppressed.
2059
2060 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
2061 resolution steps.
2062
2063 2009-04-08 Robert Dewar <dewar@adacore.com>
2064
2065 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
2066 No_Local_Allocators restriction preventing local instantiation.
2067
2068 2009-04-08 Thomas Quinot <quinot@adacore.com>
2069
2070 * sem_eval.adb: Minor comment fix
2071
2072 2009-04-08 Thomas Quinot <quinot@adacore.com>
2073
2074 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
2075 New limited controlled type used to automate the initialization and
2076 finalization of the sockets implementation.
2077 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
2078
2079 2009-04-08 Vincent Celier <celier@adacore.com>
2080
2081 * prj-attr.adb: New read-only project-level attribute Project_Dir
2082
2083 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
2084 read-only attribute of the same name.
2085 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
2086 (Recursive_Process): Ditto
2087
2088 * snames.adb: Add new standard name Project_Dir
2089
2090 * snames.ads: Add new standard name Project_Dir
2091
2092 2009-04-08 Thomas Quinot <quinot@adacore.com>
2093
2094 * checks.adb: Minor reformatting
2095
2096 2009-04-08 Vincent Celier <celier@adacore.com>
2097
2098 * vms_data.ads: Add documentation for new style keyword
2099 OVERRIDING_INDICATORS
2100
2101 2009-04-08 Robert Dewar <dewar@adacore.com>
2102
2103 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
2104 spec is in the current unit.
2105
2106 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2107
2108 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
2109 presence of entity.
2110
2111 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
2112
2113 2009-04-08 Vincent Celier <celier@adacore.com>
2114
2115 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
2116
2117 2009-04-08 Thomas Quinot <quinot@adacore.com>
2118
2119 * checks.ads: Minor reformatting
2120
2121 2009-04-08 Robert Dewar <dewar@adacore.com>
2122
2123 * gnat_rm.texi: Update documentation of pragma Obsolescent
2124
2125 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
2126 be omitted, and allow Entity parameter to be omitted.
2127
2128 2009-04-08 Thomas Quinot <quinot@adacore.com>
2129
2130 * exp_util.adb: Minor comment fix
2131
2132 2009-04-08 Robert Dewar <dewar@adacore.com>
2133
2134 * g-socket.ads: Fix bad syntax in pragma Obsolescent
2135
2136 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
2137 argument with no identifier following one that has an identifier. Was
2138 missed in some cases.
2139
2140 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
2141 identifier.
2142 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
2143
2144 * snames.adb: Add Name_Policy
2145
2146 * snames.ads: Add Name_Policy
2147
2148 2009-04-08 Robert Dewar <dewar@adacore.com>
2149
2150 * gnat_rm.texi: Minor reformatting
2151
2152 * par-ch2.adb: Minor reformatting
2153
2154 2009-04-08 Robert Dewar <dewar@adacore.com>
2155
2156 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
2157
2158 2009-04-08 Robert Dewar <dewar@adacore.com>
2159
2160 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
2161 properly in the presence of Remote_Types or Remote_Call_Interface.
2162
2163 * sem_util.adb: Add comment.
2164
2165 2009-04-08 Robert Dewar <dewar@adacore.com>
2166
2167 * ug_words: Add /ASSUME_VALID for -gnatB
2168
2169 * vms_data.ads: Add /ASSUME_VALID for -gnatB
2170
2171 * sem_cat.adb: Add clarifying commment
2172
2173 * a-direio.ads (Bytes): Make sure value is non-zero
2174
2175 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2176
2177 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
2178 that does not come from source, check for a rewritten function call in
2179 prefixed notation before other forms of rewriting.
2180
2181 2009-04-08 Robert Dewar <dewar@adacore.com>
2182
2183 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
2184 these are now obsolescent units used only for bootrapping with an
2185 older compiler.
2186
2187 2009-04-08 Robert Dewar <dewar@adacore.com>
2188
2189 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
2190
2191 * sem_ch3.adb: Minor comment updates
2192
2193 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2194
2195 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
2196 that come from source.
2197
2198 2009-04-08 Tristan Gingold <gingold@adacore.com>
2199
2200 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
2201 * gcc-interface/decl.c (prepend_attributes): New case
2202 Pragma_Thread_Local_Storage.
2203 * gcc-interface/utils.c (process_attributes): New case
2204 ATTR_THREAD_LOCAL_STORAGE.
2205
2206 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2207
2208 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
2209 by the back-end if it contains a call to a subprogram without a
2210 previous spec that is declared in the same unit.
2211
2212 * errout.ads: Update comments on uses of dirs
2213
2214 2009-04-08 Robert Dewar <dewar@adacore.com>
2215
2216 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
2217
2218 2009-04-08 Tristan Gingold <gingold@adacore.com>
2219
2220 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
2221 variables.
2222 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
2223
2224 2009-04-08 Vincent Celier <celier@adacore.com>
2225
2226 * prj-nmsc.adb:
2227 (Add_Source): Add the mapping of the unit name to source file name in
2228 the Unit_Sources_HT hash table, if the unit name is not null.
2229
2230 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
2231
2232 * prj.ads (Unit_Sources_Htable): New hash table instantiation
2233 (Project_Tree_Data): New component Unit_Sources_HT
2234
2235 2009-04-08 Thomas Quinot <quinot@adacore.com>
2236
2237 * sem_ch8.adb: Minor reformatting.
2238 Minor code reorganization.
2239
2240 2009-04-08 Robert Dewar <dewar@adacore.com>
2241
2242 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
2243 snames.ads, freeze.adb, par-prag.adb: Add implementation of
2244 pragma Thread_Local_Storage, setting new flag
2245 Has_Pragma_Thread_Local_Storage in corresponding entities.
2246
2247 2009-04-08 Emmanuel Briot <briot@adacore.com>
2248
2249 * prj.ads: Update comment on switches file
2250
2251 * prj-nmsc.adb: Code clean up. Use renaming clauses.
2252
2253 2009-04-08 Robert Dewar <dewar@adacore.com>
2254
2255 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
2256
2257 2009-04-08 Thomas Quinot <quinot@adacore.com>
2258
2259 * ali-util.adb: Minor comment fix
2260
2261 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2262
2263 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
2264 appears in a context clause, and the enclosing package is mentioned in
2265 a limited_with_clause.
2266 (Use_One_Type): Reject clause if type is still incomplete.
2267
2268 2009-04-08 Emmanuel Briot <briot@adacore.com>
2269
2270 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
2271 avoid copies of Source_Data variables when possible, since these
2272 involve calls to memcpy() which are done too many times.
2273
2274 2009-04-08 Robert Dewar <dewar@adacore.com>
2275
2276 * exp_ch4.adb (Expand_Concatenate): Clean up code
2277
2278 2009-04-07 Thomas Quinot <quinot@adacore.com>
2279
2280 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
2281 type for the case of concatenating a constrained array indexed by an
2282 enumeration type.
2283
2284 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2285
2286 * sem_ch6.adb (Check_Conformance): when checking conformance of an
2287 operation that overrides an abstract operation inherited from an
2288 interface, return False if only one of the controlling formals is an
2289 access parameter.
2290
2291 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2292
2293 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
2294 mandated by AI05-105.
2295
2296 2009-04-07 Vincent Celier <celier@adacore.com>
2297
2298 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
2299
2300 2009-04-07 Thomas Quinot <quinot@adacore.com>
2301
2302 * usage.adb: Minor fix in usage message.
2303
2304 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
2305 match declaration; the correct subtype is Node_Id, not Entity_Id,
2306 because the expected node kind is an identifier, not a defining
2307 identifier.
2308
2309 * switch-c.adb: Minor reformatting.
2310
2311 * uintp.adb: Minor reformatting.
2312
2313 2009-04-07 Robert Dewar <dewar@adacore.com>
2314
2315 * exp_ch13.adb: Minor reformatting
2316
2317 2009-04-07 Robert Dewar <dewar@adacore.com>
2318
2319 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
2320 against missing parent.
2321
2322 2009-04-07 Thomas Quinot <quinot@adacore.com>
2323
2324 * xoscons.adb: Minor reformatting
2325
2326 2009-04-07 Robert Dewar <dewar@adacore.com>
2327
2328 * rtsfind.ads: Remove obsolete string concatenation entries
2329
2330 2009-04-07 Robert Dewar <dewar@adacore.com>
2331
2332 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
2333
2334 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2335
2336 * sem_ch10.adb (Check_Body_Required): Handle properly imported
2337 subprograms.
2338
2339 2009-04-07 Gary Dismukes <dismukes@adacore.com>
2340
2341 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
2342 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
2343 is of a scalar or string type then suppress the setting of the
2344 expression to Empty.
2345
2346 * freeze.adb (Warn_Overlay): Also emit the warnings about default
2347 initialization for the cases of scalar and string objects when
2348 Init_Or_Norm_Scalars is True.
2349
2350 2009-04-07 Bob Duff <duff@adacore.com>
2351
2352 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
2353
2354 2009-04-07 Bob Duff <duff@adacore.com>
2355
2356 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
2357 Form parameter of Text_Translation=No allows binary mode for Text_IO
2358 files.
2359
2360 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
2361
2362 2009-04-07 Javier Miranda <miranda@adacore.com>
2363
2364 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
2365 processing the bounds for bit packed arrays or VM target machines.
2366
2367 2009-04-07 Thomas Quinot <quinot@adacore.com>
2368
2369 * g-sothco.ads (Int_Access): Remove extraneous access type (use
2370 anonymous access instead).
2371 (Get_Socket_From_Set): Fix incorrectly reverted formals
2372 Last and Socket to match the underlying C routine.
2373
2374 * g-socket.adb, g-socket.ads
2375 (Get): Use named parameter associations instead of positional ones in
2376 call go Get_Socket_From_Set, since this routine has two formals of the
2377 same type.
2378 (Image): New procedure.
2379
2380 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2381 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
2382 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
2383 for type of Arg formal.
2384
2385 * sem_warn.adb: Minor reformatting
2386
2387 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2388
2389 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
2390 over record components.
2391
2392 2009-04-07 Nicolas Roche <roche@adacore.com>
2393
2394 * gsocket.h:
2395 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
2396 has disappeared between VxWorks 6.4 and VxWorks 6.5
2397 In RTP mode use time.h instead of times.h
2398
2399 2009-04-07 Robert Dewar <dewar@adacore.com>
2400
2401 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
2402
2403 2009-04-07 Kevin Pouget <pouget@adacore.com>
2404
2405 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
2406 expanded code for constrained types.
2407
2408 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2409
2410 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
2411 AI05-105: in an object renaming declaration, anonymousness is a name
2412 resolution rule.
2413
2414 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2415
2416 2009-04-07 Arnaud Charlet <charlet@adacore.com>
2417
2418 * g-comlin.adb (Expansion): Fix old regression: also return directory
2419 names when matching.
2420
2421 2009-04-07 Robert Dewar <dewar@adacore.com>
2422
2423 * exp_ch4.adb:
2424 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
2425 (Expand_Concatenate): New name for Expand_Concatenate_String which has
2426 been rewritten to handle all types.
2427 (Expand_Concatenate_Other): Remove
2428
2429 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2430
2431 * lib-xref.adb (Generate_Reference): A default subprogram in an
2432 instance appears within the tree for the instance, but generates an
2433 implicit reference in the ALI.
2434
2435 2009-04-07 Javier Miranda <miranda@adacore.com>
2436
2437 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
2438 derived type that has discriminants, propagate the list of interfaces
2439 to the corresponding new base type. In addition, propagate also
2440 attribute Limited_Present (found working in this patch).
2441
2442 2009-04-07 Robert Dewar <dewar@adacore.com>
2443
2444 * exp_ch4.adb: Rewrite concatenation expansion.
2445
2446 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2447
2448 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
2449 relevant to packages.
2450
2451 2009-04-07 Robert Dewar <dewar@adacore.com>
2452
2453 * sem_attr.adb: Minor reformatting
2454
2455 * sem_ch6.adb: Minor reformatting
2456
2457 2009-04-07 Tristan Gingold <gingold@adacore.com>
2458
2459 * socket.c: Add more protections against S_resolvLib_ macros.
2460
2461 2009-04-07 Thomas Quinot <quinot@adacore.com>
2462
2463 * sem_attr.adb: Minor reformatting
2464
2465 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2466
2467 * sem_ch6.adb (New_Overloaded_Entity): New predicate
2468 Is_Overriding_Alias to handle properly types that inherit two homonym
2469 operations that have distinct dispatch table entries.
2470
2471 2009-04-07 Emmanuel Briot <briot@adacore.com>
2472
2473 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
2474 looking for the end of a parenthesis group
2475
2476 2009-04-07 Tristan Gingold <gingold@adacore.com>
2477
2478 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
2479
2480 * socket.c Don't use resolvLib_ macros if not defined.
2481
2482 2009-04-07 Robert Dewar <dewar@adacore.com>
2483
2484 * g-socket.adb: Minor reformatting.
2485
2486 * g-socthi-mingw.adb: Minor reformatting
2487
2488 * g-sothco.ads: Minor reformatting
2489
2490 * exp_ch4.adb:
2491 (Expand_Concatenate_String): Complete rewrite to generate efficient code
2492 inline instead of relying on external library routines.
2493
2494 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
2495 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
2496 obsolescent
2497
2498 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2499
2500 * sem_attr.adb:
2501 (Eval_Attribute): for attributes of array objects that are not strings,
2502 attributes are not static if nominal subtype of object is unconstrained.
2503
2504 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2505
2506 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
2507 operations for a type T in an instance do not override each other,
2508 when T is derived from a formal private type, the corresponding
2509 operations inherited by a type derived from T outside
2510 of the instance do not override each other either.
2511
2512 2009-04-07 Robert Dewar <dewar@adacore.com>
2513
2514 (Osint.Fail): Change calling sequence to have one string arg
2515 (Make.Make_Failed): Same change
2516 All callers are adjusted to use concatenation
2517
2518 2009-04-07 Robert Dewar <dewar@adacore.com>
2519
2520 * exp_ch4.adb: Fix documentation typo
2521
2522 2009-04-07 Robert Dewar <dewar@adacore.com>
2523
2524 * tbuild.ads: Minor reformatting
2525
2526 2009-04-07 Javier Miranda <miranda@adacore.com>
2527
2528 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
2529 when compiling under ZFP runtime.
2530
2531 2009-04-07 Robert Dewar <dewar@adacore.com>
2532
2533 * g-comlin.adb: Minor reformatting
2534
2535 2009-04-07 Thomas Quinot <quinot@adacore.com>
2536
2537 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2538 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2539 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
2540 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
2541
2542 2009-04-07 Robert Dewar <dewar@adacore.com>
2543
2544 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
2545
2546 * opt.ads (Sprint_Line_Limit): New parameter
2547
2548 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
2549
2550 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
2551
2552 * usage.adb: Output information for -gnatGnn -gnatDnn
2553
2554 2009-04-07 Robert Dewar <dewar@adacore.com>
2555
2556 * make.adb: Minor reformatting
2557
2558 2009-04-07 Robert Dewar <dewar@adacore.com>
2559
2560 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
2561
2562 2009-04-07 Robert Dewar <dewar@adacore.com>
2563
2564 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
2565
2566 2009-04-07 Robert Dewar <dewar@adacore.com>
2567
2568 * checks.adb:
2569 Remove Assume_Valid parameter from In_Subrange_Of calls
2570
2571 * sem_eval.adb:
2572 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2573 (Is_In_Range): Remove incorrect use of Assume_Valid
2574 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
2575
2576 * sem_eval.ads:
2577 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2578 (Is_In_Range): Documentation cleanup
2579 (Is_Out_Of_Range): Documentation cleanup
2580
2581 * gnat_rm.texi:
2582 Add documentation for Assume_No_Invalid_Values pragma
2583
2584 * sem_ch12.adb: Minor reformatting
2585
2586 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
2587
2588 * sem_prag.adb: Improve error message.
2589
2590 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
2591 LF/CR no longer recognized as line terminator
2592
2593 * switch.ads: Minor documentation improvement
2594
2595 * vms_data.ads: Minor reformatting
2596
2597 2009-04-07 Robert Dewar <dewar@adacore.com>
2598
2599 * checks.adb (Determine_Range): Add Assume_Valid parameter
2600
2601 * checks.ads (Determine_Range): Add Assume_Valid parameter
2602
2603 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
2604 Is_Null_Loop to suppress warnings in a loop body.
2605
2606 * exp_ch4.adb:
2607 (Rewrite_Comparison): Major rewrite to accomodate invalid values
2608
2609 * exp_ch5.adb:
2610 (Expand_N_Loop_Statement): Delete loop known not to execute
2611
2612 * opt.ads:
2613 (Assume_No_Invalid_Values): Now set to False, and as documented, this
2614 fully enables the proper handling of invalid values.
2615
2616 * sem_attr.adb:
2617 New calling sequence for Is_In_Range
2618
2619 * sem_ch5.adb:
2620 (Analyze_Iteration_Scheme): Accomodate possible invalid values
2621 in determining if a loop range is null.
2622
2623 * sem_eval.adb:
2624 (Is_In_Range): Add Assume_Valid parameter
2625 (Is_Out_Of_Range): Add Assume_Valid_Parameter
2626 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
2627 also to do more accurate and complete range analysis, catching more
2628 cases.
2629
2630 * sem_eval.ads:
2631 (Is_In_Range): Add Assume_Valid parameter
2632 (Is_Out_Of_Range): Add Assume_Valid_Parameter
2633
2634 * sem_util.adb:
2635 New calling sequence for Is_In_Range
2636
2637 * sinfo.adb:
2638 (Suppress_Loop_Warnings): New flag
2639
2640 * sinfo.ads:
2641 (Is_Null_Loop): Update documentation
2642 (Suppress_Loop_Warnings): New flag
2643
2644 * gnat_ugn.texi: Document -gnatB switch
2645
2646 2009-04-07 Arnaud Charlet <charlet@adacore.com>
2647
2648 * gnatvsn.ads: Bump version number.
2649
2650 2009-04-07 Thomas Quinot <quinot@adacore.com>
2651
2652 * exp_ch3.adb: Minor rewording (comments)
2653
2654 2009-04-07 Robert Dewar <dewar@adacore.com>
2655
2656 * exp_disp.adb: Minor reformatting
2657
2658 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2659
2660 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
2661 underlying type.
2662 * gcc-interface/trans.c (lvalue_required_p): Likewise.
2663
2664 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2665
2666 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
2667 Do not convert the result. Remove obsolete comment.
2668
2669 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2670
2671 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
2672 DECL_CONTEXT.
2673 (Subprogram_Body_to_gnu): Fix pasto.
2674
2675 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2676
2677 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
2678 (void_type_decl_node): Remove.
2679 (init_gigi_decls): Likewise.
2680 (gnat_install_builtins): Declare.
2681 (record_builtin_type): Likewise.
2682 (create_type_stub_decl): Likewise.
2683 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
2684 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
2685 artificial.
2686 <E_Array_Subtype>: Use the index types, not only their name, in the
2687 record giving the names of the bounds, if any.
2688 For a packed array type, make it artificial only if the base type
2689 was artificial as well. Remove redundant statement.
2690 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
2691 dummy types.
2692 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
2693 (rest_of_type_decl_compilation_no_defer): Likewise.
2694 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
2695 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
2696 and use create_type_stub_decl to build it.
2697 (gnat_pushdecl): Rewrite condition.
2698 (gnat_install_builtins): Remove bogus declaration.
2699 (record_builtin_type): New function.
2700 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
2701 of types.
2702 (create_type_stub_decl): New function.
2703 (create_type_decl): Assert that the type is not dummy. If the type
2704 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
2705 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
2706 (build_vms_descriptor): Likewise.
2707 (init_gigi_decls): Delete and move bulk of code to...
2708 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
2709 (emit_range_check): Add gnat_node parameter.
2710 (emit_index_check): Likewise.
2711 (emit_check): Likewise.
2712 (build_unary_op_trapv): Likewise.
2713 (build_binary_op_trapv): Likewise.
2714 (convert_with_check): Likewise.
2715 (Attribute_to_gnu): Adjust calls for above changes.
2716 (call_to_gnu): Likewise.
2717 (gnat_to_gnu): Likewise.
2718 (assoc_to_constructor): Likewise.
2719 (pos_to_constructor): Likewise.
2720 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
2721 (process_type): Do not create TYPE_DECL for dummy types.
2722
2723 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2724
2725 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
2726 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
2727 * gcc-interface/utils.c: Fix comments.
2728
2729 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2730
2731 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
2732 move around.
2733 (gnat_to_gnu_type): Move around.
2734 (get_unpadded_type): Likewise.
2735 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
2736 Tidy comments.
2737
2738 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2739
2740 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
2741 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
2742 (call_to_gnu): Invoke it instead of manually checking.
2743
2744 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
2745
2746 * gcc-interface/utils.c (finish_record_type): Force structural equality
2747 checks if the record type is discriminated.
2748
2749 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
2750
2751 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
2752 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
2753 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
2754 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
2755 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
2756 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
2757 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
2758
2759 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
2760
2761 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
2762 of TREE_CONSTANT_OVERFLOW.
2763
2764 2009-03-30 Joseph Myers <joseph@codesourcery.com>
2765
2766 PR rtl-optimization/323
2767 * gcc-interface/misc.c (gnat_post_options): Set
2768 flag_excess_precision_cmdline. Give an error for
2769 -fexcess-precision=standard for processors where the option is
2770 significant.
2771
2772 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
2773
2774 PR c/39323
2775 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
2776 on bit_align.
2777
2778 2009-03-11 Olivier Hainque <hainque@adacore.com>
2779
2780 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
2781 checks processing, remove unintended TREE_TYPE walk on index type.
2782
2783 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
2784
2785 PR ada/39264
2786 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
2787 call make_packable_type on fat pointer types.
2788 <E_Array_Subtype>: Likewise.
2789 <E_Record_Subtype>: Call make_packable_type on all record types
2790 except for fat pointer types.
2791 (make_packable_type): Likewise.
2792 (gnat_to_gnu_field): Likewise.
2793
2794 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
2795
2796 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
2797 EH_MECHANISM change made on 2007-12-06.
2798
2799 2009-02-26 Andreas Schwab <schwab@suse.de>
2800
2801 PR ada/39172
2802 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
2803 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
2804 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
2805 (AWK): Substitute.
2806 (target_cpu_default): Substitute.
2807
2808 2009-02-25 Laurent GUERBY <laurent@guerby.net>
2809
2810 PR ada/39221
2811 * a-teioed.adb (Expand): Fix Result overflow.
2812
2813 2009-02-25 Laurent GUERBY <laurent@guerby.net>
2814
2815 * gcc-interface/Makefile.in: Fix multilib handling for
2816 sparc64-linux.
2817
2818 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2819
2820 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
2821
2822 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
2823
2824 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
2825
2826 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
2827
2828 * gcc-interface/deftarg.c: Remove.
2829
2830 2009-02-10 Olivier Hainque <hainque@adacore.com>
2831 Eric Botcazou <ebotcazou@adacore.com>
2832
2833 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
2834 (copy_alias_set): Rename into...
2835 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
2836 underlying array of unconstrained arrays for the new type as well.
2837 If the old and new alias sets don't conflict, make one a subset of
2838 the other as per the OP parameter.
2839 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
2840 <E_Record_Type>: Do not copy the alias set for derived types.
2841 For all types, make the alias set of derived types a superset of
2842 that of their parent type.
2843 (make_aligning_type): Adjust calls to copy_alias_set.
2844 (make_packable_type): Likewise.
2845 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
2846 Check for alias set conflict instead of strict equality to issue the
2847 warning.
2848
2849 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
2850
2851 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
2852 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
2853 (copy_alias_set): Assert that arrays have the same aliasing settings.
2854 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
2855
2856 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
2857
2858 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
2859 Set TYPE_NONALIASED_COMPONENT on the array type.
2860
2861 2009-01-31 Laurent GUERBY <laurent@guerby.net>
2862
2863 * gcc-interface/Makefile.in: Fix mipsel linux handling.
2864
2865 2009-01-16 Jakub Jelinek <jakub@redhat.com>
2866
2867 * gcc-interface/Makefile.in: Fix multilib handling for
2868 powerpc64-linux.
2869
2870 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
2871
2872 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
2873 only useless conversions around renamed objects.
2874
2875 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
2876
2877 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
2878 the _Tag field before any discriminants in the field list.
2879 (components_to_record): Remove obsolete comment.
2880
2881 2008-12-09 Jakub Jelinek <jakub@redhat.com>
2882
2883 PR ada/38450
2884 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
2885 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
2886 Likewise.
2887
2888 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
2889
2890 PR bootstrap/38262
2891 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
2892
2893 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
2894
2895 PR ada/30827
2896 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
2897
2898 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
2899
2900 * gcc-interface/decl.c: Fix various nits.
2901
2902 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
2903
2904 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
2905
2906 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
2907
2908 PR ada/38127
2909 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
2910 special-case boolean types. Propagate the name.
2911 * gcc-interface/targtyps.c: Tweak comment.
2912
2913 2008-11-15 Geert Bosch <bosch@adacore.com>
2914
2915 * gcc-interface/trans.c (emit_check): Put back a final save_expr
2916 to prevent exponential expansion during gimplification.
2917
2918 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
2919
2920 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
2921
2922 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
2923
2924 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
2925 initialized to a static constant to be statically allocated even if
2926 they are of a padding type, provided the original type also has
2927 constant size.
2928
2929 2008-11-15 Laurent Guerby <laurent@guerby.net>
2930
2931 PR ada/37993
2932 * gcc-interface/Makefile.in: Add multilib handling for x86_64
2933 on darwin.
2934 * system-darwin-x86_64.ads: New file.
2935
2936 2008-11-13 Olivier Hainque <hainque@adacore.com>
2937
2938 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
2939 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
2940 are explicit to the middle-end. Tidy.
2941
2942 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
2943
2944 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
2945 (MINUS_NOMOD_EXPR): Likewise.
2946 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
2947 unreachable.
2948 <PLUS_NOMOD_EXPR>: New case.
2949 <MINUS_NOMOD_EXPR>: Likewise.
2950 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
2951 assignment statement instead of using an increment operator.
2952
2953 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2954
2955 * system-irix-n64.ads: New file.
2956 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
2957 multilibs.
2958
2959 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2960
2961 PR ada/37681
2962 * system-solaris-x86_64.ads: New file.
2963 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
2964
2965 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
2966 Eric Botcazou <ebotcazou@adacore.com>
2967
2968 PR ada/34289
2969 * lib.ads: (Enable_Switch_Storing): Declare.
2970 * lib.adb: (Enable_Switch_Storing): New procedure.
2971 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
2972 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
2973 (Display): Never display -gnatea
2974 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
2975
2976 2008-11-07 Thomas Quinot <quinot@adacore.com>
2977
2978 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
2979 for empty range in original base type, not converted result type.
2980
2981 2008-11-07 Geert Bosch <bosch@adacore.com>
2982
2983 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
2984 and result for call to __gnat_mulv64.
2985
2986 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
2987
2988 * gcc-interface/trans.c: Fix formatting nits.
2989
2990 2008-11-07 Geert Bosch <bosch@adacore.com>
2991
2992 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
2993 overflow check for constant result.
2994
2995 2008-11-07 Geert Bosch <bosch@adacore.com>
2996
2997 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
2998 overflow check for addition/subtraction if neither operand is constant.
2999
3000 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3001
3002 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
3003 files for the target-dependent part of the runtime.
3004 (SPARC/Linux): Likewise.
3005
3006 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3007
3008 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
3009 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
3010 purposes.
3011
3012 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3013
3014 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
3015 in GC memory.
3016
3017 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3018
3019 PR ada/19419
3020 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
3021 Generate a call to memmove for an assignment between overlapping
3022 array slices.
3023
3024 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3025
3026 PR target/37977
3027 * gcc-interface/Makefile.in: Add multilib handling for
3028 s390-linux and s390x-linux.
3029
3030 2008-10-24 Jakub Jelinek <jakub@redhat.com>
3031
3032 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
3033 check-acats-subtargets and check-gnat-subtargets.
3034 (check_acats_targets): New variable.
3035 (check-acats-subtargets, check-acats%): New targets.
3036 (check-acats): If -j is used and CHAPTERS is empty, run the testing
3037 in multiple make goals, possibly parallel, and afterwards run
3038 dg-extract-results.sh to merge the sum and log files.
3039
3040 2008-10-17 Geert Bosch <bosch@adacore.com>
3041
3042 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
3043 to use only a single check instead of three, and avoid unnecessary
3044 COMPOUND_EXPR.
3045 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
3046 creating more opportunities for optimizations.
3047
3048 2008-10-13 Jakub Jelinek <jakub@redhat.com>
3049
3050 PR middle-end/37601
3051 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
3052 NULL TYPE_DOMAIN.
3053
3054 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
3055
3056 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
3057 dealing with volatileness to after code dealing with renaming.
3058
3059 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
3060
3061 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
3062 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
3063
3064 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
3065
3066 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
3067 (unchecked_convert): Use it to disable problematic folding with
3068 VIEW_CONVERT_EXPR in the general case. Always disable it for the
3069 special VIEW_CONVERT_EXPR built for integral types and cope with
3070 its addressability issues by preserving the first conversion.
3071
3072 2008-10-01 Andreas Schwab <schwab@suse.de>
3073
3074 * system-linux-ppc64.ads: New file.
3075 * gcc-interface/Makefile.in: Add multilib handling for
3076 powerpc-linux.
3077
3078 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
3079
3080 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
3081 to that of ptr_mode instead of word_mode.
3082
3083 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
3084
3085 PR ada/5911
3086 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
3087
3088 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
3089
3090 PR ada/37641
3091 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
3092 instead of deprecated FILE_WRITE_PROPERTIES.
3093
3094 2008-09-22 Olivier Hainque <hainque@adacore.com>
3095
3096 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
3097 are never assigned, volatile entities are not constant for code
3098 generation purposes.
3099
3100 2008-09-21 Laurent Guerby <laurent@guerby.net>
3101
3102 PR ada/5911
3103 * gcc-interface/Makefile.in: Add multilib handling for x86_64
3104 and sparc.
3105 * system-linux-sparcv9.ads: New file.
3106
3107 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
3108
3109 * exp_dbug.ads: Document new convention for the XVZ variable.
3110 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
3111 debug info if necessary for the type padding the component type.
3112 <E_Array_Subtype>: Likewise.
3113 (maybe_pad_type): Emit the XVZ variable in units.
3114 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
3115 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
3116 on statements generated to initialize the parameter attributes cache.
3117 Set the source line of the end label of the body on the special return
3118 statement built for a procedure with copy-in copy-out parameters.
3119
3120 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
3121
3122 PR ada/37585
3123 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
3124 inlined external functions if they contain a nested function not
3125 declared inline.
3126
3127 2008-09-18 Jan Hubicka <jh@suse.cz>
3128
3129 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
3130 (end_subprog_body): Do not set DECL_INLINE.
3131
3132 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
3133
3134 PR ada/21327
3135 * gnat_ugn.texi: Use proper format in direntry.
3136
3137 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
3138
3139 * gcc-interface/trans.c (gigi): Declare the name of the compilation
3140 unit as the first global name.
3141
3142 2008-09-14 Jan Hubicka <jh@suse.cz>
3143
3144 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
3145
3146 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3147
3148 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
3149 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
3150 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
3151 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
3152 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
3153 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
3154 gcc-interface/gigi.h, gcc-interface/trans.c,
3155 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
3156 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
3157 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
3158 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
3159 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
3160 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3161 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
3162 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
3163 comments.
3164 * gnathtml.pl: Fix typos.
3165
3166 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
3167
3168 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
3169 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
3170 layer. RTEMS binds to OS provided adapter routines so there are
3171 no modifications to s-osinte-rtems.adb.
3172
3173 2008-09-09 Arnaud Charlet <charlet@adacore.com>
3174 Joel Sherrill <joel.sherrill@oarcorp.com>
3175
3176 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
3177
3178 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
3179
3180 * s-interr-hwint.adb: New file.
3181
3182 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
3183 needed by s-interr-hwint.adb.
3184
3185 * s-osinte-vxworks-kernel.adb: New file.
3186
3187 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3188
3189 * s-stchop-rtems.adb: Add file missed in early commit. Already
3190 referenced in gcc-interface/Makefile.in.
3191
3192 2008-08-30 Thomas Quinot <quinot@adacore.com>
3193
3194 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
3195 be built even without a separate libada directory.
3196
3197 2008-08-22 Arnaud Charlet <charlet@adacore.com>
3198
3199 * lib-xref.ads: Fix typo in subprogram reference definition.
3200
3201 2008-08-22 Robert Dewar <dewar@adacore.com>
3202
3203 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
3204 to avoid warning.
3205
3206 * g-trasym.adb: Ditto
3207
3208 * s-utf_32.adb (Get_Category): Fix obvious typo
3209
3210 * s-wwdcha.adb: Minor code reorganization
3211 Remove dead code
3212
3213 2008-08-22 Robert Dewar <dewar@adacore.com>
3214
3215 * checks.adb (Determine_Range): Deal with values that might be invalid
3216
3217 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
3218 configuration switches.
3219
3220 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
3221
3222 * sem_prag.adb: Implement pragma Assume_No_Default_Values
3223
3224 * snames.adb, snames.ads, snames.h:
3225 Add entries for pragma Assume_No_Invalid_Values
3226
3227 * switch-c.adb: Add processing for -gnatB switch
3228
3229 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
3230
3231 2008-08-22 Javier Miranda <miranda@adacore.com>
3232
3233 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
3234 init procedure all the expanded code associated with the spec of
3235 task types and protected types.
3236
3237 2008-08-22 Gary Dismukes <dismukes@adacore.com>
3238
3239 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
3240 component expression copies rather than directly setting Etype and
3241 Is_Static_Expression.
3242
3243 2008-08-22 Gary Dismukes <dismukes@adacore.com>
3244
3245 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
3246 private types to allow for types derived from a private type with
3247 preelaborable initialization, but return False for a private extension
3248 (unless it has the pragma).
3249
3250 2008-08-22 Robert Dewar <dewar@adacore.com>
3251
3252 * opt.ads: Minor code reorganization (put entries in alpha order)
3253
3254 2008-08-22 Pascal Obry <obry@adacore.com>
3255
3256 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
3257 spawn.
3258
3259 2008-08-22 Geert Bosch <bosch@adacore.com>
3260
3261 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
3262 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
3263
3264 2008-08-22 Doug Rupp <rupp@adacore.com>
3265
3266 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
3267 __gnat_set_features.
3268
3269 * init.c
3270 (__gnat_set_features): New function.
3271 (__gnat_features_set): New tracking variable.
3272 (__gl_no_malloc_64): New feature global variable
3273
3274 2008-08-22 Ed Schonberg <schonberg@adacore.com>
3275
3276 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
3277 use_type_clause in an instance.
3278
3279 2008-08-22 Bob Duff <duff@adacore.com>
3280
3281 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
3282
3283 2008-08-22 Robert Dewar <dewar@adacore.com>
3284
3285 * exp_ch6.adb: Minor reformatting
3286
3287 * exp_ch7.adb: Minor reformatting
3288
3289 * exp_ch7.ads: Put routines in proper alpha order
3290
3291 * exp_dist.adb: Minor reformatting
3292
3293 2008-08-22 Vincent Celier <celier@adacore.com>
3294
3295 * prj.ads: Minor comment update
3296
3297 2008-08-22 Robert Dewar <dewar@adacore.com>
3298
3299 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
3300
3301 2008-08-22 Ed Schonberg <schonberg@adacore.com>
3302
3303 * exp_tss.adb:
3304 (Base_Init_Proc): For a protected subtype, use the base type of the
3305 corresponding record to locate the propoer initialization procedure.
3306
3307 2008-08-22 Robert Dewar <dewar@adacore.com>
3308
3309 * checks.adb:
3310 (In_Subrange_Of): New calling sequence
3311 (Determine_Range): Prepare for new processing using base type
3312
3313 * exp_ch4.adb:
3314 (Compile_Time_Compare): Use new calling sequence
3315
3316 * exp_ch5.adb:
3317 (Compile_Time_Compare): Use new calling sequence
3318
3319 * sem_eval.adb:
3320 (Compile_Time_Compare): New calling sequence allows dealing with
3321 invalid values.
3322 (In_Subrange_Of): Ditto
3323
3324 * sem_eval.ads:
3325 (Compile_Time_Compare): New calling sequence allows dealing with
3326 invalid values.
3327 (In_Subrange_Of): Ditto
3328
3329 2008-08-22 Pascal Obry <obry@adacore.com>
3330
3331 * adaint.c: Fix possible race condition on win32_wait().
3332
3333 2008-08-22 Bob Duff <duff@adacore.com>
3334
3335 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
3336 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
3337 exp_intr.adb, exp_ch3.adb: Rename:
3338 Exp_Ch7.Controlled_Type => Needs_Finalization
3339 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
3340 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
3341 Has_Controlled_Parts
3342 (Has_Some_Controlled_Component): Fix bug in array case.
3343
3344 2008-08-22 Robert Dewar <dewar@adacore.com>
3345
3346 * sem_ch8.adb: Minor reformatting
3347
3348 2008-08-22 Kevin Pouget <pouget@adacore.com>
3349
3350 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
3351 Shared_Var_Close procedure specifications from package spec to package body.
3352
3353 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
3354 RE_Shared_Var_WOpen entries.
3355
3356 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
3357 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
3358
3359 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
3360
3361 * init.c: adjust EH support code on Alpha/Tru64 as well.
3362
3363 * raise-gcc.c: Add back a couple of comments.
3364
3365 2008-08-22 Ed Schonberg <schonberg@adacore.com>
3366
3367 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
3368 involved and the return type is class-wide, use the type of the expression
3369 for the generated access type. Suppress useless discriminant checks on the
3370 allocator.
3371
3372 2008-08-22 Bob Duff <duff@adacore.com>
3373
3374 * exp_ch7.adb: Minor comment fix
3375
3376 * exp_ch6.ads: Minor comment fix
3377
3378 2008-08-22 Thomas Quinot <quinot@adacore.com>
3379
3380 * sem_ch8.adb: Minor reformatting
3381 Minor code reorganization (introduce subprogram to factor duplicated
3382 code).
3383
3384 2008-08-22 Sergey Rybin <rybin@adacore.com>
3385
3386 * gnat_ugn.texi: Change the description of gnatcheck default rule
3387 settings.
3388
3389 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
3390
3391 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
3392 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
3393 do not adjust the PC anymore.
3394 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
3395 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
3396
3397 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
3398 instead of _Unwind_GetIP.
3399
3400 2008-08-22 Gary Dismukes <dismukes@adacore.com>
3401
3402 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
3403 with a range is transformed into a positional aggregate, any copied
3404 component literals should be marked Is_Static_Expression.
3405
3406 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
3407 not being known at at compile time when Configurable_Run_Time_Mode is
3408 true.
3409
3410 2008-08-22 Robert Dewar <dewar@adacore.com>
3411
3412 * exp_attr.adb:
3413 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
3414 Read or Input attribute.
3415
3416 2008-08-22 Ed Schonberg <schonberg@adacore.com>
3417
3418 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
3419 clauses in related units is redundant, if one of the units is a package
3420 instantiation, use its instance_spec to determine which unit is the
3421 ancestor of the other.
3422
3423 2008-08-22 Javier Miranda <miranda@adacore.com>
3424
3425 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
3426 attributes add missing support to handle designated types that come
3427 from the limited view.
3428
3429 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
3430
3431 2008-08-22 Sergey Rybin <rybin@adacore.com>
3432
3433 * vms_data.ads: Add entry for new gnatcheck -mNNN option
3434
3435 * gnat_ugn.texi: Add description for gnatcheck option '-m'
3436
3437 2008-08-22 Sergey Rybin <rybin@adacore.com>
3438
3439 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
3440 acoording to the latest changes in the metric rule interface
3441
3442 2008-08-22 Vincent Celier <celier@adacore.com>
3443
3444 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
3445 (Check): Check if the file names registered in the ALI file for the
3446 spec, the body and each of the subunits are the ones expected.
3447
3448 2008-08-22 Robert Dewar <dewar@adacore.com>
3449
3450 * g-catiio.adb: Code cleanup.
3451
3452 2008-08-20 Vincent Celier <celier@adacore.com>
3453
3454 * make.adb (Gnatmake): Remove extra space in version line
3455
3456 * ali.adb:
3457 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
3458 as the name may already have been entered in the table by the Project
3459 Manager.
3460
3461 2008-08-20 Jose Ruiz <ruiz@adacore.com>
3462
3463 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
3464 weak symbols so we use the version provided by MaRTE when available.
3465
3466 2008-08-20 Emmanuel Briot <briot@adacore.com>
3467
3468 * g-catiio.ads, g-catiio.adb:
3469 (Value): Avoid an unnecessary system call to Clock in most cases.
3470 This call is only needed when only the time is provided in the string,
3471 and ignored in all other cases. This is more efficient.
3472
3473 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
3474
3475 * raise-gcc.c: Fix formatting nits.
3476
3477 2008-08-20 Robert Dewar <dewar@adacore.com>
3478
3479 * sem_ch13.adb:
3480 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
3481 non-existing component clause.
3482
3483 * exp_ch5.adb: Minor reformatting
3484
3485 * g-comlin.adb: Minor reformatting
3486
3487 * make.adb: Minor reformatting
3488
3489 * prj-proc.adb: Minor reformatting
3490
3491 * stylesw.ads: Minor reformatting
3492
3493 2008-08-20 Vincent Celier <celier@adacore.com>
3494
3495 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
3496 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
3497 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
3498 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
3499 and a switch is not recognized by gnatmake.
3500 (Gnatmake): Implement new scheme for gnatmake switches and global
3501 compilation switches.
3502 (Switches_Of): Try successively Switches (<file name>),
3503 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
3504
3505 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3506
3507 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
3508 implement style check that overriding operations are explicitly marked
3509 at such.
3510
3511 * style.ads (Missing_Overriding): new procedure that provides interface
3512 to previous one.
3513
3514 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
3515 that the declaration or body of overriding operations carries an
3516 explicit overriding indicator.
3517
3518 * sem_ch8.adb
3519 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
3520 explicit indicator should be present.
3521
3522 * sem_ch6.adb (Verify_Overriding_Indicator,
3523 Check_Overriding_Indicator): If operation is overriding, check whether
3524 declaration and/or body of subprogram should be present
3525
3526 2008-08-20 Vincent Celier <celier@adacore.com>
3527
3528 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
3529 gprbuild when casing is MixedCase, whatever the casing of the letters
3530 in the file name.
3531
3532 2008-08-20 Gary Dismukes <dismukes@adacore.com>
3533
3534 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
3535 creating dummy init proc.
3536 (Requires_Init_Proc): Return False in the case No_Default_Initialization
3537 is in force and the type does not have associated default
3538 initialization. Move test of Is_Public (with tests of restrictions
3539 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
3540 for default initialization.
3541
3542 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
3543
3544 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
3545 of any alias or prefix but having attached parameters (as \"-O2\").
3546
3547 2008-08-20 Robert Dewar <dewar@adacore.com>
3548
3549 * s-fileio.adb: Minor reformatting
3550
3551 2008-08-20 Thomas Quinot <quinot@adacore.com>
3552
3553 * exp_strm.adb (Build_Elementary_Input_Call,
3554 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
3555 selects the stream attribute routines for long float types.
3556
3557 2008-08-20 Vincent Celier <celier@adacore.com>
3558
3559 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
3560
3561 * prj.ads (Array_Data): Add a component Location
3562
3563 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3564
3565 * sem_prag.adb:
3566 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
3567 argument for ASIS and navigation use.
3568
3569 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3570
3571 * einfo.ads: Add comment.
3572
3573 2008-08-20 Bob Duff <duff@adacore.com>
3574
3575 * sem_eval.ads: Minor comment fix.
3576
3577 2008-08-20 Bob Duff <duff@adacore.com>
3578
3579 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
3580 folding. We were folding things like "False and then ...", but not
3581 "X and then ..." where X is a constant whose value is known at compile
3582 time.
3583
3584 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
3585
3586 * exp_ch5.adb (Controlled_Type): New routine.
3587 (Expand_N_Extended_Return_Statement): When generating a move of the
3588 final list in extended return statements, check the type of the
3589 function and in the case of double expanded return statements, the type
3590 of the returned object.
3591 (Expand_Simple_Function_Return): Perform an interface conversion when
3592 the type of the returned object is an interface and the context is an
3593 extended return statement.
3594
3595 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3596
3597 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
3598 and the full view is visible, set flag on full view as well.
3599
3600 2008-08-20 Thomas Quinot <quinot@adacore.com>
3601
3602 * g-comlin.adb: Minor reformatting
3603 Minor code reorganization.
3604
3605 * freeze.adb: Minor reformatting
3606
3607 2008-08-20 Vincent Celier <celier@adacore.com>
3608
3609 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
3610 source of another project.
3611
3612 2008-08-20 Pascal Obry <obry@adacore.com>
3613
3614 * s-os_lib.ads: Minor reformatting.
3615
3616 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3617
3618 * gnatvsn.ads: Minor reformatting.
3619
3620 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3621
3622 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
3623 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
3624 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
3625 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
3626 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
3627 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
3628 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
3629 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
3630 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
3631 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
3632 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
3633 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
3634 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
3635 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
3636 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
3637 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
3638 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
3639 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
3640 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
3641 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
3642 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
3643 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
3644 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
3645 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
3646 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
3647 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
3648 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
3649 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
3650 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
3651 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
3652 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
3653 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
3654 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
3655 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
3656 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
3657 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
3658 s-poosiz.adb, link.c: Fix copyright notice.
3659
3660 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3661
3662 * g-comlin.ads: Update comments.
3663
3664 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3665
3666 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
3667
3668 2008-08-20 Gary Dismukes <dismukes@adacore.com>
3669
3670 * exp_ch11.adb:
3671 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
3672 Make_Implicit_Exception_Handler when rewriting an exception handler with
3673 a choice parameter, and pass the handler's Sloc instead of that of the
3674 handled sequence of statements. Make_Implicit_Exception_Handler sets the
3675 Sloc to No_Location (unless debugging generated code), which we don't
3676 want for the case of a user handler.
3677
3678 2008-08-20 Robert Dewar <dewar@adacore.com>
3679
3680 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
3681
3682 * sem_ch13.adb:
3683 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
3684 now labeled as info msgs, not warnings.
3685
3686 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
3687
3688 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
3689
3690 * a-textio.adb: Remove redundant test.
3691
3692 * a-witeio.adb: Minor code reorganization
3693 Remove redundant test found working on another issue
3694
3695 * a-ztexio.adb: Minor code reorganization
3696 Remove redundant test found working on another issue
3697
3698 2008-08-20 Thomas Quinot <quinot@adacore.com>
3699
3700 * s-fileio.adb (Open) Use C helper function to determine whether a
3701 given errno value corresponds to a "file not found" error.
3702
3703 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
3704
3705 2008-08-20 Jose Ruiz <ruiz@adacore.com>
3706
3707 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
3708 to get access to the per-task errno variable.
3709 (__set_errno for MaRTE): Do not redefine this function here since it is
3710 already defined in MaRTE.
3711
3712 2008-08-20 Tristan Gingold <gingold@adacore.com>
3713
3714 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
3715
3716 2008-08-20 Robert Dewar <dewar@adacore.com>
3717
3718 * freeze.adb: Minor reformatting
3719
3720 * g-comlin.adb: Minor reformatting
3721
3722 * g-socket.adb: Minor reformatting
3723
3724 * g-socthi-mingw.adb: Minor reformatting
3725
3726 * g-stheme.adb: Minor reformatting
3727
3728 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3729
3730 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
3731 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
3732 confusion between partial and full views of an ancestor of the context
3733 type when the parent is a private extension declared in a parent unit,
3734 and full views are available for the context type.
3735
3736 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
3737 Robert Dewar <dewar@adacore.com>
3738
3739 PR ada/30827
3740 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
3741 version string.
3742 Move comment in the right place.
3743 * g-comver.adb (Version): Look for a zero-termination in
3744 addition to a closing parenthesis.
3745
3746 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
3747
3748 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
3749 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3750 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
3751 Is_Package_Or_Generic_Package instead of hand-crafted tests.
3752
3753 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
3754
3755 PR ada/15808
3756 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
3757 as well.
3758
3759 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3760
3761 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
3762
3763 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
3764
3765 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
3766 for back-copy statements in lieu of that of the actual.
3767
3768 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
3769
3770 PR ada/20548
3771 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
3772 setjmp test consistently. Adjust for new behavior of flag_stack_check.
3773 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
3774 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
3775
3776 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
3777
3778 PR ada/36777
3779 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
3780 * sem_attr.adb (Check_Type): The current instance of a protected
3781 object is not a type name.
3782 (Analyze_Access_Attribute): Accept instances of protected objects.
3783 (Analyze_Attribute, Attribute_Address clause): Ditto.
3784 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
3785 the prefix as being the current instance if needed.
3786
3787 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
3788
3789 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
3790 Remove duplicate s-win32.o. Add s-winext.o.
3791
3792 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
3793
3794 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
3795 with SOSC.SOCK__STREAM.
3796 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
3797 SOSC.MSG_OOB.
3798
3799 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
3800
3801 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
3802 * gsocket.h, socket.c: Update to support RTEMS.
3803 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
3804
3805 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
3806 Robert Dewar <dewar@adacore.com>
3807
3808 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
3809 left argument even when right argument is 0.
3810 (Expand_N_Op_Mod): Ditto when right argument is 1.
3811 (Expand_N_Op_Multiply): Ditto when any argument is 0.
3812 (Expand_N_Op_Rem): Ditto when right argument is 1.
3813
3814 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3815
3816 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
3817 by warn_unused.
3818
3819 2008-08-08 Ed Schonberg <schonberg@adacore.com>
3820
3821 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
3822 from Freeze_Entity. Used to generate cross-reference information for
3823 types declared in generic packages.
3824
3825 2008-08-08 Thomas Quinot <quinot@adacore.com>
3826
3827 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
3828 compatibility shim.
3829
3830 2008-08-08 Thomas Quinot <quinot@adacore.com>
3831
3832 * gsocket.h:
3833 On Windows, include <errno.h> and redefine only selected errno values
3834 from their <winsock2.h> definitions.
3835
3836 * s-osinte-freebsd.ads: Minor reformatting
3837
3838 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
3839
3840 * g-soccon.ads: New file.
3841
3842 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
3843 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
3844 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
3845 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
3846 unit, to allow building software that depends on this internal unit
3847 with both older and newer compilers.
3848
3849 2008-08-08 Robert Dewar <dewar@adacore.com>
3850
3851 * s-strxdr.adb: Minor reformatting
3852
3853 2008-08-08 Bob Duff <duff@adacore.com>
3854
3855 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
3856 checking for integer operations (including division by zero)", which
3857 is wrong -- divide by zero is not part of overflow checking.
3858 Also added misc clarification about what check-suppression means.
3859
3860 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
3861
3862 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
3863
3864 * g-comlin.adb (Add_Switch): Handle addition of switches at the
3865 begining of the command line.
3866 (Append, Add): Renaming of Append to Add as this now allows addition
3867 at the begining of the list.
3868
3869 * g-comlin.ads (Add_Switch): Handle addition of switches at the
3870 begining of the command line.
3871
3872 2008-08-08 Thomas Quinot <quinot@adacore.com>
3873
3874 * g-sercom.ads:
3875 (Name): Document application scope (only legacy PC serial ports on
3876 Linux and Windows).
3877
3878 2008-08-08 Thomas Quinot <quinot@adacore.com>
3879
3880 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
3881 previous change, not needed after all.
3882
3883 2008-08-08 Ed Schonberg <schonberg@adacore.com>
3884
3885 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
3886 exclusion indicator is present
3887
3888 2008-08-08 Robert Dewar <dewar@adacore.com>
3889
3890 * g-comlin.adb: Minor code reorganization
3891 Minor reformatting
3892
3893 * g-comlin.ads: Minor reformatting
3894
3895 * s-fileio.adb: Minor reformatting
3896
3897 * sem_attr.adb: Minor code reorganization (use Nkind_In)
3898 Minor reformatting
3899
3900 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
3901
3902 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
3903 with s-oscons-tmplt.i.
3904
3905 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
3906
3907 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
3908
3909 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3910
3911 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
3912 of incomplete type.
3913
3914 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
3915 of a formal parameter of an incomplete type. Improve error message for
3916 other improper uses of incomplete types.
3917
3918 2008-08-06 Robert Dewar <dewar@adacore.com>
3919
3920 * gnat_ugn.texi: Clarify -gnato documentation
3921
3922 2008-08-06 Thomas Quinot <quinot@adacore.com>
3923
3924 * gcc-interface/Makefile.in,
3925 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
3926 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
3927 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
3928 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
3929 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
3930 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
3931 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
3932 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
3933 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
3934 Remove GNAT.Sockets.Constants. This internal package is replaced by
3935 System.OS_Constants.
3936
3937 2008-08-06 Thomas Quinot <quinot@adacore.com>
3938
3939 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
3940 Remove obsolete targets referencing gen-soccon
3941 When generating s-oscons.ads, use a file name that includes the
3942 THREAD_KIND, to ensure that the (potentially different) version from a
3943 previous build with a different threads flavour does not get reused.
3944
3945 2008-08-06 Thomas Quinot <quinot@adacore.com>
3946
3947 * sem_res.adb: Minor reformatting
3948
3949 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
3950 only when the operating system reports a non-existing file or directory
3951 (ENOENT), otherwise raise Name_Error.
3952
3953 * exp_ch11.adb: Minor reformatting
3954
3955 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3956
3957 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
3958 incomplete, add the access_to_subprogram type to the list of private
3959 dependents only if the incomplete type will be completed in the current
3960 scope.
3961 (Build_Discriminant_Constraints): If the type of the discriminant is
3962 access_to_variable, reject a constraint that is access_to_constant.
3963
3964 2008-08-06 Thomas Quinot <quinot@adacore.com>
3965
3966 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
3967 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
3968 g-sttsne-dummy.ads: New files.
3969
3970 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
3971 with pragma Unimplemented_Unit for sockets packages on Nucleus.
3972
3973 2008-08-06 Pascal Obry <obry@adacore.com>
3974
3975 * adaint.c: Another fix for ACL support on Windows.
3976
3977 2008-08-06 Javier Miranda <miranda@adacore.com>
3978
3979 * exp_disp (Expand_Interface_Actuals): Adds missing support for
3980 expansion of calls to subprograms using selected components.
3981
3982 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3983
3984 * sem_res.adb (Resolve_Call): Use base type to determine whether a
3985 dereference is needed because a subtype of an access_to_subprogram is
3986 simply an access-subtype
3987
3988 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
3989
3990 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
3991 parameters, always specify the expected separator.
3992
3993 2008-08-06 Thomas Quinot <quinot@adacore.com>
3994
3995 * xnmake.adb: Use new XUtil package for platform independent text
3996 output.
3997
3998 2008-08-06 Vincent Celier <celier@adacore.com>
3999
4000 * gnat_ugn.texi: Document compiler switch -gnateG
4001
4002 2008-08-06 Quentin Ochem <ochem@adacore.com>
4003
4004 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
4005 in the case of an empty pattern size.
4006 (Compute_Result): Do not do any computation in the case of an empty
4007 pattern size.
4008 (Report_Result): Fixed computation of the overflow guard.
4009
4010 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4011
4012 * g-awk.adb (Finalize): Do not use directly objects of the type in the
4013 finalization routine to prevent elaboration order anomalies in new
4014 finalization scheme.
4015
4016 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4017
4018 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
4019 declaration for the same type.
4020
4021 2008-08-06 Thomas Quinot <quinot@adacore.com>
4022
4023 * sem.adb: Minor rewording (comment)
4024
4025 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
4026
4027 * g-comlin.adb (Define_Switch, Get_Switches): New.
4028 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
4029 ungrouping switches.
4030 (For_Each_Simple_Switch): Allow more control over parameters handling.
4031 This generic method now allows ungrouping of switches with parameters
4032 and switches with more than one letter after the prefix.
4033 (Set_Command_Line): Take care of switches that are prefixed with a
4034 switch handling parameters without delimiter (-gnatya and -gnaty3 for
4035 example).
4036 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
4037 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
4038 the operation.
4039 (Start, Alias_Switches, Group_Switches): Take care of parameters
4040 possibly present inside a group.
4041
4042 * g-comlin.ads (Define_Switch): New method used to define a list of
4043 expected switches, that are necessary for correctly ungrouping switches
4044 with more that one character after the prefix.
4045 (Get_Switches): Method that builds a getopt string from the list of
4046 switches as set previously by Define_Switch.
4047 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
4048 status of the operation. Also allow the removal of switches with
4049 parameters only.
4050 (Command_Line_Configuration_Record): Maintain a list of expected
4051 switches.
4052
4053 2008-08-06 Doug Rupp <rupp@adacore.com>
4054
4055 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
4056 TARGET_MALLOC64 clear.
4057
4058 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
4059 if TARGET_MALLOC64 clear.
4060
4061 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
4062 (TARGET_MALLC64): New macro. Default to clear.
4063
4064 2008-08-06 Doug Rupp <rupp@adacore.com>
4065
4066 * gcc-interface/utils2.c (snames.h) Include
4067 (TARGET_ABI_OPEN_VMS): Initialize.
4068 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
4069 for Convention C.
4070
4071 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4072
4073 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
4074 null exclusion in a discriminant declaration
4075
4076 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
4077 indicators when type is not an access type.
4078
4079 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
4080 indicators when type is not an access type.
4081
4082 2008-08-06 Javier Miranda <miranda@adacore.com>
4083
4084 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
4085 with the target interface before expanding the code of the interface
4086 conversion.
4087
4088 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4089
4090 * freeze.adb:
4091 (Freeze_Entity): A deferred constant does not violate the restriction
4092 No_Default_Initialization,
4093
4094 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
4095 can carry a null exclusion indicator, and on which an error may be
4096 posted if the indicator is redundant.
4097
4098 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
4099 does not apply to a subtype mark that already excludes null.
4100
4101 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
4102 exclusion does not apply to a subtype mark that already excludes null.
4103
4104 2008-08-05 Thomas Quinot <quinot@adacore.com>
4105
4106 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
4107
4108 2008-08-05 Doug Rupp <rupp@adacore.com>
4109
4110 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
4111
4112 2008-08-05 Thomas Quinot <quinot@adacore.com>
4113
4114 * gsocket.h: Make this file includable in a Nucleus environment, which
4115 does not support sockets.
4116
4117 * socket.c: Remove Nucleus-specific hack.
4118
4119 2008-08-05 Pascal Obry <obry@adacore.com>
4120
4121 * adaint.c: Remove support for readable attribute on vxworks and nucleus
4122
4123 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4124
4125 * sem_attr.adb:
4126 (Analyze_Attribute, case 'Result): handle properly the case where some
4127 operand of the expression in a post-condition generates a transient
4128 block.
4129
4130 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
4131 right-hand side when it is an anonymous access_to_subprogram, to force
4132 static accessibility check when needed.
4133
4134 2008-08-05 Sergey Rybin <rybin@adacore.com>
4135
4136 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
4137 rule according to the change in the rule option.
4138 Add documentation for -gnatw.b/-gnatw.B
4139
4140 2008-08-05 Robert Dewar <dewar@adacore.com>
4141
4142 * ug_words: Add entries for -gnatw.b/-gnatw.B
4143
4144 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
4145
4146 2008-08-05 Vincent Celier <celier@adacore.com>
4147
4148 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
4149 (File).
4150
4151 * a-ztdeio.adb: Ditto.
4152
4153 2008-08-05 Pascal Obry <obry@adacore.com>
4154
4155 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
4156 readable attribute.
4157
4158 2008-08-05 Vincent Celier <celier@adacore.com>
4159
4160 * s-wchwts.adb:
4161 (Wide_String_To_String): Returns a String with the same 'First as its
4162 parameter S.
4163 (Wide_Wide_String_To_String): Ditto
4164
4165 * s-wchwts.ads:
4166 (Wide_String_To_String): Document that the lowest index of the returned
4167 String is equal to S'First.
4168
4169 2008-08-05 Thomas Quinot <quinot@adacore.com>
4170
4171 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
4172
4173 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
4174 s-oscons.ads
4175
4176 2008-08-05 Robert Dewar <dewar@adacore.com>
4177
4178 * opt.ads (Warn_On_Biased_Representation): New flag
4179
4180 * sem_ch13.adb:
4181 (Analyze_Attribute_Definition_Clause): Issue warning when biased
4182 representation is required.
4183 (Minimum_Size): Don't allow biasing if enum rep clause case
4184
4185 * sem_warn.adb:
4186 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
4187 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
4188
4189 * usage.adb: Add lines for -gnatw.b/B switches
4190
4191 2008-08-05 Pascal Obry <obry@adacore.com>
4192
4193 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
4194
4195 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
4196
4197 2008-08-05 Thomas Quinot <quinot@adacore.com>
4198
4199 * socket.c: Minor reformatting.
4200
4201 2008-08-05 Robert Dewar <dewar@adacore.com>
4202
4203 * sem_ch3.adb: Minor reformatting
4204
4205 * prj-nmsc.adb: Minor reformatting
4206
4207 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4208
4209 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
4210 visibility check on the component type if the simple test fails.
4211
4212 2008-08-05 Jose Ruiz <ruiz@adacore.com>
4213
4214 * init.c (__gnat_install_handler for linux): If we are building the
4215 Xenomai run time then we need to do two additional things: avoid
4216 memory swapping and transform the Linux environment task into a native
4217 Xenomai task.
4218
4219 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
4220 time): Use interface to Xenomai native skin and avoid linux-specific
4221 way of setting CPU affinity.
4222 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
4223
4224 2008-08-05 Bob Duff <duff@adacore.com>
4225
4226 * checks.ads: Minor comment fix
4227
4228 2008-08-05 Thomas Quinot <quinot@adacore.com>
4229
4230 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
4231 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
4232 CS8.
4233
4234 2008-08-05 Robert Dewar <dewar@adacore.com>
4235
4236 * mlib.adb: Minor code reorganization
4237 Minor reformatting
4238
4239 * make.adb: Minor reformatting
4240
4241 * prj-attr.ads: Minor reformatting
4242
4243 * s-os_lib.adb: Minor reformatting
4244
4245 * s-fileio.adb: Minor code reorganization
4246 Minor reformatting
4247
4248 * prj.ads: Minor reformatting
4249
4250 2008-08-05 Bob Duff <duff@adacore.com>
4251
4252 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
4253 unresolved initial value of "null", because it causes implicitly
4254 generated "=" operators to be ambiguous, and because this type should
4255 not be passed to gigi.
4256
4257 2008-08-05 Vincent Celier <celier@adacore.com>
4258
4259 * mlib.adb: Update comments.
4260
4261 * make.adb (Switches_Of): Check for Switches (others), before checking
4262 for Default_Switches ("Ada").
4263 (Gnatmake): Use Builder'Switches (others) in preference to
4264 Builder'Default_Switches ("Ada") if there are several mains.
4265
4266 * prj-attr-pm.adb:
4267 (Add_Attribute): Add component Others_Allowed in Attribute_Record
4268 aggregate.
4269
4270 * prj-attr.adb:
4271 Add markers to indicates that attributes Switches allow others as index
4272 (Others_Allowed_For): New Boolean function, returning True for
4273 attributes with the mark.
4274 (Initialize): Recognize optional letter 'O' as the marker for
4275 associative array attributes where others is allowed as the index.
4276
4277 * prj-attr.ads:
4278 (Others_Allowed_For): New Boolean function
4279 (Attribute_Record): New Boolean component Others_Allowed
4280
4281 * prj-dect.adb:
4282 (Parse_Attribute_Declaration): For associative array attribute where
4283 others is allowed as the index, allow others as an index.
4284
4285 * prj-nmsc.adb:
4286 (Process_Binder): Skip associative array attributes with index others
4287 (Process_Compiler): Ditto
4288
4289 * prj-util.adb:
4290 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
4291 index is All_Other_Names.
4292
4293 * prj.ads:
4294 (All_Other_Names): New constant
4295
4296 * prj-proc.adb:
4297 (Process_Declarative_Items): Skip associative array attribute when index
4298 is reserved word "others".
4299
4300 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
4301
4302 * gen-oscons.c: Adapt for VMS where termios.h is not available.
4303
4304 2008-08-05 Thomas Quinot <quinot@adacore.com>
4305
4306 * a-rttiev.adb: Minor reformatting (comments)
4307
4308 * gen-soccon.c: Rename to gen-oscons.c
4309
4310 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
4311 GNAT.Sockets.Constants.
4312 Add new constants for GNAT.Serial_Communications and System.File_IO.
4313
4314 2008-08-05 Javier Miranda <miranda@adacore.com>
4315
4316 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
4317 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
4318 implementation of this routine has been simplified.
4319
4320 2008-08-05 Pascal Obry <obry@adacore.com>
4321
4322 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
4323 Set_Read_Only Win32 implementation.
4324
4325 2008-08-05 Thomas Quinot <quinot@adacore.com>
4326
4327 * exp_strm.adb: Minor reformatting (comments)
4328
4329 * sem_ch12.adb: Minor reformatting.
4330
4331 2008-08-05 Robert Dewar <dewar@adacore.com>
4332
4333 * sem_ch3.adb: Minor reformatting
4334
4335 * checks.adb: Minor reformatting
4336
4337 2008-08-05 Thomas Quinot <quinot@adacore.com>
4338
4339 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
4340 restriction on Prefix.
4341
4342 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
4343
4344 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
4345 methods needed to handle switch sections when building a command line.
4346 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
4347 Current_Section): New public methods or methods modified to handle
4348 building command lines with sections.
4349 (Set_Command_Line): Take into account sections when analysing a switch
4350 string.
4351 (Start): Sort the switches by sections before iterating the command line
4352 elements.
4353
4354 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
4355 Is_New_Section, Current_Section): New methods or methods modified to
4356 handle building command lines with sections.
4357
4358 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4359
4360 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
4361 discriminants, indicate that the corresponding object declaration has
4362 no initialization, to prevent spurious warnings when the access type is
4363 null-excluding.
4364
4365 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4366
4367 * sem_res.adb (Resolve_Call): If this is a call to the predefined
4368 Abort_Task, warn if the call appears within a protected operation.
4369
4370 2008-08-04 Robert Dewar <dewar@adacore.com>
4371
4372 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
4373
4374 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4375
4376 * sem_ch3.adb:
4377 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
4378 anonymous access to protected subprogram that is the return type of the
4379 specification of a subprogram body.
4380
4381 * sem_ch6.adb:
4382 (Analyze_Subprogram_Body): if the return type is an anonymous access to
4383 subprogram, freeze it now to prevent access anomalies in the back-end.
4384
4385 * exp_ch9.adb: Minor code cleanup.
4386 Make sure that new declarations are inserted into the tree before
4387 analysis (from code reading).
4388
4389 2008-08-04 Robert Dewar <dewar@adacore.com>
4390
4391 * exp_ch5.adb:
4392 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
4393 at point of return.
4394
4395 2008-08-04 Thomas Quinot <quinot@adacore.com>
4396
4397 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
4398
4399 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
4400
4401 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
4402
4403 2008-08-04 Javier Miranda <miranda@adacore.com>
4404
4405 * sem_prag.adb (Process_Convention): Add missing support for
4406 N_Private_Extension_Declaration nodes.
4407
4408 2008-08-04 Robert Dewar <dewar@adacore.com>
4409
4410 * exp_ch4.adb: Minor reformatting
4411
4412 2008-08-04 Pascal Obry <obry@adacore.com>
4413
4414 * adaint.h: Add missing prototype.
4415
4416 * adaint.c: Refine support for Windows file attributes.
4417
4418 2008-08-04 Robert Dewar <dewar@adacore.com>
4419
4420 * sem_res.adb:
4421 (Valid_Conversion): Catch case of designated types having different
4422 sizes, even though they statically match.
4423
4424 2008-08-04 Javier Miranda <miranda@adacore.com>
4425
4426 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
4427 added in previous patch to handle access to subprograms.
4428
4429 2008-08-04 Robert Dewar <dewar@adacore.com>
4430
4431 * freeze.adb:
4432 (Freeze_Entity): Only check No_Default_Initialization restriction for
4433 constructs that come from source
4434
4435 2008-08-04 Thomas Quinot <quinot@adacore.com>
4436
4437 * exp_ch6.adb: Minor comment fix.
4438
4439 * sem_ch4.adb: Minor reformatting.
4440
4441 2008-08-04 Robert Dewar <dewar@adacore.com>
4442
4443 * sem_res.adb: (Large_Storage_Type): Improve previous change.
4444
4445 2008-08-04 Pascal Obry <obry@adacore.com>
4446
4447 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
4448 file attributes.
4449
4450 2008-08-04 Javier Miranda <miranda@adacore.com>
4451
4452 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
4453 for N_Formal_Object_Declaration nodes. Adding kludge required by
4454 First_Formal to provide its functionality with access to functions.
4455 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
4456 for anonymous access types returned by functions.
4457
4458 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
4459 conversion of null-excluding access types (required only once to force
4460 the generation of the required runtime check).
4461
4462 * sem_type.adb (Covers): minor reformating
4463
4464 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
4465 with internally generated nodes. Avoid generating the error inside init
4466 procs.
4467
4468 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
4469 (Resolve_Null): Generate the null-excluding check in case of assignment
4470 to a null-excluding object.
4471 (Valid_Conversion): Add missing support for anonymous access to
4472 subprograms.
4473
4474 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
4475 anonymous access types whose designated type is an itype. This case
4476 occurs with anonymous access to protected subprograms types.
4477 (Analyze_Return_Type): Add missing support for anonymous access to
4478 protected subprogram.
4479
4480 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
4481 subprograms addition of missing check on matching convention. Required
4482 to properly handle access to protected subprogram types.
4483
4484 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
4485 null excluding access types.
4486
4487 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4488
4489 * sem_ch12.adb: Add comments
4490
4491 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
4492 access type and the allocator is not initialized, warn rather than
4493 reporting an error.
4494
4495 2008-08-04 Robert Dewar <dewar@adacore.com>
4496
4497 * exp_ch4.adb: Minor reformatting
4498
4499 * exp_dist.adb: Minor reformatting
4500
4501 * g-comlin.adb: Minor reformatting
4502
4503 2008-08-04 Gary Dismukes <dismukes@adacore.com>
4504
4505 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
4506 target to the type of the aggregate in the case where the target object
4507 is class-wide.
4508
4509 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
4510 result type is class-wide and inherently limited, and the expression
4511 has a specific type, create a return object of the specific type, for
4512 more efficient handling of returns of build-in-place aggregates (avoids
4513 conversions of the class-wide return object to the specific type on
4514 component assignments).
4515
4516 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
4517 about a type mismatch for a class-wide function with a return object
4518 having a specific type when the object declaration doesn't come from
4519 source. Such an object can result from the expansion of a simple return.
4520
4521 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
4522
4523 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
4524
4525 * gcc-interface/Makefile.in: Use 64bit-specific system files when
4526 compiling for 64bit windows.
4527
4528 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
4529
4530 * g-comlin.adb (Group_Switches): Preserve the switch order when
4531 grouping and allow switch grouping of switches with more than one
4532 character extension (e.g. gnatw.x).
4533 (Args_From_Expanded): Remove this now obsolete method.
4534
4535 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4536
4537 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
4538 chain at once, to ensure that type is properly decorated for back-end,
4539 when allocator appears within a loop.
4540
4541 2008-08-04 Kevin Pouget <pouget@adacore.com>
4542
4543 * snames.h, snames.adb, snames.ads:
4544 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
4545
4546 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
4547 Build_To_Any_Call and Build_TypeCode_Call procedures.
4548
4549 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
4550
4551 * rtsfind.ads: Add corresponding names.
4552
4553 * tbuild.adb: Update prefix restrictions to allow '_' character.
4554
4555 2008-08-04 Doug Rupp <rupp@adacore.com>
4556
4557 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
4558 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
4559 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
4560 use it. Calculate pointer range overflow using 64bit types.
4561
4562 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4563
4564 * sem_ch3.adb (Access_Definition): A formal object declaration is a
4565 legal context for an anonymous access to subprogram.
4566
4567 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
4568 indirect call, report success to the caller to include possible
4569 interpretation.
4570
4571 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
4572 check when the type
4573 of the extended return is an anonymous access_to_subprogram type.
4574
4575 * sem_res.adb:
4576 (Resolve_Call): Insert a dereference if the type of the subprogram is an
4577 access_to_subprogram and the context requires its return type, and a
4578 dereference has not been introduced previously.
4579
4580 2008-08-04 Arnaud Charlet <charlet@adacore.com>
4581
4582 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
4583 gnatcheck support in GPS.
4584
4585 2008-08-04 Vincent Celier <celier@adacore.com>
4586
4587 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
4588 requested
4589
4590 2008-08-04 Vincent Celier <celier@adacore.com>
4591
4592 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
4593 variable, but don't check the resulting value as it has no impact on
4594 the processing.
4595
4596 * opt.ads:
4597 (Generate_Processed_File): New Boolean flag, set to True in the compiler
4598 when switch -gnateG is used.
4599
4600 * prep.adb:
4601 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
4602 when the source is modified by the preprocessor and there is no
4603 preprocessing errors.
4604
4605 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
4606
4607 * sinput-l.adb:
4608 (Load_File): Output the result of preprocessing if the source text was
4609 modified.
4610
4611 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
4612
4613 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
4614
4615 * ug_words: Add VMS equivalent for -gnateG
4616
4617 * vms_data.ads:
4618 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
4619
4620 2008-08-04 Doug Rupp <rupp@adacore.com>
4621
4622 * gcc-interface/utils2.c:
4623 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
4624 in 32bit descriptor.
4625
4626 2008-08-04 Robert Dewar <dewar@adacore.com>
4627
4628 * par-ch10.adb: Minor reformatting
4629
4630 * i-cobol.adb: Minor reformatting.
4631
4632 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4633
4634 * sem_ch3.adb (Access_Definition): Create an itype reference for an
4635 anonymous access return type of a regular function that is not a
4636 compilation unit.
4637
4638 2008-08-04 Vincent Celier <celier@adacore.com>
4639
4640 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
4641
4642 * snames.adb: New standard name Global_Compilation_Switches
4643
4644 * snames.ads: New standard name Global_Compilation_Switches
4645
4646 * make.adb: Correct spelling error in comment
4647
4648 2008-08-04 Arnaud Charlet <charlet@adacore.com>
4649
4650 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
4651 target.
4652
4653 2008-08-04 Thomas Quinot <quinot@adacore.com>
4654
4655 * sem_ch10.adb: Minor comment fix.
4656
4657 2008-08-04 Robert Dewar <dewar@adacore.com>
4658
4659 * restrict.adb: Improved messages for restriction warnings
4660
4661 * restrict.ads: Improved messages for restriction messages
4662
4663 * s-rident.ads (Profile_Name): Add No_Profile
4664
4665 2008-08-04 Robert Dewar <dewar@adacore.com>
4666
4667 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
4668
4669 2008-08-04 Robert Dewar <dewar@adacore.com>
4670
4671 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
4672
4673 2008-08-04 Vincent Celier <celier@adacore.com>
4674
4675 * prj-proc.adb:
4676 (Copy_Package_Declarations): When inheriting package Naming from a
4677 project being extended, do not inherit source exception names.
4678
4679 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4680
4681 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
4682 list of declaration to find previous subprogram, do not go to the
4683 original node of a generic unit.
4684
4685 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
4686
4687 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
4688 New case. Convert BOOLEAN_TYPE operation to the default integer type.
4689
4690 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
4691
4692 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
4693 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
4694 and adjust for above renaming.
4695 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
4696 gnu_expr_alt_type parameter. Convert the expression to it instead
4697 of changing its type in place.
4698 (build_function_stub): Adjust call to above function.
4699
4700 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
4701
4702 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
4703 code. Do not get full definition of deferred constants with address
4704 clause for a use. Do not ignore deferred constant definitions with
4705 address clause. Ignore constant definitions already marked with the
4706 error node.
4707 <object>: Remove obsolete comment. For a deferred constant with
4708 address clause, get the initializer from the full view.
4709 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
4710 Rework and remove obsolete comment.
4711 <N_Object_Declaration>: For a deferred constant with address clause,
4712 mark the full view with the error node.
4713 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
4714 formatting nits.
4715
4716 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
4717
4718 * rtsfind.ads: Add block IO versions of stream routines for Strings.
4719
4720 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
4721 sem_prag.adb, snames.adb, snames.ads, snames.h,
4722 par-prag.adb: Undo previous stream related changes.
4723
4724 * s-rident.ads: Add new restriction No_Stream_Optimizations.
4725
4726 * s-ststop.ads, s-ststop.adb: Comment reformatting.
4727 Define enumeration type to designate different IO mechanisms.
4728 Enchance generic package Stream_Ops_Internal to include an
4729 implementation of Input and Output.
4730
4731 * exp_attr.adb (Find_Stream_Subprogram): If restriction
4732 No_Stream_Optimization is active, choose the default byte IO
4733 implementations of stream attributes for Strings.
4734 Otherwise use the corresponding block IO version.
4735
4736 2008-08-01 Olivier Hainque <hainque@adacore.com>
4737
4738 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
4739 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
4740
4741 2008-08-01 Robert Dewar <dewar@adacore.com>
4742
4743 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
4744 convert plain identifier into defining identifier.
4745
4746 2008-08-01 Robert Dewar <dewar@adacore.com>
4747
4748 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
4749 warnings
4750
4751 * lib-xref.adb: Add error defense.
4752
4753 2008-08-01 Bob Duff <duff@adacore.com>
4754
4755 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
4756
4757 2008-08-01 Gary Dismukes <dismukes@adacore.com>
4758
4759 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
4760 correct accessibility levels. In the "when others" case, retrieve the
4761 access level of the Etype of Prev rather than Prev_Orig, because the
4762 original exression has not always been analyzed.
4763
4764 2008-08-01 Robert Dewar <dewar@adacore.com>
4765
4766 * prj-nmsc.adb: Minor reformatting
4767
4768 * sem_ch4.adb: Minor reformatting
4769 Minor code reorganization
4770
4771 * prj.ads: Minor reformatting
4772
4773 * s-os_lib.adb: Minor reformatting
4774
4775 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
4776 half encodings
4777
4778 * scans.ads: Minor reformatting.
4779
4780 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
4781 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
4782
4783 * sem_res.adb:
4784 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
4785
4786 * sem_ch12.adb: Minor comment reformatting
4787
4788 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
4789 keyword
4790
4791 2008-08-01 Robert Dewar <dewar@adacore.com>
4792
4793 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
4794 generating code
4795
4796 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4797
4798 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
4799 converted is a real literal and the target type has static bounds,
4800 perform the conversion exactly to prevent floating-point anomalies on
4801 some targets.
4802
4803 2008-08-01 Vincent Celier <celier@adacore.com>
4804
4805 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
4806
4807 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
4808
4809 * prj.adb (Object_Exist_For): Use Object_Generated, not
4810 Objects_Generated that is removed and was never modified anyway.
4811
4812 * prj.ads:
4813 (Path_Syntax_Kind): New enumeration type
4814 (Language_Config): New component Path_Syntax, defaulted to Host.
4815 Components PIC_Option and Objects_Generated removed, as they are not
4816 used.
4817
4818 * snames.adb: New standard name Path_Syntax
4819
4820 * snames.ads: New standard name Path_Syntax
4821
4822 2008-08-01 Vincent Celier <celier@adacore.com>
4823
4824 * mlib-utl.adb:
4825 (Adalib_Path): New variable to store the path of the adalib directory
4826 when procedure Specify_Adalib_Dir is called.
4827 (Lib_Directory): If Adalib_Path is not null, return its value
4828 (Specify_Adalib_Dir): New procedure
4829
4830 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
4831
4832 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4833
4834 * sem_prag.adb:
4835 (Check_Precondition_Postcondition): If not generating code, analyze the
4836 expression in a postcondition that appears in a subprogram body, so that
4837 it is properly decorated for ASIS use.
4838
4839 2008-08-01 Gary Dismukes <dismukes@adacore.com>
4840
4841 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
4842 Orig_Prev to Prev in the case where the actual is N_Function_Call or
4843 N_Identifier. This was interfering with other cases that are rewritten
4844 as N_Identifier, such as allocators, resulting in passing of the wrong
4845 accessibility level, and based on testing this code is apparently no
4846 longer needed at all.
4847
4848 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4849
4850 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
4851 procedure call whose prefix
4852 is a parameterless function call that returns an access_to_procedure.
4853
4854 2008-08-01 Jose Ruiz <ruiz@adacore.com>
4855
4856 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
4857 for RTX. Adding a suffix that is incremented at each iteration.
4858
4859 2008-08-01 Robert Dewar <dewar@adacore.com>
4860
4861 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
4862 Raise_Exception
4863
4864 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
4865
4866 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
4867 paths, which are authorized by Windows but can lead to errors when used
4868 elsewhere.
4869
4870 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4871
4872 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
4873 a pending instantiation for the body of a subprogram that is to be
4874 inlined.
4875
4876 * sem_ch12.adb:
4877 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
4878
4879 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
4880 create a pending instance for its body, so that calls to the subprogram
4881 can be inlined by the back-end.
4882
4883 2008-08-01 Jose Ruiz <ruiz@adacore.com>
4884
4885 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
4886 rts-rtx-w32).
4887
4888 2008-08-01 Robert Dewar <dewar@adacore.com>
4889
4890 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
4891
4892 2008-08-01 Doug Rupp <rupp@adacore.com>
4893
4894 * gnat_rm.texi: Document new mechanism Short_Descriptor.
4895
4896 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
4897 mechanism values.
4898
4899 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
4900 mechanism and Short_Descriptor mechanism values.
4901
4902 * snames.adb (preset_names): Add short_descriptor entry.
4903
4904 * snames.ads: Add Name_Short_Descriptor.
4905
4906 * types.h: Add new By_Short_Descriptor mechanism values.
4907
4908 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
4909 mechanism and Short_Descriptor mechanism values.
4910
4911 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
4912 values.
4913 (Descriptor_Codes): Modify range for new mechanism values.
4914
4915 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
4916 mechanism values.
4917
4918 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
4919 (gnat_to_gnu_param): Handle By_Short_Descriptor.
4920
4921 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
4922 (build_vms_descriptor32): New prototype.
4923 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
4924
4925 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
4926 argument in call fill_vms_descriptor.
4927
4928 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
4929 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
4930 (build_vms_descriptor): Renamed from build_vms_descriptor64.
4931 (convert_vms_descriptor32): New function.
4932 (convert_vms_descriptor64): New function.
4933 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
4934 descriptors.
4935
4936 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
4937 no longer needed.
4938
4939 2008-08-01 Jose Ruiz <ruiz@adacore.com>
4940
4941 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
4942 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
4943 name.
4944
4945 2008-08-01 Jose Ruiz <ruiz@adacore.com>
4946
4947 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
4948 current directory so only fully qualified names are allowed.
4949
4950 2008-08-01 Robert Dewar <dewar@adacore.com>
4951
4952 * gnat_ugn.texi:
4953 Minor editing, remove uncomfortable use of semicolon
4954
4955 * s-ststop.adb: Add some ??? comments
4956
4957 * sem_ch10.adb: Minor reformatting
4958
4959 * snames.ads:
4960 Minor comment fixes, some pragmas were not properly
4961 categorized in the comments, documentation change only
4962
4963 * xref_lib.adb: Minor reformatting
4964
4965 * sinput.adb: Minor reformatting
4966
4967 * gnatchop.adb: Minor reformatting
4968
4969 * sem_util.ads: Minor reformatting.
4970
4971 * opt.ads: Minor documentation fix
4972
4973 * scng.adb: Minor reformatting
4974
4975 * prj-part.adb: Update comments
4976
4977 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4978
4979 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
4980 tagged synchronized type, use corresponding record type.
4981
4982 2008-08-01 Doug Rupp <rupp@adacore.com>
4983
4984 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
4985 dummy transfer address for debugging.
4986
4987 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
4988
4989 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
4990
4991 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
4992
4993 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
4994 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
4995
4996 2008-07-31 Pascal Obry <obry@adacore.com>
4997
4998 * prj-nmsc.adb: Keep Object and Exec directory casing.
4999
5000 2008-07-31 Jose Ruiz <ruiz@adacore.com>
5001
5002 * system-rtx-rtss.ads
5003 Change the default stack size. It is important to set the commit part.
5004
5005 * s-taprop-rtx.adb
5006 (Initialize): Get the clock resolution.
5007 (RT_Resolution): Return the clock resolution that is indicated by the
5008 system.
5009
5010 * s-parame-vxworks.adb
5011 Document that this body is used for RTX in RTSS (kernel) mode.
5012
5013 * gcc-interface/Makefile.in
5014 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
5015 s-parame-vxworks.adb body in order to have reasonable stack sizes in
5016 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
5017 cannot ask for too big values.
5018
5019 2008-07-31 Robert Dewar <dewar@adacore.com>
5020
5021 * exp_aggr.adb: Minor reformatting
5022
5023 * makeutl.adb: Minor reformatting
5024
5025 * prj-env.adb: Minor reformatting
5026
5027 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5028
5029 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
5030 tagged type is completed by a concurrent type.
5031
5032 2008-07-31 Gary Dismukes <dismukes@adacore.com>
5033
5034 * sem_aggr.adb:
5035 (Resolve_Record_Aggregate): Bypass error that a type without
5036 components must have a "null record" aggregate when compiling for Ada
5037 2005, since it's legal to give an aggregate of form (others => <>)
5038 for such a type.
5039
5040 2008-07-31 Javier Miranda <miranda@adacore.com>
5041
5042 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
5043 handle synchronized types. Required to handle well the object.operation
5044 notation applied to synchronized types.
5045
5046 2008-07-31 Quentin Ochem <ochem@adacore.com>
5047
5048 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
5049 anymore - just used internally.
5050 Added handling of very small tasks - when the theoretical size is
5051 already full at the point of the call.
5052 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
5053 not need to be added to the result.
5054
5055 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5056
5057 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
5058 corresponding spec is a primitive wrapper. Update comment.
5059
5060 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5061
5062 * bindgen.adb Comment reformatting. Update the list of run-time globals.
5063 (Gen_Adainit_Ada): Add the declaration, import and value set for
5064 configuration flag Canonical_Streams.
5065 (Gen_Adainit_C): Add the declaration and initial value of external
5066 symbol __gl_canonical_streams.
5067
5068 * init.c: Update the list of global values computed by the binder.
5069
5070 * opt.ads: Add flag Canonical_Streams.
5071
5072 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
5073 semantically handled pragmas.
5074
5075 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
5076 (Analyze_Pragma): Add case for pragma Canonical_Streams.
5077
5078 * snames.adb: Add character value for name Canonical_Streams.
5079
5080 * snames.ads:
5081 Add Name_Canonical_Streams to the list of configuration pragmas.
5082 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
5083
5084 * snames.h: Add a definition for Pragma_Canonical_Streams.
5085
5086 * s-ststop.adb:
5087 Add a flag and import to seize the value of external symbol
5088 __gl_canonical_streams. Update comment and initial value of constant
5089 Use_Block_IO.
5090
5091 * gnat_rm.texi: Add section of pragma Canonical_Streams.
5092
5093 * gnat_ugn.texi:
5094 Add pragma Canonical_Streams to the list of configuration pragmas.
5095
5096 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5097
5098 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
5099 has the form A.B.C and B is a unit renaming, analyze its compilation
5100 unit and add a with_clause on A.b to the context.
5101
5102 2008-07-31 Vincent Celier <celier@adacore.com>
5103
5104 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
5105 return the empty string, instead of raising Constraint_Error.
5106
5107 2008-07-31 Gary Dismukes <dismukes@adacore.com>
5108
5109 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
5110
5111 * checks.adb (Apply_Accessibility_Check): Insert the check on
5112 Insert_Node.
5113
5114 * exp_attr.adb:
5115 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
5116 to new parameter Insert_Node on call to Apply_Accessibility_Check.
5117 Necessary to distinguish the insertion node because the dereferenced
5118 formal may come from a rename, but the check must be inserted in
5119 front of the attribute.
5120
5121 * exp_ch4.adb:
5122 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
5123 call to Apply_Accessibility_Check.
5124 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
5125 on call to Apply_Accessibility_Check.
5126 Minor reformatting
5127
5128 2008-07-31 Javier Miranda <miranda@adacore.com>
5129
5130 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
5131 types when the candidate type is a synchronized type.
5132
5133 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
5134 types, and complete management of synchronized types adding missing
5135 code to handle formal that is a synchronized type.
5136
5137 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
5138 are not available and cause the compiler to blowup. Found compiling
5139 test with switch -gnatc
5140
5141 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
5142 Has_Correct_Formal_Mode plus code cleanup.
5143
5144 2008-07-31 Bob Duff <duff@adacore.com>
5145
5146 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
5147 recognized as two end-of-lines, but it should be just one.
5148
5149 2008-07-31 Thomas Quinot <quinot@adacore.com>
5150
5151 * exp_ch9.adb: Minor reformatting
5152
5153 * tbuild.ads: Fix several occurrences of incorrectly referring to
5154 Name_Find as Find_Name.
5155
5156 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5157
5158 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
5159 and the context is an object declaration with non-static bounds, treat
5160 the aggregate as non-static.
5161
5162 2008-07-31 Vincent Celier <celier@adacore.com>
5163
5164 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
5165 Move back spec of Parse_Single_Project to body, as it is not called
5166 outside of package Prj.Part.
5167 (Project_Data): Remove components Linker_Name, Linker_Path and
5168 Minimum_Linker_Options as they are no longer set.
5169 Remove function There_Are_Ada_Sources from package Prj and move code
5170 in the only place it was used, in Prj.Env.Set_Ada_Paths.
5171
5172 2008-07-31 Arnaud Charlet <charlet@adacore.com>
5173
5174 * mlib-utl.ads: Fix typo.
5175
5176 2008-07-31 Robert Dewar <dewar@adacore.com>
5177
5178 * sem_ch12.adb: Minor reformatting
5179
5180 2008-07-31 Sergey Rybin <rybin@adacore.com>
5181
5182 * gnat_ugn.texi: Change the description of the
5183 Overly_Nested_Control_Structures: now the rule always requires a
5184 positive parameter for '+R' option
5185
5186 2008-07-31 Thomas Quinot <quinot@adacore.com>
5187
5188 * g-pehage.adb: Minor reformatting
5189
5190 2008-07-31 Pascal Obry <obry@adacore.com>
5191
5192 * s-finimp.ads: Minor reformatting.
5193
5194 2008-07-31 Vincent Celier <celier@adacore.com>
5195
5196 * s-regexp.ads: Minor comment fix
5197
5198 2008-07-31 Arnaud Charlet <charlet@adacore.com>
5199
5200 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
5201 so that we can compile this file successfully with -gnatc.
5202
5203 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5204
5205 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
5206 of the type when looking for stream subprograms for type String,
5207 Wide_String and Wide_Wide_String.
5208
5209 * s-ststop.adb: Change the initialization expression of constant
5210 Use_Block_IO.
5211
5212 2008-07-31 Geert Bosch <bosch@adacore.com>
5213
5214 * arit64.c:
5215 New file implementing __gnat_mulv64 signed integer multiplication with
5216 overflow checking
5217
5218 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
5219
5220 * gcc-interface/gigi.h:
5221 (standard_types): Add ADT_mulv64_decl
5222 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
5223
5224 * gcc-interface/utils.c:
5225 (init_gigi_decls): Add initialization of mulv64_decl
5226
5227 * gcc-interface/trans.c:
5228 (build_unary_op_trapv): New function
5229 (build_binary_op_trapv): New function
5230 (gnat_to_gnu): Use the above functions instead of
5231 build_{unary,binary}_op
5232
5233 * gcc-interface/Makefile.in
5234 (LIBGNAT_SRCS): Add arit64.c
5235 (LIBGNAT_OBJS): Add arit64.o
5236
5237 2008-07-31 Vincent Celier <celier@adacore.com>
5238
5239 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
5240 Linker'Default_Switches are declared. Warn if they are declared.
5241
5242 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5243
5244 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
5245 Insert_Actions to place the pointer declaration in the code, rather
5246 than Insert_Before_And_Analyze, so that insertions of temporaries are
5247 kept in the proper order when transient scopes are present.
5248
5249
5250 2008-07-31 Robert Dewar <dewar@adacore.com>
5251
5252 * einfo.adb (Spec_PPC): Now defined for generic subprograms
5253
5254 * einfo.ads (Spec_PPC): Now defined for generic subprograms
5255
5256 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
5257 subprogram case
5258
5259 2008-07-31 Vincent Celier <celier@adacore.com>
5260
5261 * s-os_lib.adb: Minor comment fix
5262
5263 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5264
5265 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
5266 transfer pre/postconditions from generic copy to original tree, so that
5267 they will appear in each instance.
5268 (Process_PPCs): Do not transform postconditions into a procedure in a
5269 generic context, to prevent double expansion of check pragmas.
5270
5271 * sem_attr.adb: In an instance, the prefix of the 'result attribute
5272 can be the renaming of the
5273 current instance, so check validity of the name accordingly.
5274
5275 2008-07-31 Robert Dewar <dewar@adacore.com>
5276
5277 * mlib-utl.ads: Minor reformatting
5278
5279 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5280
5281 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
5282 from context. This attribute must be usable in Ada95 mode.
5283 The attribute can appear in the body of a function marked
5284 Inline_Always, but in this case the postocondition is not enforced.
5285
5286 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
5287 of an inlined call pre- and postconditions are legal
5288
5289 2008-07-31 Vincent Celier <celier@adacore.com>
5290
5291 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
5292 were for gprmake only
5293
5294 2008-07-31 Robert Dewar <dewar@adacore.com>
5295
5296 * gnat_ugn.texi: Update -gnatN documentation.
5297
5298 * gnat_rm.texi: Add note about pre/postcondition
5299 pragmas not checked in conjunction with front-end inlining.
5300
5301 2008-07-31 Robert Dewar <dewar@adacore.com>
5302
5303 * g-pehage.adb, g-pehage.ads: Minor reformatting
5304
5305 2008-07-31 Arnaud Charlet <charlet@adacore.com>
5306
5307 * mlib-utl.ads, prj-makr.ads: Add comments.
5308
5309 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5310
5311 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
5312 [WINDOWS]: Add s-winext.o.
5313
5314 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
5315
5316 PR ada/36554
5317 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
5318 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
5319 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
5320 Set precision to 1 for subtype of BOOLEAN_TYPE.
5321 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
5322 (make_type_from_size): Deal with BOOLEAN_TYPE.
5323 * gcc-interface/misc.c (gnat_print_type): Likewise.
5324 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
5325 Set boolean_type_node as its translation in the table, as well
5326 as boolean_false_node for False and boolean_true_node for True.
5327 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
5328 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
5329 (create_param_decl): Deal with BOOLEAN_TYPE.
5330 (build_vms_descriptor): Likewise.
5331 (build_vms_descriptor64): Likewise.
5332 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
5333
5334 2008-07-30 Robert Dewar <dewar@adacore.com>
5335
5336 * exp_ch9.adb: Minor reformatting
5337
5338 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
5339 if no primitive operation is found.
5340
5341 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
5342
5343 * sem_ch8.adb: Minor reformatting
5344
5345 2008-07-30 Laurent Pautet <pautet@adacore.com>
5346
5347 * g-pehage.adb:
5348 Remove a limitation on the length of the words handled by the minimal
5349 perfect hash function generator.
5350
5351 * g-pehage.ads:
5352 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
5353 Fix some typos.
5354
5355 2008-07-30 Robert Dewar <dewar@adacore.com>
5356
5357 * gnatlink.adb: Minor reformatting
5358
5359 2008-07-30 Thomas Quinot <quinot@adacore.com>
5360
5361 * rtsfind.adb (Check_RPC): Check version consistency even when not
5362 generating RCI stubs. Provide more detailed error message in case of
5363 mismatch.
5364
5365 2008-07-30 Ed Schonberg <schonberg@adacore.com>
5366
5367 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
5368 as a actual in an instance, check for a missing attribute to prevent
5369 program_error on an illegal program.
5370
5371 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
5372 error if primitive is not found, so that exception can be handled
5373 elsewhere on illegal programs.
5374
5375 2008-07-30 Robert Dewar <dewar@adacore.com>
5376
5377 * uintp.adb (UI_GCD): Fix potential overflow
5378
5379 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
5380
5381 * einfo.adb: Flag245 is now used.
5382 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
5383 check to include functions.
5384 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5385 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
5386 include functions.
5387 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
5388 to the list of displayed flags.
5389
5390 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
5391 Wrapped_Entity. These two flags are now present in functions.
5392 New flag Is_Private_Primitive.
5393 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5394
5395 * exp_ch9.adb:
5396 (Build_Wrapper_Bodies): New subprogram.
5397 (Build_Wrapper_Body): The spec and body have been moved to in
5398 Build_Wrapper_ Bodies. Code cleanup.
5399 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
5400 Wrappers are now generated for primitives declared between the private
5401 and full view of a concurrent type that implements an interface.
5402 (Build_Wrapper_Specs): New subprogram.
5403 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
5404 creation mechanism with a call to Build_Wrapper_Bodies.
5405 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
5406 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
5407 (Expand_N_Task_Body): Replace the wrapper body creation
5408 mechanism with a call to Build_Wrapper_Bodies.
5409 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
5410 creation mechanism with a call to Build_Wrapper_Specs.
5411 (Is_Private_Primitive_Subprogram): New subprogram.
5412 (Overriding_Possible): Code cleanup.
5413 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
5414
5415 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
5416
5417 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
5418 (Process_Full_View): Build wrapper specs for all primitives
5419 that belong to a private view completed by a concurrent type
5420 implementing an interface.
5421
5422 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
5423 is a primitive of a
5424 concurrent type with a private view that implements an interface, try to
5425 find the proper spec.
5426 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
5427 primitive if the type of its first parameter is a non-generic tagged
5428 private type.
5429 (Analyze_Subprogram_Specification): Code reformatting.
5430 (Disambiguate_Spec): New routine.
5431 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
5432 (Is_Private_Concurrent_Primitive): New routine.
5433
5434 * sem_ch6.ads:
5435 (Find_Corresponding_Spec): Add a formal to control the output of errors.
5436
5437 2008-07-30 Doug Rupp <rupp@adacore.com>
5438
5439 * gigi.h (build_vms_descriptor64): New function prototype.
5440 (fill_vms_descriptor): Modified function prototype.
5441
5442 * utils.c (build_vms_descriptor64): New function.
5443
5444 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
5445
5446 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
5447 argument.
5448
5449 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
5450 64bit and 32bit descriptor and save the 64bit version as an alternate
5451 TREE_TYPE in the parameter.
5452 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
5453 thin pointer.
5454
5455 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
5456
5457 2008-07-30 Robert Dewar <dewar@adacore.com>
5458
5459 * make.adb: Minor reformatting
5460
5461 * mlib-utl.adb: Minor reformatting
5462
5463 * osint.ads: Minor reformatting
5464
5465 2008-07-30 Jose Ruiz <ruiz@adacore.com>
5466
5467 * adaint.c
5468 (__gnat_file_exists): Do not use __gnat_stat for RTX.
5469 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
5470 avoid the use of this symbol from libgcc.a in RTX kernel mode.
5471
5472 * cio.c
5473 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
5474 the function RtPrintf for console output.
5475
5476 * argv.c Do not use the environ variable for RTX.
5477
5478 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
5479 been moved before the call to Osint.Add_Default_Search_Dirs in order
5480 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
5481 from the appropriate run time.
5482
5483 * targparm.ads
5484 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
5485 target is a RTSS module for RTX.
5486
5487 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
5488 RTX_RTSS_Kernel_Module
5489 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
5490
5491 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
5492 exception handling mechanism for Windows and RTX in Win32 mode, but
5493 not for RTX in kernel mode (RTSS).
5494 (LIBGNAT_SRCS): Remove ada.h
5495
5496 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
5497
5498 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
5499 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5500 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
5501 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
5502 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
5503 ALL_ADA_CFLAGS): Remove.
5504 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
5505 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5506 (GCC_CFLAGS): Remove X_CFLAGS.
5507 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
5508 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
5509 (ADA_CFLAGS): Substitute.
5510
5511 2008-07-30 Laurent Guerby <laurent@guerby.net>
5512
5513 PR ada/5911
5514 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
5515 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
5516 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
5517 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
5518 by stamp-gnatlib2-rts.
5519
5520 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5521
5522 PR documentation/15479
5523 * gnat-style.texi: Remove AdaCore copyright statement and GPL
5524 statement for GNAT. Add @copying stanza, use it. Update to
5525 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
5526 title as Front-Cover Text.
5527 * gnat_rm.texi: Likewise.
5528 * gnat_ugn.texi: Likewise.
5529
5530 2008-07-29 Jan Hubicka <jh@suse.cz>
5531
5532 * trans.c (process_inlined_subprograms): Remove tree_really_inline
5533 check.
5534
5535 2008-07-29 Arnaud Charlet <charlet@adacore.com>
5536
5537 * gcc-interface: New directory.
5538
5539 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
5540 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
5541 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
5542 to gcc-interface subdirectory.
5543
5544 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5545
5546 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
5547
5548 2008-07-28 Jan Hubicka <jh@suse.cz>
5549
5550 * misc.c (gnat_post_options): Do not set flag_no_inline.
5551
5552 2008-07-28 Richard Guenther <rguenther@suse.de>
5553
5554 Merge from gimple-tuples-branch.
5555
5556 2008-07-22 Olivier Hainque <hainque@adacore.com>
5557
5558 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
5559 this is called for an elab proc to be discarded if empty.
5560 * utils.c (end_subprog_body): Honor ELAB_P.
5561 (build_function_stub): Adjust call to end_subprog_body.
5562 * trans.c (Subprogram_Body_to_gnu): Likewise.
5563 (gigi): Reorganize processing of elab procs to prevent
5564 gimplifying twice, using the new end_subprog_body argument.
5565
5566 2008-07-19 Richard Guenther <rguenther@suse.de>
5567
5568 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
5569 (utils.o): Likewise.
5570 * trans.c: Include tree-iterator.h.
5571 (gnat_gimplify_expr): Adjust prototype. Fix typo.
5572 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
5573 (set_expr_location_from_node): Likewise.
5574 (gigi): Tuplify.
5575 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
5576 of GENERIC_NEXT.
5577 * utils.c: Include tree-iterator.h.
5578 * gigi.h (gnat_gimplify_expr): Adjust prototype.
5579
5580 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
5581
5582 * trans.c: Include gimple.h instead of tree-gimple.h.
5583 * utils.c: Same.
5584
5585 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
5586
5587 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
5588
5589 2008-07-25 Jan Hubicka <jh@suse.cz>
5590
5591 * utils.c (end_subprog_body): Remove inline trees check.
5592 * misc.c (gnat_post_options): Do not set flag_inline_trees.
5593
5594 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5595
5596 * raise-gcc.c: Move tsystem.h before tm.h.
5597
5598 2008-07-20 Arnaud Charlet <charlet@adacore.com>
5599
5600 * gnathtml.pl: New file.
5601
5602 2008-07-19 Olivier Hainque <hainque@adacore.com>
5603
5604 * targtyps.c (get_target_default_allocator_alignment): Use
5605 MALLOC_ABI_ALIGNMENT.
5606
5607 2008-07-17 Olivier Hainque <hainque@adacore.com>
5608
5609 * adaint.c (__MINGW32__ section): Include ctype.h and define
5610 a fallback ISALPHA if IN_RTS.
5611 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
5612
5613 2008-07-17 Olivier Hainque <hainque@adacore.com>
5614
5615 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
5616 argument, to apply to references in addition to definitions. Prevent
5617 setting TREE_STATIC on externals.
5618 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
5619
5620 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5621
5622 PR documentation/15479
5623 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
5624 Replace backets around optional parameters with @ovar
5625 where possible, use @r{[}, @r{]} otherwise.
5626 Replace some @r, @i, and @emph with @var where appropriate.
5627
5628 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
5629
5630 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
5631
5632 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5633
5634 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
5635 -Wc++-compat warnings.
5636 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
5637 __gnat_locate_exec_on_path): Likewise.
5638 * decl.c (annotate_value): Likewise.
5639 * misc.c (gnat_handle_option): Likewise.
5640 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
5641 post_error_ne_tree): Likewise.
5642
5643 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
5644
5645 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
5646 version of its type, attempt to first convert its elements.
5647
5648 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
5649
5650 * Makefile.in: Fix *86 kfreebsd target specific pairs.
5651
5652 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
5653
5654 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
5655
5656 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
5657
5658 * utils2.c (known_alignment): Derive the alignment from pointed-to
5659 types only if it is otherwise unknown.
5660 <INTEGER_CST>: Tidy.
5661 <MULT_EXPR>: Likewise.
5662 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
5663 that of the base.
5664
5665 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5666
5667 PR ada/36573
5668 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
5669
5670 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5671
5672 * gnat_rm.texi (Implementation Defined Characteristics)
5673 (Standard Library Routines): Use @smallexample for indented
5674 text. Drop Indentation outside examples.
5675 * gnat_ugn.texi: Likewise.
5676
5677 2008-06-13 Olivier Hainque <hainque@adacore.com>
5678
5679 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
5680 if undefined.
5681 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
5682 realignment with force_align_arg_pointer attribute on foreign
5683 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5684
5685 2008-06-13 Olivier Hainque <hainque@adacore.com>
5686
5687 * utils.c (rest_of_record_type_compilation): When computing
5688 encodings for the components of a variable size type, early
5689 strip conversions on the current position expression to make
5690 sure it's shape is visible. Use remove_conversions for this
5691 purpose.
5692
5693 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5694
5695 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
5696 constrained subtype of a discriminated type, discard the fields that
5697 are beyond its limits according to its size.
5698
5699 2008-06-10 Olivier Hainque <hainque@adacore.com>
5700
5701 * utils.c (create_subprog_decl): If this is for the 'main' entry
5702 point according to the asm name, redirect main_identifier_node.
5703
5704 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
5705
5706 * decl.c (components_to_record): Adjust the packedness for the
5707 qualified union as well.
5708
5709 2008-06-09 Arnaud Charlet <charlet@adacore.com>
5710
5711 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
5712 checks non fatal.
5713
5714 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
5715
5716 * sem_res.adb (Large_Storage_Type): A type is large if it
5717 requires as many bits as Positive to store its values and its
5718 bounds are known at compile time.
5719 * sem_ch13.adb (Minimum_Size): Note that this function returns
5720 0 if the size is not known at compile time.
5721
5722 2008-06-06 Nicolas Setton <setton@adacore.com>
5723 Olivier Hainque <hainque@adacore.com>
5724
5725 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
5726 attribute, parallel descriptive type attached to another
5727 type for debug info generation purposes.
5728 * utils.c (add_parallel_type): New function, register
5729 parallel type to be attached to a type.
5730 (get_parallel_type): New function, fetch a registered
5731 parallel type, if any.
5732 (rest_of_record_type_compilation): Register the parallel
5733 type we make for variable size records.
5734 * gigi.h (add_parallel_type, get_parallel_type): Declare.
5735 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
5736 parallel debug types we make.
5737 * trans.c (extract_encoding, decode_name): New functions.
5738 (gigi): If the DWARF attribute extensions are available, setup
5739 to use them.
5740 * lang.opt: Register language specific processing request
5741 for -gdwarf+.
5742 * misc.c (gnat_dwarf_extensions): New global variable. How much
5743 do we want of our DWARF extensions. 0 by default.
5744 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
5745 (gnat_post_options): Map gnat_dwarf_extensions to the
5746 commonuse_gnu_debug_info_extensions for later processing.
5747
5748 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
5749
5750 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
5751
5752 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5753
5754 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
5755 * gnat_ugn.texi (Style Checking)
5756 (Adding the Results of Compiler Checks to gnatcheck Output)
5757 (Example of Binder Output File): Fix typos.
5758 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
5759 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
5760 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
5761 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
5762 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
5763 sinfo.ads, utils.c: Fix typos in comments.
5764 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
5765
5766 2008-05-29 Thomas Quinot <quinot@adacore.com>
5767
5768 * sem_eval.adb: Minor reformatting
5769
5770 2008-05-29 Ed Schonberg <schonberg@adacore.com>
5771
5772 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
5773 is abstract, do not apply abstractness check on subprogram if this is
5774 a renaming declaration.
5775
5776 2008-05-29 Arnaud Charlet <charlet@adacore.com>
5777
5778 PR ada/864
5779 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
5780 allow recognition of program suffix in addition to prefix.
5781
5782 * gnatchop.adb (Locate_Executable): Add support for prefix.
5783
5784 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
5785 mlib-utl.adb: Adjust calls to Program_Name.
5786
5787 2008-05-29 Robert Dewar <dewar@adacore.com>
5788
5789 * sem_ch3.adb: Minor reformatting
5790 * sem_prag.adb: Minor reformatting
5791 * sem_res.adb: Minor reformatting
5792 * sinput-p.ads: Minor reformatting
5793
5794 2008-05-29 Javier Miranda <miranda@adacore.com>
5795
5796 * sem_util.adb:
5797 (Abstract_Interface_List): Add missing support for full type-declaration
5798 associated with synchronized types.
5799
5800 2008-05-29 Robert Dewar <dewar@adacore.com>
5801
5802 * sem_eval.adb (Is_Same_Value): Take care of several more cases
5803
5804 2008-05-28 Ed Schonberg <schonberg@adacore.com>
5805
5806 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
5807 access type, wrap the expression in a conversion to force an
5808 accessibility check.
5809
5810 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
5811 accessibility checks even when expansion is disabled in order to
5812 generate messages in the presence of previous errors or in
5813 semantics-only mode.
5814
5815 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
5816
5817 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
5818 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
5819
5820 2008-05-28 Vincent Celier <celier@adacore.com>
5821
5822 PR ada/34446
5823 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
5824 preprocessing expressions
5825
5826 2008-05-28 Vincent Celier <celier@adacore.com>
5827
5828 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
5829 for preprocessing
5830
5831 * sinput-p.ads: Minor comment update and reformatting
5832
5833 2008-05-28 Ed Schonberg <schonberg@adacore.com>
5834
5835 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
5836 type has a deeper level than any master only when it is the type of an
5837 access parameter.
5838
5839 2008-05-28 Javier Miranda <miranda@adacore.com>
5840
5841 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
5842
5843 2008-05-28 Javier Miranda <miranda@adacore.com>
5844
5845 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
5846 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
5847 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
5848 Add code that was previously located in
5849 Find_Overridden_Synchronized_Primitive because it is only used here.
5850
5851 2008-05-28 Sergey Rybin <rybin@adacore.com>
5852
5853 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
5854 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
5855
5856 2008-05-28 Robert Dewar <dewar@adacore.com>
5857
5858 * restrict.ads:
5859 Add missing restrictions, and properly label all GNAT defined ones
5860
5861 * rtsfind.ads:
5862 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
5863 Add entry for Ada.Task_Termination.Set_Specific_Handler
5864 Add entry for Ada.Task_Termination.Specific_Handler
5865
5866 * s-rident.ads:
5867 Add missing restrictions and properly mark all gnat defined ones
5868
5869 * sem_ch3.adb:
5870 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
5871
5872 * sem_res.adb:
5873 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
5874
5875 * gnat_rm.texi: Add missing restrictions, and properly label all
5876 GNAT defined ones
5877
5878 2008-05-28 Robert Dewar <dewar@adacore.com>
5879
5880 * restrict.adb:
5881 (Check_Restriction): violation of restriction No_Finalization is
5882 treated as a serious error to stop expansion
5883
5884 2008-05-28 Robert Dewar <dewar@adacore.com>
5885
5886 * exp_util.adb: Minor reformatting
5887 * exp_util.ads: Minor reformatting.
5888
5889 2008-05-28 Arnaud Charlet <charlet@adacore.com>
5890
5891 * Make-lang.in: Remove gprmake.
5892
5893 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
5894
5895 2008-05-28 Ed Schonberg <schonberg@adacore.com>
5896
5897 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
5898 improper progenitor names, and avoid cascaded errors.
5899
5900 2008-05-28 Robert Dewar <dewar@adacore.com>
5901
5902 * gnat_rm.texi: Add note on Old giving warning when applied to constant
5903
5904 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
5905 a constant
5906
5907 2008-05-28 Robert Dewar <dewar@adacore.com>
5908
5909 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
5910 size
5911
5912 2008-05-28 Robert Dewar <dewar@adacore.com>
5913
5914 * exp_ch5.adb:
5915 (Expand_Simple_Function_Return): Copy unaligned result into temporary
5916
5917 2008-05-28 Javier Miranda <miranda@adacore.com>
5918
5919 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
5920 for user-defined predefined primitives.
5921
5922 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
5923 (Find_Overridden_Synchronized_Primitive): Ditto.
5924
5925 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
5926
5927 2008-05-27 Arnaud Charlet <charlet@adacore.com>
5928
5929 * a-ststio.adb, s-direio.adb:
5930 Further code clean up of previous change.
5931 Update comments.
5932
5933 2008-05-27 Vincent Celier <celier@adacore.com>
5934
5935 * prj-nmsc.adb: Minor reformatting
5936
5937 2008-05-27 Bob Duff <duff@adacore.com>
5938
5939 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
5940 untagged private type with a tagged full type, where the full type has
5941 a self reference, create the corresponding class-wide type early, in
5942 case the self reference is "access T'Class".
5943
5944 2008-05-27 Ed Schonberg <schonberg@adacore.com>
5945
5946 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
5947 tasks and context is an object declaration. create master entity before
5948 expansion.
5949
5950 2008-05-27 Robert Dewar <dewar@adacore.com>
5951
5952 * mlib-prj.adb: Minor reformatting
5953
5954 * prj-part.adb: Minor reformatting
5955
5956 * prj.ads: Minor reformatting
5957
5958 * exp_ch3.adb: Minor reformatting.
5959
5960 * sem_ch3.ads: Minor reformatting
5961
5962 * sem_eval.adb: Minor reformatting
5963
5964 2008-05-27 Vincent Celier <celier@adacore.com>
5965
5966 * gnatcmd.adb:
5967 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
5968
5969 2008-05-27 Ed Schonberg <schonberg@adacore.com>
5970
5971 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
5972 tasks, create an activation chain now, before the expansion into
5973 assignments and build-in-place calls that require the presence of an
5974 activation chain.
5975 (Backend_Processing_Possible): If the component type is inherently
5976 limited, the aggregate must be expanded into individual built-in-place
5977 assignments.
5978
5979 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
5980 determine whether an allocation extra parameter must be built, to
5981 handle case of a private type whose full type is a discriminated type
5982 with defaults.
5983
5984 2008-05-27 Bob Duff <duff@adacore.com>
5985
5986 * gnat_rm.texi:
5987 Document the new behavior regarding trampolines.
5988
5989 2008-05-27 Arnaud Charlet <charlet@adacore.com>
5990
5991 * a-direio.adb, a-sequio.adb: Replace address clause by
5992 unrestricted_access, simpler and compatible with .NET.
5993
5994 2008-05-27 Vincent Celier <celier@adacore.com>
5995
5996 * prj-part.adb:
5997 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
5998 a project file, so that symbolic links are not resolved.
5999
6000 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6001
6002 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
6003 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
6004 portable across GNAT targets, since this kind of address clause is not
6005 supported by VM back-ends (.NET/JGNAT).
6006
6007 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6008
6009 * bindgen.adb: Update comments.
6010
6011 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
6012
6013 2008-05-27 Vincent Celier <celier@adacore.com>
6014
6015 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
6016 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
6017 mlib-tgt.adb, prj-env.adb, prj-env.ads:
6018 (Path_Information): New record type
6019 Use component of type Path_Information when there are two paths, one in
6020 canonical format and one in display format.
6021 Update the project manager to these new components.
6022
6023 2008-05-27 Robert Dewar <dewar@adacore.com>
6024
6025 * makeutl.adb: Minor reformatting
6026 * prj-nmsc.adb: Minor reformatting
6027 * s-stausa.adb: Minor reformatting
6028 * s-stausa.ads: Minor reformatting
6029 * sem_ch6.adb: Minor reformatting
6030
6031 2008-05-27 Thomas Quinot <quinot@adacore.com>
6032
6033 * sem_res.adb: Minor comment fixes
6034
6035 2008-05-27 Thomas Quinot <quinot@adacore.com>
6036
6037 * makeutl.adb: Minor code reorganization
6038
6039 * exp_aggr.adb: Add ??? comment
6040 Fix typo
6041
6042 * exp_ch6.adb: Minor reformatting
6043
6044 2008-05-27 Quentin Ochem <ochem@adacore.com>
6045
6046 * s-stausa.adb (Initialize): Updated result initialization, and
6047 initialization of environment stack.
6048 (Fill_Stack): Improved computation of the pattern zone, taking into
6049 account already filled at the calling point.
6050 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
6051 Measure and Overflow_Guard.
6052 (Report_Result): Fixed computation of the result using new fields of
6053 Stack_Analyzer.
6054
6055 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
6056 params by more explicit Stack_Size / Max_Pattern_Size params.
6057 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
6058 Added Stack_Used_When_Filling field.
6059 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
6060 Min_Measure and Max_Measure fields.
6061
6062 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
6063
6064 2008-05-27 Vincent Celier <celier@adacore.com>
6065
6066 * prj-nmsc.adb:
6067 (Check_File): Make sure that a unit that replaces the same unit in a
6068 project being extended is properly processed.
6069
6070 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6071
6072 * sem_ch3.adb:
6073 (Get_Discr_Value): Remove obsolete code that failed to find the value
6074 of a discriminant for an inherited task component appearing in a type
6075 extension.
6076
6077 2008-05-27 Thomas Quinot <quinot@adacore.com>
6078
6079 (System.File_IO.{Close, Delete, Reset}):
6080 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
6081
6082 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
6083 Pass File parameter by reference.
6084
6085 2008-05-27 Vincent Celier <celier@adacore.com>
6086
6087 * prj-nmsc.adb:
6088 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
6089 sources of the same project that have the same object file name.
6090 (Find_Explicit_Sources): Always remove a source exception that was not
6091 found.
6092
6093 2008-05-27 Thomas Quinot <quinot@adacore.com>
6094
6095 * sem_ch3.adb: Minor reformatting
6096
6097 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6098
6099 * sem_ch6.adb:
6100 (Is_Interface_Conformant): Handle properly a primitive operation that
6101 overrides an interface function with a controlling access result.
6102 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
6103 inherited and overriding operations, omit as well the conformance check
6104 on result types, to prevent spurious errors.
6105
6106 2008-05-27 Vincent Celier <celier@adacore.com>
6107
6108 * makeutl.ads, makeutl.adb:
6109 (Set_Location): New procedure
6110 (Get_Location): New function
6111 (Update_Main): New procedure
6112
6113 2008-05-27 Vincent Celier <celier@adacore.com>
6114
6115 * prj-nmsc.adb:
6116 (Check_Library): Allow standard project to be extended as a static
6117 library project.
6118 (Get_Mains): Do not inherit attribute Main in an extending library
6119 project.
6120
6121 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6122
6123 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
6124 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
6125 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
6126 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
6127 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
6128 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
6129 * system-mingw.ads (Always_Compatible_Rep): Likewise.
6130 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
6131 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
6132 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
6133
6134 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6135
6136 * sem_attr.adb: add guard to previous patch.
6137
6138 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6139
6140 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
6141 a synchronized tagged type, do not attempt to build dispatch table for
6142 full view. The table is built for the corresponding record type, which
6143 has its own declaration.
6144
6145 2008-05-27 Gary Dismukes <dismukes@adacore.com>
6146
6147 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
6148 to the known type entity E, rather than setting it to Any_Type. Fixes
6149 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
6150 for objects whose type had an illegal constraint.
6151
6152 2008-05-27 Vincent Celier <celier@adacore.com>
6153
6154 * gnat_ugn.texi:
6155 Add succinct documentation for attribute Excluded_Source_List_File
6156
6157 2008-05-27 Vincent Celier <celier@adacore.com>
6158
6159 * prj-attr.adb: Add new project level attribute Map_File_Option
6160
6161 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
6162
6163 * prj.ads: Minor reformatting and comment update
6164 (Project_Configuration): New component Map_File_Option
6165
6166 * snames.adb: New standard name Map_File_Option
6167
6168 * snames.ads: New standard name Map_File_Option
6169
6170 2008-05-27 Vincent Celier <celier@adacore.com>
6171
6172 * xsnames.adb: Remove unused variable Oname
6173
6174 2008-05-27 Doug Rupp <rupp@adacore.com>
6175
6176 * exp_ch6.adb:
6177 (Expand_N_Function_Call): Fix comments. Minor reformatting.
6178
6179 * exp_vfpt.ads:
6180 (Expand_Vax_Foreign_Return): Fix comments.
6181
6182 2008-05-27 Thomas Quinot <quinot@adacore.com>
6183
6184 * exp_dist.adb: Minor reformating
6185
6186 2008-05-26 Gary Dismukes <dismukes@adacore.com>
6187
6188 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
6189 No_Default_Initialization, which is now delayed until the freeze point
6190 of the object. Add a comment about deferral of the check.
6191
6192 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
6193 on objects is moved here.
6194
6195 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6196
6197 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
6198 (Compare_Array_S16): Adjust for above change.
6199 * s-casi32.adb (Uword): Likewise.
6200 (Compare_Array_S32): Likewise.
6201 * s-casi64.adb (Uword): Likewise.
6202 (Compare_Array_S64): Likewise.
6203 * s-caun16.adb (Uhalf): Likewise.
6204 (Compare_Array_U16): Likewise.
6205 * s-caun32.adb (Uword): Likewise.
6206 (Compare_Array_U32): Likewise.
6207 * s-caun64.adb (Uword): Likewise.
6208 (Compare_Array_U64): Likewise.
6209
6210 2008-05-26 Robert Dewar <dewar@adacore.com>
6211
6212 * exp_ch6.adb: Add ??? comment for previous change
6213
6214 * exp_vfpt.adb: Minor reformatting
6215
6216 * exp_vfpt.ads: Add ??? comment for last change
6217
6218 * sem_attr.adb: Add some ??? comments for previous change
6219
6220 * s-vaflop.ads: Add comments for previous change
6221
6222 2008-05-26 Doug Rupp <rupp@adacore.com>
6223
6224 * s-vaflop-vms-alpha.adb:
6225 Remove System.IO use clause, to prevent spurious ambiguities when
6226 package is access through rtsfind.
6227
6228 2008-05-26 Sergey Rybin <rybin@adacore.com>
6229
6230 * tree_io.ads (ASIS_Version_Number): Update because of the changes
6231 made in front-end
6232
6233 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6234
6235 * sem_attr.adb:
6236 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
6237 converted to S (A)'address only if A .. B is known to be a non-null
6238 range.
6239
6240 2008-05-26 Doug Rupp <rupp@adacore.com>
6241
6242 * s-vaflop.adb:
6243 (Return_D, Return_F, Return_G): New functions.
6244
6245 * s-vaflop.ads:
6246 (Return_D, Return_F, Return_G): New functions.
6247
6248 * exp_vfpt.adb:
6249 (Expand_Vax_Foreign_Return): New procedure
6250
6251 * exp_vfpt.ads:
6252 (Expand_Vax_Foreign_Return): New procedure
6253
6254 * rtsfind.ads:
6255 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
6256 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
6257
6258 * exp_ch6.adb:
6259 Import Exp_Vfpt
6260 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
6261
6262 * s-vaflop-vms-alpha.adb:
6263 (Return_D, Return_F, Return_G): New functions.
6264
6265 2008-05-26 Gary Dismukes <dismukes@adacore.com>
6266
6267 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
6268 init proc entity when there is actual default initialization associated
6269 with the component type, to avoid spurious errors on objects of scalar
6270 array types that are marked Is_Public when No_Default_Initialization
6271 applies.
6272
6273 2008-05-26 Thomas Quinot <quinot@adacore.com>
6274
6275 * rtsfind.ads, rtsfind.adb:
6276 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
6277 (Check_RPC): Support per-PCS-kind API versioning.
6278
6279 exp_dist.ads, exp_dist.adb:
6280 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
6281 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
6282 library function Get_RACW.
6283 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
6284 library function Get_Reference.
6285 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
6286 through an intermediate Any.
6287 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
6288 going through an intermediate Any.
6289
6290 * sem_dist.adb: Minor reformatting.
6291
6292 2008-05-26 Javier Miranda <miranda@adacore.com>
6293
6294 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
6295 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6296 (Is_Internal): Adding documentation on internal entities that have
6297 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
6298
6299 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
6300 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6301 Added assertion to force entities with this attribute to have
6302 attribute Is_Internal set to True.
6303 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
6304
6305 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
6306 renamed as Derive_Progenitor_Subprograms. In addition, its code is
6307 a new implementation.
6308 (Add_Interface_Tag_Components): Remove special management of
6309 synchronized interfaces.
6310 (Analyze_Interface_Declaration): Minor reformating
6311 (Build_Derived_Record_Type): Minor reformating
6312 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
6313 predefined primitive inherited from interface type because the body of
6314 internally generated predefined primitives of tagged types are generated
6315 later by Freeze_Type
6316 (Derive_Subprogram): Avoid generating an internal name if the parent
6317 subprogram overrides an interface primitive.
6318 (Derive_Subprograms): New implementation that keeps separate the
6319 management of tagged types not implementing interfaces, from tagged
6320 types that implement interfaces.
6321 (Is_Progenitor): New implementation.
6322 (Process_Full_View): Add documentation
6323 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
6324 by call to Derive_Progenitor_Subprograms.
6325
6326 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
6327 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6328 Skip_Controlling_Formals.
6329
6330 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
6331 (Check_Conventions): New implementation. Remove local subprogram
6332 Skip_Check. Remove formal Search_From of routine Check_Convention.
6333 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6334 Skip_Controlling_Formals.
6335 (New_Overloaded_Entity): Enable addition of predefined dispatching
6336 operations.
6337
6338 * sem_disp.ads
6339 (Find_Primitive_Covering_Interface): New subprogram.
6340
6341 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
6342 the task body procedure as a primitive of the corresponding tagged
6343 type.
6344 (Check_Operation_From_Private_Type): Avoid adding twice an entity
6345 to the list of primitives.
6346 (Find_Primitive_Covering_Interface): New subprogram.
6347 (Override_Dispatching_Operation): Add documentation.
6348
6349 * sem_type.adb (Covers): Minor reformatings
6350
6351 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
6352 Collect_Interfaces.
6353 Rename formal.
6354 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
6355 (Implements_Interface): New subprogram.
6356 (Is_Parent): Removed.
6357 (Primitive_Names_Match): New subprogram.
6358 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6359 (Ultimate_Alias): New subprogram.
6360
6361 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
6362 Collect_Interfaces.
6363 Remove special management for synchronized types. Rename formal. Remove
6364 internal subprograms Interface_Present_In_Parent and Add_Interface.
6365 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
6366 on non-record types by code to return false in such case.
6367 (Implements_Interface): New subprogram.
6368 (Is_Parent): Removed. No special management is now required for
6369 synchronized types covering interfaces.
6370 (Primitive_Names_Match): New subprogram.
6371 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6372 (Ultimate_Alias): New subprogram.
6373
6374 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
6375 Add internal entities associated with secondary dispatch tables to
6376 the list of tagged type primitives that are not interfaces.
6377 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
6378 (Make_Predefined_Primitive_Specs): Code reorganization to improve
6379 the management of predefined equality operator. In addition, if
6380 the type has an equality function corresponding with a primitive
6381 defined in an interface type, the inherited equality is abstract
6382 as well, and no body can be created for it.
6383
6384 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
6385 exp_util to exp_disp.
6386 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
6387 an entity corresponds with one of the predefined primitives required
6388 to implement interfaces.
6389 Update copyright notice.
6390
6391 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
6392 final check on abstract subprograms all the primitives associated with
6393 interface primitives because they must be visible in the public and
6394 private part.
6395 (Write_DT): Use Find_Dispatching_Type to locate the name of the
6396 interface type. This allows the use of this routine, for debugging
6397 purposes, when the tagged type is not fully decorated.
6398 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
6399 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
6400 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
6401 entity corresponds with one of the predefined primitives required to
6402 implement interfaces.
6403
6404 * exp_util.adb (Find_Interface_ADT): New implementation
6405 (Find_Interface): Removed.
6406
6407 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
6408 list of interfaces associated with nodes
6409 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
6410
6411 2008-05-26 Thomas Quinot <quinot@adacore.com>
6412
6413 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
6414 condition for assignment to temporary.
6415
6416 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6417
6418 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
6419 checks on the upper bound if the index type is a modular type, to
6420 prevent wrap-around computations when size is close to upper bound of
6421 type.
6422
6423 2008-05-26 Robert Dewar <dewar@adacore.com>
6424
6425 * sem_ch3.adb: Minor reformatting
6426
6427 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6428
6429 * sem_ch12.adb (Remove_Parent): Use specification of instance
6430 to retrieve generic parent,
6431 to handle properly the case where the instance is a child unit.
6432 Add guard to handle properly wrapper packages.
6433 Minor reformatting
6434
6435 2008-05-26 Thomas Quinot <quinot@adacore.com>
6436
6437 * sinfo.ads: Minor reformatting
6438
6439 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
6440
6441 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
6442 Generate a tag check when the result subtype of a function, defined by
6443 an access definition, designates a specific tagged type.
6444 (Make_Tag_Check): New routine.
6445
6446 2008-05-26 Arnaud Charlet <charlet@adacore.com>
6447
6448 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
6449
6450 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6451
6452 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
6453 (builtin_decl_for): Likewise.
6454 * trans.c (gigi): Likewise.
6455 * utils.c (def_builtin_1): Fix formatting.
6456
6457 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
6458
6459 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
6460 Create the statements which map a string name to protected or task
6461 entry indix.
6462
6463 * exp_ch9.adb: Add with and use clause for Stringt.
6464 Minor code reformatting.
6465 (Build_Entry_Names): New routine.
6466 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
6467 for flag Build_Entry_Names which controls the allocation of the data
6468 structure for the string names of entries.
6469
6470 * exp_ch9.ads (Build_Entry_Names): New subprogram.
6471
6472 * exp_util.adb (Entry_Names_OK): New function.
6473
6474 * exp_util.ads (Entry_Names_OK): New function.
6475
6476 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
6477 enumerations RE_Id and RE_Unit_Table.
6478
6479 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
6480 (Free_Entry_Names_Array): New routine.
6481
6482 * s-taskin.ads: Comment reformatting.
6483 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
6484 Add component Entry_Names to record Ada_Task_Control_Block.
6485 (Free_Entry_Names_Array): New routine.
6486
6487 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
6488 dynamically allocate an array
6489 of string pointers. This structure holds string entry names.
6490 (Free_Entry_Names): New routine.
6491 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
6492 (Set_Entry_Names): New routine.
6493
6494 * s-tassta.ads:
6495 (Create_Task): Add formal Build_Entry_Names. The flag is used to
6496 control the allocation of the data structure which stores entry names.
6497 (Set_Entry_Name): New routine.
6498
6499 * s-tpoben.adb:
6500 Add with and use clause for Ada.Unchecked_Conversion.
6501 (Finalize): Deallocate the entry names array.
6502 (Free_Entry_Names): New routine.
6503 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
6504 create an array of string pointers to hold the entry names.
6505 (Set_Entry_Name): New routine.
6506
6507 * s-tpoben.ads:
6508 Add field Entry_Names to record Protection_Entries.
6509 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
6510 (Set_Entry_Name): New routine.
6511
6512 2008-05-26 Vincent Celier <celier@adacore.com>
6513
6514 * prj-nmsc.adb:
6515 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
6516
6517 * prj.ads:
6518 (Project_Configuration): New component Shared_Lib_Driver
6519
6520 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6521
6522 * inline.adb:
6523 (Cleanup_Scopes): For a protected operation, transfer finalization list
6524 to protected body subprogram, to force cleanup actions when needed.
6525
6526 2008-05-26 Robert Dewar <dewar@adacore.com>
6527
6528 * sem_cat.adb: Minor reformatting
6529
6530 * gnatname.adb: Minor reformatting
6531
6532 * osint.ads: Minor reformatting
6533
6534 * s-carun8.ads: Minor reformatting
6535
6536 * g-heasor.ads: Minor comment fix (unit is now pure)
6537
6538 2008-05-26 Robert Dewar <dewar@adacore.com>
6539
6540 * exp_ch2.adb:
6541 (Expand_Current_Value): Properly type generated integer literal
6542
6543 2008-05-26 Sergey Rybin <rybin@adacore.com>
6544
6545 * gnat_ugn.texi: Add description for the new gnatcheck rule -
6546 Separate_Numeric_Error_Handlers.
6547
6548 2008-05-26 Pascal Obry <obry@adacore.com>
6549
6550 * sem_aggr.adb: Minor reformatting.
6551
6552 2008-05-26 Jose Ruiz <ruiz@adacore.com>
6553
6554 * s-osinte-aix.adb:
6555 (To_Target_Priority): Setting the time slice value to 0 or greater sets
6556 the scheduling policy to FIFO within priorities or round-robin
6557 respectively.
6558 Hence, the priority must be set in this case to the one selected by the
6559 user.
6560
6561 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6562
6563 * sem_ch12.adb:
6564 (Remove_Parent): If the enclosing scope is an instance whose generic
6565 parent is declared within some parent scope of the just completed
6566 instance, make full views of the entities in that parent visible, when
6567 applicable.
6568
6569 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
6570
6571 * mingw32.h (STD_MINGW): Set to true for target w64.
6572
6573 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6574
6575 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
6576 instead of TREE_STATIC on the ADDR_EXPR.
6577
6578 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
6579
6580 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
6581 (Sloc_to_locus): Do not overwrite known GCC locations when translating
6582 GNAT standard locations.
6583
6584 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6585
6586 * gigi.h (mark_visited): Declare.
6587 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
6588 only the topmost node of expressions.
6589 (elaborate_expression_1): Look deeper for read-only variables.
6590 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
6591 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
6592 (mark_visited_r): New function.
6593
6594 2008-05-23 Vincent Celier <celier@adacore.com>
6595
6596 * snames.adb: New standard name Excluded_Source_List_File.
6597
6598 * snames.ads: New standard name Excluded_Source_List_File.
6599
6600 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
6601
6602 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
6603 Get excluded sources from
6604 file indicated by attribute Excluded_Source_List_File, when present and
6605 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
6606
6607 2008-05-23 Robert Dewar <dewar@adacore.com>
6608
6609 * exp_dist.adb: Minor reformatting
6610
6611 2008-05-23 Ed Schonberg <schonberg@adacore.com>
6612
6613 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
6614 slice, convert it to an indexed component, which is equivalent, more
6615 efficient, and usable even if the slice itself is not addressable.
6616
6617 2008-05-23 Olivier Hainque <hainque@adacore.com>
6618
6619 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
6620 convention also allows access to named compiler built-in subprograms
6621 such as the GCC __builtin family.
6622
6623 2008-05-23 Vincent Celier <celier@adacore.com>
6624
6625 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
6626 sep. If there are several possibilities, choose the one with the
6627 longer prefix.
6628
6629 2008-05-23 Vincent Celier <celier@adacore.com>
6630
6631 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
6632 back end switches when executable specified with --GCC= is same as
6633 default, even if there are additional options.
6634
6635 * gnat_ugn.texi:
6636 Document when the back end switches from the ALI file are taken into
6637 account when gnatlink is invoked with --GCC=
6638
6639 2008-05-23 Thomas Quinot <quinot@adacore.com>
6640
6641 * s-os_lib.adb:
6642 (copy_File): Do not open destination file if source file is unreadable.
6643
6644 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6645
6646 * utils.c (handle_type_generic_attribute): Adjust to accept
6647 fixed arguments before an elipsis.
6648
6649 2008-05-21 Thomas Quinot <quinot@adacore.com>
6650
6651 * g-sothco.ads, g-sothco.adb: New files.
6652
6653 2008-05-20 Thomas Quinot <quinot@adacore.com>
6654
6655 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
6656
6657 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
6658 Add missing "with" of Ada.Unchecked_Conversion
6659
6660 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
6661 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
6662 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6663 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6664 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
6665 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
6666 Move common code out of GNAT.Sockets.Thin implementations and into
6667 Thin_Common.
6668 New constant SIZEOF_fd_set
6669 New flag Has_Sockaddr_Len
6670 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6671
6672 * g-stsifd-sockets.adb
6673 (Create): Remove call to Set_Length; use Set_Family to set the family
6674 and (on appropriate platforms) length fields in struct sockaddr.
6675
6676 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
6677 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
6678 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
6679 Move common code out of GNAT.Sockets.Thin implementations and into
6680 Thin_Common.
6681
6682 * g-socket.ads, g-socket.adb:
6683 Move common code out of GNAT.Sockets.Thin implementations and into
6684 Thin_Common.
6685 (Connect_Socket, Accept_Socket): Provide new versions of these two
6686 routines that operate with a user specified timeout.
6687 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
6688 this is now handled automatically by Set_Family on platforms that
6689 require it.
6690
6691 * gen-soccon.c:
6692 Move common code out of GNAT.Sockets.Thin implementations and into
6693 Thin_Common.
6694 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
6695 this constant to 0 (not -1) because we use it to initialize an
6696 unsigned_char value.
6697 Align values for numeric constants only.
6698 Handle the case of systems that do not support AF_INET6.
6699 New constant SIZEOF_fd_set
6700 New flag Has_Sockaddr_Len
6701 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6702
6703 * gsocket.h: New flag Has_Sockaddr_Len
6704 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6705
6706 2008-05-20 Santiago Uruena <uruena@adacore.com>
6707
6708 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
6709
6710 2008-05-20 Arnaud Charlet <charlet@adacore.com>
6711
6712 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
6713 the underlying issue with malloc/free has been fixed. Remove associated
6714 comments.
6715 Minor reformatting.
6716 Related to PR ada/24533
6717
6718 2008-05-20 Robert Dewar <dewar@adacore.com>
6719
6720 * ali.adb: Correct casing of ASCII.NUL
6721
6722 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
6723 properly.
6724
6725 2008-05-20 Robert Dewar <dewar@adacore.com>
6726 Gary Dismukes <dismukes@adacore.com>
6727
6728 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
6729 overflow if result converted to wider integer type.
6730 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
6731 discriminated types when discriminant checks are suppressed.
6732
6733 2008-05-20 Vincent Celier <celier@adacore.com>
6734
6735 * cstand.adb (Print_Standard): Issue the correct Size clause for type
6736 Wide_Wide_Character.
6737
6738 2008-05-20 Tristan Gingold <gingold@adacore.com>
6739
6740 * decl.c: Do not emit a variable for a object that has an address
6741 representation clause whose value is known at compile time.
6742 When a variable has an address clause whose value is known at compile
6743 time, refer to this variable by using directly the address instead of
6744 dereferencing a pointer.
6745
6746 2008-05-20 Robert Dewar <dewar@adacore.com>
6747
6748 PR ada/30740
6749 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
6750 subtypes, always False for non-modular types.
6751 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
6752 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
6753 for Shared_Storage package.
6754 (Is_RACW_Stub_Type): New entity flag.
6755
6756 * exp_ch4.adb
6757 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
6758 case where we have a modular type with a non-binary modules.
6759 Comments reformattings.
6760
6761 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
6762 all types.
6763
6764 2008-05-20 Javier Miranda <miranda@adacore.com>
6765
6766 * exp_aggr.adb
6767 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
6768 tests did not covered the case in which the type of the aggregate has
6769 no progenitors but some its parents has progenitors.
6770
6771 2008-05-20 Gary Dismukes <dismukes@adacore.com>
6772 Hristian Kirtchev <kirtchev@adacore.com>
6773
6774 * exp_ch3.adb
6775 (Expand_N_Object_Declaration): Correct the condition which triggers the
6776 generation of a call to Displace when initializing a class-wide object.
6777 (Build_Dcheck_Functions): Build discriminant-checking for null variants
6778 when Frontend_Layout_On_Target is true to ensure that they're available
6779 for calling when a record variant size function is built in Layout.
6780
6781 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6782
6783 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
6784 procedure for a derived type retrieve the discriminant values from the
6785 parent using the corresponding discriminant.
6786 (Expand_N_Assignment_Statement): Skip generation of implicit
6787 if-statement associated with controlled types if we are
6788 compiling with restriction No_Finalization.
6789
6790 2008-05-20 Vincent Celier <celier@adacore.com>
6791
6792 * prj.adb (Hash (Project_Id)): New function
6793 (Project_Empty): Add new component Interfaces_Defined
6794
6795 * prj.ads (Source_Data): New component Object_Linked
6796 (Language_Config): New components Object_Generated and Objects_Linked
6797 (Hash (Project_Id)): New function
6798 (Source_Data): New Boolean components In_Interfaces and
6799 Declared_In_Interfaces.
6800 (Project_Data): New Boolean component Interfaces_Defined
6801
6802 * prj-attr.adb:
6803 New project level attribute Object_Generated and Objects_Linked
6804 Add new project level attribute Interfaces
6805
6806 * prj-dect.adb: Use functions Present and No throughout
6807 (Parse_Variable_Declaration): If a string type is specified as a simple
6808 name and is not found in the current project, look for it also in the
6809 ancestors of the project.
6810
6811 * prj-makr.adb:
6812 Replace procedure Make with procedures Initialize, Process and Finalize
6813 to implement H414-023: process different directories with different
6814 patterns.
6815 Use functions Present and No throughout
6816
6817 * prj-makr.ads:
6818 Replace procedure Make with procedures Initialize, Process and Finalize
6819
6820 * prj-nmsc.adb
6821 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
6822 the language configuration.
6823 (Process_Project_Level_Array_Attributes): Process new attributes
6824 Object_Generated and Object_Linked.
6825 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
6826 False, to indicate that the erreor/warning is a continuation.
6827 (Check): Call Report_No_Sources with Contnuation = True after the first
6828 call.
6829 (Error_Msg): Process successively contnuation character and warning
6830 character.
6831 (Find_Explicit_Sources): Check that all declared sources have been found
6832 (Check_File): Indicate in hash table Source_Names when a declared source
6833 is found.
6834 (Check_File): Set Other_Part when found
6835 (Find_Explicit_Sources): In multi language mode, check if all exceptions
6836 to the naming scheme have been found. For Ada, report an error if an
6837 exception has not been found. Otherwise, disregard the exception.
6838 (Check_Interfaces): New procedure
6839 (Add_Source): When Other_Part is defined, set mutual pointers in spec
6840 and body.
6841 (Check): In multi-language mode, call Check_Interfaces
6842 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
6843 for an excluded source.
6844 (Remove_Source): A source replacing a source in the interfaces is also
6845 in the interfaces.
6846
6847 * prj-pars.adb: Use function Present
6848
6849 * prj-part.adb: Use functions Present and No throughout
6850 (Parse_Single_Project): Set the parent project for child projects
6851 (Create_Virtual_Extending_Project): Register project with no qualifier
6852 (Parse_Single_Project): Allow an abstract project to be extend several
6853 times. Do not allow an abstract project to extend a non abstract
6854 project.
6855
6856 * prj-pp.adb: Use functions Present and No throughout
6857 (Print): Take into account the full associative array attribute
6858 declarations.
6859
6860 * prj-proc.adb: Use functions Present and No throughout
6861 (Expression): Call itself with the same From_Project_Node for the
6862 default value of an external reference.
6863
6864 * prj-strt.adb: Use functions Present and No throughout
6865 (Parse_Variable_Reference): If a variable is specified as a simple name
6866 and is not found in the current project, look for it also in the
6867 ancestors of the project.
6868
6869 * prj-tree.ads, prj-tree.adb (Present): New function
6870 (No): New function
6871 Use functions Present and No throughout
6872 (Parent_Project_Of): New function
6873 (Set_Parent_Project_Of): New procedure
6874
6875 * snames.ads, snames.adb:
6876 Add new standard names Object_Generated and Objects_Linked
6877
6878 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
6879
6880 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
6881 and the derived type are of the same kind.
6882 (Expand_Call): Generate type conversions for actuals of
6883 record or array types when the parent and the derived types differ in
6884 size and/or packed status.
6885
6886 2008-05-20 Javier Miranda <miranda@adacore.com>
6887 Ed Schonberg <schonberg@adacore.com>
6888
6889 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
6890 generating dispatch tables of locally defined tagged types statically.
6891 Remove implicit if-statement that is no longer required.
6892 (Expand_Dispatching_Call): If this is a call to an instance of the
6893 generic dispatching constructor, the type of the first argument may be
6894 a subtype of Tag, so always use the base type to recognize this case.
6895
6896 2008-05-20 Thomas Quinot <quinot@adacore.com>
6897
6898 * exp_dist.adb
6899 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
6900 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
6901 assigning NULL into the result, to avoid a spurious warning.
6902 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
6903 is not frozen.
6904 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
6905 type.
6906 (Build_From_Any_Function, Build_To_Any_Function,
6907 Build_TypeCode_Function): For a type that has user-specified stream
6908 attributes, use an opaque sequence of octets as the representation.
6909
6910 2008-05-20 Kevin Pouget <pouget@adacore.com>
6911
6912 * exp_smem.ads, exp_smem.adb: Construction of access and assign
6913 routines has been replaced by an instantiation of
6914 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
6915 shared variable declaration.
6916 Calls to access and assign routines have been replaced by calls to
6917 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
6918 instantiated package.
6919
6920 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
6921 It identifies the new generic package added in s-shasto.
6922
6923 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
6924 is instantiated for each shared passive variable. It provides
6925 supporting procedures called upon each read or write access by the
6926 expanded code.
6927
6928 * sem_attr.adb:
6929 For this runtime unit (always compiled in GNAT mode), we allow
6930 stream attributes references for limited types for the case where
6931 shared passive objects are implemented using stream attributes,
6932 which is the default in GNAT's persistent storage implementation.
6933
6934 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6935
6936 * freeze.adb
6937 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
6938 convention from its base type, do not set the type to that of integer,
6939 because it may inherit a size clause.
6940 Warn on a size clause with a size different
6941 from that of Integer, if the type has convention C.
6942
6943 2008-05-20 Vincent Celier <celier@adacore.com>
6944
6945 * gnatname.adb
6946 (Scan_Args): Rewrite to take into account new switch --and to separate
6947 arguments into sections.
6948 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
6949 section, then Finalize.
6950
6951 2008-05-20 Tristan Gingold <gingold@adacore.com>
6952
6953 * init.c: Enable stack probing on ppc-linux.
6954
6955 * tracebak.c: Add symbolic traceback for ppc-linux.
6956
6957 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
6958
6959 2008-05-20 Arnaud Charlet <charlet@adacore.com>
6960
6961 * Makefile.in
6962 (common-tools): New rule, to avoid parallel build failure on gnat tools.
6963 Reenable parallel builds on this Makefile.
6964
6965 * Make-lang.in: Update dependencies.
6966
6967 2008-05-20 Robert Dewar <dewar@adacore.com>
6968
6969 * opt.ads (Treat_Restrictions_As_Warnings): New switch
6970
6971 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
6972 Treat_Restrictions_As_Warnings.
6973
6974 * switch-c.adb: Recognize new switch -gnatr
6975
6976 * usage.adb: Add line for -gnatr
6977
6978 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
6979
6980 * par-ch3.adb
6981 (P_Access_Definition): Change the error message when parsing "access
6982 all" in Ada 95 mode. The message no longer forces the user to recompile
6983 in 05 mode only to discover that anonymous access types are not allowed
6984 to have "all".
6985
6986 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
6987
6988 * par-ch9.adb
6989 (P_Protected): Update the error message on missing "-gnat05" switch when
6990 using interfaces in conjunction with protected types. Remove the
6991 incorrect error message associated with the presence of "private" after
6992 a "with".
6993
6994 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6995
6996 * sem_aggr.adb: Update comments.
6997 Improve previous change for PR ada/17985
6998
6999 2008-05-20 Thomas Quinot <quinot@adacore.com>
7000
7001 * sem_cat.adb
7002 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
7003 the visible part of the spec of a remote types unit.
7004 (Validate_Remote_Access_Object_Type_Declaration):
7005 New local subprogram Is_Valid_Remote_Object_Type, replaces
7006 Is_Recursively_Limited_Private.
7007 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
7008 non-controlling formals (and the return type, even though this is not
7009 explicit in the standard) must support external streaming.
7010 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
7011 as above for of RAS types and RCI subprograms. (The return type is not
7012 checked yet).
7013 Update comments related to RACWs designating limited interfaces per
7014 ARG ruling on AI05-060.
7015
7016 * sem_util.ads, sem_util.adb
7017 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
7018 Is_Remote_Call_Interface to identify RACW types in a stable and
7019 consistent way. We used to rely in this predicate on the privateness of
7020 the designated type and its ancestors, but depending on the currently
7021 visible private parts, this caused false negatives. We now uniformly
7022 rely on checks made at the point where the RACW type is declared.
7023 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
7024
7025 2008-05-20 Javier Miranda <miranda@adacore.com>
7026 Ed Schonberg <schonberg@adacore.com>
7027 Hristian Kirtchev <kirtchev@adacore.com>
7028
7029 * sem_ch3.adb
7030 (Analyze_Object_Declaration): Fix over-conservative condition
7031 restricting use of predefined assignment with tagged types that have
7032 convention CPP.
7033 (Analyze_Object_Declaration): Relax the check regarding deferred
7034 constants declared in scopes other than packages since they can be
7035 completed with pragma Import.
7036 Add missing escaping of all-caps word 'CPP' in error messages.
7037 (Build_Discriminated_Subtype): Do not inherit representation clauses
7038 from parent type if subtype already carries them, because they are
7039 inherited earlier during derivation and already include those that may
7040 come from a partial view.
7041
7042 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
7043 Check the declarations of a subprogram body for proper deferred
7044 constant completion.
7045
7046 * sem_ch7.ads, sem_ch7.adb
7047 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
7048
7049 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7050 Thomas Quinot <quinot@adacore.com>
7051
7052 * sem_ch4.adb
7053 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
7054 F is a parameterless function that returns an array, and S is a subtype
7055 mark.
7056 (Analyze_Call): Insert dereference when the prefix is a parameterless
7057 function that returns an access to subprogram and the call has
7058 parameters.
7059 Reject a non-overloaded call whose name resolves to denote
7060 a primitive operation of the stub type generated to support a remote
7061 access-to-class-wide type.
7062
7063 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7064
7065 * sem_ch8.adb
7066 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
7067 when there is a use clause for the same entity in the context.
7068 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
7069 created for a stream attribute of an abstract type or interface type.
7070
7071 2008-05-20 Thomas Quinot <quinot@adacore.com>
7072
7073 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
7074 subprogram.
7075
7076 * sem_type.adb
7077 (Add_One_Interp): Ignore any interpretation that is a primitive
7078 operation of an RACW stub type (these primitives are only executed
7079 through dispatching, never through static calls).
7080 (Collect_Interps): When only one interpretation has been found, set N's
7081 Entity and Etype to that interpretation, otherwise Entity and Etype may
7082 still refer to an interpretation that was ignored by Add_One_Interp,
7083 in which case would end up with being marked as not overloaded but with
7084 an Entity attribute not pointing to its (unique) correct interpretation.
7085
7086 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7087
7088 * sem_eval.adb
7089 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
7090 denotes the whole array of its prefix.
7091
7092 2008-05-20 Robert Dewar <dewar@adacore.com>
7093
7094 * sem_res.adb (Resolve_Op_Not): Warn on double negation
7095
7096 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7097
7098 * sprint.adb
7099 (Print_Itype): Do not modify the sloc of the component type of a
7100 (packed) array itype, because it is an unrelated type whose source
7101 location is independent of the point of creation of the itype itself.
7102
7103 2008-05-20 Thomas Quinot <quinot@adacore.com>
7104
7105 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
7106 Append.
7107
7108 2008-05-20 Robert Dewar <dewar@adacore.com>
7109 Vincent Celier <celier@adacore.com>
7110
7111 * vms_data.ads: Add entry for -gnatr
7112 Put GNAT SYNC section in proper alpha order
7113 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
7114
7115 * gnat_ugn.texi: Add documentation for new gnatname switch --and
7116 Update the style checks section
7117 Add documentation of -gnatr
7118 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
7119 subsection the explanation how compiler checks should be disabled for
7120 gnatcheck.
7121 Update the list of Ada 95 reserved words used by in the project language
7122 Add documentation for project qualifiers.
7123 Document that abstract projects may be extended by different projects in
7124 the same project tree.
7125 Add documentation for gnatmake switch -d
7126
7127 * ug_words: Add -gnatyy VMS equivalence string.
7128 Add entry for -gnatr
7129
7130 2008-05-20 Bob Duff <duff@adacore.com>
7131
7132 * a-rttiev.adb
7133 (Set_Handler): Remove code from both of these that implements
7134 RM-D.15(15/2), because it causes a race condition and potential
7135 deadlock.
7136 (Process_Queued_Events): Add comment explaining "exception when others
7137 => null". Add clarifying ".all", even though implicit .all is legal
7138 here.
7139
7140 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7141
7142 * s-winext.ads: Replace representation clause by pragma Pack. Gives
7143 equivalent representation, but has the advantage of allowing
7144 compilation of this file under 64 bits platforms.
7145
7146 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
7147
7148 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
7149
7150 * adaint.c:
7151 Don't define dummy implementation of convert_addresses on ppc-linux.
7152
7153 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7154
7155 * exp_ch7.adb
7156 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
7157 if expression is aggregate component.
7158
7159 2008-05-20 Robert Dewar <dewar@adacore.com>
7160
7161 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
7162 sem_ch12.adb: Update comments. Minor reformatting.
7163
7164 * exp_ch2.adb: Typo
7165
7166 * s-unstyp.ads: Fixed some typos in comments.
7167
7168 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7169
7170 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
7171 type/constant.
7172
7173 * g-socthi-vxworks.ads: Update to latest socket changes.
7174
7175 * a-caldel-vms.adb: Resync with a-caldel spec.
7176
7177 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
7178 Update comments.
7179
7180 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7181
7182 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
7183 for dummy types pointed to by the converted pointer types.
7184
7185 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
7186
7187 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
7188 of records and unions.
7189 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
7190
7191 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
7192 Robert Dewar <dewar@adacore.com>
7193
7194 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
7195 restrictions to the prefix of 'Old.
7196 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
7197 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
7198 variables.
7199
7200 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
7201
7202 PR ada/24880
7203 PR ada/26635
7204 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
7205 expression to an integral type with lower precision, use NOP_EXPR
7206 directly in a couple of special cases.
7207
7208 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7209 Ed Schonberg <schonberg@adacore.com>
7210
7211 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
7212 constraint expressions.
7213
7214 2008-05-12 Tomas Bily <tbily@suse.cz>
7215
7216 * utils2.c (known_alignment, contains_save_expr_p)
7217 (gnat_mark_addressable): Use CASE_CONVERT.
7218 * decl.c (annotate_value): Likewise.
7219 * trans.c (maybe_stabilize_reference): Likewise.
7220 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
7221 * utils.c (rest_of_record_type_compilation): Likewise.
7222 * trans.c (protect_multiple_eval, Attribute_to_gnu)
7223 (protect_multiple_eval): Likewise.
7224
7225 2008-05-08 Andreas Schwab <schwab@suse.de>
7226
7227 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
7228 DECL_IS_PURE to DECL_PURE_P.
7229
7230 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
7231
7232 * decl.c (maybe_pad_type): Add ??? comment.
7233
7234 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
7235
7236 * decl.c (components_to_record): Zero the alignment of the qualified
7237 union built for the variant part upon creating it.
7238
7239 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
7240
7241 * decl.c (maybe_pad_type): Try to get a form of the type with integral
7242 mode even if the alignment is not a factor of the original size. But
7243 make sure to create the inner field with the original size. Reorder.
7244 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
7245 record as always addressable.
7246 * utils.c (convert): Deal specially with conversions between original
7247 and packable versions of a record type.
7248 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
7249 recognizing an assignment between padded objects.
7250
7251 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
7252
7253 * decl.c (make_packable_type): Resize the last component to its RM size
7254 only if it is of an aggregate type.
7255 * trans.c (call_to_gnu): Fix nit in comment.
7256 (gnat_to_gnu): Likewise.
7257
7258 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
7259
7260 * Makefile.in: Adapt sh4-linux target.
7261
7262 2008-04-29 Ed Schonberg <schonberg@adacore.com>
7263
7264 PR ada/35792
7265 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
7266 tagged type by an untagged protected or task type.
7267
7268 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
7269 Tristan Gingold <gingold@adacore.com>
7270
7271 PR ada/36007
7272 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
7273 of aliased objects with an unconstrained nominal subtype.
7274 Cap the promotion to the effective alignment of the word mode.
7275
7276 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7277
7278 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
7279 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
7280 Use '&&' instead of ';'.
7281
7282 2008-04-24 Olivier Hainque <hainque@adacore.com>
7283
7284 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
7285 doesn't require signed arithmetic anymore.
7286
7287 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
7288
7289 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
7290 (call_to_gnu): Don't set TREE_INVARIANT.
7291 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
7292
7293 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
7294
7295 * s-osinte-rtems.adb: Add sigalstack function.
7296 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
7297 function. Add Alternate_Stack and Alternate_Stack_Size.
7298 Add missing process_shared field to pthread_condattr_t
7299 and change ss_low_priority to int from timespec.
7300
7301 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
7302
7303 * i-forbla.adb: Link against -llapack and -lblas by default
7304 instead of the private -lgnalasup.
7305
7306 2008-04-21 Olivier Hainque <hainque@adacore.com>
7307
7308 Access to most C builtins from Ada
7309 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
7310 (handle_pure_attribute, handle_novops_attribute,
7311 handle_nonnull_attribute, handle_sentinel_attribute,
7312 handle_noreturn_attribute, handle_malloc_attribute,
7313 handle_type_generic_attribute): New attribute handlers, from C fe.
7314 (gnat_internal_attribute_table): Map the new handlers.
7315 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
7316 (init_gigi_decls): ... here.
7317 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
7318 Move to a section dedicated to builtins processing.
7319 (build_void_list_node, builtin_type_for_size): New functions.
7320 (def_fn_type, get_nonnull_operand): Likewise.
7321 (install_builtin_elementary_type, install_builtin_function_types,
7322 install_builtin_attributes): Likewise.
7323 (fake_attribute_handler): Fake handler for attributes we don't
7324 support in Ada.
7325 (def_builtin_1): New function, worker for DEF_BUILTIN.
7326 (install_builtin_functions): New function.
7327 (gnat_install_builtins): Move to the builtins processing section.
7328 Now calling the newly introduced installers.
7329
7330 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
7331
7332 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
7333 constant objects, but not exceptions.
7334 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
7335 compatibility test.
7336 * utils.c (create_var_decl_1): Likewise.
7337 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
7338 the type when copying to padded object and the source is a constructor.
7339
7340 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7341
7342 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
7343 alignment, reset it to zero if it would end up not being greater
7344 than that of the type.
7345
7346 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7347
7348 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
7349 the padded type has a variable size.
7350
7351 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7352
7353 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
7354 target pointer mechanism as soon as the size is not constant.
7355
7356 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7357
7358 * gigi.h (create_var_decl_1): Declare.
7359 (create_var_decl): Turn into a macro invoking create_var_decl_1.
7360 (create_true_var_decl): Likewise.
7361 * utils.c (create_var_decl_1): Make global and reorder parameters.
7362 (create_var_decl): Delete.
7363 (create_true_var_decl): Likewise.
7364
7365 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
7366
7367 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
7368 objects by default.
7369 * fe.h (Debug_Flag_Dot_A): Delete.
7370 * debug.adb (-gnatd.a): Update documentation.
7371
7372 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
7373
7374 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
7375 "not null" parameter.
7376
7377 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
7378
7379 * g-socket.adb: Add a message "IPv6 not supported" to the
7380 Socket_Error exception.
7381
7382 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
7383
7384 PR ada/29015
7385 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
7386 the type is known instead of the underlying type.
7387
7388 2008-04-15 Ed Schonberg <schonberg@adacore.com>
7389
7390 PR ada/22387
7391 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7392 procedure for a derived type retrieve the discriminant values from
7393 the parent using the corresponding discriminant.
7394
7395 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
7396 Gary Dismukes <dismukes@adacore.com>
7397
7398 PR ada/28733
7399 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
7400 which is not an entity (and hence not a package).
7401 (End_Use_Package): Ditto.
7402
7403 2008-04-15 Ed Schonberg <schonberg@adacore.com>
7404
7405 PR ada/16086
7406 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
7407 protected operation that matches the signature, not only an entry, a
7408 regular subprogram or a literal.
7409
7410 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
7411
7412 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
7413 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
7414 if a size or alignment is specified. Do not take into account
7415 alignment promotions for the computation of the object's size.
7416 <type>: Call maybe_pad_type only if a size or alignment is specified.
7417 (maybe_pad_type): Really reuse the RM_Size of the original type if
7418 requested.
7419 * trans.c (Attribute_to_gnu): Fix a couple of nits.
7420 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
7421 statements. Use the padded view of the type when copying between
7422 padded objects of the same underlying type.
7423
7424 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7425
7426 * vms_data.ads: Fix typo in constant.
7427 * gen-soccon.c: Fix typo in error string.
7428 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
7429 Fix typos.
7430 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
7431 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
7432 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
7433 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
7434 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
7435 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
7436 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
7437 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
7438 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
7439 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
7440 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
7441 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
7442 sinfo.ads: Fix typos in comments.
7443
7444 2008-04-14 Robert Dewar <dewar@adacore.com>
7445
7446 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
7447 to every non-object and change error message.
7448
7449 2008-04-14 Robert Dewar <dewar@adacore.com>
7450
7451 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
7452 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
7453 directly.
7454
7455 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7456
7457 PR ada/18680
7458 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
7459 apply pragma Linker_Section on type.
7460
7461 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7462
7463 PR ada/16098
7464 * sem_prag.adb (Error_Pragma_Ref): New.
7465 (Process_Convention): Specialized message for non-local
7466 subprogram renaming. Detect the problem in homonyms as well.
7467
7468 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7469
7470 PR ada/15915
7471 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
7472 * sem_ch12.adb (Instantiate_Object): Use it.
7473 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
7474 storage pool denotes a variable as per RM 13.11(15).
7475
7476 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7477
7478 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
7479 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
7480
7481 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
7482
7483 PR ada/20822
7484 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
7485 line endings even on non-Unix platforms.
7486
7487 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7488
7489 PR ada/35050
7490 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
7491 renaming information.
7492
7493 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
7494
7495 PR ada/17985
7496 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
7497 itself.
7498
7499 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7500
7501 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
7502 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
7503 snames.ads, sprint.adb, stand.ads, stringt.ads,
7504 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
7505 switch.ads, sysdep.c, table.adb, table.ads,
7506 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
7507 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
7508 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
7509 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
7510 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
7511 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
7512 Fix comment typos.
7513
7514 * sem_ch10.adb, sem_ch10.ads,
7515 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
7516 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
7517 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7518 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
7519 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
7520 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
7521 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
7522 sem_warn.ads: Fix comment typos.
7523
7524 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
7525 s-soflin.ads, s-stalib.ads, s-stausa.adb,
7526 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
7527 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
7528 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
7529 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7530 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
7531 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
7532 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
7533 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
7534 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
7535 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
7536 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
7537 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
7538 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
7539 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
7540 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
7541 sem_cat.adb, sem_cat.ads: Fix comment typos.
7542
7543 2008-04-12 Joel Sherrill <joel@oarcorp.com>
7544
7545 PR ada/35825
7546 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
7547
7548 2008-04-12 Arnaud Charlet <charlet@adacore.com>
7549
7550 * s-linux-hppa.ads: Fix syntax errors.
7551
7552 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7553
7554 * gnat_ugn.texi: Fix typos.
7555 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
7556 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
7557 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
7558 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
7559 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
7560 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
7561 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
7562 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
7563 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
7564 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
7565 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
7566 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
7567 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
7568 s-osinte-darwin.ads, s-osinte-freebsd.ads,
7569 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
7570 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
7571 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
7572 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
7573 s-parame-hpux.ads, s-parame-vms-alpha.ads,
7574 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
7575 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
7576 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
7577 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
7578 s-rident.ads: Fix comment typos.
7579
7580 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
7581
7582 PR ada/28305
7583 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
7584 environment if generic instance is a top-level one.
7585
7586 2008-04-09 Doug Rupp <rupp@adacore.com>
7587
7588 * decl.c (validate_size): Set minimum size for fat pointers same as
7589 access types. Code clean ups.
7590
7591 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
7592 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
7593
7594 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
7595
7596 * s-crtl.ads (malloc32) New function, alias for malloc
7597 (realloc32) New function, alias for realloc
7598
7599 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
7600
7601 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
7602 allocator size is 32 and default pointer size is 64.
7603 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
7604 lhs type if smaller, whatever the modes.
7605
7606 * gigi.h (malloc32_decl): New macro definition
7607
7608 * utils.c (init_gigi_decls): New malloc32_decl
7609 Various code clean ups.
7610
7611 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7612 Task_Address vice System.Address.
7613
7614 * s-taspri-vms.ads: Import System.Aux_DEC
7615 (Task_Address): New subtype of System.Aux_DEC.Short_Address
7616 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
7617
7618 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7619 Task_Address vice System.Address.
7620
7621 * s-inmaop-vms.adb: Import System.Task_Primitives
7622 (To_Address): Unchecked convert to Task_Address vice System.Address
7623
7624 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
7625 expires now.
7626 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
7627 (To_Address) Unchecked convert to Task_Address vice System.Address
7628
7629 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
7630
7631 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
7632
7633 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7634
7635 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
7636 (fdesc_type_node): Define.
7637 (null_fdesc_node): Likewise.
7638 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
7639 uses descriptors for vtables and the type comes from a dispatch table,
7640 return the descriptor type.
7641 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
7642 uses descriptors for vtables and the type comes from a dispatch table,
7643 build a descriptor in the static case and copy the existing one in the
7644 non-static case.
7645 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
7646 the type is a pointer-to-subprogram coming from a dispatch table,
7647 return the null descriptor.
7648 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
7649 vtables, the source type is the descriptor type and the target type
7650 is a pointer type, first build the pointer.
7651 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
7652 build the descriptor type and the null descriptor.
7653
7654 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7655
7656 * decl.c (prepend_attributes): Fix typo.
7657 * trans.c (Pragma_to_gnu): Likewise.
7658 * utils.c (gnat_genericize): Likewise.
7659
7660 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7661 Richard Kenner <kenner@adacore.com>
7662
7663 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
7664 * decl.c (gnat_to_gnu_entity): Adjust for above change.
7665 <E_Record_Type>: Try to get a better form of the component for
7666 packing, even if it has an integral mode.
7667 <E_Record_Subtype>: Likewise.
7668 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
7669 exception suppressing the final conversion between record types.
7670
7671 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7672
7673 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
7674 alignment for space, promote the alignment of non-scalar variables with
7675 no size and alignment.
7676 * gigi.h (gnat_types_compatible_p): Declare.
7677 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
7678 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
7679 * utils.c (gnat_types_compatible_p) : New predicate.
7680 (convert): Use it throughout to test for cases where a mere view
7681 conversion is sufficient.
7682 * utils2.c (build_binary_op): Minor tweaks.
7683 (build_unary_op): Likewise.
7684
7685 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7686
7687 * decl.c (adjust_packed): Expand comment.
7688
7689 2008-04-08 Arnaud Charlet <charlet@adacore.com>
7690
7691 * s-tasuti.ads: Use Task_Address instead of System.Address.
7692
7693 * makeutl.adb (Path_Or_File_Name): New function
7694
7695 * nlists.ads, itypes.ads: Update comments.
7696
7697 * s-crtl.ads (malloc32, realloc32): New functions.
7698
7699 * s-auxdec.ads (Short_Address_Size): New constant.
7700
7701 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
7702
7703 * s-ststop.ads, s-ststop.adb: New file.
7704
7705 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
7706 Minor reformatting.
7707
7708 2008-04-08 Pascal Obry <obry@adacore.com>
7709
7710 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
7711 (Stop_Bits_Number): New type.
7712 (Parity_Check): Likewise.
7713 (Set): Add parameter to set the number of stop bits and
7714 the parity. Parameter timeout is now a duration instead
7715 of a plain integer.
7716
7717 * g-sercom-linux.adb:
7718 Implement the stop bits and parity support for GNU/Linux.
7719 Fix handling of timeout, it must be given in tenth of seconds.
7720
7721 * g-sercom-mingw.adb:
7722 Implement the stop bits and parity support for Windows.
7723 Use new s-win32.ads unit instead of declaring Win32 services
7724 directly into this body.
7725 Update handling of timeout as now a duration.
7726
7727 * s-win32.ads, s-winext.ads: New files.
7728
7729 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7730 Arnaud Charlet <charlet@adacore.com>
7731
7732 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
7733
7734 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
7735 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
7736
7737 * s-osinte-lynxos-3.ads,
7738 (Alternate_Stack): Remove when not needed. Simplify declaration
7739 otherwise.
7740 (Alternate_Stack_Size): New constant.
7741
7742 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
7743 'Unrestricted_Access.
7744
7745 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
7746 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
7747 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
7748 s-osinte-solaris.ads, s-osinte-vms.ads
7749 (SA_ONSTACK): New constant.
7750 (stack_t): New record type.
7751 (sigaltstack): New imported function.
7752 (Alternate_Stack): New imported variable.
7753 (Alternate_Stack_Size): New constant.
7754
7755 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
7756
7757 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
7758 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
7759 s-taspri-vms.ads (Task_Address): New subtype of System.Address
7760 (Task_Address_Size): New constant size of System.Address
7761 (Alternate_Stack_Size): New constant.
7762
7763 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
7764 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
7765 Establish the alternate stack if the platform makes use of n alternate
7766 signal stack for stack overflows.
7767 (Create_Task): Take into account the alternate stack in the stack size.
7768 (Initialize): Save the address of the alternate stack into the ATCB for
7769 the environment task.
7770 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
7771
7772 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
7773
7774 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
7775
7776 * s-intman-posix.adb:
7777 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
7778 alternate signal stack for stack overflows.
7779
7780 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
7781 x86-64, adjust the saved value of the stack pointer if the signal was
7782 raised by a stack checking probe.
7783 (HP-UX section): Use global __gnat_alternate_stack as signal handler
7784 stack and only for SIGSEGV.
7785 (Linux section): Likewise on x86 and x86-64.
7786 [VxWorks section]
7787 (__gnat_map_signal): Now static.
7788 (__gnat_error_handler): Not static any more.
7789 (__gnat_adjust_context_for_raise): New function. Signal context
7790 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
7791 propagation circuitry.
7792 (__gnat_error_handler): Second argument of a sigaction handler is a
7793 pointer, not an int, and is unused.
7794 Adjust signal context before mapping to exception.
7795 Install signal handlers for LynxOS case.
7796
7797 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
7798 (Task_Id): Set size to Task_Address_Size
7799 (To_Task_id): Unchecked convert from Task_Address vice System.Address
7800 (To_Address): Unchecked convert to Task_Address vice System.Address
7801
7802 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
7803 address into the ATCB if the platform makes use of an alternate signal
7804 stack for stack overflows.
7805 (Free_Task): Add call to Finalize_Attributes_Link.
7806 Add argument Relative_Deadline to pass the value specified for
7807 the task. This is not yet used for any target.
7808
7809 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
7810 the value specified for the task.
7811
7812 2008-04-08 Arnaud Charlet <charlet@adacore.com>
7813
7814 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
7815 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
7816 s-vxwext-rtp.adb): New files.
7817
7818 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
7819 Minor updates to accomodate changes above.
7820
7821 2008-04-08 Pascal Obry <obry@adacore.com>
7822
7823 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
7824 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
7825 Use new s-win32.ads unit instead of declaration
7826 from s-osinte-mingw.ads.
7827
7828 * s-osinte-mingw.ads:
7829 Move all non tasking based interface to s-win32.ads.
7830
7831 * s-osprim-mingw.adb:
7832 Remove duplicated declarations and use s-win32.ads
7833 unit instead.
7834
7835 2008-04-08 Vincent Celier <celier@adacore.com>
7836 Arnaud Charlet <charlet@adacore.com>
7837
7838 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
7839 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
7840 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
7841 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7842 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
7843
7844 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
7845 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
7846 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
7847 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
7848 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
7849 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
7850 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
7851 mlib-tgt-specific-mingw.adb: New names.
7852
7853 * Makefile.in:
7854 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
7855 Get rid of gnatbl.
7856 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
7857 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
7858 Minor updates for VMS
7859
7860 * gnatbl.c: Removed.
7861
7862 2008-04-08 Thomas Quinot <quinot@adacore.com>
7863
7864 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
7865 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
7866 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
7867 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
7868 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
7869 ASCII.NUL throughout.
7870
7871 2008-04-08 Arnaud Charlet <charlet@adacore.com>
7872 Matthew Heaney <heaney@adacore.com>
7873
7874 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
7875 renaming.
7876
7877 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
7878 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
7879 to convention for non-RM specs.
7880 Add descriptive header, and documented each operation
7881 document each operation
7882
7883 2008-04-08 Robert Dewar <dewar@adacore.com>
7884 Bob Duff <duff@adacore.com>
7885 Gary Dismukes <dismukes@adacore.com>
7886 Ed Schonberg <schonberg@adacore.com>
7887
7888 * alloc.ads: Add entries for Obsolescent_Warnings table
7889
7890 * einfo.ads, einfo.adb: Minor reformatting.
7891 (Is_Discriminal): New subprogram.
7892 (Is_Prival): New subprogram.
7893 (Is_Protected_Component): New subprogram.
7894 (Is_Protected_Private): Removed.
7895 (Object_Ref, Set_Object_Ref): Removed.
7896 (Prival, Set_Prival): Change assertion.
7897 (Privals_Chain, Set_Privals_Chain): Removed.
7898 (Prival_Link, Set_Prival_Link): New subprogram.
7899 (Protected_Operation, Set_Protected_Operation): Removed.
7900 (Protection_Object, Set_Protection_Object): New subprogram.
7901 (Write_Field17_Name): Remove case for Object_Ref.
7902 (Write_Field20_Name): Add case for Prival_Link.
7903 (Write_Field22_Name): Remove case for Protected_Operation,
7904 Privals_Chain.
7905 Add case for Protection_Object.
7906 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
7907 so clients
7908 (Overlays_Constant): New flag
7909 (Is_Constant_Object): New predicate
7910 (Is_Standard_Character_Type): New predicate
7911 (Optimize_Alignment_Space): New flag
7912 (Optimize_Alignment_Time): New flag
7913 (Has_Postconditions): New flag
7914 (Obsolescent_Warrning): Field removed
7915 (Spec_PPC_List): New field
7916 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
7917 subprograms to get and set the relative deadline associated to a task.
7918
7919 * exp_attr.adb (May_Be_External_Call): Account for the case where the
7920 Access attribute is part of a named parameter association.
7921 (Expand_Access_To_Protected_Op): Test for the attribute occurring
7922 within an init proc and use that directly as the scope rather than
7923 traversing up to the protected operation's enclosing scope. Only apply
7924 assertion on Is_Open_Scopes in the case the scope traversal is done.
7925 For the init proc case use the address of the first formal (_init) as
7926 the protected object reference.
7927 Implement Invalid_Value attribute
7928 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
7929 contents of the dispatch table there is no need to duplicate the
7930 itypes associated with record types (i.e. the implicit full view
7931 of private types).
7932 Implement Enum_Val attribute
7933 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
7934 within _Postconditions procedure
7935 (Expand_N_Attribute_Reference, case Result): Implement new attribute
7936
7937 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
7938 a return statement calls a function that is not available in
7939 configurable runtime.
7940 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
7941 (Expand_Non_Function_Return): Generate call to _Postconditions proc
7942 (Expand_Simple_Function_Return): Ditto
7943
7944 * frontend.adb: Add call to Sem_Aux.Initialize
7945
7946 * sem_aux.ads, sem_aux.adb: New file.
7947
7948 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
7949 Add new Pragma_Relative_Deadline.
7950 Add support for pragmas Check and Check_Policy
7951
7952 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
7953 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
7954 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
7955 missing check because they are not allowed in CPP tagged types.
7956 Add Sure parameter to Note_Possible_Modification calls
7957 Add implementation of Invalid_Value attribute
7958 Implement new attribute Has_Tagged_Values
7959 Implement Enum_Val attribute
7960 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
7961 generated attributes.
7962 (Analyze_Attribute, case Result): If prefix of the attribute is
7963 overloaded, it always resolves to the enclosing function.
7964 (Analyze_Attribute, case Result): Properly deal with analysis when
7965 Postconditions are not active.
7966 (Resolve_Attribute, case Result): Properly deal with appearence during
7967 preanalysis in spec.
7968 Add processing for attribute Result
7969
7970 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
7971 for operators.
7972 (Analyze_Subprogram_Body): Install private_with_clauses when the body
7973 acts as a spec.
7974 (Check_Inline_Pragma): recognize an inline pragma that appears within
7975 the subprogram body to which it applies.
7976 (Analyze_Function_Return): Check that type of the expression of a return
7977 statement in a function with a class-wide result is not declared at a
7978 deeper level than the function.
7979 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
7980 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
7981 user- defined operators.
7982 (Install_Formals): Moved to spec to allow use from Sem_Prag for
7983 analysis of precondition/postcondition pragmas.
7984 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
7985 Last_Formal, along with lots of comments on what this is about
7986 (Analyze_Subprogram_Body): Fix case where we move entities from the
7987 spec to the body when there are no body entities (now possible with
7988 precondition and postcondition pragmas).
7989 (Process_PPCs): New procedure
7990 (Analyze_Subprogram_Body): Add call to Process_PPCs
7991
7992 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
7993 clause.
7994 (Pop_Scope): Restore Check_Policy_List on scope exit
7995 (Push_Scope): Save Check_Policy_List on scope entry
7996 Change name In_Default_Expression => In_Spec_Expression
7997 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
7998 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
7999 (Analyze_Object_Renaming): Allow 'Reference as object
8000 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
8001 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
8002 of restriction identifier.
8003 Add Sure parameter to Note_Possible_Modication calls
8004
8005 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
8006 Don't check for primitive operations when calling Rep_Item_Too_Late.
8007 (Process_Import_Or_Interface): Do not place flag on formal
8008 subprograms.
8009 (Analyze_Pragma, case Export): If the entity is a deferred constant,
8010 propagate information to full view, which is the one elaborated by the
8011 back-end.
8012 (Make_Inline): the pragma is effective if it applies to an internally
8013 generated subprogram declaration for a body that carries the pragma.
8014 (Analyze_Pragma, case Optimize_Alignment): Set new flag
8015 Optimize_Alignment_Local.
8016 (Analyze_PPC_In_Decl_Part): New procedure
8017 (Get_Pragma_Arg): Moved to outer level
8018 (Check_Precondition_Postcondition): Change to allow new visibility
8019 rules for package spec
8020 (Analyze_Pragma, case Check_Policy): Change placement rules to be
8021 same as pragma Suppress/Unsuppress.
8022 Change name In_Default_Expression => In_Spec_Expression
8023 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8024 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8025 (Check_Precondition_Postcondition): Do proper visibility preanalysis
8026 for the case of these pragmas appearing in the spec.
8027 (Check_Enabled): New function
8028 (Initialize): New procedure
8029 (Tree_Read): New procedure
8030 (Tree_Write): New procedure
8031 (Check_Precondition_Postcondition): New procedure
8032 Implement pragmas Check and Check_Policy
8033 Merge Assert processing with Check
8034
8035 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
8036 New warning flag -gnatw.e
8037
8038 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
8039 returning whether a task (or main procedure) has a pragma
8040 Relative_Deadline.
8041 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
8042 (or main procedure) has a pragma Relative_Deadline.
8043 Add Next_Pragma field to N_Pragma node
8044 (PPC_Enabled): New flag
8045 (Next_Pragma): Now used for Pre/Postcondition processing
8046
8047 * snames.h, snames.ads, snames.adb: New standard name
8048 Inherit_Source_Path
8049 Add entry for 'Invalid_Value attribute
8050 Add entry for new attribute Has_Tagged_Values
8051 Add entry for Enum_Val attribute
8052 Add new standard names Aggregate, Configuration and Library.
8053 Add _Postconditions
8054 Add _Result
8055 Add Pragma_Precondition
8056 Add Pragma_Postcondition
8057 Add Attribute_Result
8058 New standard name Archive_Builder_Append_Option
8059 (Preset_Names): Add _relative_deadline and relative_deadline definitions
8060 There was also a missing non_preemptive_within_priorities.
8061 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
8062 Relative_Deadline.
8063 Add support for pragmas Check and Check_Policy
8064
8065 * tree_gen.adb: Call Sem_Aux.Tree_Write
8066
8067 * tree_in.adb: Call Sem_Aux.Tree_Read
8068
8069 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
8070 sequence
8071
8072 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
8073 sequence
8074
8075 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
8076 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
8077 Relative_Deadline.
8078 (Expand_Pragma_Check): New procedure
8079
8080 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
8081 buffer.
8082
8083 * sinfo.adb (PPC_Enabled): New flag
8084
8085 2008-04-08 Robert Dewar <dewar@adacore.com>
8086 Gary Dismukes <dismukes@adacore.com>
8087 Javier Miranda <miranda@adacore.com>
8088 Ed Schonberg <schonberg@adacore.com>
8089
8090 * fe.h: Remove global Optimize_Alignment flag, no longer used
8091
8092 * layout.adb: Test Optimize_Alignment flags rather than global switch
8093
8094 * lib.ads, lib.adb: New OA_Setting field in library record
8095
8096 * lib-load.adb: New OA_Setting field in library record
8097
8098 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
8099 units mentioned in limited_with_ clauses in the ali file, with an
8100 'Y' marker.
8101 New Ox fields in U line
8102
8103 * opt.adb: New flag Optimize_Alignment_Local
8104 (Check_Policy_List[_Config]): New flags
8105
8106 * opt.ads (Invalid_Value_Used): New flag
8107 New switch Optimize_Alignment_Local
8108 (Warn_On_Parameter_Order): New flag
8109 (Check_Policy_List[_Config]): New flags
8110
8111 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
8112 limited_with clauses.
8113 New data structures for Optimize_Alignment
8114
8115 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
8116 New procedure
8117 (Check_Consistent_Optimize_Alignment): Rework for new structure
8118 (Check_Consistent_Restrictions): Fix incorrect error message
8119
8120 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
8121 created class-wide type (to the Parent field of the specific type).
8122 (Install_Siblings): Handle properly private_with_clauses on subprogram
8123 bodies and on generic units.
8124 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
8125 illegal limited_with_clause that names a non-existent package.
8126 (Check_Body_Required): Determine whether a unit named a limited_with
8127 clause needs a body.
8128 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
8129 Capture Optimize_Alignment settings to set new OA_Setting field in
8130 library record.
8131 (Build_Limited_Views): Include task and protected type declarations.
8132
8133 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
8134 case of a possible constant redeclaration where the current object is
8135 an entry index constant.
8136 (Analyze_Object_Declaration): Generate an error in case of CPP
8137 class-wide object initialization.
8138 (Analyze_Object_Declaration): Add extra information on warnings for
8139 declaration of unconstrained objects.
8140 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
8141 conflicts with the setting of Stored_Constraint in the case where the
8142 access type entity has already been created as an E_Incomplete_Type due
8143 to a limited with clause.
8144 Use new Is_Standard_Character_Type predicate
8145 (Analyze_Object_Declaration): Apply access_constant check only after
8146 expression has been resolved, given that it may be overloaded with
8147 several access types.
8148 (Constant_Redeclaration): Additional legality checks for deferred
8149 constant declarations tha involve anonymous access types and/or null
8150 exclusion indicators.
8151 (Analyze_Type_Declaration): Set Optimize_Alignment flags
8152 (Analyze_Subtype_Declaration): Ditto
8153 (Analyze_Object_Declaration): Ditto
8154 (Analyze_Object_Declaration): Don't count tasks in generics
8155 Change name In_Default_Expression => In_Spec_Expression
8156 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8157 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8158 (Process_Discriminants): Additional check for illegal use of default
8159 expressions in access discriminant specifications in a type that is not
8160 explicitly limited.
8161 (Check_Abstract_Overriding): If an inherited function dispaches on an
8162 access result, it must be overridden, even if the type is a null
8163 extension.
8164 (Derive_Subprogram): The formals of the derived subprogram have the
8165 names and defaults of the parent subprogram, even if the type is
8166 obtained from the actual subprogram.
8167 (Derive_Subprogram): In the presence of interfaces, a formal of an
8168 inherited operation has the derived type not only if it descends from
8169 the type of the formal of the parent operation, but also if it
8170 implements it. This is relevant for the renamings created for the
8171 primitive operations of the actual for a formal derived type.
8172 (Is_Progenitor): New predicate, to determine whether the type of a
8173 formal in the parent operation must be replaced by the derived type.
8174
8175 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
8176 predicate recursive to handle components that have a user-defined
8177 Initialize procedure. Handle controlled derived types whose ancestor
8178 has a user-defined Initialize procedured.
8179 (Note_Possible_Modification): Add Sure parameter, generate warning if
8180 sure modification of constant
8181 Use new Is_Standard_Character_Type predicate
8182 (Find_Parameter_Type): when determining whether a protected operation
8183 implements an interface operation, retrieve the type of the formal from
8184 the entity when the formal is an access parameter or an
8185 anonymous-access-to-subprogram.
8186 Move Copy_Parameter_List to sem_util, for use when building stubbed
8187 subprogram bodies.
8188 (Has_Access_Values): Tagged types now return False
8189 (Within_HSS_Or_If): New procedure
8190 (Set_Optimize_Alignment_Flags): New procedure
8191 Change name In_Default_Expression => In_Spec_Expression
8192 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8193 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8194
8195 2008-04-08 Tristan Gingold <gingold@adacore.com>
8196
8197 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
8198
8199 2008-04-08 Tristan Gingold <gingold@adacore.com>
8200
8201 PR ada/10768
8202
8203 * cuintp.c: Fix 16 bits issue for AVR.
8204 On AVR, integer is 16 bits, so it can't be used to do math with
8205 Base (=32768).
8206 So use long_integer instead.
8207
8208 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8209
8210 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
8211 System.OS_Primitives.
8212 Change type of various constants, parameters and local variables from
8213 Time to representation type OS_Time.
8214 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
8215 Remove the declaration of constant Mili_F from several routines. New
8216 body for internal package Conversions_Operations.
8217 (Time_Of): Add default parameters for several formals.
8218
8219 * a-caldel.adb: Minor reformatting
8220
8221 * a-calend.ads, a-calend.adb: New body for internal package
8222 Conversions_Operations.
8223 (Time_Of): Add default parameters for several formals.
8224
8225 * Makefile.rtl: Add a-ststop
8226 Add Ada.Calendar.Conversions to the list of runtime files.
8227 Add g-timsta
8228
8229 * a-calcon.adb, a-calcon.ads: New files.
8230
8231 2008-04-08 Jose Ruiz <ruiz@adacore.com>
8232 Tristan Gingold <gingold@adacore.com>
8233
8234 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
8235 (Install_Restricted_Handlers): New procedure
8236 which is a simplified version of Install_Handlers that does not store
8237 previously installed.
8238
8239 * s-interr-vxworks.adb: Fix ACATS cxc3001
8240 On VxWorks interrupts can't be detached.
8241 (Install_Restricted_Handlers): New procedure.
8242
8243 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
8244 procedure.
8245
8246 2008-04-08 Olivier Hainque <hainque@adacore.com>
8247
8248 * s-intman-vxworks.ads, s-intman-vxworks.adb
8249 (Map_And_Raise_Exception): Remove. Was an import of only part of the
8250 required services already implemented elsewhere.
8251 (Notify_Exception): Delete body, import __gnat_error_handler instead.
8252 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
8253 argument passed to the handler, which we need for ZCX propagation
8254 purposes.
8255
8256 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8257
8258 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
8259
8260 * g-timsta.adb, g-timsta.ads: New files.
8261
8262 2008-04-08 Robert Dewar <dewar@adacore.com>
8263
8264 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
8265 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
8266 (Raise_Exception_Always): Fix documentation accordingly
8267
8268 2008-04-08 Robert Dewar <dewar@adacore.com>
8269
8270 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
8271 Stream_Convert)
8272
8273 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
8274 FOnly
8275
8276 2008-04-08 Javier Miranda <miranda@adacore.com>
8277 Robert Dewar <dewar@adacore.com>
8278 Ed Schonberg <schonberg@adacore.com>
8279
8280 * a-tags.adb (Register_Interface_Offset): New subprogram.
8281 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
8282 (To_Predef_Prims_Table_Ptr): Removed.
8283 (Acc_Size): Removed.
8284 (To_Acc_Size): Removed.
8285 (Parent_Size): Modified to the call the subprogram returning the size of
8286 the parent by means of the new TSD component Size_Func.
8287
8288 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
8289 (DT_Offset_To_Top_Offset): New constant value that is used to generate
8290 code referencing the Offset_To_Top component of the dispatch table's
8291 prologue.
8292 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
8293 use of 'address to initialize dispatch table slots.
8294 (Size_Func): New component of the TSD. Used by the run-time to call the
8295 size primitive of the tagged type.
8296
8297 * checks.adb (Apply_Access_Check): Avoid check when accessing the
8298 Offset_To_Top component of a dispatch table.
8299 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
8300 deferred constant declaration. do not add a null expression, to prevent
8301 spurious errors when full declaration is analyzed.
8302 (Apply_Discriminant_Check): If both discriminant constraints share a
8303 node which is not static but has no side effects, do not generate a
8304 check for that discriminant.
8305 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
8306 subexpr, since the prefix of an attribute is a name.
8307
8308 * checks.ads: Fix nit in comment.
8309
8310 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
8311 and body of predefined primitives in case of CPP tagged type
8312 derivations.
8313 (Freeze_Type): Deal properly with no storage pool case
8314 (Make_Predefined_Primitive_Specs): Generate specification of abstract
8315 primitive Deep_Adjust if a nonlimited interface is derived from a
8316 limited interface.
8317 (Build_Dcheck_Functions): Create discriminant-checking functions only
8318 for variants that have some component(s).
8319 (Build_Slice_Assignment): In expanded code for slice assignment, handle
8320 properly the case where the slice bounds extend to the last value of the
8321 underlying representation.
8322 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
8323 (Is_Variable_Size_Record): An array component has a static size if
8324 index bounds are enumeration literals.
8325
8326 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
8327 an external tag has been specified for the type.
8328 (Building_Static_DT): Add missing support for private types.
8329 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
8330 to the entity associated with the parent of Typ. This is done to
8331 avoid wrong access when the parent is a private type.
8332 (Expand_Interface_Conversion): Improve error message when the
8333 configurable runtime has no support for dynamic interface conversion.
8334 (Expand_Interface_Thunk): Add missing support to interface types in
8335 configurable runtime.
8336 (Expand_Dispatching_Call): remove obsolete code.
8337 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
8338 ensure that all subtypes and aggregates associated with dispatch
8339 tables have the attribute Is_Dispatch_Table_Entity set to true.
8340 (Register_Primitive): Rename one variable to improve code reading.
8341 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
8342 of the pointer to the 'size primitive in the TSD.
8343
8344 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
8345 (RE_Offset_To_Top_Ptr): New entity.
8346 (RE_Register_Interface_Offset): New entity.
8347 (RE_Set_Dynamic_Offset_To_Top): New entity.
8348 (RE_Set_Offset_To_Top): Removed entity.
8349 (RE_Prim_Ptr): New entity
8350 (RE_Size_Func): New entity
8351 (RE_Size_Ptr): New entity
8352 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
8353 (Ada_Dispatching_Child): Define this new subrange.
8354 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
8355 RE_Time_Span, and RE_Time_Span_Zero).
8356 (RE_Unit_Table): Add new required run-time calls
8357
8358 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
8359 children.
8360
8361 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
8362 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
8363 initializes the Offset_To_Top component of a dispatch table.
8364 (Build_Predef_Prims): Removed.
8365 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
8366 its actual code.
8367 (Build_Set_Size_Function): New subprogram.
8368
8369 * exp_ch13.adb: Do not generate storage variable for storage_size zero
8370 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
8371
8372 2008-04-08 Robert Dewar <dewar@adacore.com>
8373
8374 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
8375 computing Fore when Exp > 0
8376
8377 2008-04-08 Robert Dewar <dewar@adacore.com>
8378
8379 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
8380
8381 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
8382 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
8383
8384 * fmap.adb: Remove Big_String declarations (now in Types)
8385 (No_Mapping_File): New Boolean global variable
8386 (Initialize): When mapping file cannot be read, set No_Mapping_File to
8387 False.
8388 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
8389 tables were empty before adding entries, open the mapping file
8390 with Truncate = True, instead of delete/re-create.
8391
8392 * fname-sf.adb: Remove Big_String declarations (now in Types)
8393
8394 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
8395 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
8396 big pointer types
8397
8398 * table.ads: Add for Table_Ptr'Storage_Size use 0
8399
8400 * types.ads: Add Big_String declarations
8401 Add Size_Clause of zero for big pointer types
8402
8403 2008-04-08 Vincent Celier <celier@adacore.com>
8404
8405 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
8406 (Usage): Add line for switch --subdirs=
8407 Add new switch -eL, to follow symbolic links when processing project
8408 files.
8409
8410 * gnatcmd.adb: Process switches -eL and --subdirs=
8411 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
8412 Program_Name to get proper tool names when AAMP_On_Target is set.
8413 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
8414 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
8415 Osint.Program_Name).
8416
8417 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
8418 (Usage): Add lines for switches -eL and --subdirs=
8419
8420 * makeusg.adb: Add line for switch --subdirs=
8421
8422 * prj.ads:
8423 (Source_Data): New Boolean component Compiled, defaulted to True
8424 (Empty_File_Name: New global variable in private part, initialized in
8425 procedure Initialize.
8426 (Subdirs_Option): New constant string
8427 (Subdirs): New String_Ptr global variable
8428 (Language_Config): New component Include_Compatible_Languages
8429 (Project_Qualifier): New type for project qualifiers
8430 (Project_Data): New component Qualifier
8431 (Project_Configuration): New component Archive_Builder_Append_Option
8432
8433 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
8434 another imported project indicate the name of this imported project.
8435 (Check_File): When a unit is in two project files, indicate the project
8436 names and the paths of the source files for each project.
8437 (Add_Source): Set Compiled to False if compiler driver is empty. Only
8438 set object, dependency and switches file names if Compiled is True.
8439 (Process_Compiler): Allow the empty string for value of attribute Driver
8440 (Get_Directories): When Subdirs is not null and Object_Dir is not
8441 specified, locate and create if necessary the actual object dir.
8442 (Locate_Directory): When Subdirs is not empty and Create is not the
8443 empty string, locate and create if necessary the actual directory
8444 as a subdirectory of directory Name.
8445 (Check_Library_Attributes.Check_Library): Allow a project where the only
8446 "sources" are header files of file based languages to be imported by
8447 library projects, in multi-language mode (gprbuild).
8448 (Check_Library_Attributes.Check_Library): In multi-language mode
8449 (gprbuild), allow a library project to import a project with no
8450 sources, even when this is not declared explicitly.
8451 (Check_If_Externally_Built): A virtual project extending an externally
8452 built project is also externally built.
8453 (Check_Library_Attributes): For a virtual project extending a library
8454 project, inherit the library directory.
8455 (Process_Project_Level_Array_Attributes): Process new attribute
8456 Inherit_Source_Path.
8457 For projects with specified qualifiers "standard", "library" or
8458 "abstract", check that the project conforms to the qualifier.
8459 (Process_Project_Level_Simple_Attributes): Process new attribute
8460 Archive_Builder_Append_Option.
8461
8462 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
8463 (Normalize_Compiler_Switches): Only keep compiler switches that are
8464 passed to gnat1 by the gcc driver and that are stored in the ALI file
8465 by gnat1.
8466 Do not take into account switc -save-temps
8467
8468 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
8469 gprmake is called with -eL.
8470 (Scan_Arg): Recognize switch -eL
8471 (Usage): Add line for switch -eL
8472
8473 * prj.adb (Initialize): Initialize Empty_File_Name
8474 (Project_Empty): New component Qualifier
8475
8476 * prj-attr.ads, prj-attr.adb: New project level attribute
8477 Inherit_Source_Path.
8478 New project level attribute Archive_Builder_Append_Option
8479
8480 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
8481
8482 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
8483 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
8484 upward compatibility.
8485
8486 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
8487 each Trying ..." on different lines.
8488 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
8489 is "configuration" when not in configuration. Fail when in configuration
8490 when a specified qualifier is other than "configuration".
8491
8492 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
8493 full associative array together.
8494 (Recursive_Process): Put the project qualifier in the project data
8495
8496 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
8497 (Set_Project_Qualifier_Of): New procedure
8498
8499 2008-04-08 Robert Dewar <dewar@adacore.com>
8500
8501 * errout.ads: Update comments for new handling of info: messages
8502
8503 * erroutc.adb (Matches): New procedure
8504 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
8505 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
8506 info messages as well as style messages.
8507
8508 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
8509
8510 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
8511 subprograms.
8512 (Check_A_Call): Special "info: " warnings now have ? in the text
8513 (Elab_Warning): Use info message in static case
8514
8515 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8516
8517 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
8518 whether an array aggregate with static bounds and scalar components
8519 should be expanded into a static constant.
8520
8521 2008-04-08 Gary Dismukes <dismukes@adacore.com>
8522 Ed Schonberg <schonberg@adacore.com>
8523 Robert Dewar <dewar@adacore.com>
8524
8525 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
8526 Has_Stream_Attribute_ Definition when checking for available stream
8527 attributes on parameters of a limited type in Ada 2005. Necessary for
8528 proper recognition of visible stream attribute clauses.
8529 (Has_Stream_Attribute_Definition): If the type is derived from a
8530 private type, then use the derived type's underlying type for checking
8531 whether it has stream attributes.
8532 (Validate_Object_Declaration): The check for a user-defined Initialize
8533 procedure applies also to types with controlled components or a
8534 controlled ancestor.
8535 Reject an object declaration in a preelaborated unit if the type is a
8536 controlled type with an overriding Initialize procedure.
8537 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
8538 checking when the parent of a dereference is a selected component and
8539 the name has not been analyzed.
8540
8541 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
8542 prefixes that are invalid explicit dereferences of remote
8543 access-to-class-wide values, first checking whether the selected
8544 component is a prefixed form of call to a tagged operation.
8545 (Analyze_Call): Remove code that issues an error for limited function
8546 calls in illegal contexts, as we now support all of the contexts that
8547 were forbidden here.
8548 Allow a function call that returns a task.and appears as the
8549 prefix of a selected component.
8550 (Analyze_Reference): Give error message if we try to make a 'Reference
8551 for an object that is atomic/aliased without its type having the
8552 corresponding attribute.
8553 (Analyze_Call): Remove condition checking for attributes to allow
8554 calls to functions with inherently limited results as prefixes of
8555 attributes. Remove related comment about Class attributes.
8556 (Analyze_Selected_Component): If the prefix is a remote type, check
8557 whether this is a prefixed call before reporting an error.
8558 (Complete_Object_Operation): If the controlling formal is an access to
8559 variable reject an actual that is a constant or an access to one.
8560 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8561 primitive operations from base type.
8562
8563 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
8564 build-in-place
8565 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8566 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
8567 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8568 (Expand_N_Slice): Test for prefix that is a build-in-place function call
8569 and call Make_Build_In_Place_Call_In_Anonymous_Context.
8570 (Analyze_Call): Remove code that issues an error for limited function
8571 calls in illegal contexts, as we now support all of the contexts that
8572 were forbidden here.
8573 New calling sequence for Get_Simple_Init_Val
8574 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
8575 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
8576
8577 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8578 Ed Schonberg <schonberg@adacore.com>
8579 Robert Dewar <dewar@adacore.com>
8580
8581 * exp_ch2.adb: Minor reformatting.
8582 (Expand_Entry_Index_Parameter): Set the type of the identifier.
8583 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
8584 (Expand_Protected_Component): New routine.
8585 (Expand_Protected_Private): Removed.
8586 Add Sure parameter to Note_Possible_Modification calls
8587
8588 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
8589 generated subprogram declaration must inherit the overriding indicator
8590 from the instantiation node.
8591 (Validate_Access_Type_Instance): If the designated type of the actual is
8592 a limited view, use the available view in all cases, not only if the
8593 type is an incomplete type.
8594 (Instantiate_Object): Actual is illegal if the formal is null-excluding
8595 and the actual subtype does not exclude null.
8596 (Process_Default): Handle properly abstract formal subprograms.
8597 (Check_Formal_Package_Instance): Handle properly defaulted formal
8598 subprograms in a partially parameterized formal package.
8599 Add Sure parameter to Note_Possible_Modification calls
8600 (Validate_Derived_Type_Instance): if the formal is non-limited, the
8601 actual cannot be limited.
8602 (Collect_Previous_Instances): Generate instance bodies for subprograms
8603 as well.
8604
8605 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
8606 try to set RM_Size.
8607 Add Sure parameter to Note_Possible_Modification calls
8608 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
8609 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
8610 constant overlaid by variable and issue warning.
8611 Use new Is_Standard_Character_Type predicate
8612 (Analyze_Record_Representation_Clause): Check that the specified
8613 Last_Bit is not less than First_Bit - 1.
8614 (Analyze_Attribute_Definition_Clause, case Address): Check for
8615 self-referential address clause
8616
8617 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
8618 detection mechanism when the lhs is a prival.
8619 (Analyze_Assignment): Call Check_Unprotected_Access to detect
8620 assignment of a pointer to protected data, to an object declared
8621 outside of the protected object.
8622 (Analyze_Loop_Statement): Check for unreachable code after loop
8623 Add Sure parameter to Note_Possible_Modication calls
8624 Protect analysis from previous syntax error such as a scope mismatch
8625 or a missing begin.
8626 (Analyze_Assignment_Statement): The assignment is illegal if the
8627 left-hand is an interface.
8628
8629 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
8630 violation of restriction No_Implicit_Conditionals
8631 Add Sure parameter to Note_Possible_Modication calls
8632 Use new Is_Standard_Character_Type predicate
8633 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
8634 call as operator. Fixes problems (e.g. validity checking) which
8635 come from the result looking as though it does not come from source).
8636 (Resolve_Call): Check case of name in named parameter if style checks
8637 are enabled.
8638 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
8639 from the checking that such calls should not occur from an entry body.
8640 (Resolve_Call): If the return type of an Inline_Always function
8641 requires the secondary stack, create a transient scope for the call
8642 if the body of the function is not available for inlining.
8643 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
8644 that are actuals for in-out formals.
8645 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8646 primitive operations from base type.
8647 (Analyze_Selected_Component): If the context is a call to a protected
8648 operation the parent may be an indexed component prior to expansion.
8649 (Resolve_Actuals): If an actual is of a protected subtype, use its
8650 base type to determine whether a conversion to the corresponding record
8651 is needed.
8652 (Resolve_Short_Circuit): Handle pragma Check
8653
8654 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
8655 Use new Is_Standard_Character_Type predicate
8656 (Eval_Relational_Op): Catch more cases of string comparison
8657
8658 2008-04-08 Robert Dewar <dewar@adacore.com>
8659 Gary Dismukes <dismukes@adacore.com>
8660
8661 * s-rident.ads: Add No_Default_Initialization restriction
8662
8663 * exp_tss.adb:
8664 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
8665 (Set_TSS): Handle No_Default_Initialization case
8666
8667 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
8668 No_Default_Initialization
8669 (Expand_N_Subprogram_Body): Remove redundant initialization of out
8670 parameters when Normalize_Scalars is active.
8671 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
8672 Fix casing error in formal parameter name in call
8673 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
8674 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
8675 dispatching call on VM targets.
8676
8677 2008-04-08 Gary Dismukes <dismukes@adacore.com>
8678 Thomas Quinot <quinot@adacore.com>
8679
8680 * exp_ch7.adb (Find_Final_List): Change the test for generating a
8681 selected component from an access type's Associated_Final_Chain to
8682 check for the presence of that field, rather than assuming it exists
8683 for all named access types.
8684 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
8685 procedure to call at the end of the generated cleanup procedure.
8686 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
8687 and an At_End_Proc already exists in the handled sequence of statements
8688 for which cleanup actions are being expanded, the original cleanup
8689 action must be preserved.
8690
8691 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8692 Ed Schonberg <schonberg@adacore.com>
8693 Robert Dewar <dewar@adacore.com>
8694 Gary Dismukes <dismukes@adacore.com>
8695
8696 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
8697 Build_Unprotected_Subprogram_Body): Generate debug info for
8698 declarations related to the handling of private data in task and
8699 protected types.
8700 (Debug_Private_Data_Declarations): New subprogram.
8701 (Install_Private_Data_Declarations): Remove all debug info flagging.
8702 This is now done by Debug_Private_Data_Declarations at the correct
8703 stage of expansion.
8704 (Build_Simple_Entry_Call): If the task name is a function call, expand
8705 the prefix into an object declaration, and make the surrounding block a
8706 task master.
8707 (Build_Master_Entity): An internal block is a master if it wraps a call.
8708 Code reformatting, update comments. Code clean up.
8709 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
8710 (Replicate_Entry_Formals): If the formal is an access parameter or
8711 anonymous access to subprogram, copy the original tree to create new
8712 entities for the formals of the subprogram.
8713 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
8714 for tasks to store the value passed using pragma Relative_Deadline.
8715 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
8716 run-time call to create a task.
8717 (Build_Wrapper_Spec): If the controlling argument of the interface
8718 operation is an access parameter with a non-null indicator, use the
8719 non-null indicator on the wrapper.
8720
8721 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
8722 present, which it may not be in the case where the type entity is an
8723 incomplete view brought in by a limited with.
8724 (Analyze_Task_Type): Only retrieve the full view when present, which it
8725 may not be in the case where the type entity is an incomplete view brought
8726 in by a limited with.
8727 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
8728 private components of a protected type, to prevent the generation of freeze
8729 nodes for which there is no proper scope of elaboration.
8730
8731 * exp_util.ads, exp_util.adb
8732 (Remove_Side_Effects): If the expression is a function call that returns a
8733 task, expand into a declaration to invoke the build_in_place machinery.
8734 (Find_Protection_Object): New routine.
8735 (Remove_Side_Effects): Also make a copy of the value
8736 for attributes whose result is of an elementary type.
8737 (Silly_Boolean_Array_Not_Test): New procedure
8738 (Silly_Boolean_Array_Xor_Test): New procedure
8739 (Is_Volatile_Reference): New function
8740 (Remove_Side_Effects): Use Is_Volatile_Reference
8741 (Possible_Bit_Aligned_Component): Handle slice case properly
8742
8743 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
8744 case test to Exp_Util
8745 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
8746
8747 2008-04-08 Thomas Quinot <quinot@adacore.com>
8748
8749 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
8750 in call
8751 (Add_RACW_Features): When processing an RACW in another unit than the
8752 main unit, set Body_Decls to No_List to indicate that the bodies of
8753 the type's TSS must not be generated.
8754 (GARLIC_Support.Add_RACW_Read_Attribute,
8755 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
8756 Body_Decls is No_List.
8757 (PolyORB_Support.Add_RACW_Read_Attribute,
8758 PolyORB_Support.Add_RACW_Write_Attribute,
8759 PolyORB_Support.Add_RACW_From_Any,
8760 PolyORB_Support.Add_RACW_To_Any,
8761 PolyORB_Support.Add_RACW_TypeCode): Same.
8762 (Transmit_As_Unconstrained): New function.
8763 (Build_Ordered_Parameters_List): Use the above to order parameters.
8764 (GARLIC_Support.Build_General_Calling_Stubs):
8765 Use the above to determine which parameters to unmarshall using 'Input
8766 at the point where their temporary is declared (as opposed to later on
8767 with a 'Read call).
8768 (PolyORB_Support.Build_General_Calling_Stubs):
8769 Use the above to determine which parameters to unmarshall using From_Any
8770 at the point where their temporary is declared (as opposed to later on
8771 with an assignment).
8772
8773 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8774
8775 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
8776 an Input function for an access type, do not perform default
8777 initialization on the local variable that receives the value, to
8778 prevent spurious warnings when the type is null-excluding.
8779
8780 2008-04-08 Robert Dewar <dewar@adacore.com>
8781 Ed Schonberg <schonberg@adacore.com>
8782
8783 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
8784 units.
8785 (Size_Known): Generic formal scalar types have known at compile
8786 time size, so remove check.
8787 Fix casing error in formal parameter name in call
8788 (Freeze_Subprogram): If the subprogram is a user-defined operator,
8789 recheck its overriding indication.
8790
8791 2008-04-08 Vincent Celier <celier@adacore.com>
8792
8793 * gnat1drv.adb: Send all messages indicating an error to standard error
8794
8795 2008-04-08 Robert Dewar <dewar@adacore.com>
8796
8797 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
8798 (List_Applicable_Restrictions): Do not list existing restrictions
8799
8800 2008-04-08 Thomas Quinot <quinot@adacore.com>
8801
8802 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
8803 add a pointer to generic sockets literature
8804 do not mention that the given example is "typical" usage.
8805 Remove obsolete comment about multicast not being supported on Windows.
8806 (Connect_Socket): Make Server mode IN rather than IN OUT
8807 since this formal is never modified.
8808
8809 2008-04-08 Robert Dewar <dewar@adacore.com>
8810
8811 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
8812 the declaration for some different entity.
8813 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
8814 list is precent (following the parent subtype indication), display
8815 appropriate "and" keyword.
8816
8817 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
8818 Remove unnecessary calls to Init_Size_Align and Init_Esize.
8819 Add notes on use of Parent field of an Itype
8820
8821 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8822 Robert Dewar <dewar@adacore.com>
8823 Gary Dismukes <dismukes@adacore.com>
8824
8825 * lib-xref.adb (Is_On_LHS): Remove dead code
8826 (Output_Overriden_Op): If the overridden operation is itself inherited,
8827 list the ancestor operation, which is the one whose body or absstract
8828 specification is actually being overridden. For source navigation
8829 purposes.
8830
8831 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
8832 operation is primitive for the type.
8833 (Declare_Inherited_Private_Subprograms): If the new operation overrides
8834 an inherited private subprogram, set properly the Overridden_Operation
8835 attribute, for better cross-reference information.
8836 (Analyze_Package_Specification): Do late analysis of spec PPCs
8837 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
8838 properly the full view and underlying full views of a private type in a
8839 child unit, whose full view is derived from a private type in a parent
8840 unit, and whose own full view becomes visible in the child body.
8841
8842 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
8843 primitive operation after the type has been frozen, add an explicit
8844 reference to the type and the operation, because other primitive
8845 references have been emitted already.
8846 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
8847 dispatching call on VM targets.
8848
8849 2008-04-08 Vincent Celier <celier@adacore.com>
8850 Thomas Quinot <quinot@adacore.com>
8851
8852 * make.adb: (Gnatmake_Called): Remove, no longer necessary
8853 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
8854 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
8855 (Insert_Project_Sources): Take into account index in multi-unit source
8856 files.
8857 After building a library project, delete all temporary files.
8858 (Initialize): Reset current output after parsing project file.
8859 (Collect_Arguments_And_Compile): Never insert in the queue the sources
8860 of library projects that are externally built.
8861 Put file name in error and inform messages if -df is used
8862 (Display): If invoked with -d7, do not display path names, but only
8863 file names.
8864
8865 * makeutl.ads (Path_Or_File_Name): New function
8866 (Path_Or_File_Name): New function
8867
8868 2008-04-08 Arnaud Charlet <charlet@adacore.com>
8869
8870 * Make-lang.in: Disable warnings during first stage of bootstrap
8871 Get rid of gnatbl.
8872 Update dependencies.
8873
8874 2008-04-08 Vincent Celier <celier@adacore.com>
8875
8876 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
8877 case to decide if ALI object file is included in library.
8878 (Build_Library): Never attempt to build a library if the project is
8879 externally built.
8880
8881 2008-04-08 Thomas Quinot <quinot@adacore.com>
8882
8883 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
8884 (No_List) is defined to return Empty.
8885
8886 2008-04-08 Jose Ruiz <ruiz@adacore.com>
8887
8888 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
8889 documentation.
8890 Update comments.
8891 (Read_Default_Search_Dirs): Do not consider spaces as path separators
8892 because spaces may be part of legal paths.
8893
8894 2008-04-08 Robert Dewar <dewar@adacore.com>
8895
8896 * par-ch11.adb (P_Exception_Handler): Check indentation level for
8897 handler
8898
8899 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8900
8901 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
8902 in a type declaration, if this is not an interface declaration or
8903 private type extension.
8904
8905 2008-04-08 Vincent Celier <celier@adacore.com>
8906
8907 * prj-util.adb (Executable_Of): New String parameter Language. When
8908 Ada_Main is False and Language is not empty, attempt to remove the body
8909 suffix or the spec suffix of the language to get the base of the
8910 executable file name.
8911 (Put): New Boolean parameter Lower_Case, defauilted to False. When
8912 Lower_Case is True, put the value in lower case in the name list.
8913 (Executable_Of): If there is no executable suffix in the configuration,
8914 then do not modify Executable_Extension_On_Target.
8915
8916 * prj-util.ads (Executable_Of): New String parameter Language,
8917 defaulted to the empty string.
8918 (Put): New Boolean parameter Lower_Case, defauilted to False
8919
8920 2008-04-08 Robert Dewar <dewar@adacore.com>
8921
8922 * scng.adb (Scan_Identifier): Handle case of identifier starting with
8923 wide character using UTF-8 encoding.
8924
8925 2008-04-08 Javier Miranda <miranda@adacore.com>
8926
8927 * sem.adb (Analyze): Consider case in which we analyze an empty node
8928 that was generated by a call to a runtime function that is not
8929 available under the configurable runtime.
8930
8931 * sem.ads (Inside_Freezing_Actions): New flag.
8932 (Save_Check_Policy_List): New field in scope stack entry
8933
8934 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8935 Robert Dewar <dewar@adacore.com>
8936
8937 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
8938 the ancestor part of an extension aggregate for a limited type.
8939 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
8940 enumeration index bounds.
8941 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
8942 when array is too short.
8943 (Check_Expr_OK_In_Limited_Aggregate): Move function
8944 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
8945 change name).
8946 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
8947 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
8948 component associations.
8949 (Check_Non_Limited_Type): Moved to outer level and renamed.
8950 (Resolve_Record_Aggregate): In an extension aggregate, an association
8951 with a box initialization can only designate a component of the
8952 extension, not a component inherited from the given ancestor
8953
8954 * sem_case.adb: Use new Is_Standard_Character_Type predicate
8955
8956 2008-04-08 Robert Dewar <dewar@adacore.com>
8957
8958 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
8959 negative scale
8960 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
8961 Properly handle case where Aft > Scale and input number is less than
8962 one.
8963
8964 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8965
8966 * s-stoele.ads, s-soflin.ads: Move the location of
8967 Dummy_Communication_Block from System.Storage_Elements to
8968 System.Soft_Links.
8969
8970 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
8971 emulate Communication_Block in certain scenarios.
8972
8973 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8974
8975 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
8976 subprogram.
8977 Add new subtype S_WWC, unchecked conversion routines From_WWC and
8978 To_WWC.
8979 (I_WWC, O_WWC): New routines for input and output of
8980 Wide_Wide_Character.
8981
8982 2008-04-08 Robert Dewar <dewar@adacore.com>
8983
8984 * stringt.adb (Write_String_Table_Entry): Handle wide characters
8985 properly
8986
8987 2008-04-08 Robert Dewar <dewar@adacore.com>
8988
8989 * styleg.adb (Check_Comment): Allow special char after -- in
8990 non-end-of-line case
8991
8992 2008-04-08 Robert Dewar <dewar@adacore.com>
8993
8994 * stylesw.adb: Implement -gnaty + - y options
8995 (Set_GNAT_Style_Check_Options): Includ I in style check string
8996
8997 * stylesw.ads: Add comments for new style switch options
8998
8999 2008-04-08 Sergey Rybin <rybin@adacore.com>
9000
9001 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
9002 to the set of the GNAT components needed by ASIS.
9003
9004 2008-04-08 Bob Duff <duff@adacore.com>
9005
9006 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
9007
9008 2008-04-08 Tristan Gingold <gingold@adacore.com>
9009
9010 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
9011 Improve error message generation.
9012
9013 2008-04-08 Vincent Celier <celier@adacore.com>
9014
9015 * a-direct.adb (Start_Search): Check for Name_Error before checking for
9016 Use_Error, as specified in the RM. Check if directory is open and raise
9017 Use_Error if it is not.
9018
9019 2008-04-08 Vincent Celier <celier@adacore.com>
9020 Robert Dewar <dewar@adacore.com>
9021
9022 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
9023 AAMP_On_Target is set.
9024
9025 * vms_data.ads: Add NOxxx to style check switch list
9026 Add entry COMPONENTS for -gnatVe
9027 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
9028 (/SUBDIRS=).
9029 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
9030 Add qualifiers for gnatmetric coupling options
9031 Add note that -gnata enables all checks
9032 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
9033 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
9034 New warning flag -gnatw.e
9035
9036 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
9037 Add entry for -gnatyN (forgotten before)
9038 Line for new warning switch -gnatw.p
9039 New warning flag -gnatw.e
9040
9041 * gnat_ugn.texi: Add documentation fpr project file switch -aP
9042 Document -gnaty - + y
9043 Replace occurences of "package specification" with "package spec"
9044 Define preprocessing symbols in documentation of gnatprep
9045 Clarify reason for distinguishing overflow checking
9046 Add documentation for project-aware tool switches -eL and --subdirs=
9047 Complete list of configuration pragmas
9048 Specify that, even when gnatmake switch -x is used, mains on the command
9049 line need to be sources of project files.
9050 Editing of gnatcheck/gnatmetric doc.
9051 Add documentation for -gnatw.p/-gnatw.P
9052 Add missing documentation for -fno-inline-functions.
9053 Add documentation for -gnatw.e
9054
9055 * gnat_rm.texi: Add documentation for No_Default_Initialization
9056 Replace occurences of "package specification" with "package spec"
9057 Document use of * in Warnings Off string
9058 Update documentation of alignment/component clauses.
9059 Add documentation for Invalid_Value
9060 Document new consistency rule for Optimize_Alignment
9061 Add documentation for Precondition and Postcondition pragmas
9062 Add documentation for Check and Check_Policy pragmas
9063 Document new Enum_Val attribute
9064 Remove requirement for static string in pragma Assert
9065 Add documentation on GNAT.Time_Stamp
9066
9067 * ug_words: add entry for -gnatVe
9068 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
9069 Add entry for -gnatw.e
9070
9071 * debug.adb: Add missing documentation for d.a flag
9072 Document new -gnatd.a switch.
9073 Add documentation for new gnatmake debug switch -df
9074
9075 2008-04-08 Thomas Quinot <quinot@adacore.com>
9076
9077 * gen-soccon.c: Bump year in copyright notices.
9078
9079 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
9080
9081 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9082
9083 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
9084 Minor reformatting.
9085
9086 2008-04-08 Robert Dewar <dewar@adacore.com>
9087 Bob Duff <duff@adacore.com>
9088
9089 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
9090 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
9091
9092 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
9093
9094 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
9095
9096 * g-trasym.ads: Minor comment improvements
9097
9098 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
9099
9100 * a-sequio.ads, a-direio.ads: improve message for tagged type
9101
9102 * a-strunb.ads: Minor reformatting
9103
9104 * a-tifiio.adb: Minor reformatting
9105
9106 * atree.adb (Fix_Parents): Use clearer names for formals
9107 Cleanup and simplify code
9108 Use named notation in calls
9109
9110 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
9111 confusing calls
9112
9113 * uintp.adb: Used named notation for some confusing calls
9114
9115 * bindusg.adb: Minor change in one line of output
9116
9117 * cstand.adb: Minor reformatting of src representation of Standard
9118
9119 * a-assert.ads: Add comment.
9120
9121 * g-decstr.adb: Fix bad indentation
9122
9123 * expander.ads, expander.adb: Code clean up.
9124
9125 * sem_dist.ads: Minor comment improvement
9126
9127 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
9128 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
9129
9130 * i-cstrin.adb: Fix casing error in formal parameter name in call
9131
9132 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9133
9134 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
9135 mentioned in limited_with_clauses to do create semantic dependencies
9136 even though they appear in the ali file.
9137
9138 2008-04-08 Emmanuel Briot <briot@adacore.com>
9139
9140 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
9141 statement.
9142 (Get_Configuration): New subprogram.
9143
9144 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
9145 These optional parameters help preserve the casing of the project's name
9146 when pretty-printing.
9147
9148 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
9149 Arnaud Charlet <charlet@adacore.com>
9150
9151 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
9152 then use __gnat_set_exit_status to report the returned status code.
9153
9154 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
9155 messages on .NET, since some constructs of the language are not
9156 properly supported.
9157
9158 * gnatlink.adb (Gnatlink): In case the command line is too long for the
9159 .NET linker, gnatlink now concatenate all .il files and pass this to
9160 ilasm.
9161
9162 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9163 Xavier Grave <grave@ipno.in2p3.fr>
9164
9165 * Makefile.in: Add make ifeq define for mips/mipsel support.
9166 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
9167 system-linux-mips.ads: New files.
9168
9169 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9170
9171 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
9172 detect systems using GNU libc.
9173 * gsocket.h: ditto.
9174 * socket.c: ditto.
9175 * adaint.c: ditto.
9176 * link.c: ditto.
9177
9178 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9179
9180 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
9181 constant constant for sysconf call.
9182 (bit_field): New packed boolean type used by cpu_set_t.
9183 (cpu_set_t): New type corresponding to the C type with
9184 the same name. Note that on the Ada side we use a bit
9185 field array for the affinity mask. There is not need
9186 for the C macro for setting individual bit.
9187 (pthread_setaffinity_np): New imported routine.
9188 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
9189 on GNU/kFreeBSD.
9190
9191 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9192
9193 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
9194
9195 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9196
9197 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
9198 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
9199 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
9200 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
9201 Return by Depressed Stack Pointer.
9202
9203 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
9204
9205 * decl.c (is_variable_size): Do not unconditionally return false
9206 on non-strict alignment platforms.
9207
9208 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
9209
9210 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
9211 used to process all the variants of the specified type.
9212 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
9213 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
9214 (rest_of_type_decl_compilation): Likewise.
9215 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
9216
9217 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
9218
9219 * gigi.h (insert_block): Kill.
9220 * utils.c (insert_block): Kill.
9221
9222 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
9223
9224 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
9225 type has self-referential size, get the size from the initializing
9226 expression directly if it is also a constant whose nominal type
9227 has self-referential size.
9228
9229 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9230
9231 PR ada/33688
9232 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
9233
9234 PR ada/33857
9235 * env.c: Always include crt_externs.h if __APPLE__ is defined.
9236 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
9237
9238 2008-04-01 Andreas Jaeger <aj@suse.de>
9239
9240 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
9241 IP_PKTINFO.
9242
9243 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9244
9245 * g-table.adb, g-tasloc.adb, g-traceb.ads,
9246 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
9247 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
9248 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
9249 gnatlink.adb, gnatmem.adb, gprep.adb,
9250 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
9251 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
9252 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
9253 lib-xref.ads, lib.adb, link.c, live.ads,
9254 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
9255 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
9256 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
9257 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
9258 namet.adb, namet.h, nlists.adb, nlists.ads,
9259 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
9260 osint-c.ads, osint.adb, osint.ads, output.ads,
9261 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
9262 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
9263 par-endh.adb, par-labl.adb, par-prag.adb,
9264 par-sync.adb, par-tchk.adb, par-util.adb,
9265 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
9266 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
9267 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
9268 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
9269
9270 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
9271
9272 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
9273 size if it has overflowed.
9274
9275 2008-03-31 Olivier Hainque <hainque@adacore.com>
9276 Eric Botcazou <ebotcazou@adacore.com>
9277
9278 * utils2.c (find_common_type): Document assumption on t1/t2 vs
9279 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
9280
9281 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9282
9283 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
9284 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
9285 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9286 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
9287 exp_tss.ads, exp_util.adb, exp_util.ads,
9288 exp_vfpt.adb, freeze.adb, freeze.ads,
9289 frontend.adb, g-alleve.adb, g-altcon.adb,
9290 g-altive.ads, g-alveop.ads, g-alvevi.ads,
9291 g-arrspl.adb, g-busorg.ads, g-calend.adb,
9292 g-calend.ads, g-casuti.ads, g-cgideb.adb,
9293 g-comlin.adb, g-comlin.ads, g-curexc.ads,
9294 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
9295 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
9296 g-dyntab.adb, g-encstr.ads, g-excact.ads,
9297 g-except.ads, g-expect.ads, g-heasor.adb,
9298 g-hesora.adb, g-hesorg.adb, g-htable.ads,
9299 g-locfil.ads, g-md5.adb, g-md5.ads,
9300 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
9301 g-pehage.adb, g-pehage.ads, g-regexp.adb,
9302 g-regexp.ads, g-regpat.adb, g-regpat.ads,
9303 g-soccon-aix.ads, g-soccon-darwin.ads,
9304 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
9305 g-soccon-hpux.ads, g-soccon-irix.ads,
9306 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
9307 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
9308 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
9309 g-soccon-solaris.ads, g-soccon-tru64.ads,
9310 g-soccon-vms.ads, g-soccon-vxworks.ads,
9311 g-soccon.ads, g-socket.adb, g-socket.ads,
9312 g-socthi-mingw.adb, g-socthi-vms.adb,
9313 g-socthi-vxworks.adb, g-soliop-mingw.ads,
9314 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
9315 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
9316 typos.
9317
9318 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
9319
9320 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
9321 if the procedure is imported.
9322
9323 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9324
9325 * adaint.c: Fix warnings.
9326
9327 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9328
9329 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
9330
9331 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9332
9333 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
9334 Fix problem of status check for null file
9335
9336 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9337
9338 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
9339 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
9340 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
9341 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
9342 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
9343 comments.
9344
9345 2008-03-26 Thomas Quinot <quinot@adacore.com>
9346
9347 PR ada/33688
9348 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
9349 Get_Socket_Option): Add support for Receive_Packet_Info.
9350
9351 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
9352 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
9353 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
9354 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
9355 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
9356 new constants SO_REUSEPORT and IP_PKTINFO
9357
9358 2008-03-26 Robert Dewar <dewar@adacore.com>
9359
9360 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
9361 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
9362 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
9363 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
9364 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
9365 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
9366 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
9367 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9368 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
9369 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
9370 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9371 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
9372 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
9373 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
9374 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
9375 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
9376 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
9377 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
9378 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
9379 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
9380 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
9381 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
9382 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
9383 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
9384 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
9385 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
9386 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
9387 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
9388 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
9389 s-tasloc.adb: Minor reformatting.
9390 Update comments.
9391 Remove "used for" sections from comments.
9392
9393 2008-03-26 Robert Dewar <dewar@adacore.com>
9394
9395 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
9396 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
9397 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
9398 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
9399 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
9400 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9401 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9402 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
9403 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
9404 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
9405 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
9406 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
9407 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
9408 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
9409 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
9410 double spaced if it fits on one line and otherwise single spaced.
9411
9412 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9413
9414 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
9415 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
9416 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
9417 or task info if the thread could not be created.
9418
9419 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9420
9421 * gnatvsn.ads (Library_Version): Bump to 4.4.
9422 (Current_Year): Bump to 2008.
9423
9424 2008-03-26 Robert Dewar <dewar@adacore.com>
9425
9426 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
9427
9428 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
9429
9430 * debug.adb: Add debug flags d.r and d.v
9431 Add debug flag .T (Optimize_Alignment (Time))
9432 Add debug flag .S (Optimize_Alignment (Space))
9433
9434 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
9435 depending on setting of relevant debug flags.
9436 Replace use of Warnings_Off by Has_Warnings_Off
9437 (Freeze_Entity): In circuit for warning on suspicious convention
9438 actuals, do not give warning if subprogram has same entity as formal
9439 type, or if subprogram does not come from source.
9440 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
9441 if Optimize_Alignment set to Space.
9442
9443 * frontend.adb: Add call to Sem_Warn.Initialize
9444 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
9445 Reset Optimize_Alignment mode from debug switches .S and .T
9446
9447 * layout.adb (Layout_Composite_Object): Rewritten for
9448 Optimize_Aligment pragma.
9449
9450 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
9451 mode.
9452
9453 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
9454
9455 * par-prag.adb (N_Pragma): Chars field removed, use Chars
9456 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
9457 this change. Add entry for pragma Optimize_Alignment
9458
9459 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
9460 (Pragma_Identifier (..
9461 instead, adjustments throughout to accomodate this change.
9462 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
9463 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
9464 Add implementation of pragma Optimize_Alignment
9465
9466 2008-03-26 Vincent Celier <celier@adacore.com>
9467
9468 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
9469 Improve memory usage to avoid use of stack.
9470
9471 2008-03-26 Robert Dewar <dewar@adacore.com>
9472
9473 * a-teioed.ads: Correct value of Default_Fill
9474
9475 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
9476
9477 2008-03-26 Robert Dewar <dewar@adacore.com>
9478
9479 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
9480 with Current_Output (introduce Self).
9481
9482 2008-03-26 Robert Dewar <dewar@adacore.com>
9483
9484 * checks.adb (Ensure_Valid): Capture valid status if possible
9485 (eliminate checks)
9486
9487 2008-03-26 Robert Dewar <dewar@adacore.com>
9488
9489 * stand.ads: Deal with reordering of package standard declarations
9490
9491 * cstand.adb: Put package Standard declarations in proper order
9492
9493 2008-03-26 Robert Dewar <dewar@adacore.com>
9494
9495 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
9496 (Pragma_Identifier (.. instead.
9497 (OK_To_Reorder_Components): New flag
9498 (Has_Entries): Code cleanup.
9499 (Warnings_Off_Used): New flag
9500 (Warnings_Off_Used_Unmodified): New flag
9501 (Warnings_Off_Used_Unreferenced): New flag
9502 (Has_Warnings_Off): New function
9503 (Has_Unmodified): New function
9504 (Has_Unreferenced): New function
9505 (Is_Trivial_Subprogram): New flag
9506 (Is_Static_Dispatch_Table_Entity): New attribute.
9507 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
9508 (more consistent with other similar names)
9509 (Access_Subprogram_Type): New classification function
9510
9511 2008-03-26 Robert Dewar <dewar@adacore.com>
9512
9513 * errout.ads: Document new !! insertion sequence
9514
9515 * errout.adb (N_Pragma): Chars field removed, use Chars
9516 (Pragma_Identifier (.. instead.
9517 Replace use of Warnings_Off by Has_Warnings_Off
9518 (Error_Msg_Internal): Don't delete warning ending in !!
9519
9520 2008-03-26 Robert Dewar <dewar@adacore.com>
9521
9522 * par.adb (Check_No_Right_Paren): Removed no longer used
9523
9524 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
9525 (Pragma_Identifier (.. instead.
9526
9527 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
9528
9529 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
9530 par-ch4.adb: Minor improvements in error recovery and messages.
9531
9532 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
9533 non-serious
9534
9535 * par-ch9.adb: Minor improvements in error recovery and messages
9536 (P_Protected): Better error recovery for "protected type x;"
9537
9538 * par-util.adb: Minor improvements in error recovery and messages
9539 (Check_No_Right_Paren): Removed no longer used
9540
9541 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9542
9543 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
9544 that the prefix of an attribute is the type of the aggregate being
9545 expanded.
9546
9547 2008-03-26 Javier Miranda <miranda@adacore.com>
9548 Robert Dewar <dewar@adacore.com>
9549
9550 * exp_attr.adb (N_Pragma): Chars field removed.
9551 (Expand_N_Attribute_Reference): If the designated type associated with
9552 attribute 'Unrestricted_Access is a subprogram entity then replace it
9553 by an E_Subprogram_Type itype.
9554 Implement attribute Old
9555
9556 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
9557
9558 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
9559 Replace call to
9560 New_Internal_Entity by call to Create_Itype to centralize calls
9561 building itypes, ad propagate the convention of the designated
9562 subprogram. In addition, disable the machinery cleaning constant
9563 indications from all entities in current scope when 'Unrestricted_Access
9564 corresponds with a node initializing a dispatch table slot.
9565 (Analyze_Attribute): Parameterless attributes returning a string or a
9566 type will not be called with improper arguments, so we can remove junk
9567 code that was dealing with this case.
9568 Implement attribute Old
9569
9570 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
9571 Add entry for pragma Optimize_Alignment
9572 New standard names Sync and Synchronize
9573
9574 2008-03-26 Robert Dewar <dewar@adacore.com>
9575 Arnaud Charlet <charlet@adacore.com>
9576
9577 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
9578 stmt.
9579 (No_Exception_Propagation_Active): New function.
9580 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9581 Update comments, and review all uses of No_Exception_Propagation, which
9582 are now correct and in sync with what gigi expects.
9583
9584 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
9585 function.
9586 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9587 Update comments, and review all uses of No_Exception_Propagation, which
9588 are now correct and in sync with what gigi expects.
9589
9590 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9591
9592 * sem_ch3.adb (Access_Definition): If the access type is the return
9593 result of a protected function, create an itype reference for it
9594 because usage will be in an inner scope from the point of declaration.
9595 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
9596 OK_To_Reorder_Components.
9597 (Make_Index): If an overloaded range includes a universal integer
9598 interpretation, resolve to Standard.Integer.
9599 (Analyze_Subtype_Indication): Copy Convention to subtype
9600 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
9601 limited an synchronized progenitors in type declaration and private
9602 extension declarations.
9603
9604 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
9605 protected subprogram body, determine proper scope from subprogram
9606 declaration.
9607
9608 2008-03-26 Robert Dewar <dewar@adacore.com>
9609
9610 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
9611 No_Run_Time_Mode
9612
9613 2008-03-26 Gary Dismukes <dismukes@adacore.com>
9614
9615 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
9616 of a heap allocator for a limited unconstrained function return when
9617 resstriction No_Allocators is active.
9618 (Analyze_Allocator): The restriction No_Allocators is now only checked
9619 on allocators that have Comes_From_Source set, as per RM-H.4(7).
9620
9621 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
9622 of a heap allocator for a limited unconstrained function return when
9623 resstriction No_Allocators is active.
9624 (Analyze_Allocator): The restriction No_Allocators is now only checked
9625 on allocators that have Comes_From_Source set, as per RM-H.4(7).
9626 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
9627 operands are fixed-point types, the universal_fixed predefined operation
9628 is used, regardless of whether the operand type (s) have a primitive
9629 operation of the same name.
9630
9631 2008-03-26 Javier Miranda <miranda@adacore.com>
9632
9633 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
9634 Is_Static_Dispatch_Table
9635 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
9636 to Exchange_Declarations to exchange the private and full-view. Bug
9637 found working in this issue.
9638 (Expand_Dispatching_Call): Propagate the convention of the subprogram
9639 to the subprogram pointer type.
9640 (Make_Secondary_DT): Replace generation of Prim'Address by
9641 Address (Prim'Unrestricted_Access)
9642 (Make_DT): Replace generation of Prim'Address by
9643 Address (Prim'Unrestricted_Access)
9644 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
9645 simple call form for single entry.
9646 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
9647 tables of predefined primitives).
9648 (Make_Secondary_DT): Add support to handle access to dispatch tables of
9649 predefined primitives.
9650 (Make_Tags): Add entities to Access_Dispatch_Table associated with
9651 access to dispatch tables containing predefined primitives.
9652
9653 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
9654 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
9655 this change.
9656 (Register_Predefined_DT_Entry): Updated to handle the new contents
9657 of attribute Access_Disp_Table (pointers to dispatch tables containing
9658 predefined primitives).
9659
9660 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
9661 subprogram.
9662 (Find_Interface_ADT): Updated to skip the new contents of attribute
9663 Access_Dispatch_Table (pointers to dispatch tables containing predefined
9664 primitives).
9665
9666 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
9667 concurrent types.
9668 (Set_Convention): Use new function Is_Access_Subprogram_Type
9669 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
9670 Access_Dispatch_Table (pointers to dispatch tables containing predefined
9671 primitives).
9672
9673 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
9674 expanded code avoiding calls to Build_Predef_Prims.
9675 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
9676 call to Build_Get_Predefined_Prim_Op_Address.
9677
9678 2008-03-26 Javier Miranda <miranda@adacore.com>
9679
9680 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
9681 subprogram Corresponding_Runtime_Package to know the runtime package
9682 that will provide support to a given protected type.
9683
9684 * exp_ch9.adb (Add_Private_Declarations,
9685 Build_Protected_Subprogram_Call,
9686 Build_Protected_Entry, Build_Simple_Entry_Call,
9687 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9688 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
9689 cleanup using the new centralized subprogram Corresponding_Runtime
9690 Package to know the runtime package that provides support to
9691 a given protected type.
9692
9693 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9694
9695 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
9696 assignment is within the initialization procedure for a packed array,
9697 and Initialize_Scalars is enabled, compile right-hand side with checks
9698 off, because the value is purposely out of range.
9699
9700 2008-03-26 Vincent Celier <celier@adacore.com>
9701
9702 * gnatcmd.adb: Add processing for GNAT SYNC
9703
9704 * vms_conv.ads: (Command_Type): Add command Sync
9705
9706 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
9707
9708 * vms_data.ads: Add entries for -gnatw.w
9709 Add qualifier for gnatstub --header-file option
9710 Add switches for GNAT SYNC
9711
9712 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
9713 (Add_Package_Name): New procedure
9714 (Package_Name_List): New function
9715 (Initialize): Add known package names to the list
9716 (Register_New_Package): Add the new package name to the list
9717
9718 2008-03-26 Robert Dewar <dewar@adacore.com>
9719
9720 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
9721 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
9722 Raise_Exception by "raise with" construct.
9723
9724 2008-03-26 Pascal Obry <obry@adacore.com>
9725
9726 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
9727 supported platforms.
9728
9729 * Makefile.rtl: Add g-sercom.o.
9730
9731 * impunit.adb: Add g-sercom.adb.
9732
9733 * s-crtl.ads (open): New routine.
9734 (close): Likewise.
9735 (write): Likewise.
9736
9737 * s-osinte-mingw.ads (BYTE): New type.
9738 (CHAR): Likewise.
9739 (OVERLAPPED): Likewise.
9740 (GENERIC_READ): New constant.
9741 (GENERIC_WRITE): Likewise.
9742 (OPEN_EXISTING): Likewise.
9743 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
9744 type instead.
9745 (CreateFile): New routine.
9746 (WriteFile): Likewise.
9747 (ReadFile): Likewise.
9748 (CloseHandle): Move next to the other file oriented routines.
9749
9750 * g-sercom.ads: New unit.
9751
9752 * g-sercom.adb: Default implementation, calls to this unit will raise
9753 a program error exception.
9754
9755 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
9756 GNU/Linux implementations.
9757
9758 2008-03-26 Robert Dewar <dewar@adacore.com>
9759
9760 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
9761
9762 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
9763 unchecked conversion for different conventions only for subprogram
9764 pointers or on VMS.
9765
9766 2008-03-26 Vincent Celier <celier@adacore.com>
9767
9768 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
9769 to check if the specified object file is correct.
9770
9771 2008-03-26 Thomas Quinot <quinot@adacore.com>
9772
9773 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
9774 Comes_From_Source to exclude primitives from being checked. We want to
9775 exclude predefined primitives only, so use the appropriate specific
9776 predicate. Also, flag a formal parameter of an anonymous
9777 access-to-subprogram type as illegal for a primitive operation of a
9778 remote access to class-wide type.
9779
9780 2008-03-26 Vincent Celier <celier@adacore.com>
9781
9782 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
9783 known, check if it may be a missspelling of a known package name. In
9784 not verbose, not mode, issue warnings only if the package name is a
9785 possible misspelling.
9786 In verbose mode, always issue a warning for a not known package name,
9787 plus a warning if the name is a misspelling of a known package name.
9788
9789 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
9790 limited withs or limited withs are parse during one call.
9791 (Parse_Single_Project): Post parse context clause in two passes: non
9792 limited withs before current project and limited withs after current
9793 project.
9794
9795 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
9796 project with the name With_Name, even if it is only extended indirectly.
9797 (Recursive_Process): Process projects in order: first single withs, then
9798 current project, then limited withs.
9799
9800 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
9801 project with the name With_Name, even if it is only extended indirectly.
9802
9803 2008-03-26 Robert Dewar <dewar@adacore.com>
9804
9805 * scn.adb (Initialize_Scanner): Format messages belong on standard error
9806
9807 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9808
9809 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
9810 a generic subprogram that is imported, do not attempt to compile
9811 non-existent body.
9812
9813 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
9814 imported, do not generate a raise_program_error for the non-existent
9815 body.
9816 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
9817 perform minimal name resolution on the generic to avoid spurious
9818 warnings.
9819 (Find_Actual_Type): the designated type of the actual in a child unit
9820 may be declared in a parent unit without being an actual.
9821
9822 2008-03-26 Robert Dewar <dewar@adacore.com>
9823
9824 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
9825 * sinfo.ads, sinfo.adb (From_At_End): New flag
9826
9827 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9828
9829 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
9830 operations that have an interface parameter.
9831 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
9832 Don't treat No_Return call as raise.
9833
9834 * sem_disp.adb (Check_Dispatching_Operations): apply check for
9835 non-primitive interface primitives to access parameters, not to all
9836 parameters of an access type.
9837
9838 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9839
9840 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
9841 declarations of a parent unit are made visible when compiling a child
9842 instance, the parent is not a hidden open scope, even though it may
9843 contain other pending instance.
9844
9845 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
9846 hidden open scope for some child instance, it does affect the
9847 visibility status of other stach entries.
9848 (Analyze_Object_Renaming): Check that a class-wide object cannot be
9849 renamed as an object of a specific type.
9850
9851 2008-03-26 Robert Dewar <dewar@adacore.com>
9852
9853 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
9854 recursion and raise SE directly.
9855 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
9856 set for formal type for IN mode parameter.
9857
9858 2008-03-26 Robert Dewar <dewar@adacore.com>
9859
9860 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
9861 (Initialize): New procedure
9862 (Output_Warnings_Off_Warnings): New procedure
9863 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
9864 (Output_Non_Modifed_In_Out_Warnings): Ditto
9865 (Warn_On_Unreferenced_Entity): Ditto
9866
9867 2008-03-26 Vincent Celier <celier@adacore.com>
9868
9869 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
9870 readable.
9871
9872 2008-03-26 Matthew Heaney <heaney@adacore.com>
9873
9874 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
9875 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
9876 Marked with clauses as private, and controlled operations as overriding
9877
9878 2008-03-26 Robert Dewar <dewar@adacore.com>
9879
9880 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
9881
9882 2008-03-26 Robert Dewar <dewar@adacore.com>
9883
9884 * back_end.adb, back_end.ads: Minor reformatting
9885
9886 * bindgen.adb: Minor clarification of comments
9887
9888 * fname.ads: Minor comment fixes
9889
9890 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
9891 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
9892
9893 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
9894 xsnames.adb: Remove warnings off pragma no longer needed
9895
9896 * a-catizo.ads, a-calari.ads, a-calfor.adb,
9897 a-calfor.ads: Fix header.
9898
9899 2008-03-26 Tristan Gingold <gingold@adacore.com>
9900
9901 * init.c: Do not adjust pc for HPARITH on alpha/vms.
9902
9903 2008-03-26 Robert Dewar <dewar@adacore.com>
9904
9905 * lib-xref.adb: (OK_To_Set_Reference): New function
9906 (Generate_Reference): Don't set referenced from occurrence in Warnings,
9907 Unmodified, or Unreferenced pragma
9908
9909 2008-03-26 Robert Dewar <dewar@adacore.com>
9910
9911 * alloc.ads: Add entries for Warnings_Off_Pragmas table
9912
9913 2008-03-26 GNAT Script <nobody@adacore.com>
9914
9915 * Make-lang.in: Makefile automatically updated
9916
9917 2008-03-26 Robert Dewar <dewar@adacore.com>
9918
9919 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
9920 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
9921 removed, use Chars (Pragma_Identifier (.. instead, adjustments
9922 throughout to accomodate this change.
9923
9924 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
9925
9926 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
9927 Einfo.Set_Needs_Debug_Info)
9928
9929 2008-03-26 Robert Dewar <dewar@adacore.com>
9930
9931 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
9932 Add description for the new gnatstub option '--header-file'
9933 clarification of -gnatwz/-gnatwZ
9934 Add a "Irix-Specific Considerations" section to document the need to
9935 set LD_LIBRARY_PATH when using the default shared runtime library.
9936 Added documentation for both gcov and gprof.
9937
9938 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
9939 messages that are not suppressed when clients are compiled.
9940 Add documentation of s-pooglo s-pooloc
9941 Document the new GNAT.Serial_Communications API.
9942 Add documentation for 'Old attribute
9943 Add description of pragma Optimize_Alignment
9944
9945 * ug_words: Add entries for -gnatw.w -gnatw.W
9946
9947 * usage.adb: Add line for -gnatw.w (warn on warnings off)
9948
9949 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
9950
9951 Revert
9952 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
9953 PR ada/35186
9954 * decl.c (maybe_pad_type): Avoid padding an integral type when
9955 bumping its alignment is sufficient.
9956
9957 2008-03-25 Arnaud Charlet <charlet@adacore.com>
9958
9959 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
9960 Fix wrong formatting (lines too long)
9961
9962 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9963
9964 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
9965 a-calend-vms.adb, a-calend.adb, a-calend.ads,
9966 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
9967 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
9968 a-cohama.ads, a-comlin.ads, a-coorse.adb,
9969 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
9970 a-except-2005.ads, a-except.adb, a-except.ads,
9971 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
9972 a-exextr.adb, a-filico.ads, a-finali.ads,
9973 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
9974 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
9975 a-sequio.ads, a-strbou.ads, a-strfix.adb,
9976 checks.adb, exp_ch3.adb, exp_ch4.adb,
9977 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
9978 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
9979 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
9980 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
9981 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
9982
9983 2008-03-24 Robert Dewar <dewar@adacore.com>
9984
9985 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
9986 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
9987 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
9988 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
9989 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
9990 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9991 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9992 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
9993 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
9994 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
9995 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
9996 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
9997 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
9998 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
9999 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
10000 double spaced if it fits on one line and otherwise single spaced.
10001
10002 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10003
10004 PR documentation/15479
10005 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
10006 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
10007 (doc/gnat_ugn.info): Renamed from ...
10008 (doc/gnat_ugn_unw.info): ... this.
10009 (doc/gnat_ugn.dvi): Renamed from ...
10010 (doc/gnat_ugn_unw.dvi): ... this.
10011 (doc/gnat_ugn.pdf): Renamed from ...
10012 (doc/gnat_ugn_unw.pdf): ... this.
10013 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
10014 Adjusted.
10015 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
10016 unconditionally to gnat_ugn.info. Fix cross references to the
10017 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
10018 and GNU make manuals to be proper texinfo links.
10019 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
10020
10021 2008-03-21 Olivier Hainque <hainque@adacore.com>
10022
10023 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
10024 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
10025
10026 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
10027
10028 * trans.c (addressable_p): Add notes on addressability issues.
10029
10030 2008-03-21 Olivier Hainque <hainque@adacore.com>
10031 Ed Schonberg <schonberg@adacore.com>
10032
10033 * trans.c (addressable_p): Accept COND_EXPR when both arms
10034 are addressable.
10035 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
10036 (call_to_gnu): Do not use name reference in the error message
10037 for a misaligned by_reference_parameter. The actual may be a
10038 general expression.
10039
10040 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
10041
10042 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10043
10044 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10045
10046 * gnat_rm.texi (Implementation Defined Characteristics)
10047 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
10048 appropriate.
10049 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
10050 (Switches for gnatchop, Installing a library): Likewise.
10051
10052 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
10053
10054 * trans.c (emit_range_check): Do not emit the check if the base type
10055 of the expression is the type against which its range must be checked.
10056
10057 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10058
10059 * decl.c (maybe_pad_type): Use value_factor_p.
10060
10061 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10062
10063 * lang.opt (nostdlib): Move around.
10064 * misc.c (gnat_handle_option): Fix formatting.
10065 (gnat_dwarf_name): Move around.
10066 * trans.c (Case_Statement_to_gnu): Fix formatting.
10067 (gnat_to_gnu): Likewise.
10068 * utils.c (aggregate_type_contains_array_p): Likewise.
10069 (create_subprog_decl): Likewise.
10070
10071 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10072
10073 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
10074 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
10075
10076 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10077
10078 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
10079 BIGGEST_ALIGNMENT when capping the alignment of records with
10080 strict alignment and size clause.
10081
10082 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10083
10084 * lang-specs.h: Pass -gnatwa if -Wall is passed.
10085 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
10086 and -Wuninitialized.
10087 (gnat_post_options): Clear warn_unused_parameter.
10088
10089 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10090
10091 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
10092 aligned bit-fields, bumping the alignment of the record type if deemed
10093 profitable.
10094 (value_factor_p): Return false instead of 0.
10095
10096 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10097
10098 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
10099 for scalar types with small alignment.
10100
10101 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10102
10103 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
10104 from that of the front-end's end label.
10105 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
10106 from that of the loop label.
10107
10108 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10109
10110 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
10111 comment for the packed array type case.
10112 * utils.c (build_template): Use a loop to strip padding or
10113 containing records for justified modular types.
10114
10115 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10116
10117 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
10118 large alignments specified for types.
10119 (validate_alignment): Minor cleanup.
10120
10121 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10122
10123 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
10124 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
10125 the component for packing, if possible, as well as if a component
10126 size clause is specified.
10127 <E_Record_Subtype>: For an array type used to implement a packed
10128 array, get the component type from the original array type.
10129 Try to get a smaller form of the component for packing, if possible,
10130 as well as if a component size clause is specified.
10131 (round_up_to_align): New function.
10132 (make_packable_type): Add in_record parameter.
10133 For a padding record, preserve the size. If not in_record and the
10134 size is too large for an integral mode, attempt to shrink the size
10135 by lowering the alignment.
10136 Ditch the padding bits of the last component.
10137 Compute sizes and mode manually, and propagate the RM size.
10138 Return a BLKmode record type if its size has shrunk.
10139 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
10140 Use Original_Array_Type to retrieve the type in case of an error.
10141 Adjust call to make_packable_type.
10142 (gnat_to_gnu_field): Likewise.
10143 (concat_id_with_name): Minor tweak.
10144 * trans.c (larger_record_type_p): New predicate.
10145 (call_to_gnu): Compute the nominal type of the object only if the
10146 parameter is by-reference. Do the conversion actual type -> nominal
10147 type if the nominal type is a larger record.
10148 (gnat_to_gnu): Do not require integral modes on the source type to
10149 avoid the conversion for types with identical names.
10150 (addressable_p): Add gnu_type parameter. If it is specified, do not
10151 return true if the expression is not addressable in gnu_type.
10152 Adjust recursive calls.
10153 * utils.c (finish_record_type): Remove dead code.
10154
10155 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
10156
10157 PR ada/35186
10158 * decl.c (maybe_pad_type): Avoid padding an integral type when
10159 bumping its alignment is sufficient.
10160
10161 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10162
10163 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
10164 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
10165 statement.
10166 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
10167 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
10168 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
10169 code output strings.
10170 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
10171 system-vms_64.ads: Fix typos in ada source code comments.
10172 * sinfo-cn.adb: Remove incomplete sentence.
10173
10174 PR documentation/15479
10175 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
10176
10177 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
10178
10179 PR ada/22255
10180 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
10181
10182 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
10183
10184 PR ada/34799
10185 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
10186 that underlying type is present.
10187
10188 2008-02-26 Tom Tromey <tromey@redhat.com>
10189
10190 * misc.c (internal_error_function): Remove test of
10191 USE_MAPPED_LOCATION.
10192 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
10193 (Sloc_to_locus): Remove old location code.
10194
10195 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10196
10197 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
10198 `i.e.' by adding comma or `@:' as appropriate.
10199 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
10200 plain characters `C', use `@samp{C}'.
10201 * gnat_ugn.texi (File Naming Rules, About gnatkr)
10202 (Krunching Method): Likewise.
10203
10204 * gnat_ugn.texi (Conventions): List environment variables and
10205 metasyntactic variables.
10206 (Compiling Programs): Fix notation of metasyntactic variables.
10207 Add @file where appropriate. Use @file for file extensions,
10208 @samp for strings.
10209 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
10210 instead of @file, @env instead of @code.
10211
10212 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10213
10214 PR documentation/15479
10215 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
10216 and `...' with `@dots{}' or `@enddots{}'.
10217
10218 PR documentation/15479
10219 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
10220 use @command instead of @code, @option instead of @samp or @code,
10221 @code instead of @var, @samp instead of @file.
10222
10223 PR documentation/15479
10224 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
10225 in Makefile rules, by using `&&' rather than `;'.
10226
10227 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10228
10229 PR documentation/15479
10230 * gnat_ugn.texi: In non-code, avoid space before colon.
10231 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
10232 (Examples of gnatxref Usage): Use @command{vi} instead of
10233 @file{vi}.
10234 (Character Set Control): Do not use @code for UTF-8.
10235 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
10236 use @code for IEEE.
10237 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
10238 sample.
10239 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
10240
10241 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
10242
10243 PR ada/35143
10244 * env.c: Add __rtems__ to if defined.
10245 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
10246 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
10247 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
10248 pragma Convention as required.
10249 * gsocket.h: Make compile in and out of RTS.
10250 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
10251 Use g-soccon-rtems.ads.
10252 * g-soccon-rtems.ads, system-rtems.ads: New files.
10253
10254 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10255
10256 PR other/35107
10257 * Make-lang.in (gnat1): Add $(GMPLIBS).
10258
10259 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
10260
10261 * decl.c (components_to_record): Improve comment.
10262
10263 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
10264
10265 * decl.c (components_to_record): Do not reuse the empty union type
10266 if there is a representation clause on the record.
10267 * trans.c (addressable_p): Return true for INTEGER_CST.
10268
10269 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
10270
10271 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
10272 in pointer arithmetics.
10273 * utils2.c (build_allocator): Likewise.
10274
10275 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
10276
10277 * utils.c (build_function_stub): Properly build the call expression.
10278
10279 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
10280
10281 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
10282 before converting the expression to the type of the object.
10283 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
10284 Stabilize constructors for special wrapping types.
10285
10286 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
10287
10288 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
10289 when necessary. Merge some conditional statements. Update comments.
10290 Rename unchecked_convert_p local variable to suppress_type_conversion.
10291 Do not suppress conversions in the In case.
10292 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
10293 into account on non strict-alignment platforms.
10294
10295 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
10296
10297 * utils.c (aggregate_type_contains_array_p): New predicate.
10298 (create_field_decl): In a packed record, force byte alignment
10299 for fields without specified position that contain an array.
10300
10301 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
10302
10303 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
10304
10305 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
10306
10307 PR ada/34466
10308 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
10309 sysconf call.
10310 (bit_field): New packed boolean type used by cpu_set_t.
10311 (cpu_set_t): New type corresponding to the C type with
10312 the same name. Note that on the Ada side we use a bit
10313 field array for the affinity mask. There is not need
10314 for the C macro for setting individual bit.
10315 (pthread_setaffinity_np): New imported routine.
10316
10317 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
10318
10319 PR ada/34647
10320 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10321 on OpenBSD as is done on other BSD systems.
10322
10323 PR ada/34645
10324 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
10325 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
10326 I/O.
10327
10328 PR ada/34644
10329 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
10330 clearenv().
10331
10332 PR ada/34646
10333 * init.c (__gnat_error_handler, __gnat_install_handler,
10334 __gnat_init_float): Define for OpenBSD.
10335
10336 * initialize.c (__gnat_initialize): Define for OpenBSD.
10337
10338 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
10339
10340 PR ada/34553
10341 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10342 instead of mktemp() or tmpnam() on NetBSD.
10343
10344 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
10345
10346 * trans.c (call_to_gnu): Make the temporary for non-addressable
10347 In parameters passed by reference.
10348 (addressable_p): Return true for STRING_CST and CALL_EXPR.
10349
10350 2007-12-19 Robert Dewar <dewar@adacore.com>
10351
10352 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
10353 Add pragma Warnings (Off) for unassigned IN OUT arguments
10354
10355 * sem_warn.adb (Output_Reference): Suppress messages for internal names
10356 (Check_References): Extensive changes to tune up warnings
10357 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
10358 (Has_Pragma_Unmodifed_Check_Spec): New function
10359 (Check_References): Implement pragma Unmodified
10360 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
10361
10362 * par-prag.adb: Dummy entry for pragma Unmodified
10363
10364 * sem_prag.adb: Implement pragma Unmodified
10365
10366 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
10367 (Proc_Next_Component_Or_Discriminant): Fix typo.
10368 Update comments.
10369
10370 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
10371 Unmodified.
10372 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
10373 because the former already takes care of discarding the result.
10374 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
10375 Add comment.
10376
10377 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
10378
10379 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
10380
10381 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
10382 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10383 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
10384 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
10385 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10386 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10387 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10388 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10389 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10390 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
10391 (Dynamic_Trampolines_Used): Delete.
10392
10393 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
10394 Turn on stack probing mechanism on LynxOS.
10395
10396 2007-12-19 Bob Duff <duff@adacore.com>
10397
10398 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
10399 the resulting tail recursion by hand. This prevents running out of
10400 memory on deeply nested concatenations, since Field2 is where the left
10401 operand of concatenations is stored.
10402 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
10403 clarify that it can only return OK or Abandon.
10404
10405 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
10406 operand by iteration, in order to avoid running out of memory on
10407 deeply-nested concatenations. Use the Parent pointer to get back up the
10408 tree.
10409 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
10410 Resolve_Op_Concat_Rest): New procedures split out of
10411 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
10412 clearer.
10413
10414 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
10415 Traverse_Func, because the former already takes care of discarding the
10416 result.
10417
10418 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
10419 because the former already takes care of discarding the result.
10420 (Remove_Warning_Messages): Use appropriate subtype for Status and
10421 Discard
10422
10423 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10424
10425 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
10426 discriminants forces expansion of the aggregate into assignments.
10427 (Init_Record_Controller): If the type of the aggregate is untagged and
10428 is not inherently limited, the record controller is not limited either.
10429
10430 2007-12-19 Robert Dewar <dewar@adacore.com>
10431
10432 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
10433 handling compile time known size of record or array (case of front end
10434 layout active, e.g. in GNAAMP).
10435
10436 2007-12-19 Javier Miranda <miranda@adacore.com>
10437
10438 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
10439 that forces the construction of static dispatch tables in case of
10440 record subtypes.
10441
10442 2007-12-19 Robert Dewar <dewar@adacore.com>
10443
10444 * exp_ch9.adb (Null_Statements): Moved to library level
10445 (Trivial_Accept_OK): New function
10446 (Expand_Accept_Declaration): Use Trivial_Accept_OK
10447 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
10448
10449 2007-12-19 Robert Dewar <dewar@adacore.com>
10450
10451 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
10452 in complex case where array is Volatile.
10453
10454 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10455
10456 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
10457 properly the Ada2005 rules concerning when the current instance of a
10458 record type is aliased.
10459
10460 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10461
10462 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
10463 mangled declaration
10464 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
10465 declarations.
10466 (P_Variant_Part): Cleaner patch for parenthesized discriminant
10467
10468 2007-12-19 Vincent Celier <celier@adacore.com>
10469
10470 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
10471 package is not known
10472
10473 * prj-attr.ads (Unknown_Package): New constant
10474 Do not crash when an unknown package is in several projects
10475
10476 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
10477 ignored
10478
10479 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
10480 existing package Language_Processing.
10481
10482 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10483 Gary Dismukes <dismukes@adacore.com>
10484 Samuel Tardieu <sam@rfc1149.net>
10485
10486 PR ada/15803, ada/15805
10487 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
10488 illegal access subtypes when there is a constrained partial view.
10489 (Check_For_Premature_Usage): New procedure inside
10490 Access_Subprogram_Declaration for checking that an access-to-subprogram
10491 type doesn't reference its own name within any formal parameters or
10492 result type (including within nested anonymous access types).
10493 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
10494 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
10495 context is an access_to_variable, the expression cannot be an
10496 access_to_constant.
10497
10498 2007-12-19 Bob Duff <duff@adacore.com>
10499
10500 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
10501 (Analyze_Concatenation): Use iteration instead of recursion in order
10502 to avoid running out of stack space for deeply nested concatenations.
10503
10504 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10505 Gary Dismukes <dismukes@adacore.com>
10506
10507 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
10508 whose renamed entity is a subprogram that requires overriding.
10509 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
10510 issuing an error for premature usage and issue a message that says
10511 'type' rather than 'object'.
10512
10513 2007-12-19 Gary Dismukes <dismukes@adacore.com>
10514
10515 PR ada/34149
10516 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
10517 presence of a statically tagged operand (Present (Static_Tag)) with
10518 test for Indeterm_Ancestor_Call when determining whether to propagate
10519 the static tag to tag-indeterminate operands (which forces dispatching
10520 on such calls).
10521 (Check_Controlling_Formals): Ada2005, access parameters can have
10522 defaults.
10523 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
10524 not insert subprogram in list of primitive operations if already there.
10525
10526 2007-12-19 Tristan Gingold <gingold@adacore.com>
10527
10528 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
10529 global variable.
10530
10531 2007-12-19 Thomas Quinot <quinot@adacore.com>
10532
10533 Part of PR ada/33688
10534 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
10535 datagram info on Linux.
10536
10537 2007-12-19 Vincent Celier <celier@adacore.com>
10538
10539 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
10540 that the source path name is always found in the dependencies.
10541
10542 2007-12-19 Robert Dewar <dewar@adacore.com>
10543
10544 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
10545 Fix name of Wide_Wide_Latin_1/9 file names
10546 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
10547 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
10548 Add missing documentation for Ada.Command_Line.Response_File
10549 Update list of warning letters for Warnings pragma
10550 Add documentation for pragma Unmodified
10551
10552 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
10553
10554 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
10555
10556 2007-12-17 Arnaud Charlet <charlet@adacore.com>
10557
10558 * s-vxwork-alpha.ads: Removed, no longer used.
10559
10560 2007-12-15 Jakub Jelinek <jakub@redhat.com>
10561
10562 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
10563
10564 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
10565
10566 PR ada/34360
10567 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
10568 mlib-tgt-specific.adb.
10569
10570 2007-12-13 Bob Duff <duff@adacore.com>
10571
10572 * trans.c (Attribute_to_gnu): Check for violations of the
10573 No_Implicit_Dynamic_Code restriction. This checking used to be done in
10574 the front end, but is moved here so we can make it more accurate.
10575
10576 2007-12-13 Pascal Obry <obry@adacore.com>
10577
10578 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
10579 version is provided for older GNU/Linux distribution not
10580 supporting thread affinity sets.
10581
10582 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
10583 call.
10584 (bit_field): New packed boolean type used by cpu_set_t.
10585 (cpu_set_t): New type corresponding to the C type with
10586 the same name. Note that on the Ada side we use a bit
10587 field array for the affinity mask. There is not need
10588 for the C macro for setting individual bit.
10589 (pthread_setaffinity_np): New imported routine.
10590
10591 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
10592 no null.
10593 (Create_Task): Set the processor affinity mask if information
10594 is present.
10595
10596 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
10597
10598 2007-12-13 Robert Dewar <dewar@adacore.com>
10599
10600 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10601 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
10602 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
10603 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
10604 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
10605 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
10606 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
10607 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
10608 for subprogram pointers.
10609
10610 * g-ctrl_c.adb: New file.
10611
10612 * g-ctrl_c.ads (Install_Handler): New body.
10613
10614 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
10615 instead of obsolete function Is_Always_Inlined.
10616 (Freeze_Entity): check for tagged type in imported C subprogram
10617 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
10618 (Freeze_Entity): check for convention Ada subprogram pointer in
10619 imported C subprogram.
10620 (Freeze_Fixed_Point_Type): In the case of a base type where the low
10621 bound would be chopped off and go from negative to zero, force
10622 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
10623 bound) so that the size computation for the base type will take
10624 negative values into account.
10625
10626 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
10627 Bob Duff <duff@adacore.com>
10628 Tristan Gingold <gingold@adacore.com>
10629
10630 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10631 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10632 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10633 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10634 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10635 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10636 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10637 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
10638 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10639 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
10640 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
10641 (Always_Compatible_Rep): New flag to control trampolines globally.
10642 (Dynamic_Trampolines_Used): New flag for implementing the
10643 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
10644 and not yet set correctly for some targets).
10645
10646 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
10647 Simply indirectly call s-stchop when a task is created.
10648
10649 * ali.ads:
10650 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
10651 appears as an argument (entries A) in an ALI file.
10652
10653 * fe.h (Stack_Check_Limits): Declare new target parameter.
10654 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
10655
10656 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
10657 This variable is declared in C to be sure not subject to elaboration
10658 code.
10659 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
10660 Storage_Error.
10661
10662 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
10663 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
10664
10665 * s-stchop.ads: Add comments.
10666
10667 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
10668 limit method of stack checking.
10669
10670 * s-stchop-limit.ads: New file.
10671
10672 2007-12-13 Robert Dewar <dewar@adacore.com>
10673
10674 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
10675 a-cihama.adb, g-awk.adb,
10676 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
10677 warnings
10678
10679 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
10680
10681 * sem.adb: Update handling of assigned value/unreferenced warnings
10682
10683 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
10684
10685 * lib-xref.ads: Improve documentation for k xref type
10686
10687 * lib-xref.adb:
10688 Update handling of assigned value/unreferenced warnings
10689 (Generate_Reference): Warning for reference to entity for which a
10690 pragma Unreferenced has been given should be unconditional.
10691 If the entity is a discriminal, mark the original
10692 discriminant as referenced.
10693
10694 * sem_warn.ads, sem_warn.adb
10695 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
10696 no entities referenced in package
10697 (Check_One_Unit): Don't give message about no entities referenced in
10698 a package if a pragma Unreferenced has appeared.
10699 Handle new warning flag -gnatw.a/-gnatw.A
10700 Update handling of assigned value/unreferenced warnings
10701
10702 * atree.h: Add flags up to Flag247
10703 (Flag231): New macro.
10704
10705 2007-12-13 Jose Ruiz <ruiz@adacore.com>
10706
10707 * adaint.h: (__gnat_plist_init): Not defined for RTX.
10708
10709 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
10710 RTX systems.
10711
10712 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
10713 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
10714 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
10715 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
10716
10717 * mingw32.h:
10718 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
10719
10720 * sysdep.c (winflush_function for RTX): Procedure that does nothing
10721 since we only have problems with Windows 95/98, which are not
10722 supported by RTX.
10723 (__gnat_ttyname): Return the empty string on Nucleus, just as
10724 done on vxworks.
10725
10726 2007-12-13 Robert Dewar <dewar@adacore.com>
10727
10728 * a-textio.adb, a-textio.ads:
10729 Extensive changes to private part for wide character encoding
10730
10731 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
10732 (Look_Ahead): Fix mishandling of encoded sequences
10733 Move declaration of Wch_Con to private part (should not be visible)
10734
10735 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
10736 UTF-8. Probably this is never used, but if it is, brackets is
10737 clearly correct.
10738
10739 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
10740 setting wide character encoding for no main program case and when
10741 encoding is specified using -W?
10742 Initialize stack limit of environment task if stack limit method of
10743 stack checking is enabled.
10744 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
10745 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
10746 (Get_Main_Unit_Name): New function.
10747 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
10748 (Gen_Output_File): Set Bind_Main_Program to True for .NET
10749
10750 * bindusg.adb: Add line for -Wx switch
10751
10752 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
10753 Add comments
10754 Add new useful constant WC_Longest_Sequences
10755
10756 * switch-b.adb: Clean up handling of -Wx switch
10757 For -gnatWx, set Wide_Character_Encoding_Method_Specified
10758
10759 * switch-c.adb: -gnatg activates warning on assertion errors
10760 For -gnatWx, set Wide_Character_Encoding_Method_Specified
10761
10762 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
10763
10764 2007-12-13 Robert Dewar <dewar@adacore.com>
10765 Ed Schonberg <schonberg@adacore.com>
10766
10767 * a-ngcoty.adb: New pragma Fast_Math
10768
10769 * opt.adb: New pragma Fast_Math
10770
10771 * par-prag.adb:
10772 Add Implemented_By_Entry to the list of pragmas which do not require any
10773 special processing.
10774 (Favor_Top_Level): New pragma.
10775 New pragma Fast_Math
10776
10777 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
10778 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
10779 Expand_Allocator_Expression): Take into account VM_Target
10780 (Expand_Attribute, case 'Identity): Handle properly the case where
10781 the prefix is a task interface.
10782 New pragma Fast_Math
10783
10784 * par.adb (Next_Token_Is): New function
10785 (P_Pragma): Add Skipping parameter
10786 (U_Left_Paren): New procedure
10787 (U_Right_Paren): New procedure
10788 New pragma Fast_Math
10789
10790 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
10791 subunit
10792 New pragma Fast_Math
10793
10794 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
10795 Implemented_By_Entry.
10796 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
10797 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
10798 items, since it can apply to more than one overloadable entity. Set
10799 new flag Has_Pragma_Inline_Always for Inline_Always case.
10800 (Analyze_Pragma, case Complex_Representation): Improve error message.
10801 (Analyze_Pragma, case Assert): When assertions are disabled build the
10802 rewritten code with Sloc of expression rather than pragma, so new
10803 warning about failing is not deleted.
10804 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
10805 protected types and update error message to reflect that. Test whether
10806 the protected type is allowed for the pragma (an error is issued if the
10807 type has any entries, or components that do not have preelaborable
10808 initialization).
10809 New pragma Fast_Math
10810 (Analyze_Pragma, case No_Return): Handle generic instance
10811
10812 * snames.h, snames.ads, snames.adb:
10813 Add new predefined name for interface primitive _Disp_Requeue.
10814 New pragma Fast_Math
10815
10816 * a-tags.ads, a-tags.adb: New calling sequence for
10817 String_To_Wide_[Wide_]String
10818 (Secondary_Tag): New subprogram.
10819
10820 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
10821 from Exp_Attr
10822 New calling sequence for String_To_Wide_[Wide_]String
10823 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
10824 the use of the secondary stack for image routines.
10825
10826 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
10827 calling sequence for String_To_Wide_[Wide_]String
10828
10829 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
10830 Ada 95 mode
10831 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
10832 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10833
10834 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
10835 (P_Formal_Part): Use Skipping parameter in P_Pragma call
10836 to improve error recovery
10837
10838 * par-util.adb (Next_Token_Is): New function
10839 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
10840
10841 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
10842 semicolon if missing
10843 (P_Pragma): Implement new Skipping parameter
10844 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10845 Fix location of flag for unrecognized pragma message
10846
10847 * par-tchk.adb (U_Left_Paren): New procedure
10848 (U_Right_Paren): New procedure
10849
10850 2007-12-13 Geert Bosch <bosch@adacore.com>
10851
10852 * a-tifiio.adb:
10853 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
10854 the second or later Scaled_Divide would omit leading zeroes,
10855 resulting in too few digits produced and a Layout_Error as result.
10856 (Put): Initialize Pos.
10857
10858 2007-12-13 Robert Dewar <dewar@adacore.com>
10859
10860 atree.ads, atree.adb (Flag231..Flag247): New functions
10861 (Set_Flag231..Set_Flag247): New procedures
10862 (Basic_Set_Convention): Rename Set_Convention to be
10863 Basic_Set_Convention
10864 (Nkind_In): New functions
10865 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10866
10867 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
10868 instead
10869 of obsolete function Is_Always_Inlined
10870 (Register_Predefined_DT_Entry): Initialize slots of the second
10871 secondary dispatch table.
10872 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10873 (Expand_N_Function_Call): Remove special provision for stack checking.
10874
10875 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
10876 Include _Disp_Requeue in the list of predefined operations.
10877 (Find_Interface_ADT): Modified to fulfill the new specification.
10878 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10879
10880 * par-ch4.adb, nlists.ads, nlists.adb:
10881 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10882
10883 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
10884 Fix location of flag for unrecognized pragma message
10885
10886 * sem_ch7.adb: Use Nkind_In
10887
10888 2007-12-13 Vincent Celier <celier@adacore.com>
10889
10890 * opt.ads:
10891 Indicate what flags are used by the Project Manager, gprbuild and
10892 gprclean.
10893 (Opt.Follow_Links_For_Dirs): New flag
10894 (Warn_On_Assertion_Failure): New flag
10895 (Wide_Character_Encoding_Method_Specified): New flag
10896 (Suppress_All_Inlining): New switch set by -fno-inline
10897 (Real_VMS_Target): New flag
10898 New pragma Fast_Math
10899
10900 2007-12-13 Robert Dewar <dewar@adacore.com>
10901
10902 * back_end.adb: Recognize -fno-inline
10903
10904 2007-12-13 Robert Dewar <dewar@adacore.com>
10905
10906 * checks.adb: Fix optimization problem with short-circuited form
10907
10908 2007-12-13 Bob Duff <duff@adacore.com>
10909
10910 * clean.adb (Usage): Add line for -aP
10911 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
10912 with a parameter "procedure Usage", instead of passing a pointer to a
10913 procedure. This is to eliminate trampolines (since the Usage procedure
10914 is often nested in a main procedure, and it would be inconvenient to
10915 unnest it).
10916
10917 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
10918 to be generic, with a parameter "procedure Callback (...)", instead of
10919 passing a pointer to a procedure. This is to eliminate trampolines
10920 (since the Callback procedure is usually nested).
10921
10922 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
10923 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
10924 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
10925
10926 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
10927 Use the generic Heap_Sort_G instead of Heap_Sort_A.
10928
10929 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10930
10931 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
10932 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
10933 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
10934 (Renamed_In_Spec): New flag
10935 (Has_Pragma_Inline_Always): New flag
10936 Add missing doc for pragma Obsolescent_Warning
10937 Add missing doc for 17 additional unused flags (230-247)
10938 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
10939 Alphabetize with clauses.
10940 Separate Is_Thunk and Has_Thunks flags
10941 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
10942 (Related_Interface): Renamed to Related_Type.
10943 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
10944 (Set_Is_Flag): Restrict the assertion.
10945
10946 2007-12-13 Vincent Celier <celier@adacore.com>
10947
10948 * errout.adb (Output_Source_Line): Do not keep a trailing space after
10949 the source line number if the source line is empty.
10950
10951 2007-12-13 Geert Bosch <bosch@adacore.com>
10952
10953 * eval_fat.adb (Decompose_Int): Handle argument of zero.
10954 (Compose): Remove special casing of zero.
10955 (Exponent): Likewise.
10956 (Fraction): Likewise.
10957 (Machine): Likewise.
10958 (Decompose): Update comment.
10959
10960 2007-12-13 Ed Schonberg <schonberg@adacore.com>
10961
10962 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
10963 limited ancestor part, initialize controllers of enclosing record
10964 before expanding ancestor aggregate.
10965 (Gen_Assign): If a component of the aggregate is box-initialized, add
10966 code to call Initialize if the component is controlled, and explicit
10967 assignment of null if the component is an access type.
10968
10969 Handle properly aggregates for limited types that appear in object
10970 declarations when the aggregate contains controlled values such as
10971 protected types.
10972 When expanding limited aggregates into individual components, do not
10973 call Adjust on controlled components that are limited.
10974
10975 2007-12-13 Ed Schonberg <schonberg@adacore.com>
10976
10977 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
10978
10979 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10980
10981 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
10982 predefined primitive _Disp_Requeue.
10983 (Make_Predefined_Primitive_Specs): Create the spec for predefined
10984 primitive _Disp_Requeue.
10985 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
10986 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
10987 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
10988 an interface type. In case of limited interfaces we now declare all the
10989 predefined primitives associated with synchronized interfaces as
10990 abstract.
10991 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
10992 declarations.
10993 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
10994 tagged type is an interface type and there is no user-defined equality
10995 function.
10996 Add also bodies of predefined primitives associated with synchronized
10997 interfaces.
10998 (Freeze_Record_Type): Do not build bodies of predefined primitives of
10999 interface types because they are now defined abstract.
11000 Add missing documentation.
11001 (Expand_Record_Controller): Update occurrence of Related_Interface
11002 to Related_Type.
11003 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
11004 (Expand_N_Object_Declaration): Take into account VM_Target when handling
11005 class wide interface object declaration.
11006 (Expand_Previous_Access_Type): Do not create a duplicate master entity
11007 if the access type already has one.
11008 (Expand_N_Object_Declaration): Defend against attempt to validity check
11009 generic types. Noticed for -gnatVcf specified with previous errors.
11010
11011 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11012
11013 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11014 Expand_Allocator_Expression): Take into account VM_Target
11015
11016 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
11017 secondary stack when VM_Target /= No_VM
11018
11019 2007-12-13 Javier Miranda <miranda@adacore.com>
11020 Ed Schonberg <schonberg@adacore.com>
11021
11022 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
11023 Is_Complation_Unit by Is_Library_Level_Entity in the code
11024 that decides if the static dispatch tables need to be built.
11025 (Wrap_Transient_Declaration): Do not generate a finalization call if
11026 this is a renaming declaration and the renamed object is a component
11027 of a controlled type.
11028
11029 2007-12-13 Gary Dismukes <dismukes@adacore.com>
11030
11031 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
11032 In the case where the renamed subprogram is a dereference, call
11033 Force_Evaluation on the prefix.
11034
11035 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11036 Ed Schonberg <schonberg@adacore.com>
11037
11038 * exp_ch9.adb (Expand_N_Asynchronous_Select,
11039 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
11040 comment reformatting.
11041 (Set_Privals): Inherit aliased flag from formal. From code reading.
11042 (Build_Simple_Entry_Call): Out parameters of an access type are passed
11043 by copy and initialized from the actual. This includes entry parameters.
11044 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
11045 and Ada 2005 models of requeue.
11046 (Null_Statements): Still connsider do-end block null if it contains
11047 Unreferenced and Warnings pragmas.
11048 (Expand_N_Accept_Statement): Do not optimize away null do end if
11049 dispatching policy is other than defaulted.
11050 (Expand_N_Timed_Entry_Call): When the triggering statement is a
11051 dispatching call, manually analyze the delay statement.
11052 (Find_Parameter_Type): Move subprogram to Sem_Util.
11053
11054 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11055 Javier Miranda <miranda@adacore.com>
11056
11057 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
11058 _Disp_Requeue occupies dispatch table slot number 15. Move
11059 _Disp_Timed_Select to slot 16.
11060 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
11061 generate the spec and body of _Disp_Reqeueue.
11062 (Make_DT): Build and initialize the second dispatch table.
11063 Handle initialization of RC_Offset when the parent
11064 is a private type with variable size components.
11065 (Make_Secondary_DT): Complete documentation. Add support to
11066 initialize the second dispatch table.
11067 (Make_Tags): Generate the tag of the second dispatch table.
11068 (Register_Primitive): Add support to register primitives in the
11069 second dispatch table.
11070
11071 2007-12-13 Pascal Obry <obry@adacore.com>
11072
11073 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
11074 Windows. This signal is used by gnatmake to kill child processes for
11075 example.
11076
11077 2007-12-13 Javier Miranda <miranda@adacore.com>
11078
11079 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
11080 support for generic dispatching constructor calls in which we need to
11081 locate the tag of a secondary dispatch table associated with an
11082 interface type to properly dispatch the call.
11083 (Expand_N_Attribute_Reference [case Address],
11084 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
11085 handling of VM targets.
11086
11087 2007-12-13 Robert Dewar <dewar@adacore.com>
11088 Ed Schonberg <schonberg@adacore.com>
11089
11090 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
11091 assert fail
11092
11093 * ug_words: Add entries for -gnatw.a -gnatw.A
11094
11095 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
11096 literal is a subtype with non-static constraints, use the base type of
11097 the context as the base of the string subtype, to prevent type
11098 mismatches in gigi.
11099 (Resolve_Actuals): If the actual is an entity name, generate a
11100 reference before the actual is resolved and expanded, to prevent
11101 spurious warnings on formals of enclosing protected operations.
11102 (Analyze_Overloaded_Selected_Component): If type of prefix if
11103 class-wide, use visible components of base type.
11104 (Resolve_Selected_Component): Ditto.
11105 (Resolve_Short_Circuit): Detect case of pragma Assert argument
11106 evaluating to False, and issue warning message.
11107
11108 * usage.adb: Add lines for -gnatw.a and -gnatw.A
11109
11110 2007-12-13 Emmanuel Briot <briot@adacore.com>
11111
11112 * g-calend.ads (No_Time): New constant, to represent an uninitialized
11113 time value
11114
11115 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
11116 formats.
11117 (Month_Name_To_Number): New subprogram
11118
11119 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
11120 letter to upper-case.
11121
11122 2007-12-13 Robert Dewar <dewar@adacore.com>
11123 Ed Schonberg <schonberg@adacore.com>
11124
11125 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
11126
11127 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
11128 context is a limited view, use non-limited view when available. If the
11129 non-limited view is an unconstrained array, this enforces consistency
11130 requirements in 3.10.2 (27).
11131 (Layout_Type): For an access type whose designated type is a limited
11132 view, examine its declaration to determine if it is an unconstrained
11133 array, and size the access type accordingly.
11134 (Layout_Type): Do not force 32-bits for convention c subprogram
11135 pointers in -gnatdm mode, only if real vms target.
11136
11137 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
11138 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11139 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
11140 violations of the No_Implicit_Dynamic_Code restriction.
11141 (Resolve_Attribute, case 'Access): If designated type of context is a
11142 limited view, use non-limited view when available. If the non-limited
11143 view is an unconstrained array, this enforces consistency requirements
11144 in 3.10.2 (27).
11145 (Layout_Type): For an access type whose designated type is a limited
11146 view, examine its declaration to determine if it is an unconstrained
11147 array, and size the access type accordingly.
11148
11149 2007-12-13 Vincent Celier <celier@adacore.com>
11150
11151 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
11152 object directory of main project does not exist.
11153 On VMS, correctly set then environment variable for the source
11154 directories.
11155
11156 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
11157
11158 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
11159 set to True this procedure will create the value of type REG_EXPAND_SZ.
11160 It was only possible to create REG_SZ values before.
11161
11162 2007-12-13 Robert Dewar <dewar@adacore.com>
11163
11164 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
11165 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
11166 namet-sp.adb, namet-sp.ads: New files.
11167
11168 * g-speche.adb: Use generic routine in g-spchge
11169
11170 * s-wchcnv.ads, s-wchcnv.adb:
11171 Minor code cleanup (make formal type consistent with spec)
11172
11173 * namet.adb: Update comments.
11174
11175 * par-endh.adb (Evaluate_End_Entry): Use new
11176 Namet.Sp.Is_Bad_Spelling_Of function
11177
11178 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
11179
11180 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
11181 ancestor is an access type initialized with a box, set its type
11182 explicitly, for use in subsequent expansion.
11183 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
11184 function
11185
11186 2007-12-13 Robert Dewar <dewar@adacore.com>
11187
11188 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
11189 access Vstring)
11190
11191 2007-12-13 Robert Dewar <dewar@adacore.com>
11192
11193 * inline.adb (Back_End_Cannot_Inline): Use new flag
11194 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11195
11196 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
11197 Has_Pragma_Inline_Always instead.
11198 of obsolete function Is_Always_Inlined
11199 (Build_Body_To_Inline): Same change
11200 (Cannot_Inline): Same change
11201 Do not give warning on exception raise in No_Return function
11202
11203 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
11204 component has two inconsistent component clauses in the same record
11205 representation clause, favor the message that complains about
11206 duplication rather than inconsistency.
11207 Update comments.
11208 (Record_Representation_Clause): Do not warn on missing component
11209 clauses for inherited components of a type extension.
11210 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
11211 an overloadable item if it is a pragma that can apply to multiple
11212 overloadable entities (e.g. Inline) because a pragma cannot be on
11213 more than one chain at a time.
11214 (Validate_Unchecked_Conversion): Add code to warn on unchecked
11215 conversion where one of the operands is Ada.Calendar.Time.
11216 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
11217 For now, ignore Component_Size clause on VM targets, as done for
11218 pragma Pack.
11219
11220 2007-12-13 Emmanuel Briot <briot@adacore.com>
11221 Vincent Celier <celier@adacore.com>
11222
11223 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
11224 string
11225 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
11226 prj.ads
11227 (Hash): Move instantiation of System.HTable.Hash from spec to body
11228 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
11229 systems, since we do not need to recompute the Name_Id for the canonical
11230 file name.
11231 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11232 as a parameter. This parameter is in fact always "ada" in all calls, and
11233 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
11234 while loading a project with 40000 files
11235
11236 * prj-attr.adb: Fix name of attribute Dependency_Driver
11237 Change the kind of indexing for attribute Root
11238
11239 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
11240 variables already declared, in case constructions.
11241
11242 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
11243 Current_Object_Path_File to No_Path.
11244
11245 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
11246 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
11247
11248 * prj-makr.adb: new parameter Current_Dir
11249
11250 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
11251 Ada sources when language is not Ada.
11252 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11253 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
11254 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
11255 (Locate_Directory): Always resolve links when computing Canonical_Path
11256 (Look_For_Sources): Make sure that Name_Buffer contains the file name
11257 in Source_Files before checking for the presence of a directory
11258 separator.
11259 Optimize calls to Name_Find when on case sensitive systems.
11260 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11261 as a parameter.
11262 (Prj.Nmsc.Check): new parameter Current_Dir
11263 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
11264 cannot be empty and the spec suffix cannot be the same as the body or
11265 separate suffix.
11266 (Get_Unit): When a file name can be of several unit kinds (spec, body or
11267 subunit), always consider the longest suffix.
11268 (Check_Configuration): Do not issue an error if there is no compiler
11269 for a language. Just issue a warning and ignore the sources for the
11270 language.
11271 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
11272 not empty.
11273 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
11274 (Unit_Exceptions): New hash table
11275 (Check_Naming_Schemes): Check if a file that could be a unit because of
11276 the naming scheme is not in fact a source because there is an exception
11277 for the unit.
11278 (Look_For_Sources): Put the unit exceptions in hash table
11279 Unit_Exceptions
11280 (Get_Unit_Exceptions): Give initial value No_Source to local variable
11281 Other_Part to avoid exception when code is compiled with validity
11282 checking.
11283 (Get_Sources_From_File): Check that there is no directory information
11284 in the file names.
11285 (Look_For_Sources): Check that there is no directory information in the
11286 list of file names in Source_Files.
11287 (Look_For_Sources): In multi-language mode, do not allow exception file
11288 names that are excluded.
11289 (Excluded_Sources_Htable): New hash table
11290 (Search_Directories.Check_File): New procedure to simplify
11291 Search_Directories.
11292 (Search_Directories): Do not consider excluded sources
11293 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
11294 Search_Directories.
11295 (Get_Exceptions): Set component Lang_Kind of Source_Data
11296 (Get_Unit_Exceptions): Ditto
11297 (Search_Directories): Ditto
11298
11299 * prj-pars.adb: new parameter Current_Dir
11300
11301 * prj-part.ads, prj-part.adb:
11302 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11303 (Opt.Follow_Links_For_Dirs): New flag
11304 (Project_Path_Name_Of): Cache information returned by this routine as
11305 Locate_Regular_File is a costly routine. The code to output a log
11306 information and the effective call to Locate_Regular_File is now
11307 factorized into a routine (code clean-up).
11308 (Parse, Parse_Single_Project): new parameter Current_Dir
11309 When main project file cannot be found, indicate in the error
11310 message the project path that was used to do the search.
11311
11312 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
11313 (Prj.Proc.Process*): new parameter Current_Dir
11314
11315 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
11316
11317 2007-12-13 Bob Duff <duff@adacore.com>
11318
11319 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
11320 procedure to be called from the back end to check the
11321 No_Implicit_Dynamic_Code restriction.
11322
11323 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11324
11325 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
11326 Fixes another case where RTE_Available_Call was ignored instead of being
11327 taken into account.
11328 (Load_Fail): Ditto.
11329
11330 * rtsfind.ads: Add new entries.
11331
11332 2007-12-13 Robert Dewar <dewar@adacore.com>
11333
11334 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
11335 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
11336
11337 * scn.adb: Implement BOM recognition
11338
11339 2007-12-13 Thomas Quinot <quinot@adacore.com>
11340 Ed Schonberg <schonberg@adacore.com>
11341
11342 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
11343 subprogram body that acts as its own spec may not have a non-private
11344 WITH clause on a private sibling.
11345 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
11346 child unit is a renaming, create an implicit with_clause on that
11347 parent, and not on the unit it renames, to prevent visibility errors
11348 in the current unit.
11349
11350 2007-12-13 Ed Schonberg <schonberg@adacore.com>
11351
11352 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
11353 renaming declaration, use the Slocs of the formal parameters from the
11354 declaration of the formal subprogram when creating the formal parameter
11355 entities in the renaming declaration.
11356 (Analyze_Formal_Type_Declaration): Change the placement of the error
11357 message concerning illegal known discriminants. It is now posted on the
11358 type rather than on the first discriminant. This change ensures early
11359 error report.
11360 (Freeze_Subprogram_Body): If the generic subprogram is nested within
11361 the package body that contains the instance, do not generate an
11362 out-of-place freeze node for the enclosing package.
11363 (Collect_Previous_Instantiations): Ignore internal instantiations
11364 generated for formal packages.
11365 (Validate_Derived_Type_Instance): Add a check that when a formal
11366 derived type is Known_To_Have_Preelab_Init then the actual type must
11367 have preelaborable initialization, and issue an error when this
11368 condition is violated.
11369
11370 2007-12-13 Robert Dewar <dewar@adacore.com>
11371
11372 * s-imenne.adb, s-imenne.ads: New files.
11373
11374 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
11375 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
11376 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
11377 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
11378 s-imgwch.ads: New calling sequence for Image routines to avoid sec
11379 stack usage.
11380
11381 2007-12-13 Javier Miranda <miranda@adacore.com>
11382 Ed Schonberg <schonberg@adacore.com>
11383
11384 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
11385 generation of spurious error if parent is an interface type; caused
11386 because predefined primitive bodies will be generated later by
11387 Freeze_Record_Type.
11388 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
11389 flag.
11390 (Derive_Subprograms): Handle derivations of predefined primitives
11391 after all the user-defined primitives to ensure that they are
11392 found in proper order in instantiations.
11393 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
11394 of Related_Interface to Related_Type.
11395 (Record_Type_Declaration): Minor reordering of calls to decorate the
11396 Tag component because the entity must have set its Ekind attribute
11397 before setting its Is_Tag attribute.
11398 (Analyze_Subtype_Declaration): In the case of subtypes with
11399 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
11400
11401 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11402 Ed Schonberg <schonberg@adacore.com>
11403
11404 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
11405 statement to the list of contexts where a selected component with a
11406 concurrent tagged type prefix should yield a primitive operation.
11407 (Find_Primitive_Operation): Handle case of class-wide types.
11408 (Analyze_Overloaded_Selected_Component): If type of prefix is
11409 class-wide, use visible components of base type.
11410 (Resolve_Selected_Component): Ditto.
11411 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
11412 formal of a generic subprogram. find candidate interpretations by
11413 scanning the list of generic formal declarations.:
11414 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
11415 type from a limited_with_clause, and the full view is available, use it
11416 for subsequent semantic checks.
11417 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
11418 (Find_Primitive_Operation): New function.
11419 (Analyze_Overloaded_Selected_Component): insert explicit dereference
11420 only once if several interpretations of the prefix yield an access type.
11421 (Try_Object_Operation): Code and comment cleanup.
11422 (Analyze_Selected_Component): Reorder local variables. Minot comment and
11423 code reformatting. When the type of the prefix is tagged concurrent, a
11424 correct interpretation might be available in the primitive and
11425 class-wide operations of the type.
11426
11427 2007-12-13 Robert Dewar <dewar@adacore.com>
11428 Ed Schonberg <schonberg@adacore.com>
11429
11430 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
11431 renaming entry as subprogram using rename-as-body if subprogram spec
11432 frozen.
11433 (Use_One_Type): The clause is legal on an access type whose designated
11434 type has a limited view.
11435 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11436 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11437 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
11438 operation denoted by a selected component.
11439 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
11440 it can be an expression, possibly overloaded, that returns a task or
11441 an access to one.
11442
11443 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11444 Gary Dismukes <dismukes@adacore.com>
11445
11446 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
11447 requeue statement is dispatching. Do not emit an error when the name is
11448 not an entry and the context is a dispatching select. Add code to
11449 perform subtype conformance between the formals of the current entry
11450 and those of the target interface primitive.
11451 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
11452 Timed_Entry_Call): Analyze the triggering statement as the first step of
11453 the processing. If this is a dispatching select, postpone the analysis
11454 of all select statements until the Expander transforms the select. This
11455 approach avoids generating duplicate identifiers after the Expander has
11456 replicated some of the select statements. In case the Expander is
11457 disabled, perform regular analysis.
11458 (Check_Triggering_Statement): New routine.
11459 (Analyze_Requeue): Exclude any interpretations that are not entries when
11460 checking overloaded names in a requeue. Also test type conformance for
11461 matching interpretations rather than requiring subtype conformance at
11462 that point to conform with the RM's resolution rule for requeues.
11463
11464 2007-12-13 Ed Schonberg <schonberg@adacore.com>
11465
11466 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
11467 inherited operation is a defaulted tag-indeterminate call, and there is
11468 a statically tagged actual, use the static tag as a controlling actual
11469 for the defaulted actual.
11470
11471 2007-12-13 Geert Bosch <bosch@adacore.com>
11472
11473 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
11474 context, so do not call Check_Non_Static_Context.
11475
11476 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11477
11478 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
11479 whether formal E is an entity which may have parameters.
11480
11481 2007-12-13 Bob Duff <duff@adacore.com>
11482 Javier Miranda <miranda@adacore.com>
11483 Robert Dewar <dewar@adacore.com>
11484
11485 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
11486 (Set_Convention): New procedure to set the Convention flag, and in
11487 addition make sure the Favor_Top_Level flag is kept in sync (all
11488 foreign-language conventions require Favor_Top_Level = True).
11489 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
11490 to Related_Type.
11491 (Collect_Interfaces_Info): Minor update to handle the two secondary
11492 dispatch tables. Update occurrence of Related_Interface to Related_Type.
11493 (Generate_Parent_Ref): Add parameter to specify entity to check
11494 (Is_Preelaborable_Expression): Allow the name of a discriminant to
11495 initialize a component of a type with preelaborable initialization.
11496 This includes the case of a discriminal used in such a context.
11497 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
11498 latest Ada 2005 rules about renaming and 'Access of
11499 discriminant-dependent components.
11500 (Check_Nested_Access): Add handling when there are no enclosing
11501 subprograms (e.g. case of a package body).
11502 (Find_Parameter_Type): Factor routine from several other compiler files.
11503 Remove routine from Find_Overridden_Synchronized_Primitive.
11504
11505 2007-12-13 Thomas Quinot <quinot@adacore.com>
11506
11507 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
11508 an invalid access to an uninitialized slot in the
11509 Source_File_Index_Table.
11510
11511 2007-12-13 Thomas Quinot <quinot@adacore.com>
11512
11513 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
11514
11515 2007-12-13 Bob Duff <duff@adacore.com>
11516
11517 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
11518 access-to-subprogram types in this package.
11519
11520 2007-12-13 Olivier Hainque <hainque@adacore.com>
11521
11522 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
11523 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
11524 Stack_Overlay_Address and document that we are using an internal
11525 abstraction.
11526 (Byte_Size, Unsigned_32_Size): Remove, now useless.
11527 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
11528 consistently throughout the various implementation pieces.
11529
11530 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
11531 overlay we are using to fill the stack area with patterns.
11532 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
11533 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
11534 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
11535
11536 2007-12-13 Robert Dewar <dewar@adacore.com>
11537
11538 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
11539
11540 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11541
11542 * s-tassta.adb:
11543 (Create_Task): Take into account tasks created by foreign threads.
11544 Code clean up: use constants instead of hard coded values.
11545
11546 2007-12-13 Robert Dewar <dewar@adacore.com>
11547
11548 * styleg.adb (Check_Comment): More liberal rules for comment placement
11549
11550 2007-12-13 Olivier Hainque <hainque@adacore.com>
11551
11552 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
11553 of Procedure Value instead of Frame Pointer as the invocation
11554 identifier associated with the instruction pointer in each traceback
11555 entry.
11556
11557 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
11558 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
11559 Pointer as the invocation identifier passed to tbk$symbolize.
11560
11561 * s-traent-vms.ads, s-traent-vms.adb
11562 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
11563 Procedure Value instead of Frame Pointer as the invocation identifier
11564 passed to tbk$symbolize.
11565
11566 2007-12-13 Robert Dewar <dewar@adacore.com>
11567
11568 * tbuild.ads, tbuild.adb:
11569 Fix location of flag for unrecognized pragma message
11570
11571 2007-12-13 Robert Dewar <dewar@adacore.com>
11572
11573 * treepr.ads, treepr.adb: (pl): implement use of positive value
11574 shorthands
11575
11576 2007-12-13 Robert Dewar <dewar@adacore.com>
11577
11578 * xeinfo.adb: Remove warnings
11579 * xnmake.adb: Remove warnings
11580 * xsinfo.adb: Remove warnings
11581 * xtreeprs.adb: Remove warnings
11582 * xsnames.adb: Remove warnings
11583
11584 * a-ngcoar.adb: Fix typo.
11585 * s-interr.adb: Minor reformatting
11586 * env.c: Minor reformatting.
11587 * g-bytswa.adb: Minor reformatting.
11588 * g-rannum.ads: Minor documentation improvements
11589 * s-tasinf-mingw.adb: Minor header fix
11590 * a-clrefi.adb: Minor reformatting
11591 * g-sttsne.ads: Minor documentation improvement
11592 * g-sttsne-locking.ads: Minor documentation improvement
11593 * g-soliop-solaris.ads: Minor documentation improvement
11594 * g-soliop-mingw.ads: Minor documentation improvement
11595 * g-soliop.ads: Minor documentation improvement
11596 * exp_aggr.ads: Minor reformatting
11597 * debug.adb: Add documentation for the gprbuild debug flags
11598 * exp_ch2.adb: Use Nkind_In to simplify code throughout
11599 * exp_pakd.adb: Minor reformatting
11600
11601 * g-altive.ads, g-alleve.adb: Remove assertions.
11602 Add comment about minor differences between targets regarding
11603 floating-point operations.
11604
11605 * g-thread.adb: Remove pragma unreferenced.
11606 * lib.ads: Minor reformatting
11607 * par-ch9.adb: Minor reformatting of error messages
11608 * sem_case.adb: Minor reformatting
11609 * s-fileio.adb: Minor reformattinng
11610 * s-vmexta.ads: Minor typo
11611 * vxaddr2line.adb:
11612 Take into account 'Success' value as per new GNAT warning.
11613
11614 2007-12-13 Vincent Celier <celier@adacore.com>
11615
11616 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
11617 even on Windows
11618
11619 2007-12-13 Robert Dewar <dewar@adacore.com>
11620 Bob Duff <duff@adacore.com>
11621
11622 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
11623 Document that suffixes may be terminations of each others
11624 Add doc for -gnatw.a and -gnatw.A
11625 Document gnatbind -Wx switch
11626 Document BOM recognition
11627 Document pragma Implemented_By_Entry.
11628 Document new units.
11629
11630 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
11631 Add doc for pragma Unreferenced suppressing no entities referenced msg
11632 Add documentation of GNAT.Directory_Operations.Iteration
11633 Add documentation of GNAT.Random_Numbers
11634 Add documentation for pragma Shared.
11635 Correct documentation for Bit_Order
11636 Add documentation for the Pool_Address attribute.
11637 Fix and improve documentation of pragma machine_attribute.
11638 New pragma Fast_Math
11639 Document BOM recognition
11640
11641 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
11642 Add /Wide_Character_Encoding for binder
11643 Add qualifier for the new gnatpp option --no-separate-loop-then
11644
11645 2007-12-13 Matthew Heaney <heaney@adacore.com>
11646
11647 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
11648 which generic formal operations are called for each operation.
11649
11650 2007-12-13 Olivier Hainque <hainque@adacore.com>
11651
11652 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
11653 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
11654
11655 2007-12-13 Emmanuel Briot <briot@adacore.com>
11656
11657 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
11658 Reference_Dir unless we actually need it.
11659
11660 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
11661 Tristan Gingold <gingold@adacore.com>
11662
11663 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
11664
11665 * s-osprim-vms.adb,
11666 a-calend-vms.adb: Remove pragma warning off and add pragma
11667 unreferenced.
11668
11669 2007-12-13 Robert Dewar <dewar@adacore.com>
11670
11671 * impunit.adb: Add entries for missing units
11672
11673 * Makefile.rtl: Add new run-time units.
11674
11675 * Make-lang.in: Update dependencies.
11676
11677 2007-12-13 Bob Duff <duff@adacore.com>
11678
11679 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
11680 types, set Can_Use_Internal_Rep appropriately, based on
11681 Always_Compatible_Rep_On_Target.
11682
11683 2007-12-13 Gary Dismukes <dismukes@adacore.com>
11684 Arnaud Charlet <charlet@adacore.com>
11685
11686 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
11687 it to the front end and setting the aamp_target environment variable
11688 to the switch's argument to ensure that gnaampbind and gnaamplink will
11689 take the specified library into account.
11690 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
11691 target, since the CIL compiler supports an "object" file (.il files).
11692
11693 2007-12-13 Vincent Celier <celier@adacore.com>
11694
11695 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
11696 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
11697
11698 2007-12-13 Geert Bosch <bosch@adacore.com>
11699
11700 * s-parame-vxworks.adb:
11701 Update comments to reflect usage of this package by Nucleus.
11702
11703 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11704
11705 * i-vxwork.ads: Kill new warning on Convention C, since changing the
11706 spec would break code.
11707
11708 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
11709
11710 * system-vxworks-alpha.ads: Removed.
11711
11712 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
11713
11714 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
11715
11716 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
11717
11718 PR ada/34366
11719 * sem_ch3.adb (Designates_T): New function.
11720 (Mentions_T): Factor reusable part of the logic into Designates_T.
11721 Consider non-access parameters and access and non-access result.
11722 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
11723 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
11724
11725 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
11726
11727 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
11728
11729 PR ada/34361
11730 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
11731 the new implementation of target-specific calls.
11732
11733 2007-12-07 Olivier Hainque <hainque@adacore.com>
11734
11735 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
11736 the designated full view, only follow a second level Full_View link
11737 for Non_Limited_Views of from_limited_with references.
11738
11739 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
11740
11741 PR ada/15805
11742 * sem_ch6.adb (Process_Formals): Prevent an access type formal
11743 to be initialized with an access to constant object.
11744
11745 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
11746 when an access to constant is used to initialize an access
11747 value.
11748
11749 PR ada/21346
11750 * a-direct.adb (Compose): Containing_Directory can be an empty string.
11751
11752 2007-12-07 Olivier Hainque <hainque@adacore.com>
11753
11754 PR ada/34173
11755 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
11756 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
11757 this is from an alignment clause on the GNAT entity.
11758 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
11759 to distinguish the case where we set it from the type's alignment.
11760 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
11761 whether this alignment was set from an explicit alignment clause.
11762
11763 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
11764
11765 * decl.c (make_packable_type): Revert last change.
11766 (gnat_to_gnu_field): Avoid setting size and position multiple times.
11767 * utils.c (finish_record_type): Retrieve the real name of the type.
11768
11769 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
11770
11771 * trans.c (lvalue_required_p): Take base node directly instead
11772 of its parent. Rename second parameter to 'gnu_type'.
11773 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
11774 <N_Slice>: Likewise.
11775 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
11776 Adjust calls to lvalue_required_p.
11777
11778 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
11779
11780 PR ada/21489
11781 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
11782 parameters of an entry call.
11783
11784 2007-12-03 Robert Dewar <dewar@adacore.com>
11785 Samuel Tardieu <sam@rfc1149.net>
11786
11787 PR ada/34287
11788 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
11789 of variables declared in a library-level package.
11790
11791 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
11792
11793 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
11794 of Empty_String'Unchecked_Access.
11795
11796 * Makefile.in: Add support for sh4-linux.
11797
11798 * system-linux-sh4.ads: New file.
11799
11800 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
11801
11802 PR ada/33722
11803 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
11804 and its argument must not be free()ed.
11805
11806 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
11807
11808 * decl.c (make_packable_type): Retrieve the real name of the type.
11809 (maybe_pad_type): Simplify similar code.
11810
11811 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
11812
11813 PR ada/15804
11814 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
11815 than an identifier is used after "case" in a variant_part.
11816
11817 PR ada/17318
11818 * par-ch4.adb (Is_Parameterless_Attribute): New map.
11819 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
11820 attribute name or not depending on the new map.
11821
11822 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
11823 returning a string or a type will not be called with improper
11824 arguments.
11825
11826 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
11827
11828 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
11829
11830 PR ada/32792
11831 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
11832 Signal an error when attribute argument is a fixed-point value of
11833 an unknown type.
11834
11835 PR ada/22559
11836 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
11837 a derived ordinary fixed point type.
11838
11839 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
11840 RM_Size when a Small clause is found.
11841
11842 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
11843
11844 PR 34081/C++
11845 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
11846 Pass 'false' for the new allocate_struct_function parameter.
11847 * utils.c (build_function_stub): Likewise.
11848
11849 2007-11-25 Richard Guenther <rguenther@suse.de>
11850
11851 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
11852 (gnat_poplevel): Likewise.
11853
11854 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
11855
11856 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
11857 strict alignment, no alignment clause and a known static size, cap
11858 the type alignment to the greatest power of 2 factor of the size.
11859 (gnat_to_gnu_field): If the field has a component clause, is aliased
11860 or of a type with strict alignment, require that its size be equal to
11861 that of the type.
11862 (validate_size): Use the type size as the minimum size for a type with
11863 strict alignment.
11864
11865 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
11866
11867 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
11868 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
11869 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
11870 Use 'Access instead of 'Unchecked_Access in second and third
11871 arguments of pthread_sigmask.
11872
11873 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
11874
11875 * decl.c (ceil_alignment): New function.
11876 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
11877 (make_packable_type): Likewise.
11878
11879 2007-11-22 Olivier Hainque <hainque@adacore.com>
11880
11881 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
11882 to fit in 80 columns.
11883
11884 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
11885
11886 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
11887 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
11888
11889 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
11890
11891 PR ada/34098
11892 * misc.c (gnat_adjust_rli): Delete.
11893 (gnat_init): Do not initialize the translation code here.
11894 Do not call set_lang_adjust_rli.
11895 * trans.c (init_code_table): Make static.
11896 (gnat_init_stmt_group): Delete.
11897 (gigi): Initialize the translation code entirely here.
11898 Emit debug info for the common types here instead of...
11899 * utils.c (gnat_init_decl_processing): ...here.
11900 * gigi.h (init_code_table): Delete.
11901 (gnat_init_stmt_group): Likewise.
11902
11903 2007-11-16 Olivier Hainque <hainque@adacore.com>
11904
11905 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
11906 retrieving an allocator return value from a super-aligned address from
11907 here to ...
11908 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
11909 expect a super-aligned address for a fat or thin pointer.
11910
11911 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
11912
11913 * trans.c (call_to_gnu): Always set the source location on the call
11914 expression. If the function returns-by-target, also set it on the
11915 address expression.
11916
11917 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
11918
11919 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
11920 sections of non-supported Interix target.
11921
11922 * s-osinte-interix.ads: Removed.
11923
11924 * i-cstrin.ads (chars_ptr): Make it a C convention type.
11925
11926 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
11927
11928 * a-tasatt.adb: Add a comment at the beginning of the package
11929 explaining why in general 'Unchecked_Access must be used instead
11930 of 'Access.
11931
11932 * sem_prag.adb (Process_Convention): Move the test for the
11933 entity on which the Convention pragma applies down to also
11934 forbid pragma Convention on enumeration literals reached
11935 through renamings.
11936
11937 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
11938
11939 * a-tasatt.adb: Revert previous change for this file as it will
11940 generate an error when this package is instantiated from a
11941 local context.
11942
11943 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
11944
11945 * a-tasatt.adb: Type Wrapper should be declared in comment instead
11946 of already declared type Node_Access.
11947 Use 'Access instead of 'Unchecked_Access when applicable. Local
11948 lifetime is the one of the package.
11949 (Set_Value): W is allocated on the heap.
11950
11951 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
11952 applicable.
11953 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
11954 access type.
11955 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
11956 access type.
11957
11958 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
11959 applicable.
11960 (elaboration code): Timer_Queue lifetime is the one of the
11961 package.
11962
11963 * tracebak.c (i386 alternative): Remove useless comparaison
11964 which is always false; LOWEST_ADDRESS is 0 and is never greater
11965 than an unsigned integer.
11966
11967 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
11968 embedded check for "Ada_Version >= Ada_05".
11969
11970 2007-11-07 Olivier Hainque <hainque@adacore.com>
11971
11972 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
11973 craft and expand comment.
11974
11975 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
11976
11977 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
11978
11979 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
11980
11981 * misc.c (gnat_handle_option): Replace call to abort with
11982 call to gcc_unreachable.
11983 (gnat_init): Likewise.
11984 (gnat_expand_expr): Likewise.
11985 (fp_prec_to_size): Likewise.
11986 (fp_size_to_prec): Likewise.
11987
11988 2007-10-23 Richard Guenther <rguenther@suse.de>
11989
11990 PR bootstrap/33608
11991 * tracebak.c: #undef abort after including system.h.
11992
11993 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
11994
11995 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
11996 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
11997 for win32 targets.
11998 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
11999
12000 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
12001
12002 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
12003 Set the protection status of the guard page based on the value of On.
12004
12005 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
12006
12007 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
12008 (Exit_Task): Pass False to Hide_Yellow_Zone.
12009
12010 2007-10-15 Robert Dewar <dewar@adacore.com>
12011
12012 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12013 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
12014 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
12015 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
12016 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
12017 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
12018 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
12019 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
12020 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
12021 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
12022 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
12023 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
12024 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
12025 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
12026 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
12027 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
12028 Minor reformatting.
12029 Add Unreferenced and Warnings (Off) pragmas for cases of
12030 variables modified calls where they are IN OUT or OUT parameters and
12031 the resulting values are not subsequently referenced. In a few cases,
12032 we also remove redundant code found by the new warnings.
12033
12034 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
12035 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
12036 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
12037 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
12038 warning controlled by -gnatw.o that warns on cases of out parameter
12039 values being ignored.
12040
12041 2007-10-15 Geert Bosch <bosch@adacore.com>
12042
12043 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
12044
12045 * expect.c: Initial port to arm-mentor-nucleus.
12046 Use kill for __gnat_kill() on VMS.
12047
12048 2007-10-15 Emmanuel Briot <briot@adacore.com>
12049
12050 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
12051 value.
12052 (Xref_Record): Change type for Line, since in the case of a reference to
12053 a predefined entity (as happens for array index types), the line is set
12054 to 0.
12055 Add support for parsing multiple array index types info, or
12056 multiple inherited interfaces info. This information cannot be stored
12057 in Xref_Entity_Record, which only supports a single instance of Tref_*,
12058 and is therefore stored in the list of references instead. It has a
12059 special treatement later on in tools that use this information.
12060
12061 2007-10-15 Tristan Gingold <gingold@adacore.com>
12062
12063 * debug.adb: Document use of -gnatd.a and -gnatd.I
12064
12065 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
12066
12067 2007-10-15 Javier Miranda <miranda@adacore.com>
12068
12069 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
12070 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
12071 care of access to class-wide interface types plus removal of bizarre
12072 conversion of tagged object to access type (reported by Gary
12073 Dismukes). After this patch there is no need to perform any
12074 additional management on these nodes in Expand_Interface_Actuals.
12075
12076 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
12077 that handles use of 'Access and 'Unchecked_Access applied to
12078 actuals covering interface types. Such code is now
12079 centralized in Expand_N_Attribute_Reference.
12080
12081 2007-10-15 Ed Schonberg <schonberg@adacore.com>
12082
12083 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
12084 of tagged types whose ultimate ancestor is a CPP type.
12085 (Freeze_Array_Type): For a packed array type, generate an initialization
12086 procedure if the type is public, to handle properly a client that
12087 specifies Normalize_Scalars.
12088
12089 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12090
12091 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
12092 inside a generic body, retrieve the full view of the entry family
12093 discrete subtype if available.
12094
12095 2007-10-15 Thomas Quinot <quinot@adacore.com>
12096
12097 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
12098 attempt to generate stubs for hidden primitive operations.
12099
12100 2007-10-15 Vincent Celier <celier@adacore.com>
12101
12102 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
12103 returning None, used when there is no platform specific body for
12104 MLib.Tgt.Specific.
12105
12106 2007-10-15 Bob Duff <duff@adacore.com>
12107
12108 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
12109 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
12110 the generic Heap_Sort_G, in order to avoid trampolines.
12111
12112 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
12113 Jose Ruiz <ruiz@adacore.com>
12114
12115 * vx_stack_info.c: New file.
12116
12117 * i-forbla-unimplemented.ads: New file.
12118
12119 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
12120 for unsupported configurations; use it on VMS targets instead of the
12121 real one.
12122 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
12123 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
12124 used by VxWorks targets to have access to task-specific data and be
12125 able to extract the stack boundaries for stack checking.
12126 Use system-vms-ia64.ads on ivms.
12127
12128 * Make-lang.in: Update dependencies.
12129
12130 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
12131 (vx_stack_info.c).
12132
12133 2007-10-15 Vincent Celier <celier@adacore.com>
12134
12135 * snames.adb, snames.ads: Add new standard name runtime_library_dir
12136
12137 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
12138
12139 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
12140
12141 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
12142 the source is unknown.
12143
12144 * prj-ext.adb: Spelling error fix
12145
12146 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
12147 95 reserved word in its name.
12148 (Process_Project_Level_Array_Attributes): Process new attribute
12149 Runtime_Library_Dir.
12150
12151 * prj-part.adb (Parse_Single_Project): Do not check the name of the
12152 config project against the user project names.
12153
12154 * prj-proc.adb (Expression): In multi-language mode, indexes that do
12155 not include a dot are always case insensitive.
12156 (Process_Declarative_Items): Ditto
12157 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
12158 detected.
12159
12160 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
12161 True, compare both indexes in lower case.
12162
12163 2007-10-15 Robert Dewar <dewar@adacore.com>
12164
12165 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
12166
12167 2007-10-15 Gary Dismukes <dismukes@adacore.com>
12168
12169 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
12170 association for an access component, add an association with null as
12171 the expression. Remove testing for array subtypes and the setting in
12172 that case of Ctyp to the array component type, which prevented proper
12173 inclusion of an association for null-initialized arrays. Collapse
12174 condition that tests for array subtypes into just a test of
12175 Is_Partially_Initialized_Type (which already covers arrays anyway).
12176
12177 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12178
12179 * sem_ch12.adb: Minor code reformatting.
12180 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
12181 find the parent package which may have been hidden by local
12182 declarations.
12183
12184 2007-10-15 Gary Dismukes <dismukes@adacore.com>
12185
12186 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
12187 flag of derived concurrent types, taking into account the flag setting
12188 on the parent subtype and any new set of discriminants.
12189
12190 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12191
12192 * sem_ch4.adb: Minor code and comment reformatting.
12193 (Analyze_Allocator): When the designated type of an unconstrained
12194 allocator is a record with unknown discriminants or an array with
12195 unknown range bounds, emit a detailed error message depending on the
12196 compilation mode and whether the designated type is limited.
12197
12198 2007-10-15 Tristan Gingold <gingold@adacore.com>
12199
12200 * system-vms-ia64.ads: New file.
12201
12202 * system-vms_64.ads: Minor comment fix.
12203
12204 2007-10-15 Ed Schonberg <schonberg@adacore.com>
12205
12206 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
12207 body generated for a function with a controlling result that is a null
12208 extension, discard the generated body in favor of the current explicit
12209 one.
12210
12211 2007-10-15 Ed Schonberg <schonberg@adacore.com>
12212
12213 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
12214 examining its original form, to handle properly operator calls that
12215 have been rewritten.
12216
12217 2007-10-15 Olivier Hainque <hainque@adacore.com>
12218
12219 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
12220 instead of a procedure value in each traceback entry.
12221
12222 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
12223 instead of procedure value to TBK$SYMBOLIZE.
12224
12225 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
12226 field.
12227 (TB_Entry_For): Account for the PV/FP renaming.
12228
12229 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
12230 add comment.
12231 (Null_TB_Entry): Account for change of component name.
12232 (PV_For): Rename as FP_For.
12233
12234 2007-10-15 Tristan Gingold <gingold@adacore.com>
12235
12236 * trans.c (gnat_to_gnu): Remove the padding structure more often.
12237 This optimize assignment to over-aligned record.
12238
12239 2007-10-15 Emmanuel Briot <briot@adacore.com>
12240
12241 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
12242 interfaces.
12243
12244 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
12245 type, for dispatching calls.
12246
12247 2007-10-15 Vincent Celier <celier@adacore.com>
12248 Robert Dewar <dewar@adacore.com>
12249
12250 * gnat_ugn.texi: Add documentation for switches --version and --help
12251 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
12252 gnatxref, gnatfind, gnatls, and gnatclean.
12253 Document -gnatw.o.
12254 Mention attribute Excluded_Source_Dirs
12255 Replace obsolescent attribute Locally_Removed_Files with attribute
12256 Excluded_Source_Files.
12257 Improve documentation of -u (gnatbind)
12258 Document how to do reliable stack checking for the environmental task
12259 on iVMS.
12260
12261 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
12262 Document attribute Excluded_Source_Files and indicate that attribute
12263 Locally_Removed_Files is obsolescent.
12264
12265 2007-10-15 Thomas Quinot <quinot@adacore.com>
12266
12267 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
12268
12269 * gen-soccon.c:
12270 Update documentation to note that OpenVMS 8.3 or later must be used
12271 to generate g-soccon-vms.ads.
12272
12273 * atree.adb: Add ??? comment
12274
12275 * exp_util.adb: Minor reformatting.
12276 Add ??? comment in Kill_Dead_Code.
12277
12278 2007-10-15 Robert Dewar <dewar@adacore.com>
12279
12280 * errout.ads: Comment clarification
12281
12282 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
12283 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
12284
12285 * lib.ads: Comment update
12286
12287 * init.c: Minor reformatting.
12288
12289 * sem_attr.adb: Minor formatting
12290
12291 * osint-b.ads: Minor reformatting
12292
12293 * sem_ch9.adb: Implement -gnatd.I switch
12294
12295 * g-comlin.adb: (Start): Fix handling of empty command line.
12296
12297 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
12298 even when -rules follows the -cargs section.
12299
12300 2007-10-08 Ollie Wild <aaw@google.com>
12301
12302 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
12303 gnat_return_tree.
12304 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
12305 gnat_return_tree.
12306 (gnat_eh_runtime_type): Removed.
12307 (gnat_return_tree): New function.
12308
12309 2007-10-08 Ben Elliston <bje@au.ibm.com>
12310
12311 PR ada/33454
12312 Revert:
12313 2007-08-31 Ben Elliston <bje@au.ibm.com>
12314
12315 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
12316 when compiling for powerpc64-*-linux.
12317 * system-linux-ppc64.ads: New file.
12318
12319 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
12320
12321 Mapped location support
12322 * back_end.adb (Call_Back_End): Pass information about source
12323 files instead of units to gigi.
12324 * gigi.h (struct File_Info_Type): New.
12325 (gigi): Rename and change type of number_units parameter, change
12326 type of file_info_ptr parameter.
12327 * trans.c (number_files): New global variable.
12328 (gigi): Rename and change type of number_units parameter, change
12329 type of file_info_ptr parameter.
12330 If mapped location support is enabled, create the isomorphic mapping
12331 between source files and line maps.
12332 (Sloc_to_locus): If mapped location support is enabled, translate
12333 source location into mapped location.
12334 (annotate_with_node): Rename into set_expr_location_from_node.
12335 Call set_expr_location instead of annotate_with_locus.
12336 (Pragma_to_gnu): Adjust for above change.
12337 (Loop_Statement_to_gnu): Likewise.
12338 (call_to_gnu): Likewise.
12339 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
12340 (gnat_to_gnu): Likewise.
12341 (add_stmt_with_node): Likewise.
12342 (add_cleanup): Likewise.
12343 * utils.c (gnat_init_decl_processing): Do not set input_line.
12344
12345 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12346
12347 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
12348 (Applicable_Use): Emit a warning when a package tries to use itself.
12349 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
12350 is already in use or the package where it is declared is in use or is
12351 declared in the current package.
12352 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
12353
12354 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
12355 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
12356 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
12357
12358 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12359
12360 * a-calend-vms.adb, a-calend.adb:
12361 Add a section on leap seconds control along with two entities used to
12362 enable and disable leap seconds support. The array Leap_Second_Times is
12363 now constant and contains hard time values pre-generated. Remove
12364 all elaboration code used to populate the table of leap seconds.
12365
12366 * bindgen.adb:
12367 Add entity Leap_Seconds_Support to the list of global run-time variables
12368 along with a comment on its usage and values.
12369 (Gen_Adainit_Ada): Add code to generate the declaration and import of
12370 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
12371 or one (enabled) depending on the presence of binder switch "-y".
12372 (Gen_Adainit_C): Add code to generate the declaration of external int
12373 __gl_leap_seconds_support. Set is value to zero (disabled) or one
12374 (enabled) depending on the presence of binder switch "-y".
12375
12376 * init.c: Add __gl_leap_seconds_support to the list of global values
12377 computed by the binder.
12378
12379 2007-09-26 Jerome Guitton <guitton@adacore.com>
12380
12381 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
12382 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
12383 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12384 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
12385
12386 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
12387
12388 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
12389 function which can be called by the debugger to interrupt the tasks of
12390 an Ada application asynchronously, as needed on VxWorks.
12391 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
12392
12393 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
12394 renamed from Stop_All_Tasks. Update comments.
12395 (Stop_All_tasks): New function declaration.
12396
12397 2007-09-26 Olivier Hainque <hainque@adacore.com>
12398
12399 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
12400 #include <utime.h> and #define GCC_RESOURCE_H before
12401 #include <sys/wait.h>.
12402 Add more protections in __gnat_translate_vms.
12403
12404 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
12405 #include <sys/wait.h>.
12406
12407 2007-09-26 Thomas Quinot <quinot@adacore.com>
12408 Sergey Rybin <rybin@adacore.com>
12409
12410 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
12411
12412 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12413 where it belongs.
12414
12415 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12416
12417 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12418 where it belongs.
12419
12420 * sem_dist.ads: Minor comment fix
12421
12422 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12423
12424 2007-09-26 Javier Miranda <miranda@adacore.com>
12425 Eric Botcazou <ebotcazou@adacore.com>
12426
12427 * a-tags.adb:
12428 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
12429 indirection added to the HT_Link component of the TSD. This is required
12430 to statically allocate the TSD.
12431
12432 * a-tags.ads:
12433 Minor reordering of the declarations in the private part. Required to
12434 add a level of indirection to the contents of the TSD component HT_Link.
12435 This is required to statically allocate the TSD.
12436
12437 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
12438 Is_Statically_Allocated set from constant objects.
12439 Do not make exported constants created by the compiler volatile.
12440 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
12441 as read-only.
12442
12443 * trans.c (Identifier_to_gnu): For constants, unshare initializers
12444 before returning them.
12445
12446 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
12447 public part of the package.
12448 (Make_DT): Move HT_Link component out of the TSD record. For this
12449 purpose Make_DT now declares a separate object that stores the
12450 HT_Link value, and initializes the TSD component with the address
12451 of this new object. The addition of this level of indirection is
12452 required to statically allocate the TSD because the TSD cannot
12453 have variable components.
12454 (Expand_Interface_Conversion): Improve the expanded code.
12455 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
12456
12457 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
12458 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
12459 if we are building static dispatch tables then we must not generate
12460 extra code to register the primitive because the dispatch table will
12461 be built at the end of the library package; otherwise we notify that
12462 we cannot build the static dispatch table.
12463
12464 2007-09-26 Robert Dewar <dewar@adacore.com>
12465
12466 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
12467 overlays.
12468
12469 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
12470 (Analyze_Record_Representation_Clause): Suppress junk warning for
12471 missing component clause.
12472 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
12473 tests for controlled type overlay to composites with controlled
12474 components.
12475 (Analyze_Record_Representation_Clause): Add reference for component name
12476
12477 2007-09-26 Javier Miranda <miranda@adacore.com>
12478 Gary Dismukes <dismukes@adacore.com>
12479
12480 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
12481 for thunks associated with interface types.
12482
12483 * einfo.ads: Improve documentatation of Is_Internal
12484 (Is_Thunk): New attribute applicable to subprograms. True for thunks
12485 associated with interface types.
12486 Extensive comment fixes regarding flags that appear in all entities. The
12487 documentation is now consistent for all such flags (there were a number
12488 of errors in the documentation in this regard).
12489
12490 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
12491
12492 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
12493 of these procedures are passed a function call that already has
12494 build-in-place actuals (testing new flag
12495 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
12496 the case where processing continues.
12497 (Expand_Call): If the call is generated from a thunk body then we
12498 propagate the extra actuals associated with the accessibility
12499 level of the access type actuals.
12500
12501 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
12502 of each extra formal of a protected operation to reference the
12503 corresponding extra formal of the subprogram denoted by the
12504 operation's Protected_Body_Subprogram.
12505
12506 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
12507 N_Function_Call nodes.
12508
12509 2007-09-26 Robert Dewar <dewar@adacore.com>
12510
12511 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
12512
12513 * debug.adb: Add d.s flag.
12514
12515 2007-09-26 Gary Dismukes <dismukes@adacore.com>
12516
12517 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
12518 debug variable so that it won't be initialized when pragma
12519 Initialize_Scalars is in effect.
12520
12521 2007-09-26 Gary Dismukes <dismukes@adacore.com>
12522
12523 * freeze.adb (Freeze_Entity): Remove check for preelaborable
12524 initialization of a full view. This is moved to
12525 Analyze_Package_Specification.
12526
12527 * sem_ch7.adb (Analyze_Package_Specification): Add check for
12528 preelaborable initialization of a full view in entity loop.
12529 (Uninstall_Declarations): If entity is a use-visible compilation unit,
12530 its child units are use-visible only if they are visible child units.
12531
12532 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
12533 whether an expression can be used within a type declaration that
12534 requires preelaborable init.
12535 (Check_Components): Replace inline code that does partial checking for
12536 preelaborable default expressions with call to
12537 Is_Preelaborable_Expression.
12538 (Has_Preelaborable_Initialization): In the case of a generic actual
12539 subtype, (that is, Is_Generic_Actual is True), return the result of
12540 applying Has_Preelaborable_Initialization to the generic actual's base
12541 type.
12542
12543 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12544
12545 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
12546 call to Jan_1_Day _Of_Week to optimize its performance.
12547 (Is_Leap): Move the routine to the scope of Week_In_Year.
12548 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
12549 weekday on which January 1 falls of Year - 1 and Year + 1. This function
12550 avoids calling Time_Of and Split, thus making it more efficent.
12551 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
12552
12553 * g-calend.ads (Week_In_Year): Change comment to reflect new
12554 implementation.
12555
12556 2007-09-26 Emmanuel Briot <briot@adacore.com>
12557
12558 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
12559 Command_Line): New types
12560 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
12561 support for defining how switches can be grouped on a command line (as
12562 is the case for -gnatw... for GNAT), and how simple switches can be
12563 used as aliases for more complex switches (-gnatwa is same as
12564 -gnatwbcef...)
12565 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
12566 (Start, Current_*): New subprograms
12567 Added support for parsing an array of strings in addition to the real
12568 command line.
12569 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
12570 be moved from the body to the private part of the spec.
12571 (*): All subprograms now have an extra parameter with default value to
12572 specify which parser should be used. For backward compatibility, it
12573 defaults to parsing the command line of the application. They were also
12574 modified to properly handle cases where each of the argument does not
12575 start at index 1 (which is always true for Ada.Command_Line, but not
12576 when processing any Argument_List).
12577 (Free): New subprogram
12578 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
12579 Argument): New subprograms
12580 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
12581 special characters like ':', '=',... are now handled in a single place,
12582 which makes the code more extensible eventually.
12583 (Getopt, Full_Switch): When the switch was returned as part of the
12584 special character '*', make sure it is prepended by the switch character
12585 ('-' in general), so that the application knows whether "foo" or "-foo"
12586 was specified on the command line.
12587
12588 2007-09-26 Florian Villoing <villoing@adacore.com>
12589
12590 * g-dirope.adb (Remove_Dir): In case we are removing directories
12591 recursively, make sure that if an exception is raised during the
12592 processing, the current working directory is reset to its initial
12593 value before propagating the exception.
12594
12595 2007-09-26 Vincent Celier <celier@adacore.com>
12596
12597 * gnatbind.adb: If there are several ALI files specified and there is
12598 a main program to bind, the first ALI is expected to contain the main
12599 subprogram and the names of the binder generated files will be derived
12600 from the first ALI file name.
12601 (Gnatbind): Fix insertion character in invocation of Error_Msg
12602
12603 2007-09-26 Vincent Celier <celier@adacore.com>
12604
12605 * gnatcmd.adb (Check_Files): Do not include sources that have been
12606 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
12607
12608 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12609
12610 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
12611 information about each of its index types, following the type
12612 reference for its component type.
12613
12614 2007-09-26 Vincent Celier <celier@adacore.com>
12615
12616 * make.adb: (Kill): New procedure (__gnat_kill imported)
12617 (Running_Compile, Outstanding_Compiles): Global variables that
12618 were previously local to procedure Compile_Sources.
12619 (Sigint_Intercepted): Send signal SIGINT to all outstanding
12620 compilation processes.
12621
12622 (Gnatmake): If project files are used, create the mapping of all the
12623 sources, so that the correct paths will be found.
12624
12625 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
12626
12627 2007-09-26 Vincent Celier <celier@adacore.com>
12628
12629 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
12630
12631 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
12632 Replace components Compiler_Min_Options and Binder_Min_Options with
12633 Compiler_Required_Switches and Binder_Required_Switches in record
12634 Language_Config.
12635 Remove components Default_Language and Config in Project_Tree_Data,
12636 no longer used.
12637
12638 * prj-attr.adb: New attributes Required_Switches (<language>) in
12639 packages Compiler and Binder.
12640
12641 * prj-nmsc.adb: Major rewrite of the processing of configuration
12642 attributes for gprbuild. No impact on GNAT tools.
12643
12644 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
12645 process configuration attributes: this is done in Prj.Nmsc.Check.
12646 (Recursive_Process): Make a full copy of packages inherited from project
12647 being extended, instead of a shallow copy.
12648 (Process_Project_Tree_Phase_1): New procedure
12649 (Process_Project_Tree_Phase_1): New procedure
12650 (Process): Implementation now uses the two new procedures
12651
12652 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
12653 from the project config, not the tree config that no longer exists.
12654
12655 2007-09-26 Vincent Celier <celier@adacore.com>
12656
12657 * Make-lang.in: Update dependencies..
12658
12659 2007-09-26 Vincent Celier <celier@adacore.com>
12660
12661 * osint.adb, osint.ads: Minor reformatting
12662
12663 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
12664
12665 2007-09-26 Gary Dismukes <dismukes@adacore.com>
12666
12667 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
12668 message to cite use of <> in aggregate component associations rather
12669 than wrongly indicating use of limited aggregates.
12670
12671 2007-09-26 Robert Dewar <dewar@adacore.com>
12672
12673 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
12674 Address_Taken.
12675
12676 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12677
12678 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
12679 ancestor of the derived type, the operations are inherited from the
12680 primary dispatch table of the parent.
12681 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
12682 when the context is an explicit type conversion.
12683
12684 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12685
12686 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
12687 rule for qualified expressions properly, to detect improper conversions
12688 and resolve some cases of overloading.
12689
12690 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12691
12692 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
12693 proper kind of reference to the primitive operation, for better source
12694 navigation.
12695 (Valid_Conversion): A tagged conversion is legal if both operands are
12696 tagged.
12697
12698 2007-09-26 Robert Dewar <dewar@adacore.com>
12699
12700 * sem_warn.adb (Check_References): Catch more cases of unreferenced
12701 packages.
12702
12703 2007-09-26 Vincent Celier <celier@adacore.com>
12704
12705 * snames.adb, snames.ads: Change Include_Option to Include_Switches
12706
12707 2007-09-26 Robert Dewar <dewar@adacore.com>
12708
12709 * s-wchstw.adb: provide messages for run time unit exceptions
12710
12711 * a-witeio.adb: Minor reformatting
12712
12713 * exp_ch13.adb: Minor reformatting
12714
12715 2007-09-26 Sergey Rybin <rybin@adacore.com>
12716
12717 * vms_data.ads: Revise gnatmetric qualifiers.
12718 Add qualified for the new gnatbind option '-y'
12719
12720 * gnat_ugn.texi: Revise the gnatmetric section.
12721 Add entry for new gnatbind option '-y'.
12722
12723 * gnat_rm.texi: Minor spelling correction.
12724 Document restriction on overlaying controlled types
12725
12726 2007-09-26 Vincent Celier <celier@adacore.com>
12727
12728 * makegpr.adb (Link_Executables): Do not fail when the root project has
12729 no sources, but is an extending project.
12730
12731 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
12732
12733 * trans.c: Fix misplaced #define.
12734
12735 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
12736
12737 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
12738 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
12739
12740 2007-09-21 Olivier Hainque <hainque@adacore.com>
12741
12742 * utils.c (type_for_nonaliased_component_p): Return false for
12743 all AGGREGATE_TYPEs.
12744
12745 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
12746
12747 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
12748 object covered by 13.3(19) volatile.
12749
12750 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
12751
12752 PR ada/26797
12753 PR ada/32407
12754 * utils.c (unchecked_convert): Use a subtype as the intermediate type
12755 in the special VIEW_CONVERT_EXPR case.
12756
12757 2007-09-12 Robert Dewar <dewar@adacore.com>
12758
12759 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
12760
12761 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
12762 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
12763 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
12764 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
12765 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
12766 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
12767 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
12768 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
12769 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
12770 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
12771 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
12772 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
12773 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
12774 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
12775 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
12776 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
12777 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
12778 pragma Compiler_Unit and adds it to relevant library units.
12779
12780 2007-09-12 Ed Schonberg <schonberg@adacore.com>
12781
12782 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
12783 a box need not correspond to any component.
12784
12785 2007-09-12 Robert Dewar <dewar@adacore.com>
12786
12787 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
12788 the tasking version of the Ada run time when foreign threads are
12789 present and there are no explicit Ada tasks or tasking constructs.
12790
12791 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
12792
12793 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
12794
12795 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
12796 the usage of switch -y.
12797
12798 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
12799 when switch -y is present.
12800
12801 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
12802 leap seconds in Ada.Calendar and its children.
12803
12804 2007-09-12 Jose Ruiz <ruiz@adacore.com>
12805
12806 * a-extiti.ads (Timer): The discriminant is a "not null access
12807 constant" in the Reference Manual.
12808 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
12809
12810 2007-09-12 Robert Dewar <dewar@adacore.com>
12811
12812 * a-swuwha.adb: Remove junk RM header
12813
12814 2007-09-12 Vincent Celier <celier@adacore.com>
12815
12816 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
12817 indicator
12818
12819 * g-bytswa.ads: Minor reformatting
12820
12821 2007-09-12 Thomas Quinot <quinot@adacore.com>
12822
12823 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
12824 Add new constant Thread_Blocking_IO, always True by default, set False
12825 on a per-runtime basis.
12826 (Need_Netdb_Buffer): New constant.
12827
12828 2007-09-12 Arnaud Charlet <charlet@adacore.com>
12829
12830 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
12831 Added renames for corresponding functions in System.Partition_Interface.
12832
12833 2007-09-12 Doug Rupp <rupp@adacore.com>
12834
12835 * Makefile.in: Remove VMS specific System.CRTL packages which are no
12836 longer needed.
12837
12838 * s-crtl-vms64.ads: Removed.
12839
12840 2007-09-12 Olivier Hainque <hainque@adacore.com>
12841
12842 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
12843 with discriminant constraints, generalize the code for BIT_FIELDs
12844 to PACKED fields of constant size and propagate DECL_PACKED.
12845
12846 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
12847
12848 * decl.c (array_type_has_nonaliased_component): New predicate.
12849 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
12850 set the TYPE_NONALIASED_COMPONENT flag on the type.
12851 <E_Array_Subtype>: Likewise.
12852 * gigi.h (type_for_nonaliased_component_p): Declare.
12853 * utils.c (type_for_nonaliased_component_p): New predicate.
12854 (create_field_decl): Invoke the above predicate to set the
12855 DECL_NONADDRESSABLE_P flag on the field.
12856
12857 2007-09-11 Javier Miranda <miranda@adacore.com>
12858
12859 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
12860 in library level record type entities if we are generating statically
12861 allocated dispatch tables.
12862
12863 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
12864 importing/exporting the _tag declaration by new code
12865 importing/exporting the dispatch table wrapper. This change allows us
12866 to statically allocate of the TSD.
12867 (Make_DT.Export_DT): New procedure.
12868 (Build_Static_DT): New function.
12869 (Has_DT): New function.
12870
12871 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
12872 True_Constant and Current_Value. Required to statically
12873 allocate the dispatch tables.
12874 (Check_Allocator): Make function iterative instead of recursive.
12875 Also return inner allocator node, when present, so that we do not have
12876 to look for that node again in the caller.
12877
12878 2007-09-11 Jan Hubicka <jh@suse.cz>
12879
12880 * misc.c (gnat_expand_body): Kill.
12881 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
12882
12883 2007-09-10 Robert Dewar <dewar@adacore.com>
12884
12885 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
12886 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12887 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
12888 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
12889 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
12890 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
12891 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
12892 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
12893 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
12894 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
12895 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
12896 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
12897 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
12898 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
12899 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
12900 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
12901 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
12902 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
12903 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
12904 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
12905 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
12906 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
12907 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
12908 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
12909 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
12910 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
12911 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
12912 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
12913 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
12914 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
12915 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
12916 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
12917 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
12918 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
12919 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
12920 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
12921 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
12922 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
12923 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
12924 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
12925 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
12926 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
12927 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
12928 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
12929 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
12930 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
12931 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
12932 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
12933 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
12934 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
12935 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
12936 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
12937 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
12938 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
12939 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
12940 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
12941 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
12942 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
12943 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
12944 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
12945 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
12946 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
12947 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
12948 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
12949 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
12950 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
12951 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
12952 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
12953 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
12954 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
12955 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
12956 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
12957 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
12958 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
12959 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
12960 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
12961 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
12962 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
12963 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
12964 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
12965 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
12966 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
12967 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
12968
12969 2007-09-10 Emmanuel Briot <briot@adacore.com>
12970
12971 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
12972 classes ("[]").
12973
12974 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
12975
12976 * adaint.c (__gnat_translate_vms): new function.
12977
12978 2007-09-10 Gary Dismukes <dismukes@adacore.com>
12979 Thomas Quinot <quinot@adacore.com>
12980
12981 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
12982 create an abstract subprogram in the case of 'Input. For 'Output we now
12983 create a real spec/body when the type is abstract, since it can
12984 potentially be called.
12985 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
12986 body for 'Output when the type is abstract (only the creation of the
12987 body for 'Input is excluded when the type is abstract).
12988 (Stream_Operation_OK): Add an additional condition in the return
12989 statement, so that False will be returned for TTS_Stream_Input if the
12990 associated tagged type is an abstract extension. Add comments for
12991 return statement.
12992 (Expand_N_Object_Declaration): For the case of a shared passive
12993 variable, insert init proc call only after the shared variable
12994 procedures have been processed, because the IP call needs to undergo
12995 shared passive variable reference expansion, which requires these
12996 procedures to be available (and elaborated).
12997
12998 2007-09-10 Vincent Celier <celier@adacore.com>
12999
13000 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
13001 parameter Runtime_Project.
13002
13003 2007-09-10 Ed Schonberg <schonberg@adacore.com>
13004
13005 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
13006 given a box association, the type of the component is discriminated,
13007 and the value of the discriminant is the discriminant of the enclosing
13008 type, retrieve its value from the aggregate itself, where it must have
13009 been supplied.
13010
13011 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
13012 to remove other spurious ambiguities on arithmetic operations involving
13013 literals and addresses, on systems where Address is a visible integer
13014 type, when the operator is called in functional notation.
13015 (Try_Primitive_Operation): Within an instance, a call in prefixed form
13016 is legal when the types match, even if the operation is currently
13017 hidden.
13018
13019 2007-09-10 Ed Schonberg <schonberg@adacore.com>
13020
13021 * sem_ch12.adb (Build_Local_Package): A formal package with no
13022 associations is legal if all formals have defaults. It is not
13023 equivalent to a formal declared with a box.
13024
13025 2007-09-10 Sergey Rybin <rybin@adacore.com>
13026
13027 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
13028
13029 2007-09-10 Sergey Rybin <rybin@adacore.com>
13030
13031 * gnat_ugn.texi: Add description of the new '-lratio' option
13032 Update 7.3.1 section about availability of the feature.
13033
13034 2007-09-10 Thomas Quinot <quinot@adacore.com>
13035
13036 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
13037 inserted node.
13038
13039 2007-09-10 Olivier Hainque <hainque@adacore.com>
13040
13041 * Makefile.in: (mips-irix section): Activate build of libgmem.
13042
13043 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
13044
13045 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
13046 x87 registers.
13047
13048 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
13049
13050 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
13051 a debug renaming declaration specially.
13052
13053 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
13054
13055 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
13056 which a constant renaming is treated as a normal object declaration.
13057 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
13058 the N_Indexed_Component case.
13059 <N_Indexed_Component>: Fall through to above case.
13060 <N_Object_Renaming_Declaration>: Return true for all composite types.
13061
13062 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
13063
13064 * decl.c (make_packable_type): If the new type has been given BLKmode,
13065 try again to get an integral mode for it.
13066
13067 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
13068
13069 Re-apply accidentally reverted change:
13070
13071 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13072
13073 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13074 get_action_description_for): Replace _Unwind_Word with _uleb128_t
13075 and _Unwind_SWord with _sleb128_t.
13076
13077 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
13078
13079 * trans.c (convert_with_check): Update call to real_2expN.
13080
13081 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
13082
13083 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
13084 * utils.c (end_subprog_body): Likewise.
13085
13086 2007-09-03 Nick Clifton <nickc@redhat.com>
13087
13088 * Make-lang.in: Change copyright header to refer to version 3 of
13089 the GNU General Public License and to point readers at the
13090 COPYING3 file and the FSF's license web page.
13091 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
13092 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
13093 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
13094 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
13095 Likewise.
13096
13097 2007-08-31 Vincent Celier <celier@adacore.com>
13098
13099 PR ada/4720
13100
13101 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
13102 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
13103 (Check_Version_And_Help): New procedure in package Switch to process
13104 switches --version and --help.
13105 Use Check_Version_And_Help in GNAT tools
13106
13107 * make.adb: Ditto.
13108 (Compile_Sources): Make sure that sources that are "excluded" are not
13109 compiled.
13110 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
13111 project file is used.
13112 (Version_Switch): Remove, moved to Switch
13113 (Help_Switch): Remove, moved to Switch
13114 (Display_Version): Remove, moved to Switch
13115
13116 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
13117 package Switch to process switches --version and --help.
13118 (Display_Version): New procedure
13119
13120 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
13121
13122 2007-08-31 Javier Miranda <miranda@adacore.com>
13123
13124 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
13125 internal tags.
13126
13127 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13128
13129 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
13130 (Mark_Non_Null): If the node for which we just generated an access check
13131 is a reference to an *in* parameter and the reference appears in the
13132 declarative part of a subprogram body, mark the node as known non null.
13133
13134 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13135
13136 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
13137 structure of E_Exception to reflect the new flag.
13138 (Is_Raised, Set_Is_Raised): New inlined routines.
13139 Update the usage of available flag to reflect the addition of Is_Raised.
13140 (Is_Raised, Set_Is_Raised): Bodies of new routines.
13141 (Write_Entity_Flags): Write the status of flag Is_Raised.
13142 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
13143 spurious ambiguities when integer literals appear in the context of an
13144 address type that is a visible integer type.
13145
13146 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
13147 exceptions never being raised.
13148 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
13149 explicitly raised.
13150
13151 2007-08-31 Javier Miranda <miranda@adacore.com>
13152
13153 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
13154 statement when compiling under restriction No_Exceptions_Proparation.
13155
13156 2007-08-31 Ed Schonberg <schonberg@adacore.com>
13157
13158 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
13159 initialization aggregate for the type, generate itype references for
13160 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
13161
13162 2007-08-31 Gary Dismukes <dismukes@adacore.com>
13163
13164 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
13165 library-level package renaming, pass the declaration associated with
13166 the renaming's special debug variable to Qualify_Entity_Names to ensure
13167 that its encoded name is properly qualified.
13168
13169 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
13170 occurring in the list of entities to qualify, and do not attempt to
13171 traverse an entity list in that case. Variables associated with
13172 ` library-level package renamings can now occur in the table.
13173
13174 * exp_dbug.ads: Revise documentation of the encoding for renaming
13175 declarations.
13176
13177 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13178
13179 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
13180 access type points to an unconstrained array.
13181
13182 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13183
13184 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
13185 conversion.
13186
13187 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
13188 simple redundant qualifications. The check is performed whenever the
13189 expression is a non-overloaded identifier.
13190 (Resolve_Type_Conversion): Enchance the redundant type conversion check
13191 to include loop parameters.
13192 (Valid_Conversion): Avoid generation of spurious error message.
13193
13194 2007-08-31 Bob Duff <duff@adacore.com>
13195
13196 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
13197 concatenations of string literals into a single literal, in order to
13198 avoid very deep recursion in the front end, which was causing stack
13199 overflow.
13200
13201 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
13202 string, and the right operand is a string literal (the case of "" &
13203 "..."), optimize by avoiding copying the right operand -- just use the
13204 value of the right operand directly.
13205
13206 * stringt.adb (Store_String_Chars): Optimize by growing the
13207 String_Chars table all at once, rather than appending characters one by
13208 one.
13209 (Write_String_Table_Entry): If the string to be printed is very long,
13210 just print the first few characters, followed by the length. Otherwise,
13211 doing "pn(n)" in the debugger can take an extremely long time.
13212
13213 * sem_prag.adb (Process_Interface_Name): Replace loop doing
13214 Store_String_Char with Store_String_Chars.
13215
13216 2007-08-31 Vincent Celier <celier@adacore.com>
13217
13218 * prj-attr.adb: Add new attribute Excluded_Source_Files
13219
13220 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
13221 Locally_Removed_Files.
13222
13223 * snames.ads, snames.adb: New standard name Excluded_Source_Files
13224
13225 2007-08-31 Ed Schonberg <schonberg@adacore.com>
13226
13227 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
13228 clauses of subunits, ignore limited_with_clauses that are illegal and
13229 have not been fully analyzed.
13230
13231 2007-08-31 Ed Schonberg <schonberg@adacore.com>
13232
13233 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
13234 flag, for effiency. It is called when analyzing arithmetic operators
13235 and also for actuals in calls that are universal_integers. The flag is
13236 set for the predefined type address, and for any type or subtype
13237 derived from it.
13238
13239 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
13240 Universal_Integer, when the formal is a descendent of address and the
13241 call appears in user code.
13242 (Analyze_Selected_Component): if the prefix is a private extension, the
13243 tag component is visible.
13244
13245 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
13246 entity flag.
13247
13248 2007-08-31 Robert Dewar <dewar@adacore.com>
13249
13250 * s-fileio.adb (Open): Normalize file name to lower case in non-case
13251 sensitive file name systems to avoid unexpected mismatch in Vista.
13252
13253 2007-08-31 Vincent Celier <celier@adacore.com>
13254
13255 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
13256
13257 2007-08-31 Vincent Celier <celier@adacore.com>
13258
13259 * symbols-vms.adb (Initialize): Read symbol files with continuation
13260 lines
13261 (Finalize): If symbol is long, split the line
13262
13263 2007-08-31 Vincent Celier <celier@adacore.com>
13264
13265 * fmap.ads: Minor comment updates
13266
13267 2007-08-31 GNAT Script <nobody@adacore.com>
13268
13269 * Make-lang.in: Makefile automatically updated
13270
13271 2007-08-31 Bob Duff <duff@adacore.com>
13272
13273 * sinfo.ads: Minor comment fix.
13274
13275 2007-08-31 Thomas Quinot <quinot@adacore.com>
13276
13277 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
13278 with implementation.
13279 Documentation cleanup only.
13280
13281 2007-08-31 Sergey Rybin <rybin@adacore.com>
13282
13283 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
13284 gnatpp '--separate-stmt-name' option.
13285 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
13286 option.
13287
13288 * gnat_ugn.texi: Add description for the new gnatpp
13289 '--separate-stmt-name' and '--use-on-new-line' options.
13290
13291 2007-08-31 Ben Elliston <bje@au.ibm.com>
13292
13293 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
13294 when compiling for powerpc64-*-linux.
13295 * system-linux-ppc64.ads: New file.
13296
13297 2007-08-22 Krister Walfridsson <cato@df.lth.se>
13298
13299 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
13300 NetBSD.
13301
13302 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13303
13304 * misc.c (gnat_type_max_size): Constify.
13305
13306 2007-08-16 Gary Dismukes <dismukes@adacore.com>
13307
13308 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
13309 associated with Standard_Debug_Renaming_Type, to be used as the type of
13310 the special variables whose names provide debugger encodings for
13311 renaming declarations.
13312
13313 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
13314 (Set_Debug_Renaming_Link): Change to set Node25.
13315 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
13316 (Write_Field25_Name): Add case for E_Variable to output
13317 "Debug_Renaming_Link".
13318 (Write_Field23_Name): Correct the output string for "Limited_View".
13319
13320 * exp_dbug.adb: Add with and use of Tbuild.
13321 (Debug_Renaming_Declaration): Replace creation of an enumeration type
13322 and literal with creation of a variable of type
13323 Standard_Debug_Renaming_Type whose name encodes both the renamed object
13324 and the entity of the renaming declaration.
13325 (Qualify_Entity_Name): Add the delayed qualification of the entity name
13326 part of the name of a variable that has a Debug_Renaming_Link.
13327
13328 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
13329 special type to be associated with variables that provide debugger
13330 encodings for renaming declarations.
13331
13332 2007-08-16 Gary Dismukes <dismukes@adacore.com>
13333 Ed Schonberg <schonberg@adacore.com>
13334 Javier Miranda <miranda@adacore.com>
13335
13336 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
13337 ancestor part given by an aggregate to test for an unchecked conversion,
13338 since this can occur in some cases when the ancestor part is a function
13339 call, and we don't want to fall into the recursive call to this
13340 procedure in that case.
13341
13342 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
13343 stream attributes on limited types to account for user-specified
13344 attributes as well as whether Input (resp. Output) becomes available
13345 due to Read (resp. Write) being available for the type. Change Boolean
13346 variable to the more accurate name
13347 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
13348 double-"not" predicate at beginning of return statement to more
13349 understandable form.
13350
13351 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
13352 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
13353 in a block statement and use that as the first statement of the
13354 expanded return rather than incorrectly using the handled sequence as
13355 the first statement.
13356
13357 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
13358 operation, generate an explicit freeze node for it rather than
13359 generating extra formals, to ensure that gigi has the proper order of
13360 elaboration for anonymous subtypes in the signature of the subprograms.
13361 (Build_In_Place_Formal): Move assertion to beginning of loop.
13362 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
13363 applied to a function call (occurs for some cases of 'Input).
13364 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
13365 applied to a function call (occurs for some cases of 'Input).
13366
13367 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
13368 2005, generate an extended return statement enclosing the result object
13369 and 'Read call.
13370
13371 * freeze.adb (Freeze_Record_Type): Extend the current management of
13372 components that are access type with an allocator as default value: add
13373 missing support to the use of qualified expressions of the
13374 allocator (which also cause freezing of the designated type!)
13375 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
13376 dispatching operation, since extra formals may be needed by calls to
13377 build-in-place functions (such as stream 'Input).
13378
13379 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
13380 formals for 'Constrained and accessibility level in the case of a
13381 predefined dispatching operation.
13382
13383 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
13384 point, no need to find the parent node.
13385
13386 2007-08-16 Javier Miranda <miranda@adacore.com>
13387
13388 * exp_attr.adb (Attribute_Priority): Add missing support for entries
13389 and entry barriers.
13390
13391 2007-08-16 Javier Miranda <miranda@adacore.com>
13392
13393 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
13394 is not really required and can introduce regression with the debugger.
13395 The original problem is fixed with the patch written for checks.adb.
13396
13397 2007-08-16 Thomas Quinot <quinot@adacore.com>
13398
13399 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
13400 Range_Check on Allocated_Table.
13401
13402 2007-08-16 Vincent Celier <celier@adacore.com>
13403
13404 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
13405 Including_Non_Switch set to False.
13406 (Gnatmake): For the compiler, call Test_If_Relative_Path with
13407 Including_Non_Switch set to False.
13408
13409 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
13410 parameter Including_Non_Switch, defaulted to True. When
13411 Including_Non_Switch is False, options that are not switches and
13412 appear as relative path are not converted to absolute paths.
13413
13414 2007-08-16 Nicolas Roche <roche@adacore.com>
13415
13416 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
13417 makefiles
13418
13419 * Make-lang.in: Update dependencies
13420
13421 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
13422
13423 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
13424 currently inspected is a selected component, retrieve the entity of
13425 its selector.
13426 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
13427 from the immediate ancestor of Main_Unit_Entity.
13428 (Install_Limited_Withed_Unit): Do not install the limited view of
13429 package P if P is reachable through an ancestor chain from package C
13430 and C also has a with clause for P in its body.
13431 (Has_Limited_With_Clause): New routine.
13432 (Has_With_Clause): New routine.
13433
13434 2007-08-16 Ed Schonberg <schonberg@adacore.com>
13435
13436 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
13437 generic for an enclosing instance is a global reference, even though
13438 its scope is the enclosing instance.
13439
13440 2007-08-16 Gary Dismukes <dismukes@adacore.com>
13441 Javier Miranda <miranda@adacore.com>
13442
13443 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
13444 initialize a limited object.
13445 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
13446 13/2 and 14/2.
13447 Make sure Has_Complex_Representation is inherited by derived type.
13448
13449 2007-08-16 Robert Dewar <dewar@adacore.com>
13450
13451 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
13452 exception case
13453
13454 2007-08-16 Ed Schonberg <schonberg@adacore.com>
13455
13456 * sem_disp.adb (Check_Dispatching_Operation): If the operation
13457 implements an operation inherited from a progenitor interface, verify
13458 that they are subtype-conformant.
13459
13460 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
13461 Bob Duff <duff@adacore.com>
13462 Nicolas Setton <setton@adacore.com>
13463
13464 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
13465 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
13466 the statement which is being resolved comes from a predefined library
13467 unit, all non-predefined library interpretations are skipped.
13468 (Resolve_Op_Concat): If string concatenation was folded in the parser,
13469 but the "&" is user defined, give an error, because the folding would
13470 be wrong.
13471
13472 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
13473 the parser has folded a long sequence of concatenations of string
13474 literals.
13475
13476 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
13477 and "JMP_BUF" variables as artificial.
13478 (N_String_Literal): Do not use alloca for very long string literals. Use
13479 xmalloc/free instead. Otherwise the stack might overflow.
13480
13481 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
13482 compiler.
13483
13484 2007-08-16 Vincent Celier <celier@adacore.com>
13485
13486 * vms_conv.adb (Process_Argument): Ensure that project related options
13487 are not put in the -cargs section when using GNAT COMPILE.
13488
13489 2007-08-16 Robert Dewar <dewar@adacore.com>
13490
13491 * gnat_ugn.texi: Add note on preprocessing (output file not written)
13492
13493 2007-08-16 Thomas Quinot <quinot@adacore.com>
13494
13495 * a-tags.adb: Minor reformatting.
13496
13497 2007-08-16 Bob Duff <duff@adacore.com>
13498
13499 * sem_type.ads, sem_ch4.adb: Minor reformatting.
13500
13501 2007-08-14 Thomas Quinot <quinot@adacore.com>
13502
13503 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
13504 s-osinte-interix.ads, system-interix.ads: Removed.
13505
13506 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
13507
13508 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
13509 calls to Check_Within_Time_Bounds.
13510 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
13511 (Difference): Account for possible rounding of the resulting difference
13512
13513 2007-08-14 Robert Dewar <dewar@adacore.com>
13514
13515 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
13516 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
13517 s-osinte-solaris.adb, s-osinte-solaris.ads,
13518 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
13519
13520 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
13521 switch -gnatyS. Enable -gnatyS in GNAT style check mode
13522
13523 2007-08-14 Robert Dewar <dewar@adacore.com>
13524 Ed Schonberg <schonberg@adacore.com>
13525
13526 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
13527 Suppress unmodified in-out parameter warning in some cases
13528 This patch is a also fairly significant change to the way suppressible
13529 checks are handled.
13530
13531 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
13532 needed for access to concurrent record types generated by the expander.
13533 (Generate_Range_Check): When generating a temporary to capture the
13534 value of a conversion that requires a range check, set the type of the
13535 temporary before rewriting the node, so that the type is always
13536 properly placed for back-end use.
13537 (Apply_Float_Conversion_Check): Handle case where the conversion is
13538 truncating.
13539 (Get_Discriminal): Code reformatting. Climb the scope stack looking
13540 for a protected type in order to examine its discriminants.
13541
13542 2007-08-14 Robert Dewar <dewar@adacore.com>
13543 Gary Dismukes <dismukes@adacore.com>
13544 Ed Schonberg <schonberg@adacore.com>
13545 Thomas Quinot <quinot@adacore.com>
13546
13547 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
13548 a-stwisu.adb, a-strsup.adb: Fix warnings for range
13549 tests optimized out.
13550
13551 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
13552 (Get_Allocator_Final_List): For the case of an anonymous access type
13553 that has a specified Associated_Final_Chain, do not go up to the
13554 enclosing scope.
13555 (Expand_N_Type_Conversion): Test for the case of renamings of access
13556 parameters when deciding whether to apply a run-time accessibility
13557 check.
13558 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
13559 aggregate code before allocator, and ahead of declaration for
13560 temporary, to prevent access before elaboration when the allocator is
13561 an actual for an access parameter.
13562 (Expand_N_Type_Conversion): On an access type conversion involving an
13563 access parameter, do not apply an accessibility check when the
13564 operand's original node was an attribute other than 'Access. We now
13565 create access conversions for the expansion of 'Unchecked_Access and
13566 'Unrestricted_Access in certain cases and clearly accessibility should
13567 not be checked for those.
13568
13569 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
13570 includes a type conversion of a packed component that has been expanded,
13571 recover the original expression for the object, and use this expression
13572 in the post-call assignment statement, so that the assignment is made
13573 to the object and not to a back-end temporary.
13574 (Freeze_Subprogram): In case of primitives of tagged types not defined
13575 at the library level force generation of code to register the primitive
13576 in the dispatch table. In addition some code reorganization has been
13577 done to leave the implementation clear.
13578 (Expand_Call): When expanding an inherited implicit conversion,
13579 preserve the type of the inherited function after the intrinsic
13580 operation has been expanded.
13581
13582 * exp_ch2.ads, exp_ch2.adb
13583 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
13584 of an entry formal appearing in an assignment statement does not assign
13585 to the formal.
13586 (Expand_Current_Value): Instead of calling a routine to determine
13587 whether the prefix of an attribute reference should be optimized or
13588 not, prevent the optimization of such prefixes all together.
13589
13590 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
13591 component whose prefix is known to be of an access type is an implicit
13592 dereference and does not assign to the prefix.
13593
13594 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13595 Robert Dewar <dewar@adacore.com>
13596
13597 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
13598 itype is visited, make an entry into table to link associated node and
13599 new itype.
13600 Add comments and correct harmless error in Build_NCT_Hash_Tables
13601 (Array_Aggr_Subtype): Associate each itype created for an index type to
13602 the corresponding range construct, and not to the aggregate itself. to
13603 maintain a one-to-one correspondence between itype and its associated
13604 node, to prevent errors when complex expression is copied.
13605 Fix mishandling of multiple levels of parens
13606
13607 * sem_aggr.adb: Create a limited view of an incomplete type, to make
13608 treatment of limited views uniform for all visible declarations in a
13609 limited_withed package.
13610 (New_Copy_Tree): If hash table is being used and itype is visited,
13611 make an entry into table to link associated node and new itype.
13612 (Resolve_Record_Aggregate): Do not add an others box association for a
13613 discriminated record component that has only discriminants, when there
13614 is a box association for the component itself.
13615
13616 * par-ch4.adb: Fix mishandling of multiple levels of parens
13617
13618 2007-08-14 Robert Dewar <dewar@adacore.com>
13619
13620 * comperr.adb: Fix problem with suppressing warning messages from gigi
13621
13622 * erroutc.ads, erroutc.adb, errout.ads,
13623 errout.adb (Write_Eol): Remove trailing spaces before writing the line
13624 (Write_Eol_Keep_Blanks): New procedure to write a line, including
13625 possible trailing spaces.
13626 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
13627 Fix problem with suppressing warning messages from back end
13628 Improve handling of deleted warnings
13629
13630 * gnat1drv.adb:
13631 Fix problem with suppressing warning messages from back end
13632 Handle setting of Static_Dispatch_Tables flag.
13633
13634 * prepcomp.adb:
13635 Fix problem with suppressing warning messages from back end
13636
13637 * exp_intr.adb: Improve handling of deleted warnings
13638
13639 2007-08-14 Robert Dewar <dewar@adacore.com>
13640
13641 * debug.adb: Improve -gnatdI to cover all cases of serialization
13642 Add documentation of dZ, d.t
13643
13644 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
13645 serialization.
13646 (Sprint_Node_Actual): Generate new output associated with implicit
13647 importation and implicit exportation of object declarations.
13648
13649 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13650 Robert Dewar <dewar@adacore.com>
13651 Javier Miranda <miranda@adacore.com>
13652 Gary Dismukes <dismukes@adacore.com>
13653
13654 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
13655 to make treatment of limited views uniform for all visible declarations
13656 in a limited_withed package.
13657 Improve warnings for in out parameters
13658 (Set_Related_Interaface/Related_Interface): Allow the use of this
13659 attribute with constants.
13660 (Write_Field26_Name): Handle attribute Related_Interface in constants.
13661 Warn on duplicate pragma Preelaborable_Initialialization
13662
13663 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
13664 generation of a freezing node to ensure proper management of null
13665 excluding access types in the backend.
13666 (Create_Extra_Formals): Test base type of the formal when checking for
13667 the need to add an extra accessibility-level formal. Pass the entity E
13668 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
13669 originally being done in a couple of cases), to ensure that the
13670 Extra_Formals list gets set on the entity E when the first entity is
13671 added.
13672 (Conforming_Types): Add missing calls to Base_Type to the code that
13673 handles anonymous access types. This is required to handle the
13674 general case because Process_Formals builds internal subtype entities
13675 to handle null-excluding access types.
13676 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
13677 functions that need it, even when not marked Requires_Overriding.
13678 Improve warnings for in out parameters
13679 (Analyze_Function_Return): Warn for disallowed null return
13680 Warn on return from procedure with unset out parameter
13681 Ensure consistent use of # in error messages
13682 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
13683 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
13684 the implicit conversion of the expression done for anonymous access
13685 types. This is required to generate the code of the null excluding
13686 check (if required).
13687
13688 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
13689 A formal parameter is never publicly referenceable outside of its body.
13690 (Check_References): For an unreferenced formal parameter in an accept
13691 statement, use the same warning circuitry as for subprogram formal
13692 parameters.
13693 (Warn_On_Unreferenced_Entity): New subprogram, taken from
13694 Output_Unreferenced_Messages, containing the part of that routine that
13695 is now reused for entry formals as described above.
13696 (Goto_Spec_Entity): New function
13697 (Check_References): Do not give IN OUT warning for dispatching operation
13698 Improve warnings for in out parameters
13699 (Test_Ref): Check that the entity is not undefinite before calling
13700 Scope_Within, in order to avoid infinite loops.
13701 Warn on return from procedure with unset out parameter
13702 Improved warnings for unused variables
13703
13704 2007-08-14 Robert Dewar <dewar@adacore.com>
13705 Javier Miranda <miranda@adacore.com>
13706 Gary Dismukes <dismukes@adacore.com>
13707
13708 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
13709 (Expand_N_Attribute_Reference): Further unify the handling of the
13710 three forms of access attributes, using common code now for all three
13711 cases. Add a test for the case of applying an access attribute to
13712 an explicit dereference when the context is an access-to-interface
13713 type. In that case we need to apply the conversion to the prefix
13714 of the explicit dereference rather than the prefix of the attribute.
13715 (Attribute_Version, UET_Address): Set entity as internal to ensure
13716 proper dg output of implicit importation.
13717 (Expand_Access_To_Type): Removed.
13718 (Expand_N_Attribute_Reference): Merge the code from the three cases
13719 of access attributes, since the processing is largely identical for
13720 these cases. The substantive fix here is to process the case of a
13721 type name prefix (current instance case) before handling the case
13722 of interface prefixes.
13723
13724 2007-08-14 Thomas Quinot <quinot@adacore.com>
13725 Ed Schonberg <schonberg@adacore.com>
13726 Javier Miranda <miranda@adacore.com>
13727 Robert Dewar <dewar@adacore.com>
13728
13729 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
13730 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
13731 type that is an anonymous access to controlled object, establish
13732 an associated finalization chain to avoid corrupting the global
13733 finalization list when a dynamically allocated object designated
13734 by such a component is deallocated.
13735 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
13736 functions that need it, even when not marked Requires_Overriding.
13737 (Initialize_Tag): Replace call to has_discriminants by call to
13738 Is_Variable_Size_Record in the circuitry that handles the
13739 initialization of secondary tags.
13740 (Is_Variable_Size_Record): New implementation.
13741 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
13742 Suppress_Initialization pragma for a derived type.
13743 (Is_Variable_Size_Record): New subprogram.
13744 (Build_Offset_To_Top_Functions): New implementation that simplifies the
13745 initial version of this routine and also fixes problems causing
13746 incomplete initialization of the table of interfaces.
13747 (Build_Init_Procedure): Improve the generation of code to initialize the
13748 the tag components of secondary dispatch tables.
13749 (Init_Secondary_Tags): New implementation that simplifies the previous
13750 version of this routine.
13751 (Make_DT): Add parameter to indicate when type has been frozen by an
13752 object declaration, for diagnostic purposes.
13753 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
13754 diagnose attemps to freeze a subprogram when some untagged type of its
13755 profile is a private type whose full view has not been analyzed yet.
13756 (Freeze_Array_Type): Generate init proc for packed array if either
13757 Initialize or Normalize_Scalars is set.
13758 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
13759 constructing the new profile, copy the null_exclusion indicator for each
13760 parameter, to ensure full conformance of the new body with the spec.
13761
13762 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
13763 Create wrappers for constructor functions that need it, even when not
13764 marked Requires_Overriding.
13765 (Covers): Handle properly designated types of anonymous access types,
13766 whose non-limited views are themselves incomplete types.
13767 (Add_Entry): Use an entity to store the abstract operation which hides
13768 an interpretation.
13769 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
13770 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
13771 initialization aggregate.
13772 (Function_Interp_May_Be_Hidden): Rename to
13773 Function_Interp_Has_Abstract_Op.
13774 (Has_Compatible_Type): Remove machinery that skips interpretations if
13775 they are labeled as potentially hidden by an abstract operator.
13776 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
13777 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
13778 (Write_Overloads): Output the abstract operator if present.
13779 (Add_Entry): Before inserting a new entry into the interpretation table
13780 for a node, determine whether the entry will be disabled by an abstract
13781 operator.
13782 (Binary_Op_Interp_May_Be_Hidden): New routine.
13783 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
13784 aggregate.
13785 (Function_Interp_May_Be_Hidden): New routine.
13786 (Has_Compatible_Type): Do not consider interpretations hidden by
13787 abstract operators when trying to determine whether two types are
13788 compatible.
13789 (Has_Hidden_Interp): New routine.
13790 (Set_May_Be_Hidden_Interp): New routine.
13791 (Write_Overloads): Write the status of flag May_Be_Hidden.
13792
13793 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13794 Javier Miranda <miranda@adacore.com>
13795
13796 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
13797 types declared in the declarative part of a nested package body or in
13798 the proper body of a stub.
13799 (Set_All_DT_Position): Add missing check to avoid wrong assignation
13800 of the same dispatch table slot to renamed primitives.
13801 (Make_Select_Specific_Data_Table): Handle private types.
13802 (Tagged_Kind): Handle private types.
13803 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
13804 output of implicit importation and exportation.
13805 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
13806 first formal of the thunk is always associated with the controlling
13807 type. In addition perform the following code cleanup: remove formal
13808 Thunk_Alias which is no longer required, cleanup evaluation of the
13809 the controlling type, and update the documentation.
13810 Replace occurrence of Default_Prim_Op_Count by
13811 Max_Predef_Prims. Addition of compile-time check to verify
13812 that the value of Max_Predef_Prims is correct.
13813 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
13814 (Make_DT): Add parameter to indicate when type has been frozen by an
13815 object declaration, for diagnostic purposes.
13816 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
13817 construction of statically allocated dispatch tables.
13818 (Make_DT): In case of library-level tagged types export the declaration
13819 of the primary tag. Remove generation of tags (now done by Make_Tags).
13820 Additional modifications to handle non-static generation of dispatch
13821 tables. Take care of building tables for asynchronous interface types
13822 (Make_Tags): New subprogram that generates the entities associated with
13823 the primary and secondary tags of Typ and fills the contents of Access_
13824 Disp_Table. In case of library-level tagged types imports the forward
13825 declaration of the primary tag that will be declared later by Make_DT.
13826 (Expand_Interface_Conversion): In case of access types to interfaces
13827 replace an itype declaration by an explicit type declaration to avoid
13828 problems associated with the scope of such itype in transient blocks.
13829
13830 2007-08-14 Robert Dewar <dewar@adacore.com>
13831 Ed Schonberg <schonberg@adacore.com>
13832 Javier Miranda <miranda@adacore.com>
13833
13834 * exp_util.ads, exp_util.adb:
13835 This patch replaces a number of occurrences of explicit tests for N_Null
13836 with calls to Known_Null. This improves tracking of null values, since
13837 Known_Null also catches null constants, and variables currently known to
13838 be null, so we get better tracking.
13839 (Ensure_Defined): create an itype reference only in the scope of the
13840 itype.
13841 (Side_Effect_Free): A selected component of an access type that
13842 denotes a component with a rep clause must be treated as not
13843 side-effect free, because if it is part of a linked structure its
13844 value may be affected by a renaming.
13845 (Expand_Subtype_From_Expr): For limited objects initialized with build
13846 in place function calls, do nothing; otherwise we prematurely introduce
13847 an N_Reference node in the expression initializing the object, which
13848 breaks the circuitry that detects and adds the additional arguments to
13849 the called function. Bug found working in the new patch for statically
13850 allocated dispatch tables.
13851 (Is_Library_Level_Tagged_Type): New subprogram.
13852 (Remove_Side_Effects): If the expression of an elementary type is an
13853 operator treat as a function call.
13854 (Make_Literal_Range): If the index type of the array is not integer, use
13855 attributes properly to compute the constraint on the resulting aggregate
13856 which is a string.
13857
13858 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
13859 class-wide type whose base type is an incomplete private type, leave
13860 class-wide type unfrozen so that freeze nodes can be generated
13861 properly at a later point.
13862 (Freeze_Entity, array case): Handle case of pragma Pack and component
13863 size attributre clause for same array.
13864
13865 2007-08-14 Vincent Celier <celier@adacore.com>
13866
13867 * prj.ads, prj.adb: Update Project Manager to new attribute names for
13868 gprbuild.
13869 Allow all valid declarations in configuration project files
13870 (Reset): Initialize all tables and hash tables in the project tree data
13871 Major update of the Project Manager and of the project aware tools,
13872 including gprmake, so that the same sources in the GNAT repository
13873 can be used by gprbuild.
13874 (Slash_Id): Change type to be Path_Name_Type
13875 (Slash): Return a Path_Name_Type instead of a File_Name_Type
13876
13877 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
13878 gprbuild.
13879 Update Project Manager to new attribute names for ghprbuild
13880 Allow all valid declarations in configuration project files
13881 Major update of the Project Manager and of the project aware tools,
13882 including gprmake, so that the same sources in the GNAT repository
13883 can be used by gprbuild.
13884
13885 * prj-com.ads:
13886 Major update of the Project Manager and of the project aware tools,
13887 including gprmake, so that the same sources in the GNAT repository
13888 can be used by gprbuild.
13889
13890 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
13891 insensitive flag for attributes with optional index.
13892 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
13893 array attribute, put the index in lower case.
13894 Update Project Manager to new attribute names for ghprbuild
13895 Allow all valid declarations in configuration project files
13896 Major update of the Project Manager and of the project aware tools,
13897 including gprmake, so that the same sources in the GNAT repository
13898 can be used by gprbuild.
13899
13900 * prj-env.ads, prj-env.adb:
13901 Major update of the Project Manager and of the project aware tools,
13902 including gprmake, so that the same sources in the GNAT repository
13903 can be used by gprbuild.
13904 (Get_Reference): Change type of parameter Path to Path_Name_Type
13905
13906 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
13907 removing '-' from the path to start with the first character of the
13908 next directory.
13909 Major update of the Project Manager and of the project aware tools,
13910 including gprmake, so that the same sources in the GNAT repository
13911 can be used by gprbuild.
13912 Major update of the Project Manager and of the project aware tools,
13913 including gprmake, so that the same sources in the GNAT repository
13914 can be used by gprbuild.
13915
13916 * prj-nmsc.ads, prj-nmsc.adb:
13917 Update Project Manager to new attribute names for ghprbuild
13918 Allow all valid declarations in configuration project files
13919 (Search_Directories): Detect subunits that are specified with an
13920 attribute Body in package Naming. Do not replace a source/unit in the
13921 same project when the order of the source dirs are known. Detect
13922 duplicate sources/units in the same project when the order of the
13923 source dirs are not known.
13924 (Check_Ada_Name): Allow all identifiers that are not reserved words
13925 in Ada 95.
13926 Major update of the Project Manager and of the project aware tools,
13927 including gprmake, so that the same sources in the GNAT repository
13928 can be used by gprbuild.
13929 (Look_For_Sources): If the list of sources is empty, set the object
13930 directory of non extending project to nil.
13931 Change type of path name variables to be Path_Name_Type
13932 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
13933 otherwise creating missing directories will fail.
13934
13935 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
13936 prj-part.ads, prj-part.adb:
13937 Major update of the Project Manager and of the project aware tools,
13938 including gprmake, so that the same sources in the GNAT repository
13939 can be used by gprbuild.
13940
13941 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
13942 insensitive flag for attributes with optional index.
13943 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
13944 array attribute, put the index in lower case.
13945 (Parse_Variable_Reference): Allow the current project name to be used in
13946 the prefix of an attribute reference.
13947
13948 * prj-util.ads, prj-util.adb
13949 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
13950 defaulted to False. When True, always check against indexes in lower
13951 case.
13952
13953 * snames.ads, snames.h, snames.adb:
13954 Update Project Manager to new attribute names for gprbuild
13955 Allow all valid declarations in configuration project files
13956
13957 2007-08-14 Robert Dewar <dewar@adacore.com>
13958 Ed Schonberg <schonberg@adacore.com>
13959
13960 * opt.ads: Warning for non-local exception propagation now off by
13961 default
13962 New switch -gnatI to disable representation clauses
13963 Implement new pragma Implicit_Packing
13964
13965 * usage.adb:
13966 Warning for non-local exception propagation now off by default
13967 Add warning for unchecked conversion of pointers wi different
13968 conventions.
13969 New switch -gnatI to disable representation clauses
13970
13971 * usage.adb: new switch -gnatyS
13972
13973 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
13974 note that aggregates of anonymous array types are not flagged.
13975 -gnatwc now includes membership tests optimized away
13976 -gnatw.x warnings are now off by default
13977 Added conditional compilation Appendix
13978 Add documentation of -gnatI
13979 Add documentation for new -gnatyS style check
13980 Update documentation about SAL and auto-init on Windows.
13981
13982 * gnat_rm.texi:
13983 Add documentation for pragma Check_Name and 'Enabled attribute
13984 Document that Eliminate on dispatching operation is ignored
13985 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
13986 Document pragma Main
13987 Document pragma Implicit_Packing
13988
13989 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
13990 different conventions
13991 New switch -gnatI to disable representation clauses
13992
13993 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
13994 recognized, report the invalid characters including "-gnat" instead of
13995 just the first character in the switch.
13996 New switch -gnatI to disable representation clauses
13997 Set Warn_On_Object_Renames_Function true for -gnatg
13998
13999 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
14000 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
14001 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
14002 to switch -aP (add directory to project search dir).
14003
14004 * par-prag.adb: Implement new pragma Implicit_Packing
14005
14006 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
14007 type as having a non-standard representation, to force expansion on
14008 conversion to related types.
14009 (Analyze_Pragma): Warn on misspelled pragma
14010 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
14011 Ensure consistent use of # in error messages
14012 Implement pragma Implicit_Packing
14013
14014 2007-08-14 Olivier Hainque <hainque@adacore.com>
14015 Eric Botcazou <ebotcazou@adacore.com>
14016
14017 * targtyps.c (get_target_maximum_default_alignment): New function.
14018 Maximum alignment
14019 that the compiler might choose by default for a type or object.
14020 (get_target_default_allocator_alignment): New function. Alignment known
14021 to be honored by the target default allocator.
14022 (get_target_maximum_allowed_alignment): New function. Maximum alignment
14023 we might accept for any type or object on the target.
14024 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
14025
14026 * gigi.h (get_target_maximum_default_alignment): Declare new function.
14027 (get_target_default_allocator_alignment): Likewise.
14028 (get_target_maximum_allowed_alignment): Likewise.
14029
14030 PR ada/19037
14031 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
14032 result of a function call, first try to use a stabilized reference for
14033 a constant renaming too.
14034 (validate_alignment): Use target_maximum_allowed_alignment instead of
14035 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
14036 (gnat_to_gnu_entity): Use common nodes directly.
14037 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
14038 alignment and size for the object.
14039 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
14040 and N_Procedure_Call_Statement.
14041 (takes_address): Rename to lvalue_required_p, add third parameter
14042 'aliased' and adjust recursive calls.
14043 <N_Indexed_Component>: Update 'aliased' from the array type.
14044 <N_Selected_Component>: New case.
14045 <N_Object_Renaming_Declaration>: New Likewise.
14046 (Identifier_to_gnu): Adjust for above changes.
14047 (maybe_stabilize_reference) <CONST_DECL>: New case.
14048
14049 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
14050 between type variants.
14051 (build_simple_component_ref): Likewise.
14052 (build_call_alloc_dealloc): Use target_default_allocator_alignment
14053 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
14054 aligning type circuitry for allocations from the default storage pool.
14055 (build_allocator): Likewise.
14056 (build_simple_component_ref): Manually fold the reference for a
14057 constructor if the record type contains a template.
14058
14059 * utils.c (value_zerop): Delete.
14060 (gnat_init_decl_processing): Emit debug info for common types.
14061 (rest_of_record_type_compilation): If a union contains a field
14062 with a non-constant qualifier, treat it as variable-sized.
14063 (finish_record_type): Give the stub TYPE_DECL a name.
14064 (rest_of_record_type_compilation): Likewise.
14065 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
14066 types are equivalent array types.
14067 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
14068 even if the type is not passed by reference.
14069 (static_ctors, static_dtors): Delete.
14070 (end_subprog_body): Do not record constructors and destructors.
14071 (build_global_cdtor): Delete.
14072 (gnat_write_global_declarations): Do not call build_global_cdtor.
14073
14074 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
14075 -fRTS=rtp is specified.
14076 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
14077 specified.
14078
14079 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
14080 of the personality function with SJLJ exceptions.
14081
14082 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
14083 the name of the personality function with SJLJ exceptions.
14084
14085 2007-08-14 Robert Dewar <dewar@adacore.com>
14086 Ed Schonberg <schonberg@adacore.com>
14087
14088 * par.ads, par.adb: Improve handling of extra right parens.
14089 (Par): Remove flag From_Limited_With_Clause.
14090
14091 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
14092 Improve handling of extra right parens.
14093
14094 2007-08-14 Robert Dewar <dewar@adacore.com>
14095
14096 * par-tchk.adb (TF_Semicolon): Improve error recovery
14097
14098 2007-08-14 Robert Dewar <dewar@adacore.com>
14099 Ed Schonberg <schonberg@adacore.com>
14100
14101 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
14102 enumeration type, mark all literals as referenced.
14103 (Eval_Attribute, case 'Image): If the argument is an enumeration
14104 literal and names are available, constant-fold but mark nevertheless as
14105 non-static.
14106 Clean up function names.
14107 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
14108 comment.
14109 (Requires_Simple_Name_Prefix): Removed.
14110
14111 2007-08-14 Robert Dewar <dewar@adacore.com>
14112 Ed Schonberg <schonberg@adacore.com>
14113
14114 * sem_ch11.adb: Improved warnings for unused variables
14115
14116 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
14117 is a synchronized interface, the derived type is limited.
14118 (Analyze_Object_Declaration): Mark the potential coextensions in the
14119 definition and expression of an object declaration node.
14120 (Build_Derived_Type): For the completion of a private type declaration
14121 with a derived type declaration, chain the parent type's representation
14122 items to the last representation item of the derived type (not the
14123 first one) if they are not present already.
14124 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
14125 object declaration of forward references to tags.
14126 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
14127 subprogram types can appear as access discriminants of synchronized
14128 types.
14129 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
14130 given in prefixed form as a selected component.
14131 (Process_Discriminants): If not all discriminants have defaults, place
14132 error message on a default that is present.
14133 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
14134 extend a synchronized tagged type.
14135 Improved warnings for unused variables
14136 (Is_Visible_Component): Fix a visibility hole on a component inherited
14137 by a private extension when parent is itself declared as a private
14138 extension, and the derivation is in a child unit.
14139 (Find_Hidden_Interface): Move spec from the package body.
14140
14141 2007-08-14 Robert Dewar <dewar@adacore.com>
14142 Ed Schonberg <schonberg@adacore.com>
14143
14144 * sem_ch5.adb: Improve warnings on redundant assignments
14145
14146 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
14147 parameter
14148 (Is_Synchronized_Tagged_Type): New subprogram that returns true
14149 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
14150 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
14151 is set to False. Improves handling of Known_[Not_]Null.
14152 (Wrong_Type): Special case address arithmetic attempt
14153 (Collect_Abstract_Interfaces): Add new formal to allow collecting
14154 abstract interfaces just using the partial view of private types.
14155 (Has_Abstract_Interfaces): Add new formal to allow checking types
14156 covering interfaces using the partial view of private types.
14157 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
14158 component still needs to be defined in this case, but is never
14159 initialized as VMs are using other dispatching mechanisms.
14160 (Abstract_Interface_List): For a protected type, use base type to get
14161 proper declaration.
14162 Improve warnings on redundant assignments
14163 (Is_Variable): Handle properly an implicit dereference of a prefixed
14164 function call.
14165 (Build_Actual_Subtype): If this is an actual subtype for an
14166 unconstrained formal parameter, use the sloc of the body for the new
14167 declaration, to prevent anomalises in the debugger.
14168
14169 2007-08-14 Robert Dewar <dewar@adacore.com>
14170
14171 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
14172 dispatching operation
14173
14174 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14175 Gary Dismukes <dismukes@adacore.com>
14176
14177 * exp_aggr.ads,
14178 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
14179 expanded aggregate code before allocator, and ahead of declaration for
14180 temporary, to prevent access before elaboration when the allocator is
14181 an actual for an access parameter.
14182 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
14183 the TSD and the table of interfaces.
14184 (Convert_To_Assignments): Augment the test for delaying aggregate
14185 expansion for limited return statements to include the case of extended
14186 returns, to prevent creation of an unwanted transient scope.
14187 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
14188 (Expand_Array_Aggregate): Handle aggregates associated with
14189 statically allocated dispatch tables.
14190 (Expand_Record_Aggregate): Handle aggregates associated with
14191 statically allocated dispatch tables.
14192 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
14193 of anonymous access type.
14194
14195 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14196
14197 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
14198 is a variable that renames a slice, use the variable itself in the
14199 expannsion when the renamed expression itself may be modified between
14200 the declaration of the renaming and the array assignment.
14201
14202 2007-08-14 Jerome Guitton <guitton@adacore.com>
14203
14204 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
14205 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
14206 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
14207 New functions; dummy implementations.
14208
14209 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
14210 functions, used to implement the multi-tasks mode routines on VxWorks.
14211
14212 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
14213 New functions, thin
14214 binding to the VxWorks routines which have changed between VxWorks 5
14215 and 6.
14216 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
14217 which are not callable from a RTP.
14218
14219 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
14220 implemented for the multi-tasks mode on VxWorks 5 and 6.
14221
14222 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
14223
14224 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
14225 functions.
14226
14227 2007-08-14 Vincent Celier <celier@adacore.com>
14228
14229 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
14230 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
14231 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
14232 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14233 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
14234 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
14235 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
14236 procedure.
14237 (Major_Id_Name): New function.
14238 mlib-tgt.ads/mlib.tgt.adb:
14239 (Library_Major_Minor_Id_Supported): New function, default returns True
14240 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
14241 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
14242 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
14243 Implementation of Library_Major_Minor_Id_Supported returns False
14244 clean.adb:
14245 (Clean_Library_Directory): If major/minor ids are supported, clean all
14246 library files.
14247 Major update of the Project Manager and of the project aware tools,
14248 including gprmake, so that the same sources in the GNAT repository
14249 can be used by gprbuild.
14250
14251 2007-08-14 Olivier Hainque <hainque@adacore.com>
14252
14253 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
14254 (GCC_ZCX_Support): Switch to True.
14255
14256 * s-intman-solaris.adb (Notify_Exception): Call
14257 Adjust_Context_For_Raise before raising, as expected for signal
14258 handlers in general.
14259
14260 * s-intman-posix.adb (Notify_Exception): Remove declaration of
14261 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
14262 to other implementation bodies.
14263
14264 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
14265 be visible by multiple implementation bodies.
14266
14267 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
14268 only for conditions coming from hardware.
14269 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
14270 adjustments to signal context prior to exception raise from signal
14271 handler.
14272 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
14273 mode.
14274 Solaris section: (__gnat_adjust_context_for_raise): New function.
14275 Implementation of the machine context adjustments to perform prior to
14276 raise from a signal handler. Version for both sparc and x86.
14277 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
14278 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
14279 prior to raising as expected for any handler, before possible nested
14280 faults to make sure all the contexts in a chain have been adjusted by
14281 the time we propagate.
14282
14283 2007-08-14 Pascal Obry <obry@adacore.com>
14284
14285 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
14286 (SYSTEM_INFO): New record.
14287 (SetThreadIdealProcessor): New imported routine needed for supporting
14288 task_info pragma on Windows.
14289
14290 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
14291 info can be applied to the current host.
14292 (Create_Task): Set the ideal processor if information is present.
14293
14294 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
14295 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
14296
14297 2007-08-14 Olivier Hainque <hainque@adacore.com>
14298
14299 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
14300 stack size and initial stack pointer value for a given task.
14301 (Enter_Task): Get the stack attributes of the task we are entering and
14302 let the stack checking engine know about them.
14303
14304 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
14305 Let the stack-checking engine know about the initial sp value and stack
14306 size associated with the current task.
14307 (Set_Stack_Info): If a stack base has been notified for the current
14308 task, honor it. Fallback to the previous less accurate method otherwise.
14309
14310 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
14311
14312 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14313
14314 * sem_ch10.adb: Create a limited view of an incomplete type, to make
14315 treatment of limited views uniform for all visible declarations in a
14316 limited_withed package.
14317 Set flag indicating that a subprogram body for a child unit has a
14318 generated spec.
14319 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
14320 separate declaration, remove the unit name from visibility after
14321 compilation, so that environment is clean for subsequent compilations.
14322 (Install_Limited_Context_Clauses): Do not install a
14323 limited_private_with_clause unless the current unit is a body or a
14324 private child unit.
14325 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
14326 in the same fashion.
14327 (Install_Limited_Withed_Unit): Do not install a limited with clause if
14328 it applies to the declaration of the current package body.
14329 (Remove_Private_With_Clauses): If there is a regular with_clause for
14330 the unit, delete Private_With_Clause from context, to prevent improper
14331 hiding when processing subsequent nested packages and instantiations.
14332
14333 2007-08-14 Jose Ruiz <ruiz@adacore.com>
14334
14335 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
14336 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
14337 representing absolute path names.
14338 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
14339
14340 * cstreams.c (__gnat_full_name for VxWorks): Use
14341 __gnat_is_absolute_path to detect whether we need to add the current
14342 directory to normalize the path.
14343
14344 2007-08-14 Javier Miranda <miranda@adacore.com>
14345
14346 * a-tags.ads,
14347 a-tags.adb (Displace): Associate a message with the raised CE
14348 exception.
14349 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
14350 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
14351 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
14352 spec.
14353 (Default_Prim_Op_Count): Removed.
14354 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
14355 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
14356 Remove pragma Inline_Always.
14357
14358 * rtsfind.ads (Default_Prim_Op_Count): Removed
14359 (Max_Predef_Prims): New entity
14360 (RE_Expanded_Name): Removed
14361 (RE_HT_Link): Removed
14362 (RE_Iface_Tag): Remmoved
14363 (RE_Ifaces_Table): Removed
14364 (RE_Interfaces_Array): Removed
14365 (RE_Interface_Data_Element): Removed
14366 (RE_Nb_Ifaces): Removed
14367 (RE_RC_Offset): Removed
14368 (RE_Static_Offset_To_Top): Removed
14369
14370 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
14371 formal.
14372 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
14373 Prim_Op_Count by Max_Predef_Prims.
14374
14375 2007-08-14 Thomas Quinot <quinot@adacore.com>
14376 Vincent Celier <celier@adacore.com>
14377
14378 * binde.adb (Elab_All_Links): Remove unnecessary call to
14379 Generic_Separately_Compiled (if a unit satisfies this predicate, there
14380 won't be an associated Afile).
14381 (Elab_All_Links): Fail if a referenced unit cannot be found
14382
14383 * bindgen.adb:
14384 Fix comments in bindgen regarding consistency checks done in Bcheck:
14385 the checks are made across units within a partition, not across several
14386 partitions.
14387 Fix generation of C binder file for VxWorks.
14388
14389 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
14390 Generic_May_Lack_ALI, more descriptive of the current use of the
14391 predicate, and update documentation.
14392
14393 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
14394 reorganization and documentation update for the case of predefined
14395 library generics (for which we do not reference an Afile).
14396
14397 2007-08-14 Robert Dewar <dewar@adacore.com>
14398
14399 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
14400 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
14401 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
14402 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
14403 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
14404 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
14405 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
14406 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
14407 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
14408 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
14409 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
14410 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
14411 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
14412 g-altcon.adb: Minor reformatting
14413
14414 ada-tree.h: Delete empty line.
14415
14416 ali.ads: Minor reformatting
14417 Clarification of comments.
14418 Minor spelling correction
14419
14420 * exp_dbug.adb: Add Warnings Off to suppress new warning
14421
14422 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14423 formal
14424
14425 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
14426 value
14427
14428 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
14429
14430 * a-textio.ads: Reorder the standard input/output/error declarations
14431 for consistency.
14432
14433 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
14434
14435 * par-ch2.adb: Recognize RM specially in errout
14436 Change 'R'M to RM in all error messages
14437
14438 * scng.adb: Recognize RM specially in errout
14439
14440 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
14441 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
14442
14443 * s-direio.adb: Add missing routine header box.
14444
14445 * sem_attr.ads: Add ??? comments
14446
14447 * sem_eval.adb: Recognize RM specially in errout
14448 Change 'R'M to RM in all error messages
14449
14450 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
14451
14452 * s-tasinf.ads: Fix minor comment typo.
14453
14454 * a-cihama.adb: Minor comment addition
14455
14456 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14457 formal
14458
14459 * s-tasinf-tru64.ads: Fix minor comment typo.
14460
14461 * itypes.ads: Comment update.
14462
14463 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
14464 anymore.
14465
14466 * argv.c: Added protection against null gnat_argv and gnat_envp.
14467
14468 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
14469 warning message when Tolerate_Consistency_Errors is True.
14470
14471 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
14472 Any_Id, as this subprogram is only applicable to *type* entities (it
14473 sets RM_Size). Instead initialize just Esize and Alignment.
14474
14475 2007-08-14 Bob Duff <duff@adacore.com>
14476
14477 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
14478 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
14479 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
14480 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
14481 a-coorse.ads (Next): Applied pragma Inline.
14482 Make all Containers packages Remote_Types (unless they are already
14483 Pure).
14484 (Previous): applied pragma Inline
14485 (Elements_Type): is now a record instead of an array
14486
14487 2007-08-14 Thomas Quinot <quinot@adacore.com>
14488
14489 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
14490 of Set_Item.
14491 (Set_Item): When the new item is an element of the currently allocated
14492 table passed by reference, save a copy on the stack if we're going
14493 to reallocate. Also, in Table.Set_Item, make sure we test the proper
14494 variable to determine whether to call Set_Last.
14495
14496 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
14497 symbols-vms.adb, symbols-processing-vms-alpha.adb,
14498 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
14499 some occurrences of the pattern
14500 T.Increment_Last;
14501 T.Table (T.Last) := Value;
14502 with a cleaner call to
14503 T.Append (Value);
14504
14505 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14506 Gary Dismukes <dismukes@adacore.com>
14507 Thomas Quinot <quinot@adacore.com>
14508
14509 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
14510 derived type with interface progenitors use the analyzed formal as the
14511 parent of the actual, to create renamings for all the inherited
14512 operations in Derive_Subprograms.
14513 (Collect_Previous_Instances): new procedure within of
14514 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
14515 unit being loaded, to ensure that the generation of global symbols is
14516 consistent in different compilation modes.
14517 (Is_Tagged_Ancestor): New function testing the ancestor relation that
14518 takes progenitor types into account.
14519 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
14520 traversing over the primitives of the formal and actual types to locate
14521 any abstract subprograms of the actual type that correspond to a
14522 nonabstract subprogram of the formal type's ancestor type(s), and issue
14523 an error if such is found.
14524 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
14525 Instantiate_Package_Body, Instantiate_Subprogram_Body):
14526 Remove bogus guard around calls to Inherit_Context.
14527 (Reset_Entity): If the entity is the selector of a selected component
14528 that denotes a named number, propagate constant-folding to the generic
14529 template only if the named number is global to the generic unit.
14530 (Set_Instance_Env): Only reset the compilation switches when compiling
14531 a predefined or internal unit.
14532
14533 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14534
14535 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
14536 parameter to determine whether operation applies to the prefix.
14537 (Complete_Object_Operation): If actual has an access type and
14538 controlling formal is not an in_parameter, reject the actual if it is
14539 an access_to_constant type.
14540 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
14541 type, the candidate operations are found in the scope of declaration of
14542 the type, because the type has no primitive subprograms.
14543 (Analyze_Selected_Component): If prefix is class-wide, and root type is
14544 a private extension, only examine visible components before trying to
14545 analyze as a prefixed call.
14546 Change Entity_List to Type_To_Use, for better readability.
14547 (Has_Fixed_Op): Use base type when checking whether the type of an
14548 operator has a user-defined multiplication/division
14549 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
14550 user-defined operators are available for fixed-point types.
14551
14552 2007-08-14 Thomas Quinot <quinot@adacore.com>
14553 Ed Schonberg <schonberg@adacore.com>
14554
14555 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
14556 formal At_Any_Place indicating, when True, that we want to test for
14557 availability of the stream attribute at any place (as opposed to the
14558 current visibility context only).
14559 (Missing_Read_Write_Attributes): A stream attribute is missing for the
14560 purpose of enforcing E.2.2(8) only if it is not available at any place.
14561 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
14562 when checking the legality of an extension aggregate in a preelaborable
14563 package. Treat the literal null as a valid default expression in a
14564 component declaration for a type with preelaborable initialization.
14565 A limited interface is a legal progenitor for the designated type of a
14566 remote access to class-wide type.
14567
14568 2007-08-14 Thomas Quinot <quinot@adacore.com>
14569 Ed Schonberg <schonberg@adacore.com>
14570
14571 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
14572 reference): Use correct entity as denoted entity for the selector of
14573 the rewritten node.
14574 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
14575 setting the Referenced_As_LHS flag for entities that are implicitly
14576 dereferenced.
14577 (Find_Type): If the type is an internally generated incomplete type,
14578 mark the full view as referenced, to prevent spurious warnings.
14579 (Find_Selected_Component, Has_Components): Handle properly non-limited
14580 views that are themselves incomplete types.
14581 Handle interfaces visible through limited-with clauses.
14582 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
14583 subprogram generic actual for which we have generated a renaming.
14584 Warn when the renaming introduces a homonym of
14585 the renamed entity, and the renamed entity is directly visible.
14586
14587 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14588 Hristian Kirtchev <kirtchev@adacore.com>
14589
14590 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
14591 appear in the subtree to the current allocator if it is not a static
14592 coextension.
14593 (Resolve_Allocator): Perform cleanup if resolution has determined that
14594 the allocator is not a coextension.
14595 (Resolve): Skip an interpretation hidden by an abstract operator only
14596 when the type of the interpretation matches that of the context.
14597 (Resolve): When looping through all possible interpretations of a node,
14598 do not consider those that are hidden by abstract operators.
14599 (Resolve_Actuals): When verifying that an access to class-wide object
14600 is an actual for a controlling formal, ignore anonymous access to
14601 subprograms whose return type is an access to class_wide type.
14602 (Resolve_Slice): If the prefix of the slice is a selected component
14603 whose type depends on discriminants, build its actual subtype before
14604 applying range checks on the bounds of the slice.
14605 (Valid_Conversion): In an instance or inlined body, compare root types,
14606 to prevent anomalies between private and public views.
14607 (Resolve): Improve error message for ambiguous fixed multiplication
14608 expressions that involve universal_fixed multiplying operations.
14609
14610 2007-08-14 Javier Miranda <miranda@adacore.com>
14611 Hristian Kirtchev <kirtchev@adacore.com>
14612
14613 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
14614 location to allow the correct generation of errors in case of
14615 restrictions applied to the expanded code.
14616 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
14617 function if the condition does not reference them.
14618 (Expand_Entry_Body_Declarations): Mark the index constant as having a
14619 valid value.
14620
14621 2007-08-14 Thomas Quinot <quinot@adacore.com>
14622 Pablo Oliveira <oliveira@adacore.com>
14623
14624 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
14625 typecode parameters for a union (in a variant record), remove
14626 extraneous layer of Any wrapping for member label.
14627 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
14628 elabration statements, register the package with the name server
14629 at the beginning, not at the end, of the elaboration statements so
14630 that they can create remote access to subprogram values that designate
14631 remote subprograms from the package.
14632
14633 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14634
14635 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
14636 values to compute the number of seconds since the Unix Epoc in order to
14637 account for Daylight Savings Time. Perform special processing for dates
14638 that are earlier than the Unix Epoc to obtain a negative number.
14639
14640 2007-08-14 Emmanuel Briot <briot@adacore.com>
14641
14642 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
14643 switches.
14644
14645 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
14646
14647 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
14648 binder-generated file is not in Ada.
14649 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
14650 recorded in the ALI file.
14651 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
14652
14653 2007-08-14 Vincent Celier <celier@adacore.com>
14654
14655 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
14656 (Output_Source): Do nothing if parameter is No_Sdep_Id
14657
14658 * make.adb (Gnatmake): Do not rebuild an archive simply because a
14659 shared library it imports has a later time stamp.
14660 (Check): Resolve the symbolic links in the path name of the object
14661 directory.
14662 Check that the ALI file is in the correct object directory
14663 Check if a file name does not correspond to the mapping of units
14664 to file names.
14665 (Display_Version): New procedure
14666 (Initialize): Process switches --version and --help
14667 Use type Path_Name_Type for path name
14668
14669 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
14670
14671 * impunit.adb: Re-organize System.Random_Numbers and
14672 GNAT.Random_Numbers and add to builds.
14673
14674 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
14675
14676 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
14677
14678 * a-assert.ads, a-assert.adb: New files.
14679
14680 2007-08-14 Gary Dismukes <dismukes@adacore.com>
14681
14682 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
14683 if AAMP_On_Target is True, then the size of the type encompasses two
14684 addresses (a static link and a subprogram address), except in the case
14685 of library-level access types.
14686
14687 2007-08-14 Vincent Celier <celier@adacore.com>
14688
14689 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
14690 writing the line.
14691 (Write_Eol_Keep_Blanks): New procedure to write a line, including
14692 possible trailing spaces.
14693 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
14694
14695 2007-08-14 Javier Miranda <miranda@adacore.com>
14696
14697 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
14698 null-excluding access types.
14699
14700 2007-08-14 Javier Miranda <miranda@adacore.com>
14701
14702 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
14703 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
14704 of private types add missing check on matching interfaces in the
14705 partial and full declarations.
14706 (Analyze_Protected_Type): Code cleanup.
14707 (Analyze_Task_Type): Code cleanup.
14708
14709 2007-08-14 Javier Miranda <miranda@adacore.com>
14710
14711 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
14712 generated interface thunk.
14713
14714 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14715
14716 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
14717 obsolescent warning on application of 'Class to an incomplete type.
14718
14719 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
14720 prevent obsolescent warning on application of 'Class to an incomplete
14721 type.
14722
14723 2007-08-14 Pascal Obry <obry@adacore.com>
14724
14725 * s-fileio.adb (Is_Open): Add check for usability of the underlying
14726 file stream.
14727
14728 2007-08-14 Cyrille Comar <comar@adacore.com>
14729
14730 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
14731 since it is potentially used in cases implying double finalization of
14732 the same object.
14733
14734 2007-08-14 Jose Ruiz <ruiz@adacore.com>
14735
14736 * s-tasini.adb (Get_Stack_Info): Move this function to
14737 System.Soft_Links.Tasking because it is common to the full and the
14738 restricted run times.
14739 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
14740 in SSL.Tasking.Init_Tasking_Soft_Links.
14741
14742 * s-solita.adb (Get_Stack_Info): Function moved from
14743 System.Tasking.Initialization because it is common to the full and the
14744 restricted run times.
14745 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
14746
14747 2007-08-14 Arnaud Charlet <charlet@adacore.com>
14748
14749 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
14750 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
14751 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
14752 parameter.
14753
14754 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
14755 guard to 12K.
14756
14757 2007-08-14 Gary Dismukes <dismukes@adacore.com>
14758
14759 * s-veboop.adb (SU): New named number initialized to
14760 System.Storage_Unit.
14761 (True_Val): The initialization expression is revised to use SU (=
14762 Storage_Unit) rather than assuming 8 for the component size of an
14763 unpacked Boolean array.
14764
14765 2007-08-14 Tristan Gingold <gingold@adacore.com>
14766
14767 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
14768
14769 * tb-ivms.c: New file.
14770
14771 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
14772
14773 2007-08-14 Geert Bosch <bosch@adacore.com>
14774
14775 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
14776 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
14777 Add required linker pragmas for automatically linking with the gnalasup
14778 linear algebra support library, and the systems math library.
14779 Rename cdot to cdotu and zdot to zdotu.
14780 Update header comment to describe purpose of package.
14781
14782 2007-08-14 Thomas Quinot <quinot@adacore.com>
14783
14784 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
14785 an explicitly specified Associated_Final_Chain, use that list.
14786 (Expand_N_Package_Body): Build dispatch tables of library level tagged
14787 types.
14788 (Expand_N_Package_Declaration): Build dispatch tables of library level
14789 tagged types. Minor code cleanup.
14790
14791 2007-08-14 Vincent Celier <celier@adacore.com>
14792
14793 * gnatchop.adb (Terminate_Program): Remove exception and use
14794 Types.Terminate_Program instead.
14795
14796 * osint.ads, osint.adb (Current_Exit_Status): New global variable
14797 (Find_Program_Name): Added protection against empty name.
14798 (OS_Exit_Through_Exception): New procedure
14799
14800 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
14801 (OS_Exit_Default): New procedure that contains the previous
14802 implementation of procedure OS_Exit.
14803 (Final_Value): Remove obsolete Interix stuff.
14804
14805 2007-08-14 Thomas Quinot <quinot@adacore.com>
14806
14807 * g-socket.ads: Reorganize example code so that it also works on
14808 Windows XP.
14809
14810 2007-08-14 Tristan Gingold <gingold@adacore.com>
14811
14812 * g-trasym.ads: AIX now supports symbolic backtraces.
14813
14814 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14815
14816 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
14817 units being loaded to detect circularities. A circularity may be
14818 present even if the current chain of pending units to load starts from
14819 a limited_with_clause.
14820
14821 * lib-load.ads: Change profile of Load_Unit to use a with_clause
14822 rather than a boolean flag, in order to detect circularities in
14823 with_clauses.
14824
14825 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
14826 than propagating the From_Limited_With flag, in order to handle
14827 properly circularities involving with_clauses.
14828
14829 2007-08-14 Nicolas Setton <setton@adacore.com>
14830
14831 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
14832 warnings.
14833
14834 2007-08-14 Arnaud Charlet <charlet@adacore.com>
14835
14836 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
14837 to build for libgnala.
14838 libgnat: Add rules to build libgnala.a
14839 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
14840 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
14841 Add s-osinte-vxworks-kernel.adb to the target pairs of the
14842 kernel run-time lib for VxWorks 6, which would provide a different
14843 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
14844 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
14845 running ZCX by default.
14846 Add g-sttsne-locking to LynxOS version.
14847 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
14848 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
14849
14850 * system-darwin-x86.ads: New file.
14851
14852 * Make-lang.in: Delete files before copying onto them, so if they are
14853 read-only, the copy won't fail.
14854 Update dependencies
14855
14856 2007-08-14 Pascal Obry <obry@adacore.com>
14857
14858 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
14859 naming scheme.
14860
14861 2007-08-14 Vincent Celier <celier@adacore.com>
14862
14863 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
14864 (Gcc): Initialize Gcc_Name at the first call
14865
14866 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14867
14868 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
14869 with_clauses of the enclosing unit when analyzing the package
14870 specification of a nested instance.
14871
14872 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14873
14874 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
14875 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
14876 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
14877 layout of N_Allocator.
14878
14879 2007-08-14 Thomas Quinot <quinot@adacore.com>
14880
14881 * rtsfind.adb (Check_RPC): Add PCS version check.
14882
14883 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
14884 (Gnat_Free_Software): New function.
14885
14886 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
14887 the PCS_Version value from s-parint, used to check that it is consistent
14888 with what exp_dist expects.
14889
14890 * s-parint.ads (PCS_Version): New entity for checking consistency
14891 between exp_dist and PCS.
14892
14893 * gen-soccon.c: (SO_REUSEPORT): New constant.
14894
14895 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14896
14897 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
14898 variable Sub_Second to Duration in order to accomodate a larger range
14899 of arithmetic operations.
14900
14901 2007-08-14 Bob Duff <duff@adacore.com>
14902
14903 * g-sttsne-locking.ads: Move comments from spec to body.
14904 * g-sttsne-locking.adb: Move comments from spec to body.
14905 * g-sttsne-vxworks.ads: Removed.
14906 * g-sttsne-vxworks.adb: Removed.
14907
14908 2007-08-11 Ian Lance Taylor <iant@google.com>
14909
14910 * misc.c (gnat_get_alias_set): Change return type to
14911 alias_set_type.
14912
14913 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14914
14915 * decl.c, utils2.c: Fix whitespace in last change.
14916
14917 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14918
14919 * decl.c (compare_field_bitpos): Constify.
14920 * utils2.c (compare_elmt_bitpos): Likewise.
14921
14922 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
14923
14924 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
14925 anonymous access type.
14926 (pthread_sigmask): Now take an access sigset_t.
14927
14928 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
14929
14930 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
14931
14932 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
14933
14934 PR tree-optimization/25737
14935 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
14936
14937 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
14938
14939 * trans.c (Attribute_to_gnu): When subtracting an
14940 offset from a pointer, use POINTER_PLUS_EXPR with
14941 NEGATE_EXPR instead of MINUS_EXPR.
14942 (gnat_to_gnu): Likewise.
14943 * utils.c (convert): When converting between
14944 thin pointers, use POINTER_PLUS_EXPR and sizetype
14945 for the offset.
14946 * utils2.c (known_alignment): POINTER_PLUS_EXPR
14947 have the same semantics as PLUS_EXPR for alignment.
14948 (build_binary_op): Add support for the semantics of
14949 POINTER_PLUS_EXPR's operands.
14950 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
14951
14952 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
14953
14954 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
14955 of get_signed_or_unsigned_type.
14956 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
14957
14958 2007-06-11 Bob Duff <duff@adacore.com>
14959 Thomas Quinot <quinot@adacore.com>
14960
14961 * g-stsifd-sockets.adb (Create): Work around strange behavior of
14962 'bind' on windows that causes 'connect' to fail intermittently, by
14963 retrying the 'bind'.
14964 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14965
14966 2007-06-10 Duncan Sands <baldrick@free.fr>
14967
14968 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
14969 than to void, for the fields when making a new fat pointer type.
14970 (gnat_substitute_in_type): Now substitute_in_type.
14971 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
14972 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
14973 * utils.c (update_pointer_to): Update fat pointers by updating the
14974 dummy node pointers used for the fields.
14975
14976 2007-06-06 Thomas Quinot <quinot@adacore.com>
14977 Bob Duff <duff@adacore.com>
14978
14979 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
14980 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14981 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
14982 constant Thread_Blocking_IO, always True by default, set False
14983 on a per-runtime basis.
14984 (Need_Netdb_Buffer): New constant.
14985
14986 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
14987 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
14988 files.
14989
14990 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
14991 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
14992 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
14993 child package Task_Safe_NetDB
14994 (Host_Error_Messages): Add stub body.
14995 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14996
14997 * g-soccon-mingw.ads: Add Windows-specific constants.
14998 (Need_Netdb_Buffer): New constant.
14999 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
15000 wrapper and import inet_addr(3) from the standard sockets library
15001 directly instead.
15002 (In_Addr): Add alignment clause.
15003 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15004
15005 2007-06-06 Robert Dewar <dewar@adacore.com>
15006
15007 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
15008 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
15009 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
15010 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
15011 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
15012 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
15013 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
15014 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
15015 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
15016 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
15017 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
15018 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
15019 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
15020 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
15021 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
15022 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
15023 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
15024 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
15025 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
15026 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
15027 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
15028 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
15029 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
15030 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
15031 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
15032 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
15033 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
15034 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
15035 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
15036 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
15037 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
15038 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
15039 Unchecked_* by Ada.Unchecked_*
15040
15041 2007-06-06 Robert Dewar <dewar@adacore.com>
15042
15043 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
15044 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
15045 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
15046 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
15047 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15048 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
15049
15050 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
15051 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
15052 s-tasloc.adb, s-tasloc.ads: New files.
15053
15054 2007-06-06 Bob Duff <duff@adacore.com>
15055
15056 * g-expect-vms.adb:
15057 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
15058 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
15059 (Send_Signal, Close): Raise Invalid_Process if the process id is
15060 invalid.
15061 (Pattern_Matcher_Access): Is now a general access type to be able to
15062 use aliased string.
15063
15064 2007-06-06 Thomas Quinot <quinot@adacore.com>
15065 Arnaud Charlet <charlet@adacore.com>
15066
15067 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
15068 (SIGEMT is now used instead of SIGTERM on AIX).
15069
15070 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
15071 (Time_Slice_Supported): Set to True.
15072 Use SIGEMT instead of SIGTERM as SIGADAABORT.
15073
15074 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15075
15076 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
15077 (Time, Time)): Use To_Relative_Time rather than manual calculation to
15078 express the bounds of Duration as Time. Raise Time_Error when the
15079 result is greater or equal to the higher bound of Duration (on the
15080 margin case).
15081 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
15082 Ada_High_And_Leaps.
15083 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
15084 Ada_High_And_Leaps.
15085 ("-" (Time, Time)): Reorder code.
15086 (All_Leap_Seconds): Removed.
15087 (Arithmetic_Operations.Add): Remove sign related kludge.
15088 (Arithmetic_Operations.Difference): Control the leaps seconds processing
15089 with flag Leap_Support.
15090 (Arithmetic_Operations.Subtract): Remove sign related kludge.
15091 (Check_Within_Time_Bounds): New procedure.
15092 (Clock): Control the leap seconds processing with flag Leap_Support.
15093 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
15094 (Formatting_Operations.Split): Control the leap seconds processing with
15095 flag Leap_Support.
15096 (Formatting_Operations.Time_Of): Control the leaps seconds processing
15097 with flag Leap_Support. Adjust the year, month and day (if applicable)
15098 when the value of day seconds designates a new day.
15099 (Split): Use parameter associations for better readability. Integrate
15100 flag Is_Ada_05.
15101 (Time_Of): Use parameter associations for better readability. Integrate
15102 flag Is_Ada_05.
15103
15104 * a-calfor.adb (Split): Use parameter associations for better
15105 readability. Integrate flag Is_Ada_05.
15106 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
15107 better readability. Integrate flag Is_Ada_05.
15108
15109 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15110
15111 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
15112 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
15113 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
15114 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
15115 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
15116 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
15117 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
15118 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
15119 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
15120 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
15121 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
15122 time when entering this routine to detect a backward clock setting
15123 (manual setting or DST adjustment), to avoid waiting for a longer delay
15124 than needed.
15125 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
15126 Remove handling of deferred priority change, and replace by setting the
15127 task priority directly, as required by AI-188.
15128 Update comments.
15129 (Max_Task_Image_Length): New constant.
15130 Replace Warnings (Off) by Unreferenced pragma, cleaner.
15131 (Dynamic_Priority_Support): Removed, no longer needed.
15132 (Poll_Base_Priority_Change): Ditto.
15133 (Set_Ceiling): Add this procedure to change the ceiling priority
15134 associated to a lock. This is a dummy implementation because dynamic
15135 priority ceilings are not supported by the underlying system.
15136
15137 * a-dynpri.adb (Set_Priority): Take into account case where Target is
15138 accepting a RV with its priority boosted.
15139 Remove handling of deferred priority change, and replace by setting the
15140 task priority directly, as required by AI-188.
15141
15142 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
15143 Succeeded = True.
15144 Remove handling of deferred priority change, and replace by setting the
15145 task priority directly, as required by AI-188.
15146 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
15147 of Self_Id earlier.
15148
15149 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
15150 (Poll_Base_Priority_Change): Removed.
15151 Code clean up: use SSL.Current_Target_Exception.
15152
15153 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
15154 to run as this is a potentially dispatching point.
15155 (Call_Synchronous): Use Local_Defer_Abort.
15156 (Callable): Relax assertion.
15157 (Selective_Wait): Relax assertion in case abort is not allowed.
15158 Remove handling of deferred priority change, and replace by setting the
15159 task priority directly, as required by AI-188.
15160
15161 * s-tasuti.adb (Make_Passive): Adjust assertions.
15162 Remove handling of deferred priority change, and replace by setting the
15163 task priority directly, as required by AI-188.
15164
15165 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15166
15167 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15168 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15169 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
15170 system-vxworks-mips.ads, system-vxworks-alpha.ads,
15171 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
15172 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
15173 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
15174 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
15175 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
15176 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
15177 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
15178 This patch changes the largest non-binary modulus from 2**31-1 to
15179 2**32-1.
15180 (Compiler_System_Version): Removed, no longer used.
15181 Clean up system files by removing flags only used on a single target.
15182 Also remove obsolete flags, only used during bootstrap from system.ads
15183 (Address): Add a pragma Preelaborable_Initialization.
15184
15185 * system-aix.ads: Ditto.
15186 (GCC_ZCX_Support): Set to true.
15187 Update priority range on AIX and map Ada priorities to target
15188 priorities appropriately for different scheduling policies.
15189
15190 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
15191
15192 2007-06-06 Vincent Celier <celier@adacore.com>
15193
15194 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
15195 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
15196
15197 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
15198 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
15199 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
15200 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15201 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
15202 MLib.Tgt, containing the default versions of the exported subprograms.
15203 For each platform, create a specific version of the body of new child
15204 package MLib.Tgt.Specific that contains only the body of subprograms
15205 that are different from the default.
15206 (Archive_Builder_Append_Options): New function.
15207
15208 2007-06-06 Matthew Gingell <gingell@adacore.com>
15209
15210 * s-osinte-aix.adb: Map Ada priorities to target priorities
15211 appropriately for different scheduling policies.
15212
15213 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15214
15215 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
15216 its C counterpart.
15217 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
15218 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
15219
15220 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
15221
15222 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
15223 Noop on VMS, added for interface commonality.
15224
15225 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15226 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15227 Olivier Hainque <hainque@adacore.com>
15228
15229 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
15230 renamed expression of a full renaming at toplevel.
15231 (gnat_to_gnu_entity, case object): If not defining, do not look inside
15232 the values the constant is initialized to if it is an N_Allocator.
15233 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
15234 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
15235 (make_aligning_type): Accept an extra ROOM argument for storage to be
15236 made available before the aligned field, and an extra BASE_ALIGN
15237 argument for callers to pass the alignment guaranteed to be honored for
15238 the whole aligning object. Avoid call to finish_record_type, which only
15239 interferes with the sizes we want to set.
15240 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
15241 make_aligning_type for super-aligned objects on stack.
15242 (components_to_record): Pass the adjusted size of the type when creating
15243 fields in the qualified union for the variant part.
15244 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
15245 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
15246 packed array type.
15247 (maybe_pad_type): Set TYPE_USER_ALIGN.
15248 (make_aligning_type): Likewise.
15249 ALIGN argument is unsigned int.
15250 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
15251 (gnat_to_gnu_param): Likewise, for parameters.
15252 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
15253 if it is constant and stems from a function call.
15254 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
15255 of the record is specified. Adjust accordingly.
15256 (adjust_packed): New static function.
15257 (gnat_to_gnu_field): Use it to adjust the packedness setting.
15258 (components_to_record): Likewise.
15259 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
15260 side-effects if the object is deemed constant.
15261 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
15262 type instead of merely finalizing it. Tidy.
15263 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
15264 <E_Access_Type>: Likewise.
15265 (defer_debug_incomplete_list): Rename to defer_finalize_list.
15266 (defer_debug_level): Delete.
15267 (gnat_to_gnu_entity) <debug_deferred>: Likewise
15268 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
15269 type.
15270 <E_Record_Type>: Do not explicitly defer finalizing the type.
15271 Adjust for write_record_type_debug_info renaming.
15272 <E_Subprogram_Type>: Likewise.
15273 Finalize deferred types right after deferred incomplete types are
15274 expanded.
15275 (rest_of_type_decl_compilation): New global function.
15276 (components_to_record): Rename defer_debug parameter to do_not_finalize.
15277 (components_to_record): Propagate the packedness to the fields of the
15278 qualified union type if there is a variant part.
15279 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
15280 instead of inline code to adjust the XUT field offsets.
15281 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
15282 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
15283 and write the debug info if the type derives from a discriminated one.
15284 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
15285 <E_Array_Subtype>: Likewise.
15286 <E_String_Literal_Subtype>: Likewise.
15287 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
15288 an alignment clause.
15289 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
15290 before giving warning.
15291 (prepend_one_attribute_to): New function, helper to prepend an attribute
15292 to an attribute list.
15293 (gnat_to_gnu_entity) <E_Procedure>: Use it.
15294 (prepend_attributes): Likewise.
15295 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
15296 <E_Array_Type>: Declare the padding type for the element type, if any.
15297 <E_Array_Subtype>: Likewise.
15298 (defer_limited_with): New variable.
15299 (Gigi_Equivalent_Type): New function.
15300 (gnat_to_gnu_entity): Use it at start and use result throughout.
15301 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
15302 Gigi_Equivalent_Type, support Limited_With, allow two levels of
15303 indirection, precompute if unconstrained array to simplify logic, and
15304 use defer_limited_with to defer elaboration of some types from limited
15305 with.
15306 (finalize_from_with_types): New function.
15307
15308 2007-06-06 Gary Dismukes <dismukes@adacore.com>
15309 Eric Botcazou <ebotcazou@adacore.com>
15310 Tristan Gingold <gingold@adacore.com>
15311 Olivier Hainque <hainque@adacore.com>
15312
15313 * trans.c (Identifier_to_gnu): Change test for deferred constant by
15314 adding guard that the entity is an E_Constant before testing presence
15315 of Full_view (and remove unnecessary test that entity is not a type).
15316 For a CONST_DECL used by reference, manually retrieve
15317 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
15318 (struct language_function): Move from utils.c to here.
15319 (struct parm_attr): New structure.
15320 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
15321 (f_parm_attr_cache): New macro.
15322 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
15323 expressions for the 'First, 'Last and 'Length attributes of the
15324 unconstrained array IN parameters.
15325 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
15326 Allocate the information structure for the function earlier, as well
15327 as the language-specific part.
15328 If the parameter attributes cache has been populated, evaluate the
15329 cached expressions on entry.
15330 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
15331 N_Procedure_Call_Statement and N_Indexed_Component.
15332 (Pragma_to_gnu): Translate inspection_point to an asm statement
15333 containaing a comment and a reference to the object (either its address
15334 for BLKmode or its value).
15335 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
15336 to go to DECL_INITIAL. Together with the size constraint relaxation
15337 in create_var_decl, enlarges the set of situations in which an
15338 identifier may be used as an initializer without implying elaboration
15339 code.
15340 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
15341 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
15342 node.
15343 (maybe_stabilize_reference): Remove lvalues_only parameter.
15344 (gnat_stabilize_reference): Adjust for above change.
15345 (gnat_to_gnu): Do not set location information on the result
15346 if it is a reference.
15347 (add_cleanup): Add gnat_node parameter and set the location of the
15348 cleanup to it.
15349 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
15350 (Exception_Handler_to_gnu_zcx): Likewise.
15351 (gigi): Remove the cgraph node if the elaboration procedure is empty.
15352 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
15353 the former right after the latter.
15354 (start_stmt_group): Make global.
15355 (end_stmt_group): Likewise.
15356 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
15357 vars.
15358 (gnu_program_error_label_stack): Likewise.
15359 (gigi): Initialize them.
15360 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
15361 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
15362 New cases.
15363 (push_exception_label_stack): New function.
15364 (takes_address): New function.
15365
15366 * utils.c (struct language_function): Move to trans.c from here.
15367 (unchecked_convert): Do not wrap up integer constants in
15368 VIEW_CONVERT_EXPRs.
15369 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
15370 the latter for aggregate types, unexpected by later passes, and relax an
15371 arbitrary size constraint on the former.
15372 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
15373 to compare the sizes.
15374 (convert_vms_descriptor): When converting to a fat pointer type, be
15375 prepared for a S descriptor at runtime in spite of a SB specification.
15376 (shift_unc_components_for_thin_pointers): New function.
15377 (write_record_type_debug_info): For variable-sized fields, cap the
15378 alignment of the pointer to the computed alignment.
15379 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
15380 If REP_LEVEL is 2, do not compute the sizes.
15381 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
15382 (build_unc_object_type): Likewise.
15383 (declare_debug_type): New function.
15384
15385 * ada-tree.def: USE_STMT: removed (not emitted anymore).
15386
15387 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
15388 no statement is expandable anymore.
15389 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
15390 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
15391 when the user requested it explicitely.
15392 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
15393 to 0 for Ada.
15394 (get_alias_set): Return alias set 0 for a type if
15395 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
15396
15397 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
15398 (DECL_FUNCTION_STUB): New accessor macro.
15399 (SET_DECL_FUNCTION_STUB): New setter macro.
15400
15401 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
15402
15403 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
15404 declarations.
15405
15406 2007-06-06 Jose Ruiz <ruiz@adacore.com>
15407
15408 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
15409 Rename to Abort_Task_Interrupt to be able to keep the same interface
15410 as the rest of the targets.
15411
15412 * s-osinte-vxworks.ads s-osinte-vxworks.adb
15413 (To_VxWorks_Priority): Remove explicit "in" mode indicator
15414
15415 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
15416 New files.
15417
15418 2007-06-06 Robert Dewar <dewar@adacore.com>
15419
15420 * a-chahan.ads: Remove obsolescent pragmas
15421
15422 * a-chlat1.ads: Minor reformatting
15423
15424 2007-06-06 Robert Dewar <dewar@adacore.com>
15425
15426 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
15427 for Errout
15428
15429 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
15430 implementation
15431
15432 * errout.ads (Finalize): Changed interface
15433 (Output_Messages): New procedure
15434 (Compilation_Errors): New Interface
15435
15436 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
15437 Finalize/Output_Messages interface for Errout
15438 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
15439 Errout.
15440
15441 2007-06-06 Thomas Quinot <quinot@adacore.com>
15442 Olivier Hainque <hainque@adacore.com>
15443 Robert Dewar <dewar@adacore.com>
15444
15445 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
15446 check.
15447 (Raise_Current_Excep): Call Debug_Raise_Exception just before
15448 propagation starts, to let debuggers know about the event in a reliable
15449 fashion.
15450 (Local_Raise): Moved to System.Exceptions
15451 More convenient to have this as a separate unit
15452
15453 * s-except.adb, s-except.ads: New files.
15454
15455 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
15456 Debug_Unhandled_Exception in System.Exceptions where it belongs
15457 together with a couple of other debug helpers.
15458 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
15459 the former Unhandled_Exception.
15460
15461 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
15462 (Warn_No_Exception_Propagation): New procedure
15463 (Warn_If_No_Propagation): Rewritten for new warning generation
15464 (Expand_Exception_Handlers): New warning generation
15465 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
15466 (Add_Exception_Label): Use Special_Exception_Package_Used for test
15467 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
15468 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
15469 even if restriction is set (makes life easier in Check_Returns)
15470 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
15471 checking exception identities.
15472 (Expand_Local_Exception_Handlers): Do not optimize when all others case
15473 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
15474 block for handler (used by Check_Returns)
15475 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
15476 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
15477 remove all exception handlers when optimizing local raise statements.
15478 (Find_Local_Handler): Use Get_Renamed_Entity
15479 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
15480 marked analyzed after expanding exception handlers, do not generate
15481 redundant cleanup actions, because they have been constructed already.
15482
15483 2007-06-06 Thomas Quinot <quinot@adacore.com>
15484
15485 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
15486 presence of this categorization pragma is mandated by the language.
15487 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
15488 for this type.
15489
15490 2007-06-06 Vincent Celier <celier@adacore.com>
15491 Robert Dewar <dewar@adacore.com>
15492
15493 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
15494 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15495 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
15496 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
15497 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
15498 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
15499 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
15500 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
15501 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
15502 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
15503 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
15504 ali.ads, ali.adb:
15505 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
15506 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
15507 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
15508 Use variables of types File_Name_Type and Unit_Name_Type in error
15509 messages.
15510 (Get_Name): Add parameter Ignore_Special, and set it reading file name
15511 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
15512 here.
15513 Define flags Flag217-Flag230 with associated subprograms
15514 (Flag_Word5): New record type.
15515 (Flag_Word5_Ptr): New access type.
15516 (To_Flag_Word5): New unchecked conversion.
15517 (To_Flag_Word5_Ptr): Likewise.
15518 (Flag216): New function.
15519 (Set_Flag216): New procedure.
15520
15521 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15522
15523 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
15524 instead of 'Size.
15525
15526 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
15527
15528 2007-06-06 Javier Miranda <miranda@adacore.com>
15529
15530 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
15531 the package.
15532 (Object_Specific_Data_Array): This is now internal to the package.
15533 (Object_Specific_Data): This is now internal to the package.
15534 (Select_Specific_Data_Element): This is now internal to the package.
15535 (Select_Specific_Data_Array): This is now internal to the package.
15536 (Select_Specific_Data): This is now internal to the package.
15537 (Offset_To_Top_Function_Ptr): This is now public.
15538 (To_Offset_To_Top_Function_Ptr): Removed.
15539 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
15540 local to subprogram Offset_To_Top.
15541 (Predefined_DT): Removed.
15542 (Typeinfo_Ptr): Removed.
15543 (OSD): This function is now internal to this package.
15544 (SSD): This function is now internal to this package.
15545 (DT): New function that displaces the pointer to the table of primitives
15546 to get access to the enclosing wrapper record.
15547 (IW_Membership): Code cleanup.
15548 (Offset_To_Top): Code cleanup.
15549 (Predefined_DT): Removed.
15550 (Register_Interface_Tag): Removed.
15551 (Set_Interface_Table): Removed.
15552 (Set_Offset_Index): Removed.
15553 (Set_Offset_To_Top): Code cleanup.
15554 (Set_OSD): Removed.
15555 (Set_Signature): Removed.
15556 (Set_SSD): Removed.
15557 (Set_Tagged_Kind): Removed.
15558 (Typeinfo_Ptr): Removed.
15559 (TSD): Removed.
15560 (Displace): Add missing check on null actual.
15561
15562 * exp_disp.ads, exp_disp.adb
15563 (Select_Expansion_Utilities): Removed.
15564 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
15565 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
15566 the interface requires a new parameter.
15567 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
15568 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
15569 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
15570 Done to remove package Select_Expansion_Utilities.
15571 (Make_DT): New implementation for statically allocated dispatch tables.
15572 (Make_Secondary_DT): Moved to the scope of Make_DT.
15573 (Register_Primitive): Code cleanup plus incoporate the use of the new
15574 function DT_Address_Attribute.
15575 (Expand_Interface_Thunk): The profile of this subprogram has been
15576 changed to return the Thunk_Id and the corresponding code.
15577 (Fill_DT_Entry): Removed. Its functionality is now provided by
15578 subprogram Register_Primitive.
15579 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
15580 subprogram Register_Primitive.
15581 (Register_Primitive): New subprogram that incorporates the previous
15582 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
15583 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
15584 was only required to call Make_DT_Access_Action, which is now removed.
15585 (Ada_Actions): Removed
15586 (Action_Is_Proc): Removed
15587 (Action_Nb_Arg): Removed
15588 Replace all the calls to Make_DT_Access_Action by direct calls to
15589 Make_Procedure_Call_Statement or Make_Function_Call.
15590 (Set_DTC_Entity_Value): New subprogram.
15591 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
15592 (Expand_Interface_Thunk): Add missing support for primitives that are
15593 functions with a controlling result (case in which there is no need
15594 to generate the thunk).
15595
15596 * exp_atag.ads, exp_atag.adb
15597 (Build_DT): New subprogram that displaces the pointer to reference the
15598 base of the wrapper record.
15599 (Build_Typeinfo_Offset): Removed.
15600 (RTE_Tag_Node): Removed.
15601 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
15602 (Build_Get_RC_Offset): Removed.
15603 (Build_Inherit_Predefined_Prims): Removed.
15604 (Build_Inherit_TSD: Removed.
15605 (Build_New_TSD): Removed.
15606 (Build_Set_External_Tag): Removed.
15607 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
15608 (Build_Set_Prim_Op_Address): Add documentation.
15609 (Build_Set_TSD): Removed.
15610
15611 * rtsfind.ads, rtsfind.adb
15612 (Load_Fail): If load fails and we are not in configurable run-time
15613 mode, then raise Unrecoverable_Error.
15614 (Text_IO_Kludge): Generate an error message if a run-time library is
15615 not available in a given run-time (ie. zfp run-time).
15616 (RTE_Record_Component): Add code to check that the component we search
15617 for is not found in two records in the given run-time package.
15618 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
15619 (RE_DT_Predef_Prims_Offset): New entity
15620 (RE_Static_Offset_To_Top): New entity
15621 (RE_HT_Link): New entity.
15622 (System_Address_Image): Addition of this run-time package.
15623 (RE_Address_Image): New entity.
15624 (RE_Abstract_Interface): Removed.
15625 (RE_Default_Prim_Op_Count): Removed.
15626 (RE_DT_Entry_Size): Removed.
15627 (RE_DT_Min_Prologue_Size): Removed.
15628 (RE_DT_Prologue_Size): Removed.
15629 (RE_Ifaces_Table_Ptr): Removed.
15630 (RE_Interface_Data_Ptr): Removed.
15631 (RE_Type_Specific_Data): Removed.
15632 (RE_Primary_DT): Removed.
15633 (RE_Register_Interface_Tag): Removed.
15634 (RE_Set_Offset_Index): Removed.
15635 (RE_Set_OSD): Removed.
15636 (RE_Set_SSD): Removed.
15637 (RE_Set_Signature): Removed.
15638 (RE_Set_Tagged_Kind): Removed.
15639 (RE_Address_Array): New entity.
15640 (RE_DT): New entity.
15641 (RE_Iface_Tag): New entity.
15642 (RE_Interfaces_Table): New entity.
15643 (RE_No_Dispatch_Table): New entity.
15644 (RE_NDT_Prims_Ptr): New entity.
15645 (RE_NDT_TSD): New entity.
15646 (RE_Num_Prims): New entity.
15647 (RE_Offset_To_Top_Function_Ptr): New entity.
15648 (RE_OSD_Table): New entity.
15649 (RE_OSD_Num_Prims): New entity.
15650 (RE_Predef_Prims): New entity
15651 (RE_Predef_Prims_Table_Ptr): New entity.
15652 (RE_Primary_DT): New entity.
15653 (RE_Signature): New entity.
15654 (RE_SSD): New entity.
15655 (RE_TSD): New entity.
15656 (RE_Type_Specific_Data): New entity.
15657 (RE_Tag_Kind): New entity.
15658
15659 2007-06-06 Thomas Quinot <quinot@adacore.com>
15660
15661 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
15662 C imported variable.
15663 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
15664 on entry.
15665
15666 2007-06-06 Robert Dewar <dewar@adacore.com>
15667
15668 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
15669 character
15670
15671 2007-06-06 Vincent Celier <celier@adacore.com>
15672
15673 * a-tifiio.adb (Put, internal): For negative numbers, check that there
15674 is room for at least one digit and the minus sign.
15675 (Put.Put_Character): Never put a character outside of the range of
15676 string To.
15677
15678 2007-06-06 Olivier Hainque <hainque@adacore.com>
15679 Eric Botcazou <ebotcazou@adacore.com>
15680
15681 * utils2.c (build_allocator): Provide the extra arguments to
15682 make_aligning_type for super-aligned objects allocated from the default
15683 pool. Leave enough room for a pointer before the aligning field, and
15684 store the system's allocator return value there.
15685 (build_call_alloc_dealloc): When releasing a super-aligned object,
15686 retrieve the system's allocator return value from where build_allocator
15687 has stored it, just ahead of the adjusted address we are passed.
15688 (build_call_raise): Handle properly the generation of line numbers when
15689 the node is marked No_Location.
15690 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
15691 by using DECL_UID on ties.
15692 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
15693 main variant.
15694 (build_call_raise): Handle converting exception into goto; support new
15695 argument KIND.
15696 (build_component_ref): Add new arg to build_call_raise.
15697
15698 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15699
15700 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
15701 "." in the case of nnn.xxx when nnn terminates with an underscore.
15702 Parse the remaining "#" or ":" in the case of nnn#.xxx#
15703
15704 2007-06-06 Robert Dewar <dewar@adacore.com>
15705
15706 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
15707
15708 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15709 Vincent Celier <celier@adacore.com>
15710 Robert Dewar <dewar@adacore.com>
15711
15712 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
15713 needed.
15714 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
15715 ((destructor)) for adafinal, even when switch -a is used.
15716 Do not issue pragma Linker_Destructor for adafinal when switch -a is
15717 used.
15718 (Gen_Object_Files_Options): Add formatting of Linker Options, when
15719 Output_Linker_Option_List is set. Suppress this formatting when
15720 Zero_Formatting is set.
15721 Add case for CLI_Target.
15722 (System_Restrictions_Used): New flag, used to avoid generating with of
15723 System_Restrictions and initialization of the data unless there is
15724 some use of System.Restrictions in the partition.
15725 (Check_System_Restrictions_Used): New procedure
15726
15727 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
15728 since we only with this unit in the binder file if it is used elsewhere
15729 in the partition.
15730
15731 2007-06-06 Vincent Celier <celier@adacore.com>
15732
15733 * bindusg.adb: Add line for @<response file>
15734 Add lines for new switches -R and -Z
15735
15736 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
15737 hierarchy in the list of files of the closure when -R is used
15738 (Gnatbind): Accept arguments starting with '@' to indicate response
15739 files and take the arguments from the response files.
15740 If List_Closure is set, display the referenced files
15741
15742 2007-06-06 Javier Miranda <miranda@adacore.com>
15743 Robert Dewar <dewar@adacore.com>
15744 Ed Schonberg <schonberg@adacore.com>
15745
15746 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
15747 which the address-clause is applied to in-mode actuals (allowed by
15748 13.1(22)).
15749 (Apply_Discriminant_Check): Do not generate a check if the type is
15750 constrained by a current instance.
15751 (Activate_Division_Check): New procedure
15752 (Activate_Overflow_Check): New procedure
15753 (Activate_Range_Check): New procedure
15754 Call these new Activate procedures instead of setting flags directly
15755 (Apply_Array_Size_Check): Removed, no longer needed.
15756 Code clean up: remove obsolete code related to GCC 2.
15757 (Get_E_Length): Protect against bomb in case scope is standard
15758 (Selected_Range_Checks): If the node to be checked is a conversion to
15759 an unconstrained array type, and the expression is a slice, use the
15760 bounds of the slice to construct the required constraint checks.
15761 Improve NOT NULL error messages
15762 (Apply_Constraint_Check): If the context is a null-excluding access
15763 type, diagnose properly the literal null.
15764
15765 2007-06-06 Pascal Obry <obry@adacore.com>
15766
15767 * clean.adb (Clean_Archive): Use untouched casing for the archive name
15768 and the corresponding .deps file.
15769 (Clean_Interface_Copy_Directory): Use untouched casing for the library
15770 src directory. Minor code-clean-up. Use untouched casing for files
15771 read into the library src dir.
15772 (Clean_Library_Directory): Idem.
15773 (Parse_Cmd_Line): Accept new switch -aP
15774
15775 2007-06-06 Javier Miranda <miranda@adacore.com>
15776 Ed Schonberg <schonberg@adacore.com>
15777 Robert Dewar <dewar@adacore.com>
15778 Eric Botcazou <ebotcazou@adacore.com>
15779 Arnaud Charlet <charlet@adacore.com>
15780
15781 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
15782 applicable to types that have the With_Type flag set. Returns the
15783 non-limited view of the type, if available, otherwise the type itself.
15784 For class-wide types, there is no direct link in the tree, so we have
15785 to retrieve the class-wide type of the non-limited view of the Etype.
15786 New attributes Static_Initialization and Static_Elaboration_Desired.
15787 Remove the pragma Thread_Body, and the associated flag
15788 Is_Thread_Body in entities, and all related code.
15789 (Suppress_Value_Tracking_On_Call): New flag
15790 E_Exception has Esize and Alignment fields
15791 (Universal_Aliasing): New function.
15792 (Set_Universal_Aliasing): New procedure.
15793 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
15794 (Check_Nested_Access): New procedure.
15795 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
15796 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
15797 (Related_Interface): New attribute. Present in dispatch table pointer
15798 components of records. Set to point to the entity of the corresponding
15799 interface type.
15800 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
15801 (Original_Access_Type): Remove, not needed.
15802 (Root_Type): Handle properly subtypes of class-wide-types.
15803 Update comments.
15804
15805 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
15806 class-wide types visible through limited-with clauses.
15807 (Try_Primitive_Operation): When examining all primitive operations of a
15808 tagged type, do not consider subprograms labeled as hidden unless they
15809 belong to a private generic type with a tagged parent.
15810 (Try_Object_Operation): Extensive rewriting, to handle properly various
15811 overloading cases, when several ancestors may have class-wide operations
15812 that are possible candidates, and when the overloaded functions return
15813 array types and have defaulted parameters so that the call may be
15814 interpreted as an indexing.
15815 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
15816 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
15817 successive actuals before analyzing the call itself.
15818 (Try_Primitive_Operation): A primitive operation is compatible with the
15819 prefix if the prefix has a synchronized type and the type of the formal
15820 is its corresponding record, as can be the case when the primitive
15821 operation is declared outside of the body of the type.
15822 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
15823 perform homonym traversal, looking for class-wide operation matches
15824 (formerly done in statements of Try_Class_Wide_Operation). Matches on
15825 access parameters are now restricted to anonymous access types.
15826 (Mark_Allocator): An allocator with a discriminant association parent is
15827 a coextension.
15828 (Try_One_Prefix_Interpretation): If the type of the object is
15829 incomplete, as can be happen when it is a limited view obtained through
15830 a limited_with_clause, the selected component is not part of a prefixed
15831 call.
15832 (Complete_Object_Operation): Diagnose properly an object that is not
15833 aliased when the corresponding controlling formal is an access
15834 parameter.
15835 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
15836 ambiguous calls in prefixed notation, where two primitives differ only
15837 in that the controlling argument of one is an access parameter.
15838
15839 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
15840 whether a function that returns an unconstrained type can be inlined.
15841 (Process_Formals): Diagnose properly the illegal use of an incomplete
15842 type in the profile of an access_to_subprogram declaration.
15843 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
15844 operations are attached to the corresponding record.
15845 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
15846 When processing a primitive of a concurrent type which implements an
15847 interface change the type of all controlling formals to that of the
15848 corresponding record type.
15849 (Check_Synchronized_Overriding): Relax the conditional logic when trying
15850 to determine the tagged type to which a primitive belongs.
15851 (Check_Conventions): Capture condition to ignore a primitive operation
15852 (which is shared between the loop in Check_Conventions and the one in
15853 Check_Convention) in a new local function Skip_Check.
15854 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
15855 confusion with Check_Conventions' own Prim_Op local variable.
15856 (Create_Extra_Formals): Test for a tagged result type rather than a
15857 controlling result when determining whether to add a BIP_Alloc_Form
15858 formal and a BIP_Final_List formal to the function.
15859 (Check_Conformance); For parameters that are anonymous access types,
15860 subtype conformance requires that the not null and the constant
15861 indicators must match
15862 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
15863 to retrieve the appropriate type when processing a concurrent type
15864 declared within a generic. Minor comment reformatting. Change invocation
15865 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
15866 mitive.
15867 (Analyze_Subprogram_Body): If the return type of a function is an
15868 anonymous access to the limited view of a class-wide type, and the
15869 non-limited view of the type is available, update the type of the
15870 function so that code can be generated.
15871 (Process_Formals): In case of access-subtype itype whose designated
15872 type is also an itype (situation that happens now with access to
15873 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
15874 attribute to avoid backend problems.
15875 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
15876 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
15877 anonymous types' designated types are same before testing
15878 Subtypes_Statically_Match.
15879 (Create_Extra_Formals): Test for a named access parameter that is a
15880 controlling formal as an additional condition for adding an
15881 accessibility level formal. This can occur in the subp type created for
15882 dispatching calls in Expand_Dispatching_Call, and allows calling
15883 Create_Extra_Formals from that procedure rather than special-casing the
15884 extra formals there.
15885 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
15886 when the function has a controlling result.
15887 (Check_Returns): Add much more knowledge of the optimization of local
15888 raise statements to gotos, to retain proper warnings in this case.
15889 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
15890 nodes when looking for last statement.
15891
15892 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
15893 class-wide types visible through limited with clauses.
15894 (Add_One_Interp): If the operands are anonymous access types, the
15895 predefined operator on universal_access is immediately visibles
15896 (Find_Unique_Type): Handle anonymous access to subprogram types just as
15897 other anonymous access types.
15898 (Disambiguate): Take into account CIL convention.
15899 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
15900
15901 2007-06-06 Robert Dewar <dewar@adacore.com>
15902
15903 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
15904 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
15905 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
15906 Fix lower bound of tables.
15907 Add rep clauses.
15908
15909 * nlists.adb: Ditto.
15910 (Prev_Node, Next_Node): Change index type to Int so that it properly
15911 covers the range First_Node_Id - 1 up.
15912
15913 2007-06-06 Javier Miranda <miranda@adacore.com>
15914 Ed Schonberg <schonberg@adacore.com>
15915 Bob Duff <duff@adacore.com>
15916 Hristian Kirtchev <kirtchev@adacore.com>
15917
15918 * exp_aggr.ads, exp_aggr.adb:
15919 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
15920 in extension aggregates.
15921 (Flatten): Other conditions being met, an aggregate is static if the
15922 low bound given by component associations is different from the low
15923 bound of the base index type.
15924 (Packed_Array_Aggregate_Handled): If the component type is itself a
15925 packed array or record, the front-end must expand into assignments.
15926 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
15927 Init_Pr, instead of Ancestor_Is_Expression.
15928 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
15929 coextension chain root, either generate a list controller or use the
15930 already existing one.
15931 (Static_Array_Aggregate): New procedure to construct a positional
15932 aggregate that can be handled by the backend, when all bounds and
15933 components are compile-time known constants.
15934 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
15935 types covering interface types into assignments.
15936 (Replace_Type): move to Build_Record_Aggr_Code.
15937 (Expand_Record_Aggr_Code): if the target of the aggregate is an
15938 interface type, convert to the definite type of the aggregate itself,
15939 so that needed components are visible.
15940 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
15941 components and the context is an extended return statement do not
15942 create a transient block for it, to prevent premature finalization
15943 before the return is executed.
15944 (Gen_Assign): Do not generate a call to deep adjust routine if the
15945 component type is itself an array of controlled (sub)-components
15946 initialized with an inner aggregate.
15947 (Component_Check): New name for Static_Check. This name is now more
15948 appropriate, and documentation is added which was missing.
15949 (Component_Check): Add test for bit aligned component value
15950 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
15951 Tagged_Comps, name is more appropriate given added function below.
15952 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
15953
15954 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15955 Javier Miranda <miranda@adacore.com>
15956 Robert Dewar <dewar@adacore.com>
15957
15958 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
15959 Terminated: Add unchecked type conversion from System.Address to
15960 System.Tasking.Task_Id when calling the predefined primitive
15961 _disp_get_task_id.
15962 Disable new Ada 05 accessibility check for JVM.NET targets, which
15963 cannot be implemented in a practical way.
15964 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
15965 the sources always references the tag of the actual object. Therefore,
15966 if 'Tag is applied in the sources to class-wide interface objects we
15967 generate code that displaces "this" to reference the base of the object.
15968 (Expand_N_Attribute_Reference, case Size): Return specified size if
15969 known to front end.
15970 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
15971 has code that displaces the pointer of the object to manage interface
15972 types. However this code must not be executed when the prefix is a
15973 subprogram. This bug caused the wrong expansion of the internally
15974 generated assignment that fills the dispatch table when the primitive
15975 is a function returning a class-wide interface type.
15976 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
15977 Set_Attribute_Name for Name_Unaligned_Valid.
15978
15979 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15980 Gary Dismukes <dismukes@adacore.com>
15981
15982 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
15983 If the initialization is the equivalent aggregate of the initialization
15984 procedure of the type, do not remove it.
15985 (Expand_N_Attribute_Definition_Clause): Exclude access variables
15986 initialized to null from having their expression reset to empty and
15987 note this exception in the comment.
15988
15989 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15990 Robert Dewar <dewar@adacore.com>
15991 Ed Schonberg <schonberg@adacore.com>
15992 Gary Dismukes <dismukes@adacore.com>
15993
15994 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
15995 Add "with" and "use" clauses for Sem_Attr.
15996 (Expand_Current_Value): Do not replace occurences of attribute
15997 references where the prefix must be a simple name.
15998
15999 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
16000 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
16001 Attribute_Requires_Simple_Name_Prefix.
16002 (Name_Modifies_Prefix): Body of new function.
16003 (Requires_Simple_Name_Prefix): Body of new function.
16004 (Resolve_Attribute, case Access): Improve error message for case of
16005 mismatched conventions.
16006 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
16007 incomplete type.
16008 (Analyze_Attribute, case 'Access): If the type of the prefix is a
16009 constrained subtype for a nominal unconstrained type, use its base type
16010 to check for conformance with the context.
16011 (Resolve_Attribute): Remove test of the access type being associated
16012 with a return statement from condition for performing accessibility
16013 checks on access attributes, since this case is now captured by
16014 Is_Local_Anonymous_Access.
16015 (Analyze_Access_Attribute): Set Address_Taken on entity
16016 (Analyze_Attribute, case Address): Set Address_Taken on entity
16017 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
16018 validating an access attribute whose prefix is a current instance.
16019 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
16020 applied to dispatching operations, if freezing is required then we set
16021 the attribute Has_Delayed_Freeze in the prefix's entity.
16022 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
16023 current scope if access of local subprogram taken
16024 (Analyze_Access_Attribute): Check legality of self-reference even if the
16025 expression comes from source, as when a single component association in
16026 an aggregate has a box association.
16027 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
16028 the prefix if it is a protected operation and the attribute is
16029 Unrestricted_Access.
16030 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
16031 reference to the base type of the context, to force a constraint check
16032 when the context is an access subtype with an explicit constraint.
16033 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
16034 node is rewritten as an interface conversion. leave unanalyzed after
16035 resolution, to ensure that type checking against the context will take
16036 place.
16037
16038 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16039 Javier Miranda <miranda@adacore.com>
16040 Robert Dewar <dewar@adacore.com>
16041
16042 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
16043 wrapper when the full view of the controlling type of an inherited
16044 function that dispatches on result implements interfaces.
16045 (Expand_N_Object_Declaration): In cases where the type of the
16046 declaration is anonymous access, create finalization list for it.
16047 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
16048 if the object has no explicit initialization, to match description of
16049 functionality of pragam Persistent_BSS.
16050 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
16051 new function to build static aggregates, to replace initialization call
16052 when static initialization is desired.
16053 (Freeze_Type): Generate a list controller for an access type whenever
16054 its designated type has controlled anonymous access discriminants.
16055 (Build_Equivalent_Aggregate): New procedure to compute a static
16056 aggregate to be used as default initialization for composite types,
16057 instead of a generating a call to the initialization procedure for the
16058 type.
16059 (Build_Initialization_Call): When available, replace a call to the
16060 initialization procedure with a copy of the equivalent static aggregate
16061 for the type.
16062 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
16063 declarations for objects of a class-wide interface type, rather than
16064 just identifiers, to prevent visibility problems.
16065 (Expand_N_Object_Declaration): When expanding the declaration for an
16066 object of a class-wide interface type, preserve the homonym chain of
16067 the original entity before exchanging it with that of the generated
16068 renaming declaration.
16069 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
16070 active, because there is no way to handle the exception.
16071 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
16072 to do a minimum decoration of the Access_Disp_Table list.
16073 (Expand_Record_Controller): Avoid the addition of the controller between
16074 the component containing the tag of a secondary dispatch table and its
16075 adjacent component that stores the offset to the base of the object.
16076 This latter component is only generated when the parent type has
16077 discriminants ---documented in Add_Interface_Tag_Components).
16078 (Apply_Array_Size_Check): Removed, no longer needed.
16079 (Expand_N_Full_Type_Declaration): If the type has anonymous access
16080 components, create a Master_Entity for it only if it contains tasks.
16081 (Build_Init_Procedure): Suppress the tag assignment compiling under
16082 no run-time mode.
16083 (Freeze_Record_Type): Remove code associated with creation of dispatch
16084 table.
16085 (Init_Secondary_Tags): Update type of actuals when generating calls to
16086 Ada.Tags.Set_Offset_To_Top
16087 (Stream_Operation_OK): Disable use of streams compiling under no
16088 run-time mode
16089 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
16090 if Has_Init_Expression set.
16091 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
16092 Register_Primitive, which provides the same functionality.
16093 (Requires_Init_Proc): Return false in case of interface types.
16094 (Add_Secondary_Tables): Use the new attribute Related_Interface to
16095 cleanup the code.
16096 (Predefined_Primitive_Freeze): Do not assume that an internal entity
16097 is always associated with a predefined primitive because the internal
16098 entities associated with interface types are not predefined primitives.
16099 Therefore, the call to Is_Internal is replaced by a call to the
16100 function Is_Predefined_Dispatching_Operation.
16101 (Make_Eq_If): When generating the list of comparisons for the
16102 components of a given variant, omit the controller component that is
16103 present if the variant has controlled components.
16104
16105 2007-06-06 Javier Miranda <miranda@adacore.com>
16106 Hristian Kirtchev <kirtchev@adacore.com>
16107 Bob Duff <duff@adacore.com>
16108
16109 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
16110 handle the creation of finalization lists and calls for nested
16111 coextensions when the root of the chains is part of a return statement.
16112 (Inside_A_Return_Statement): New function inside Complete_Coextension_
16113 Finalization.
16114 (Expand_Record_Equality): Skip components that are interface types.
16115 (Displace_Allocator_Pointer): Add missing support for interface subtypes
16116 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
16117 with Rewrite_Coextension. Change the condition for detecting coextension
16118 root nodes.
16119 (Is_Local_Access_Discriminant): Removed.
16120 (Rewrite_Coextension): New routine which rewrites a static coextension
16121 as a temporary and uses its unrestricted access in the construction of
16122 the outer object.
16123 (Complete_Coextension_Finalization): New routine. Generate finalization
16124 attachment calls to all delayed coextensions.
16125 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
16126 the allocator is not a coextension itself and has delayed coextensions.
16127 If the current allocator is controlled, but also a coextension, delay
16128 the generation of the finalization attachment call.
16129 Rename local variable "Node" to "Nod" in order to avoid confusion with
16130 "Elists.Node".
16131 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
16132 limited types that are not inherently limited. Such an allocator is
16133 illegal, but is generated by the expander for a return statement, to
16134 copy the result onto the secondary stack. This is the only case where a
16135 limited object can be copied. Generate code to displace the pointer
16136 to the object if the qualified expression is a class-wide interface
16137 object. Such displacement was missing and hence the copy of the object
16138 was wrong.
16139 (Apply_Accessibility_Check): Handle allocated objects initialized in
16140 place.
16141 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
16142 and Expand_Allocator_Expression. Allocating class-wide interface objects
16143 this routine displaces the pointer to the allocated object to reference
16144 the component referencing the corresponding secondary dispatch table.
16145 Expand_Allocator_Expression): Add missing support to allocate class-wide
16146 interface objects initialized with a qualified expression.
16147 (Get_Allocator_Final_List): Test for an anonymous access type that is a
16148 function result type, and use the finalization list associated with the
16149 function scope in that case (such an anonymous type should not be
16150 treated like an access parameter's type).
16151
16152 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16153 Gary Dismukes <dismukes@adacore.com>
16154 Javier Miranda <miranda@adacore.com>
16155
16156 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
16157 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
16158 required exception handler.
16159 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
16160 properly the case of a function whose return type is a limited
16161 class-wide interface type. Modify the code of the accessibility
16162 check to handle class-wide interface objects. In this case we need to
16163 displace "this" to reference the primary dispatch table to get access
16164 to the TSD of the object (to evaluate its accessibility level).
16165 (Expand_N_Extended_Return_Statement): Test for a tagged result type
16166 rather than a controlling result as one of the conditions for
16167 generating tests of the implicit BIP_Alloc_Form formal. The
16168 initialization assignment is also handled according to whether the
16169 result is tagged instead of controlling.
16170 In the case where the init assignment is inserted in the "then" part of
16171 the allocation conditional, rewrite the target to be a dereference of
16172 the implicit BIP_Object_Access formal.
16173 If the returned value is unconstrained and created on the secondary
16174 stack, mark the enclosing block and function so that the secondary
16175 stack is not reclaimed on return.
16176 Treat returns from functions with controlling results similarly to
16177 returns from functions with unconstrained result subtypes.
16178 If the object returned is unconstrained, and an allocator must be
16179 created for it, analyze the allocator once the block for the extended
16180 return is installed, to ensure that finalizable components
16181 of the expression use the proper finalization list. Guard the call to
16182 Move_Final_List with a check that there is something to finalize.
16183 (Make_Tag_Ctrl_Assignment): Use "old" handling
16184 of controlled type assignment for virtual machines, since new code uses
16185 unsupported features (such as direct access to bytes in memory).
16186
16187 2007-06-06 Gary Dismukes <dismukes@adacore.com>
16188 Ed Schonberg <schonberg@adacore.com>
16189
16190 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
16191 accessibility actual, check for the case of an aliased object that has
16192 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
16193 we fall into processing for the attribute rather than the name of the
16194 object.
16195 (Expand_Inline_Call): If an actual is a literal, and the corresponding
16196 formal has its address taken in the body, create a temporary to capture
16197 value. If the return type is a limited interface, do not treat the
16198 return value as Controlled.
16199 (Is_In_Place_Function): If the return type is a limited interface,
16200 treat as returning in place. The actual returned object may not always
16201 be limited, but the caller has to assume that it is returned in place.
16202 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
16203 context of an allocator, use the correct finalization chain (that is,
16204 the chain belonging to the access type, rather than the chain belonging
16205 to the current scope).
16206 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
16207 result type rather than a controlling result as a precondition for
16208 adding an allocation form actual to a build-in-place call.
16209 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
16210 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
16211 primitive in the dispatch tables. This work is now done by Make_DT when
16212 the type is frozen.
16213 (Register_Predefined_DT_Entry): Removed.
16214 (Add_Return): If end label is not present, use sloc of last statement
16215 for generated return statement in procedure, for better gdb behavior
16216 on expanded code.
16217 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
16218 object address nodes to ensure proper processing by routines like
16219 Insert_After*.
16220 (Expand_Call): Fix generation of validity check for parameter
16221 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
16222 the allocation form parameter if the result subtype is constrained,
16223 except when the function has a controlling result.
16224 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
16225 rather than Is_Controlled and Has_Controlled_Component, since we want to
16226 include class-wide result types in this treatment. Also test for a
16227 controlling result, since that also requires passing a finalization
16228 list.
16229 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
16230 even when the result subtype is constrained, to handle calls involving
16231 controlling results.
16232 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
16233 is now called even when the result subtype is constrained, to handle
16234 calls involving controlling results.
16235 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
16236 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
16237 now performs the test).
16238 (Make_Build_In_Place_Call_In_Object_Declaration):
16239 Add_Alloc_Form_Actual_* is now called even when the result subtype is
16240 constrained, to handle calls involving controlling results.
16241 (Add_Return): Accomodate rewritten pattern from local raise to goto
16242 transformation, so that we still recognize an transfer statement
16243 and do the right thing here in that case.
16244 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
16245 and end of subprogram code.
16246 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
16247 support for primitives that are functions (without formals) with a
16248 controlling result.
16249 (Inherited_From_Formal): If the actual subtype has not generic parent
16250 type, it is not an actual for a formal derived type, and there is no
16251 operation to inherit from the formal.
16252
16253 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16254 Thomas Quinot <quinot@adacore.com>
16255
16256 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
16257 inserted cleanup code appropriately for GDB use.
16258 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
16259 exception handler for Deep_Adjust or Deep_Finalize.
16260 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
16261 Raise_From_Controlled_Operation is available, use a call to that
16262 subprogram instead of a plain "raise Program_Error" node to raise
16263 Program_Error if an exception is propagated from an Adjust or Finalize
16264 operation.
16265 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
16266 appears in the optional statement list of a triggering alternative, the
16267 scope actions can be inserted directly there, and not in the list that
16268 includes the asynchronous select itself.
16269
16270 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16271 Robert Dewar <dewar@adacore.com>
16272 Hristian Kirtchev <kirtchev@adacore.com>
16273
16274 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
16275 generated exception handler appropriately when debugging generated code.
16276 Deal properly with No_Exception_Propagation restriction mode.
16277 (Expand_N_Abort_Statement): Add an unchecked type conversion from
16278 System.Address to System.Tasking.Task_Id when processing the result of
16279 the predefined primitive _disp_get_task_id.
16280 (Expand_N_Asynchronous_Select): Clarify comment.
16281 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
16282 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
16283 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
16284 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
16285 privals and for generated call to Complete_Entry_Body, for better gdb
16286 behavior.
16287 (Copy_Result_Type): Utility to construct a parameter and result profile
16288 for protected functions whose return type is an anonymous access to
16289 subprogram.
16290 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
16291 call the above.
16292 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
16293 point when the local-raise-to-goto transformation has taken place.
16294
16295 2007-06-06 Javier Miranda <miranda@adacore.com>
16296 Nicolas Setton <setton@adacore.com>
16297
16298 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
16299 functionality when the backend is generating code.
16300 Otherwise any serious error
16301 reported by the backend calling the frontend routine Error_Msg
16302 changes the Compilation_Mode to Check_Semantics, disables the
16303 functionality of this routine and causes the generation of
16304 spureous additional errors.
16305
16306 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
16307 debugging information now generated by the compiler for fat-pointer
16308 types.
16309 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
16310 DWARF2/3.
16311 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
16312
16313 2007-06-06 Thomas Quinot <quinot@adacore.com>
16314
16315 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
16316 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16317 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
16318 For a remote call to a function with a classwide return type, apply an
16319 E.4(18) check to the returned value.
16320 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
16321 stream attributes of the designated type of an RACW, as they are not
16322 dispatching primitive operations.
16323
16324 2007-06-06 Geert Bosch <bosch@adacore.com>
16325
16326 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
16327 negative literal
16328 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
16329 positive
16330 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
16331 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
16332 positive
16333 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
16334
16335 2007-06-06 Javier Miranda <miranda@adacore.com>
16336
16337 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
16338 attribute compiling package Ada.Tags under No_Run_Time_Mode.
16339
16340 2007-06-06 Javier Miranda <miranda@adacore.com>
16341
16342 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
16343 deallocation of class-wide interface objects.
16344 (Expand_Dispatching_Constructor_Call): Take into account that if the
16345 result of the dispatching constructor is an interface type, the
16346 function returns a class-wide interface type; otherwise the returned
16347 object would be actual. The frontend previously accepted returning
16348 interface types because Expand_Interface_Actuals silently performed
16349 the management of the returned type "as if" it were a class-wide
16350 interface type.
16351 (Expand_Dispatching_Constructor_Call): Replace call to
16352 Make_DT_Access_Action by direct call to Make_Function_Call.
16353
16354 2007-06-06 Robert Dewar <dewar@adacore.com>
16355 Ed Schonberg <schonberg@adacore.com>
16356
16357 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
16358 compute masking constant, since we now set Esize properly to the
16359 underlying size.
16360 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
16361 to match the alignment.
16362 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
16363 packed arrays of 8 bits or less.
16364
16365 * freeze.adb (Freeze_Entity): When freezing the formals of a
16366 subprogram, freeze the designated type of a parameter of an access type
16367 only if it is an access parameter.
16368 Increase size of C convention enumeration object
16369 (Freeze_Entity, array type case): Make sure Esize value is properly
16370 adjusted for the alignment if it is known.
16371 (Freeze_Entity, array type case): When checking bit packed arrays for
16372 the size being incorrect, check RM_Size, not Esize.
16373 (Freeze_Record_Type): Check for bad discriminated record convention
16374 (In_Exp_Body): Return true if the body is generated for a subprogram
16375 renaming, either an attribute renaming or a renaming as body.
16376 (Check_Itype): If the designated type of an anonymous access component
16377 is a non-protected subprogram type, indicate that it is frozen, to
16378 prevent out-of-scope freeze node at some subsequent call.
16379 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
16380 only if the subprogram is neither imported nor exported, as well as the
16381 NCA descriptor class if the subprogram is exported.
16382
16383 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16384 Arnaud Charlet <charlet@adacore.com>
16385 Robert Dewar <dewar@adacore.com>
16386 Gary Dismukes <dismukes@adacore.com>
16387
16388 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
16389 default initialization on an imported object, when there is no
16390 initialization call generated for it.
16391 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
16392 restriction
16393
16394 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
16395 Static_Elaboration_Desired.
16396 Remove pragma Thread_Body.
16397 Implement a new pragma No_Body
16398 Removes the Explicit_Overriding pragma
16399 Remove Optional_Overriding pragma
16400 (Prag): Deal with Universal_Aliasing.
16401 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
16402 Pragma_CIL_Constructor): New names.
16403
16404 * sem_cat.adb (Validate_Object_Declaration): An initialization that
16405 uses the equivalent aggregate of a type must be treated as an implicit
16406 initialization.
16407 (Get_Categorization): Check a unit for pragma Preelaborate only if it
16408 has none of the other categories.
16409 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
16410 to apply Import to an object renaming declaration.
16411
16412 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
16413 from a C++ class should be declared as limited and that it will be
16414 considererd limited.
16415 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
16416 should be declared as limited and that it will be considererd limited.
16417 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
16418 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
16419 (Analyze_Pragma): Deal with Universal_Aliasing.
16420 (Sig_Flags): Likewise.
16421 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
16422 (Overflow_Checks_Unsuppressed): New flag.
16423 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16424 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
16425 case of JVM or .NET targets, and compiling user code.
16426 Add debugging convenience routine rv
16427
16428 2007-06-06 Robert Dewar <dewar@adacore.com>
16429
16430 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
16431 are interface type.
16432 (Build_Elementary_Input_Call): For floating-point use right type in the
16433 absence of strange size or stream size clauses.
16434 (Build_Elementary_Write_Call): Same fix
16435 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
16436 set to value that does not match base type size.
16437
16438 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16439
16440 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
16441 object of a limited type can be initialized with a call to a function
16442 that returns in place. If the limited type has unknown discriminants,
16443 and the underlying type is a constrained composite type, build an actual
16444 subtype from the function call, as is done for private types.
16445 (Side_Effect_Free): An expression that is the renaming of an object or
16446 whose prefix is the renaming of a object, is not side-effect free
16447 because it may be assigned through the renaming and its value must be
16448 captured in a temporary.
16449 (Has_Controlled_Coextensions): New routine.
16450 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
16451 as is done for other limited types.
16452 (Non_Limited_Designated_Type): new predicate.
16453 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
16454 objects.
16455 Remove all handling of with_type clauses.
16456
16457 * par-ch10.adb: Remove all handling of with_type clauses.
16458
16459 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
16460 checksum if the main source could not be parsed.
16461 (Loat_Unit): When processing a child unit, determine properly whether
16462 the parent unit is a renaming when the parent is itself a child unit.
16463 Remove handling of with_type clauses.
16464
16465 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
16466 (Set_Is_Static_Coextension): New procedure.
16467 (Has_Local_Raise): New function
16468 (Set_Has_Local_Raise): New procedure
16469 (Renaming_Exception): New field
16470 (Has_Init_Expression): New flag
16471 (Delay_Finalize_Attach): Remove because flag is obsolete.
16472 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
16473 Remove all handling of with_type clauses.
16474 (Exception_Junk): Can now be set in N_Block_Statement
16475
16476 2007-06-06 Vincent Celier <celier@adacore.com>
16477 Robert Dewar <dewar@adacore.com>
16478
16479 * frontend.adb (Frontend): Return immediately if the main source could
16480 not be parsed, because of preprocessing errors.
16481
16482 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
16483 (Gnat1drv): Exit with errors if the main source could not be parsed,
16484 because of preprocessing errors.
16485 (Check_Rep_Info): New procedure
16486
16487 2007-06-06 Robert Dewar <dewar@adacore.com>
16488
16489 * g-hesorg.ads, g-heasor.ads,
16490 g-busorg.ads, g-bubsor.ads: Update documentation
16491 GNAT.Heap/Bubble_Sort_G is now pure
16492
16493 2007-06-06 Robert Dewar <dewar@adacore.com>
16494
16495 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
16496
16497 2007-06-06 Robert Dewar <dewar@adacore.com>
16498 Ed Schonberg <schonberg@adacore.com>
16499
16500 * g-comlin.ads, g-comlin.adb:
16501 Add new warning for renaming of function return objects
16502
16503 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
16504 (Tree_Read): Use size of object instead of type'object_size, since the
16505 latter is incorrect for packed array types.
16506 (Tree_Write): Same fix
16507
16508 * opt.ads: Add new warning for renaming of function return objects
16509 (Generating_Code): New boolean variable used to indicate that the
16510 frontend as finished its work and has called the backend to process
16511 the tree and generate the object file.
16512 (GCC_Version): Is now private
16513 (Static_Dispatch_Tables): New constant declaration.
16514 (Overflow_Checks_Unsuppressed): New flag.
16515 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16516 (List_Closure): New flag for gnatbind (-R)
16517 Zero_Formatting: New flag for gnatbind (-Z)
16518 (Special_Exception_Package_Used): New flag.
16519 (Warn_On_Unrepped_Components): New flag.
16520
16521 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
16522 unit is a compilation unit, rather than relying on its scope, so that
16523 Standard can be renamed.
16524 (Analyze_Object_Renaming): Add new warning for renaming of function
16525 return objects.
16526 Also reject attempt to rename function return object in Ada 83 mode.
16527 (Attribute_Renaming): In case of tagged types, add the body of the
16528 generated function to the freezing actions of the type.
16529 (Find_Type): A protected type is visible right after the reserved word
16530 "is" is encountered in its type declaration. Set the entity and type
16531 rather than emitting an error message.
16532 (New_Scope): Properly propagate Discard_Names to inner scopes
16533 (Check_Nested_Access): New procedure.
16534 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
16535 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16536
16537 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
16538 Add new warning for renaming of function return objects
16539 (Check_References): Suppress warnings for objects whose type or
16540 base type has Warnings suppressed.
16541 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
16542 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
16543
16544 2007-06-06 Vincent Celier <celier@adacore.com>
16545 Emmanuel Briot <briot@adacore.com>
16546 Olivier Hainque <hainque@adacore.com>
16547
16548 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
16549 absolute value of Header.Block_Size when displaying the freed physical
16550 memory in traces.
16551 (Allocate): Compute Storage_Address using Integer_Address, not
16552 Storage_Offset, because the range of Storage_Offset may not be large
16553 enough.
16554 (Configure): New parameter Low_Level_Traces
16555 (Allocate, Deallocation, Free_Physically): Added low-level traces
16556 (Configure): new parameter Errors_To_Stdout.
16557 (Output_File): new subprogram
16558 (Deallocate, Dereference): Send error messages to the proper stream
16559 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
16560 documented. Previous code would send it to the current output file
16561 defined in GNAT.IO, which might not be stdout
16562 (Is_Valid): Adjust comment to mention that a positive reply means that
16563 Header_Of may be used to retrieve the allocation header associated with
16564 the subprogram Storage address argument. Return False early if this
16565 address argument is misaligned.
16566
16567 2007-06-06 Vincent Celier <celier@adacore.com>
16568
16569 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
16570 switch -P
16571 (ASIS_Main): New global variable
16572 (Get_Closure): New procedure
16573 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
16574 check, metric or pretty. Call Get_Closure in this case.
16575 (Check_Files): For GNAT LIST, check all sources of all projects when
16576 All_Projects is True.
16577 (GNATCmd): Accept -U for GNAT LIST
16578
16579 2007-06-06 Vincent Celier <celier@adacore.com>
16580
16581 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
16582 has been specified
16583 Correct error message when invocation of the linker fails
16584 Add explicit size clause for the C imported variables
16585 Object_List_File_Supported and Using_GNU_Linker to emphasize that
16586 we expect char size.
16587 Read target parameters earlier, since this is needed to set
16588 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
16589 targets.
16590
16591 2007-06-06 Vincent Celier <celier@adacore.com>
16592
16593 * gnatls.adb:
16594 Add 3 spaces before the default project directory when displaying
16595 the project search path.
16596 Add new command line switch '-l' to display license information.
16597
16598 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
16599
16600 * gmem.c: Add support for timestamps on memory operations.
16601
16602 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
16603 operations (not used currently, just foundation for future
16604 enhancements). Add possibility to perform full dump of gmem.out file.
16605 (Print_Back_Traces): Declare accesses to root arrays constants since
16606 they aren't modified.
16607 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
16608
16609 2007-06-06 Vincent Celier <celier@adacore.com>
16610
16611 * gnatsym.adb: Update Copyright notice
16612 (Parse_Cmd_Line): Accept new switch -D
16613 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
16614 file.
16615
16616 * prj.ads (Policy): New policy Direct
16617 (Yes_No_Unknown): New enumeration type
16618 (Project_Data): New component Libgnarl_Needed
16619
16620 * prj-nmsc.adb (Check_For_Source): When recording a source file make
16621 use the untouched pathname casing.
16622 (Get_Directories): Ensure that the Display_Exec_Directory is using the
16623 proper casing on non case-sensitive platforms like Windows.
16624 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
16625 on all platforms, as it is not possible to know which one is allowed
16626 before processing the project files.
16627 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
16628 specified when symbol policy is Direct. Check that when there is a
16629 symbol file defined (either by default or with attribute
16630 Library_Symbol_File) it is not the same as the reference symbol file.
16631 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
16632 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
16633 extending projects.
16634 (Record_Ada_Source): Record a source that has been locally removed in an
16635 imported project.
16636
16637 * symbols.ads (Policy): New policy Direct
16638
16639 * symbols-vms.adb (Initialize): Take new policy Direct in case
16640 statement
16641
16642 2007-06-06 Vincent Celier <celier@adacore.com>
16643
16644 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
16645 Correct obvious bug (return Dir; instead of return Directory;).
16646 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
16647
16648 2007-06-06 Thomas Quinot <quinot@adacore.com>
16649
16650 * g-pehage.adb (Produce): Open output files in Binary mode, so that
16651 they have UNIX line endings (LF only) even on Windows, and thus pass
16652 all GNAT style checks.
16653
16654 2007-06-06 Emmanuel Briot <briot@adacore.com>
16655
16656 * g-regpat.adb (Quote): Fix improper quoting of '.'
16657
16658 2007-06-06 Thomas Quinot <quinot@adacore.com>
16659
16660 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
16661 default, set False on a per-runtime basis.
16662 (Need_Netdb_Buffer): New constant.
16663
16664 * g-socket.ads, g-socket.adb: Import new package
16665 GNAT.Sockets.Thin.Task_Safe_NetDB.
16666 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
16667 binding to obtain proper message.
16668 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
16669 Replace various occurrences of Arry (Arry'First)'Address with the
16670 equivalent Arry'Address (GNAT always follows implementation advice from
16671 13.3(14)).
16672 (Get_Host_By_Address, Get_Host_By_Name,
16673 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
16674 instead, rely on platform-specific task safe netdb operations provided
16675 by g-socthi.
16676
16677 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
16678 parameter Process_Blocking_IO.
16679 (Host_Error_Messages): Add stub body.
16680 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16681 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
16682 Safe_Getservbyport): Move functions into new child package
16683 Task_Safe_NetDB.
16684 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
16685 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
16686 (In_Addr): Add alignment clause.
16687
16688 2007-06-06 Robert Dewar <dewar@adacore.com>
16689
16690 * g-trasym.ads, g-traceb.ads: Update list of supported targets
16691 Add note about symbolic traceback
16692
16693 2007-06-06 Pascal Obry <obry@adacore.com>
16694
16695 * hostparm.ads (Normalized_CWD): Use the host directory separator
16696 instead of the hardcoded forward slash which is not the proper
16697 character on Windows for example.
16698 (Java_VM): Removed.
16699
16700 2007-06-06 Vincent Celier <celier@adacore.com>
16701 Arnaud Charlet <charlet@adacore.com>
16702
16703 * a-clrefi.adb, a-clrefi.ads: New files
16704
16705 * impunit.adb: Add s-os_lib in the list of user visible units.
16706 (Non_Imp_File_Names_95): Add a-clrefi to this list
16707 Remove obsolete run-time entries.
16708 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
16709 "a-exetim" -- Ada.Execution_Time
16710 "a-extiti" -- Ada.Execution_Time.Timers
16711
16712 * mlib-prj.ads, mlib-prj.adb
16713 (Build_Library): Use untouched object dir and library dir. At the
16714 same time makes sure that the checks are done using the canonical
16715 form. Removes hard-coded directory separator and use the proper host
16716 one instead.
16717 (Process_Project): Do not look in object directory to check if libgnarl
16718 is needed for a library, if there is no object directory.
16719 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
16720 linking.
16721 (Build_Library): When invoking gnatbind, use a response file if the
16722 total size of the arguments is too large.
16723
16724 * Makefile.rtl: (g-sttsne): New object file.
16725 Add entry for a-clrefi, s-utf_32, System.Exceptions
16726
16727 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
16728 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
16729 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
16730 Change g-string to s-string, g-os_lib to s-os_lib
16731 Change all g-utf_32 references to s-utf_32
16732
16733 2007-06-06 Tristan Gingold <gingold@adacore.com>
16734 Olivier Hainque <hainque@adacore.com>
16735
16736 * init.c: Do not adjust IP of an imported VMS exception of ia64.
16737 LIB$STOP is called to raise an exception and the IP of the exception
16738 is the instruction right after the call.
16739 (__gnat_adjust_context_for_raise, AIX): Implement.
16740 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
16741 adjust_context_for_raise before Raise_From_Signal_Hanler.
16742 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
16743 siginfo is passed to the handler, necessary to let the zcx propagation
16744 engine unwind past it.
16745
16746 2007-06-06 Olivier Hainque <hainque@adacore.com>
16747
16748 * initialize.c (__gnat_initialize for vxworks): Update documentation
16749 on the ZCX support, using different sets of crtstuff objects than with
16750 GCC 3.4.
16751
16752 2007-06-06 Robert Dewar <dewar@adacore.com>
16753
16754 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
16755 spec from body
16756 (Layout_Type): Fix recomputation of size from alignment.
16757
16758 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16759 Javier Miranda <miranda@adacore.com>
16760
16761 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
16762 association in an instance.
16763 (Copy_Generic_Node): If the node is a string literal, no need to copy
16764 its descendants.
16765 (Is_Generic_Formal): For a formal subprogram, the declaration is the
16766 grandparent of the entity.
16767 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
16768 to simplify handling of formal interfaces that derive from other formal
16769 interfaces.
16770 (Instantiate_Subprogram_Body): The defining unit name of the body of
16771 the instance should be a defining identifier.
16772 (Install_Formal_Packages): make global to the package, for use in
16773 instantiations of child units.
16774 (Analyze_Package_Instantiation): Do not attempt to set information on an
16775 enclosing master of an entry when expansion is disabled.
16776 (Instantiate_Type): If the actual is a tagged synchronized type and the
16777 generic ancestor is an interface, create a generic actual for the
16778 corresponding record.
16779 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
16780 declaration, to ensure that the interface list is processed correctly.
16781 (Inline_Instance_Body): If enclosing scope is an instance body, remove
16782 its entities from visibiility as well.
16783 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
16784 given with a named association, analyze the expression only, not the
16785 discriminant association itself.
16786 (Reset_Entity): If the analysis of a selected component is transformed
16787 into an expanded name in the prefix of a call with parameters, do not
16788 transform the original node into an expanded name, to prevent visibility
16789 errors in the case of nested generics.
16790 (Check_Private_View): For an array type, check whether the index types
16791 may need exchanging.
16792
16793 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16794 Vincent Celier <celier@adacore.com>
16795
16796 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
16797 since both are separated.
16798 Add support for imported CIL packages.
16799 Add further special handling of "value_type" for CIL.
16800 Add special handling of pragma Import for CIL.
16801
16802 * make.ads, make.adb: When switch -eS is used, direct all outputs to
16803 standard output instead of standard error, except errors.
16804 (Absolute_Path): Use untouched casing for the parent directory.
16805 (Add_Library_Search_Dir): Use the untouched directory name.
16806 (Add_Source_Search_Dir): Idem.
16807 (Change_To_Object_Directory): Update output to use proper casing.
16808 (Create_Binder_Mapping_File): Use the untouched filename to set
16809 ALI_Name.
16810 (Gnatmake): Use untouched library and executable directory names.
16811 (Insert_Project_Sources): Use untouched filename for spec and body.
16812 (Is_In_Object_Directory): Use untouched object directory.
16813 (Mark_Directory): Idem.
16814 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
16815 contains the non-canonical filename in all cases.
16816 (Change_To_Object_Directory): In verbose mode, display the name of the
16817 object directory we're changing to.
16818 (Compile_Sources): Make sure, when a project file is used, to compile
16819 the body of the unit, when there is one, even when only the spec is
16820 recorded in an ALI file.
16821 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
16822 spec to the body.
16823 (Report_Compilation_Failed): New procedure
16824 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
16825 procedures moved from the spec to the body.
16826 (Extract_Failure): Removed, not used
16827 Replace explicit raises of exception Bind_Failed and Link_Failed with
16828 calls to Make_Failed with the proper message.
16829 Replace explicit raises of exception Compilation_Failed with calls to
16830 procedure Report_Compilation_Failed.
16831 (Initialize): Create mapping files unconditionally when using project
16832 files.
16833
16834 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
16835 Pragma_CIL_Constructor): New names.
16836
16837 * targparm.ads, targparm.adb
16838 (Compiler_System_Version): Removed, no longer used.
16839 (Get_Target_Parameters): Relax checks on system.ads validity. Add
16840 handling of two new system flags: JVM and CLI.
16841
16842 2007-06-06 Jose Ruiz <ruiz@adacore.com>
16843 Arnaud Charlet <charlet@adacore.com>
16844
16845 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
16846 time, use the default s-interr body that provides interrupt support
16847 based on signals.
16848 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
16849 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
16850 g-soccon.ads, and s-taprop.adb for the marte run time.
16851 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
16852 timers are supported on marte.
16853 (EH_MECHANISM for marte): Do not use ZCX.
16854 (THREADSLIB for marte): Use -lmarte.
16855 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
16856 Add mlib-tgt-specific.o to gnatmake objects
16857 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
16858 longer of MLib.Tgt.
16859 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
16860 6, either kernel or rtp, use a specialized version of s-osinte.ads.
16861
16862 2007-06-06 Pascal Obry <obry@adacore.com>
16863
16864 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
16865
16866 2007-06-06 Vincent Celier <celier@adacore.com>
16867
16868 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
16869 separator, use instead the proper host directory separator.
16870 (Copy_ALI_Files): Make sure that an already existing ALI file in the
16871 ALI copy dir is writable, before doing the copy.
16872
16873 * mlib-utl.ads, mlib-utl.adb:
16874 (Gcc): If length of command line is too long, put the list of object
16875 files in a response file, if this is supported by the platform.
16876 (Ar): If invocation of the archive builder is allowed to be done in
16877 chunks and building it in one shot would go above an OS dependent
16878 limit on the number of characters on the command line, build the archive
16879 in chunks.
16880
16881 2007-06-06 Vincent Celier <celier@adacore.com>
16882
16883 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
16884 of specified object file is not equal to base name of source.
16885
16886 2007-06-06 Javier Miranda <miranda@adacore.com>
16887 Hristian Kirtchev <kirtchev@adacore.com>
16888 Ed Schonberg <schonberg@adacore.com>
16889
16890 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
16891 the full type declaration.
16892 (Analyze_Component_Declaration): Add local variable E to capture the
16893 initialization expression of the declaration. Replace the occurences of
16894 Expression (N) with E.
16895 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
16896 limited interface object with a function call.
16897 (Array_Type_Declaration): If the declaration lacks subtype marks for
16898 indices, create a simple index list to prevent cascaded errors.
16899 (Is_Null_Extension): Ignore internal components created for secondary
16900 tags when checking whether a record extension is a null extension.
16901 (Check_Abstract_Interfaces): Add missing support for interface subtypes
16902 and generic formals.
16903 (Derived_Type_Declaration): Add missing support for interface subtypes
16904 and generic formals.
16905 (Analyze_Object_Declaration): If an initialization expression is
16906 present, traverse its subtree and mark all allocators as static
16907 coextensions.
16908 (Add_Interface_Tag_Component): When looking for components that may be
16909 secondary tags, ignore pragmas that can appear within a record
16910 declaration.
16911 (Check_Abstract_Overriding): an inherited function that dispatches on
16912 result does not need to be overriden if the controlling type is a null
16913 extension.
16914 (Mentions_T): Handle properly a 'class attribute in an anonymous access
16915 component declaration, when the prefix is an expanded name.
16916 (Inherit_Component): If the derivation is for a private extension,
16917 inherited components remain visible and their ekind should not be set
16918 to Void.
16919 (Find_Type_Of_Object): In the case of an access definition, always set
16920 Is_Local_Anonymous_Access. We were previously not marking the anonymous
16921 access type of a return object as a local anonymous type.
16922 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
16923 range with character literal bounds.
16924 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
16925 (Access_Subprogram_Declaration): Indicate that the type declaration
16926 depends on an incomplete type only if the incomplete type is declared
16927 in an open scope.
16928 (Analyze_Subtype_Declaration): Handle properly subtypes of
16929 synchronized types that are tagged, and that may appear as generic
16930 actuals.
16931 (Access_Subprogram_Declaration): An anonymous access to subprogram can
16932 appear as an access discriminant in a private type declaration.
16933 (Add_Interface_Tag_Components): Complete decoration of the component
16934 containing the tag of a secondary dispatch table and the component
16935 containing the offset to the base of the object (this latter component
16936 is only generated when the parent type has discriminants --as documented
16937 in this routine).
16938 (Inherit_Components): Use the new decoration of the tag components to
16939 improve the condition that avoids inheriting the components associated
16940 with secondary tags of the parent.
16941 (Build_Discriminanted_Subtype): Indicate to the backend that the
16942 size of record types associated with dispatch tables is known at
16943 compile time.
16944 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
16945 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
16946 to include task, protected, and synchronized interfaces as limited
16947 interfaces.
16948 (Process_Discriminants): Remove the setting of
16949 Is_Local_Anonymous_Access on the type of (anonymous) access
16950 discriminants of nonlimited types.
16951 (Analyze_Interface_Type_Declaration): Complete the decoration of the
16952 class-wide entity it is is already present. This situation occurs if
16953 the limited-view has been previously built.
16954 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
16955 field.
16956 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
16957 Related_Interface.
16958
16959 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16960
16961 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
16962 of the type that specify the position of interface tags when the type
16963 inherits discriminated array components from the parent type.
16964 If a component is initialized with a box, check for the presence of a
16965 default expression in its declaration before using its default
16966 initialization procedure.
16967 (Resolve_Record_Aggregate): If a component is box-initialized, and the
16968 component type has a discriminants, create a partial aggregate for it
16969 by copying the discriminants of the component subtype.
16970 Reject attempt to initialize a discriminant with a box.
16971 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
16972 associated with dispatch tables is known at compile time.
16973 (Get_Value): If an association in a record aggregate has a box
16974 association, and the corresponding record component has a default
16975 expression, always copy the default expression, even when the
16976 association has a single choice, in order to create a proper
16977 association for the expanded aggregate.
16978
16979 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16980 Robert Dewar <dewar@adacore.com>
16981
16982 * par-ch12.adb (P_Generic_Associations): The source position of an
16983 Others association is that of the others keyword, not that of the token
16984 that follows the box.
16985 (P_Formal_Type_Definition): Handle formal access types that carry a
16986 not null indicator.
16987
16988 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
16989 multiple identifier are present, save Scan_State before scanning the
16990 colon, to ensure that separate trees are constructed for each
16991 declaration.
16992 (P_Identifier_Declarations): For object declaration, set new flag
16993 Has_Init_Expression if initialization expression present.
16994 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
16995 Improve NOT NULL error messages
16996
16997 2007-06-06 Robert Dewar <dewar@adacore.com>
16998
16999 * par-ch4.adb: (P_Name): Recover from literal used as name
17000
17001 2007-06-06 Vincent Celier <celier@adacore.com>
17002
17003 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
17004 defaulted to False.
17005 In the "not" case, recursive call with Complemented set to True.
17006 Do not allow "or" or "and" operators when Complemented is True.
17007
17008 2007-06-06 Vincent Celier <celier@adacore.com>
17009
17010 * prj.adb (Project_Empty): Gives default value for new component
17011 Libgnarl_Needed
17012
17013 * prj-attr.ads: Minor reformatting
17014
17015 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
17016 directory using the untouched casing.
17017 (For_All_Source_Dirs): Idem.
17018
17019 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
17020 directories specified with switches -aP.
17021 (Add_Search_Project_Directory): New procedure
17022 (Initialize_Project_Path): Put the directories in table
17023 Search_Directories in the project search path.
17024 (Initialize_Project_Path): For VMS, transform into canonical form the
17025 project path.
17026
17027 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17028
17029 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
17030 true if configurable run-time or No_Run_Time is set.
17031 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
17032 processing an unit which is not the one being compiled.
17033
17034 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17035
17036 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
17037 Replace UC by Ada.UC
17038
17039 * s-bitops.adb: Get rid of System.Pure_Exceptions.
17040 Replace UC by Ada.UC
17041
17042 2007-06-06 Robert Dewar <dewar@adacore.com>
17043
17044 * scng.adb: (Check_End_Of_Line): Deal with very long lines
17045
17046 2007-06-06 Robert Dewar <dewar@adacore.com>
17047
17048 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
17049 Remove no longer used nodes.
17050
17051 2007-06-06 Javier Miranda <miranda@adacore.com>
17052 Ed Schonberg <schonberg@adacore.com>
17053 Robert Dewar <dewar@adacore.com>
17054
17055 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
17056 on obsolescent withed unit in case of limited-withed units.
17057 (Analyze_Compilation_Unit): Add guard to code that removed an
17058 instantiation from visibility, to prevent compiler aborts when
17059 instantiation is abandoned early on.
17060 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
17061 current unit being analyzed, and Distinguish local incomplete types
17062 from limited views of types declared elsewhere.
17063 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
17064 to state that the class-wide entity is shared by the limited-view
17065 and the full-view.
17066 (Analyze_With_Clause): Improve placement of flag for case of
17067 unimplemented unit.
17068 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
17069 manner similar to GNAT.Current_Exception. This is a violation of
17070 restriction (No_Exception_Propagation), and also inhibits the
17071 optimization of local raise to goto.
17072 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
17073 and if so set Most_Recent_Exception_Used flag in Opt, and also check
17074 for violation of restriction No_Exception_Propagation.
17075
17076 2007-06-06 Javier Miranda <miranda@adacore.com>
17077 Hristian Kirtchev <kirtchev@adacore.com>
17078 Gary Dismukes <dismukes@adacore.com>
17079
17080 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
17081 use of entity Exception_Occurrence if it is not available in the
17082 target run-time.
17083
17084 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
17085 concurrent types are declared within an Ada 2005 generic, build their
17086 corresponding record types since they are needed for overriding-related
17087 semantic checks.
17088 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
17089 protected type does not implement a task interface or a nonlimited
17090 interface.
17091 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
17092 type does not implement a protected interface or a nonlimited interface.
17093 (Single_Task_Declaration, Single_Protected_Declaration): use original
17094 entity for variable declaration, to ensure that debugging information
17095 is correcty generated.
17096 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
17097 routines if the expander is not active.
17098 (Analyze_Task_Body): Mark all handlers to stop optimization of local
17099 raise, since special things happen for task exception handlers.
17100
17101 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
17102 concurrent types declared within a generic.
17103 (Check_Dispatching_Operation): Do not emit warning about late interface
17104 operations in the context of an instance.
17105 (Check_Dispatching_Call): Remove restriction against calling a
17106 dispatching operation with a limited controlling result.
17107 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
17108 Register_Interface_DT_Entry by calls to Register_Primitive.
17109 (Check_Dispatching_Formals): Handle properly a function with a
17110 controlling access result.
17111
17112 2007-06-06 Robert Dewar <dewar@adacore.com>
17113 Arnaud Charlet <charlet@adacore.com>
17114
17115 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
17116 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
17117 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
17118 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
17119 message when using a VM, since this attribute is not supported.
17120 (Analyze_Record_Representation_Clause): Give unrepped component warnings
17121
17122 * usage.adb: Add new warning for renaming of function return objects
17123 Indicate that -gnatwp and -gnatwP concern front-end inlining
17124 Add line for -gnatyg
17125 Add usage information for -gnatw.c/C
17126
17127 2007-06-06 Robert Dewar <dewar@adacore.com>
17128 Ed Schonberg <schonberg@adacore.com>
17129
17130 * sem_ch5.adb
17131 (Find_Var): Do not consider function call in test for infinite loop
17132 warning if warnings set off for function entity.
17133 (One_Bound): Do not create a temporary for a loop bound if it is a
17134 character literal.
17135 (Analyze_Assignment): Traverse the right hand side of an assignment and
17136 mark all allocators as static coextensions.
17137 (Analyze_Assignment): Exempt assignments involving a dispatching call
17138 to a function with a controlling access result from the check requiring
17139 the target to be class-wide.
17140
17141 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17142 Ed Schonberg <schonberg@adacore.com>
17143 Robert Dewar <dewar@adacore.com>
17144 Javier Miranda <miranda@adacore.com>
17145
17146 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
17147 chain of coextensions when an allocator serves as the root of such a
17148 chain.
17149 (Propagate_Coextensions): Remove the test for the root being an
17150 allocator.
17151 (Resolve_Allocator): Add condition to ensure that all future decoration
17152 occurs on an allocator node. Add processing and cleanup for static
17153 coextensions.
17154 (Valid_Conversion): If the operand type is the limited view of a
17155 class-wide type, use the non-limited view is available to determine
17156 legality of operation.
17157 (Ambiguous_Character): move to spec, for use elsewhere.
17158 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
17159 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
17160 character literals.
17161 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
17162 Do_Division_Check flag explicitly.
17163 (Resolve_Actuals): If the actual is of a synchronized type, and the
17164 formal is of the corresponding record type, this is a call to a
17165 primitive operation of the type, that is declared outside of the type;
17166 the actual must be unchecked-converted to the type of the actual
17167 (Resolve_Call): Kill all current values for any subprogram call if
17168 flag Suppress_Value_Tracking_On_Call is set.
17169 (Resolve_Type_Conversion): Generate error message the the operand
17170 or target of interface conversions come from a limited view.
17171 (Check_Infinite_Recursion): Ignore generated calls
17172 (Check_Allocator_Discrim_Accessibility): New procedure for checking
17173 that an expression that constrains an access discriminant in an
17174 allocator does not denote an object with a deeper level than the
17175 allocator's access type.
17176 (Resolve_Allocator): In the case of an allocator initialized by an
17177 aggregate of a discriminated type, check that associations for any
17178 access discriminants satisfy accessibility requirements by calling
17179 Check_Allocator_Discrim_Accessibility.
17180 (Resolve_Equality_Op): Handle comparisons of anonymous access to
17181 subprogram types in the same fashion as other anonymous access types.
17182 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
17183 message that is not a continuation message.
17184 (Resolve_Type_Conversion): Add missing support for conversion to
17185 interface type.
17186 (Resolve_Actuals): Introduce a transient scope around the call if an
17187 actual is a call to a function returning a limited type, because the
17188 resulting value must be finalized after the call.
17189 (Resolve_Actuals): If the call was given in prefix notations, check
17190 whether an implicit 'Access reference or implicit dereference must be
17191 added to make the actual conform to the controlling formal.
17192
17193 2007-06-06 Robert Dewar <dewar@adacore.com>
17194 Javier Miranda <miranda@adacore.com>
17195
17196 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
17197 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
17198 overriding of an inherited private subprogram now there is no need to
17199 inherit its dispatching slot and reduce the size of the dispatch table.
17200 Set_All_DT_Position now ensures that the same slot is now assigned to
17201 both entities. This is required to statically build the dispatch table.
17202 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
17203 of calling Set_All_DT_Position to re-evaluate the position of the
17204 entries in the dispatch table. Such reevaluation is not desired if
17205 the tagged type is already frozen.
17206
17207 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17208 Gary Dismukes <dismukes@adacore.com>
17209 Robert Dewar <dewar@adacore.com>
17210 Javier Miranda <miranda@adacore.com>
17211
17212 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
17213 reference acts as an lvalue when the attribute name modifies the prefix
17214 (Is_Coextension_Root): New routine.
17215 (Mark_Static_Coextensions): New routine.
17216 (Type_Access_Level): Revise code for checking the level of the
17217 anonymous access type of a return object.
17218 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
17219 (Matches_Prefixed_View_Profile): Remove the no longer necessary
17220 retrieval of the corresponding controlling record type.
17221 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
17222 concurrent types declared within a generic as well as class wide types.
17223 Emit a mode incompatibility error whenever a protected entry or routine
17224 override an interface routine whose first parameter is not of mode
17225 "out", "in out" or access to variable.
17226 (Overrides_Synchronized_Primitive): Rename to
17227 Find_Overridden_Synchronized_Primitive.
17228 (Collect_Interface_Components): New subprogram that collects all the
17229 components of a tagged record containing tags of secondary dispatch
17230 tables.
17231 (Add_Global_Declaration): New procedure
17232 (Abstract_Interface_List): Handle properly the case of a subtype of a
17233 private extension.
17234 (Type_Access_Level): In the case of a type whose parent scope is a
17235 return statement, call Type_Access_Level recursively on the enclosing
17236 function's result type to determine the level of the return object's
17237 type.
17238 (Build_Elaboration_Entity): Build name of elaboration entity from the
17239 scope chain of the entity, rather than the unit name of the file name.
17240 (Check_Nested_Access): New procedure.
17241 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
17242 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17243 (Get_Renamed_Entity): Utility routine for performing common operation
17244 of chasing the Renamed_Entity field of an entity.
17245
17246 2007-06-06 Robert Dewar <dewar@adacore.com>
17247
17248 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
17249 elaboration model
17250 (Check_A_Call): Add check for entry call which was causing blowup
17251
17252 2007-06-06 Olivier Hainque <hainque@adacore.com>
17253
17254 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
17255 special code on ia64-vms to handle major incompatibilities between the
17256 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
17257 this routine with a very different set of arguments and expectations on
17258 the return value.
17259
17260 2007-06-06 Thomas Quinot <quinot@adacore.com>
17261
17262 * socket.c (__gnat_close_signalling_fd): New function.
17263 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
17264 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
17265 New supporting functions for task safe Netdb operations.
17266
17267 2007-06-06 Thomas Quinot <quinot@adacore.com>
17268 Olivier Hainque <hainque@adacore.com>
17269
17270 * a-except-2005.ads, a-except-2005.adb
17271 (Raise_From_Controlled_Operation): New procedure in
17272 (private part of) Ada.Exceptions (standard runtime version). Used to
17273 provide informational exception message when Program_Error is raised as
17274 a result of an Adjust or Finalize operation propagating an exception.
17275 (Rmsg_28): Fix description for E.4(18) check.
17276 (Raise_Current_Excep): Call Debug_Raise_Exception just before
17277 propagation starts, to let debuggers know about the event in a reliable
17278 fashion.
17279 Take the address of E and dereference to make sure it is homed on stack
17280 and prevent the stores from being deleted, necessary for proper
17281 debugger behavior on "break exception" hits.
17282 (Local_Raise): Moved to System.Exceptions
17283
17284 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
17285 exception message from the current occurrence and raise Program_Error
17286 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
17287
17288 2007-06-06 Jose Ruiz <ruiz@adacore.com>
17289 Arnaud Charlet <charlet@adacore.com>
17290
17291 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
17292 lock, if needed.
17293
17294 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
17295 priority associated to a lock.
17296
17297 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
17298 assertion to take into account case of no abort restriction.
17299 (Initialize_Protection_Entries): Add initialization for the field
17300 New_Ceiling associated to the protected object.
17301 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
17302 needed.
17303
17304 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17305 since this function needs to be set consistently with Update_Exception.
17306
17307 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17308 since this function needs to be set consistently with Update_Exception.
17309
17310 * s-taskin.ads: Update comments on
17311 Interrupt_Server_Blocked_On_Event_Flag.
17312 (Unbind_Handler): Fix handling of server_task wakeup
17313 (Server_Task): Set self's state so that Unbind_Handler can take
17314 appropriate actions.
17315 (Common_ATCB): Now use a constant from System.Parameters to determine
17316 the max size of the Task_Image field.
17317
17318 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
17319 Initialize_Analyzer function.
17320 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
17321 take into account case of no abort restriction.
17322 ([Vulnerable_]Complete_Master): Modify assertion.
17323
17324 * s-tataat.adb (Finalize): Use the nestable versions of
17325 Defer/Undefer_Abort.
17326
17327 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
17328
17329 * s-tpobop.ads: Update comments.
17330
17331 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
17332 of locking the object manually, to avoid inconsistencies between
17333 Lock/Unlock_Entry assertions.
17334
17335 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
17336 terminating
17337 application and System.Parameters.No_Abort is True.
17338 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
17339 (Unbind_Handler): Fix handling of server_task wakeup
17340 (Server_Task): Set self's state so that Unbind_Handler can take
17341 appropriate actions.
17342
17343 2007-06-06 Thomas Quinot <quinot@adacore.com>
17344
17345 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
17346 declarations instead of an explicit null body, for conciseness.
17347
17348 2007-06-06 Robert Dewar <dewar@adacore.com>
17349
17350 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
17351 illegal aggregate and the type is still Any_Composite.
17352 (Subtypes_Statically_Match): Fix problem of empty discriminant list
17353
17354 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17355
17356 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
17357 to prevent subsequent expansion.
17358
17359 2007-06-06 Robert Dewar <dewar@adacore.com>
17360
17361 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
17362
17363 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17364 Robert Dewar <dewar@adacore.com>
17365
17366 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
17367 exceptions.
17368 (Write_Itype): Handle case of string literal subtype, which
17369 comes up in this context.
17370 (Update_Itype): when debugging expanded code, update sloc of itypes
17371 associated with defining_identifiers and ranges, for gdb use.
17372 (Sprint_Node_Actual): Add static keyword to object or exception
17373 declaration output if Is_Statically_Allocated is True.
17374 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
17375 or task body, so that the tree carries the proper Sloc information for
17376 debugging use.
17377 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
17378
17379 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17380
17381 * s-secsta.adb (Chunk): Ensure this object has a static size known at
17382 compile time, to avoid dynamic memory allocation
17383 (Elaboration code): Only use dynamic memory allocation when needed.
17384
17385 2007-06-06 Quentin Ochem <ochem@adacore.com>
17386
17387 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
17388 "Overflow_Guard".
17389 (Stack_Analyzer): Added field "Overflow_Guard"
17390 (Task_Result): Added field "Overflow_Guard".
17391 (Index_Str): New constant.
17392 (Task_Name_Str): New constant.
17393 (Actual_Size_Str): New constant.
17394 (Pattern_Array_Element_Size): New constant.
17395 (Get_Usage_Range): New subprogram.
17396 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
17397 Now align the output.
17398 Added comments.
17399 (Initialize): Added value for Overflow_Guard.
17400 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
17401 Update the value of the overflow guard according to the actual
17402 beginning of the pattern array.
17403 (Initialize_Analyzer): Added parameter Overflow_Guard.
17404 Take this parameter into accound when computing the max size.
17405 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
17406 (Report_Result): Removed extra useless procedure.
17407 Updated call to Output_Result.
17408 Moved full computation of the Task_Result here.
17409
17410 2007-06-06 Thomas Quinot <quinot@adacore.com>
17411
17412 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
17413 Thread_Blocking_IO, always True by default, set False on a per-runtime
17414 basis.
17415 Add Windows-specific constants
17416 Add new constant Need_Netdb_Buffer.
17417 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17418 not, whether to use getXXXbyYYY_r.
17419
17420 * gsocket.h: Add new constant Need_Netdb_Buffer.
17421 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17422 not, whether to use getXXXbyYYY_r.
17423
17424 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
17425
17426 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
17427 than their first call.
17428 Add type Dummy_Communication_Block used in the generation of the pre-
17429 defined dispatching primitive _disp_asynchronous_select.
17430 (Storage_Element): Put Pragma Universal_Aliasing on it.
17431
17432 2007-06-06 Vincent Celier <celier@adacore.com>
17433
17434 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
17435 function.
17436
17437 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
17438 letter if it is not followed by a '/' or a '\'.
17439 (Windows): New Boolean function
17440
17441 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
17442 Ada 2005.
17443 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
17444 drive letter.
17445 (Containing_Directory): Raise Use_Error when the directory is a root
17446 directory.
17447 (Extension): When returning the result, use a conversion to Result_Type,
17448 not a qualification.
17449
17450 2007-06-06 Robert Dewar <dewar@adacore.com>
17451
17452 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
17453 (Set_Style_Check_Options): Recognize new -gnatyg style switch
17454
17455 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
17456 Warn_On_Non_Local_Exception to False, to turn off warnings for
17457 No_Exception_Propagation in ZFP runtime.
17458 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
17459 back-ends.
17460 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
17461
17462 2007-06-06 Vincent Celier <celier@adacore.com>
17463
17464 * switch-b.adb (Scan_Binder_Switches): Add processing for new
17465 switches -R and -Z
17466
17467 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
17468 (Scan_Make_Switches): Recognize new switch -aP
17469
17470 2007-06-06 Matthew Gingell <gingell@adacore.com>
17471 Jose Ruiz <ruiz@adacore.com>
17472
17473 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
17474 VxWorks task descriptor in the Ada run time, call a C subprogram
17475 (__gnat_get_stack_info) that extracts the required information.
17476
17477 * sysdep.c: Back out temporary lynxos workaround.
17478 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
17479 time the stack information associated to the currently executing task.
17480 Only VxWorks systems require this function.
17481
17482 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
17483
17484 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
17485 add the stack bias if the offset is computed from a frame address.
17486 (__gnat_backtrace): Adjust for above change.
17487
17488 2007-06-06 Thomas Quinot <quinot@adacore.com>
17489
17490 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
17491 PE_Non_Transportable_Actual.
17492 (By_Descriptor_Last): New constant.
17493 (By_Copy_Return): Likewise.
17494
17495 2007-06-06 Vincent Celier <celier@adacore.com>
17496
17497 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
17498 is.
17499
17500 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
17501 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
17502 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
17503 Add missing comment for /OPTIMIZE=SPACE
17504 Add entry for OPTIMIZE=SPACE
17505 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
17506 Add documentation for new qualifiers corresponding to -gnatw.c/.C
17507
17508 2007-06-06 Vincent Celier <celier@adacore.com>
17509 Robert Dewar <dewar@adacore.com>
17510
17511 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
17512 -gnatw.C)
17513
17514 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
17515 Document gnatbind switch -a
17516 (case Constructions): Document that variables declarations are allowed
17517 for previously declared variables.
17518 Fix external lib project example
17519 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
17520 Indicate that "#if not X or Y then" is not allowed in input files to
17521 gnatprep.
17522 Document gnatw.x and gnatw.X warning flags
17523 Mention -Winline switch to activate warnings when back-end inlining is
17524 ineffective.
17525 Add gnatcheck rule descriptions
17526 Describe how to use the GNAT driver to call a tool on a closure.
17527 Describe how to run project-wide checks or metrics.
17528 Document gnatbind's -R option
17529 Updated to account for Ada 2005 support
17530
17531 * gnat_rm.texi (Case Construction): Allow variable declarations for
17532 previously declared variables.
17533 (Representation Clauses and Pragmas): Lift restriction on alignment
17534 clauses for record types.
17535 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
17536 Document No_Exception_Propagation restriction
17537 Document No_Body pragma
17538 Updated to account for Ada 2005 support; corrected some typos
17539 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
17540
17541 * gnat-style.texi: Make it clear that we never use mode IN for
17542 procedures or functions
17543
17544 * ug_words: Add entries for -gnatw.x and -gnatw.X
17545 Add entries for -gnatw.c/.C
17546
17547 2007-06-06 Pascal Obry <obry@adacore.com>
17548 Vincent Celier <celier@adacore.com>
17549
17550 * makegpr.adb (Add_Archive_Path): Use untouched object and library
17551 dirs and library name.
17552 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
17553 comments.
17554 (Build_Library): Idem.
17555 (Compile_Individual_Sources): Idem.
17556 (Compile_Link_With_Gnatmake): Idem.
17557 (Compile_Sources): Idem.
17558 (Get_Imported_Directories): Idem.
17559 (Link_Executables): Idem. Same change for the executable dir.
17560 (Check_Compilation_Needed): C_Source_Path new variable containing
17561 the canonical form of Source_Path to check against the source names
17562 in the dependency file.
17563 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
17564 verbose mode, display the name of the object directory we're changing
17565 to.
17566 (Saved_Switches): New name of table X_Switches
17567 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
17568 (Usage): New line for switch -aP
17569 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
17570 testing if a directory should be added to the search path.
17571
17572 2007-06-06 Javier Miranda <miranda@adacore.com>
17573
17574 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
17575 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
17576 declaration after freezing point of all its associated tagged types;
17577 otherwise such types are frozen too early.
17578
17579 2007-06-06 Robert Dewar <dewar@adacore.com>
17580
17581 * a-reatim.adb: Documentation addition
17582
17583 * g-cgideb.adb: Minor code reorganization
17584
17585 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
17586 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
17587 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
17588
17589 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
17590 function. Change name New_Scope to Push_Scope
17591 (Get_Debug_Flag_K): Remove unused obsolete function.
17592
17593 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
17594 Push_Scope.
17595
17596 * makeusg.adb: Update Copyright notice
17597 Add line for switch -aP
17598
17599 * makeusg.adb: Fix wording of some usage messages
17600
17601 * s-assert.adb (Raise_Assert_Failure): Add call to
17602 Debug_Raise_Assert_Failure.
17603
17604 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
17605 (2, Standard'Alignment) for compatibility with AAMP (where alignment
17606 is restricted to 1).
17607
17608 * s-wchjis.adb: Remove use of System.Pure_Exceptions
17609
17610 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
17611 node location to No_Location when we're not debugging the expanded
17612 code.
17613
17614 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
17615
17616 * misc.c (enumerate_modes): Consider log2_b to always be one.
17617
17618 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
17619
17620 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17621
17622 2007-05-02 Pascal Obry <obry@adacore.com>
17623
17624 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
17625 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
17626 encoding support of Stream_IO.
17627 (Write_Unit): Idem.
17628
17629 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
17630 filename and corresponding encoding to match the OS requirement.
17631 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
17632 routine will fail on specific devices like CON: AUX: ...
17633
17634 PR ada/29856: Add missing braces
17635
17636 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
17637
17638 PR ada/31660
17639 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
17640
17641 2007-04-21 Jan Hubicka <jh@suse.cz>
17642
17643 * misc.c (gnat_expand_body): Don't call target for destructors,
17644 avoid redundant check on syntax errors.
17645
17646 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
17647
17648 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
17649 instead of checking GIMPLE_STMT_P in chain_next.
17650
17651 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
17652
17653 PR ada/31576
17654 * system-linux-alpha.ads: Disable constant condition warning for the
17655 Default_Bit_Order variable.
17656 * system-linux-s390.ads: Likewise.
17657 * system-linux-s390x.ads: Likewise.
17658 * system-linux-sparc.ads: Likewise.
17659
17660 2007-04-06 Javier Miranda <miranda@adacore.com>
17661 Matt Heaney <heaney@adacore.com>
17662 Robert Dewar <dewar@adacore.com>
17663
17664 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
17665 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
17666 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
17667 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
17668 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
17669 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
17670 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
17671 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
17672 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
17673 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
17674 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
17675 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
17676 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
17677 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
17678 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
17679 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
17680 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
17681 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
17682 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
17683 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
17684 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
17685 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
17686 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
17687 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
17688 s-taprop-tru64.adb, s-taprop-irix.adb,
17689 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
17690 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
17691 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
17692 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
17693 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
17694 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
17695 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
17696 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
17697 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
17698 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
17699 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
17700 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
17701 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
17702 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
17703 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
17704 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
17705 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
17706 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
17707 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
17708 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
17709 access types.
17710 Update documentation.
17711 Minor rewording.
17712
17713 2007-04-06 Robert Dewar <dewar@adacore.com>
17714
17715 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
17716 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
17717 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
17718 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17719 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
17720 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17721 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
17722 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
17723 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
17724 system-hpux-ia64.ads, targparm.adb,
17725 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
17726
17727 * system.ads: Move Functions_Return_By_DSP to obsolete section,
17728 kept for bootstrap purposes only.
17729
17730 2007-04-06 Arnaud Charlet <charlet@adacore.com>
17731
17732 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
17733 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
17734 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
17735 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
17736
17737 2007-04-06 Robert Dewar <dewar@adacore.com>
17738
17739 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
17740 (Local_Raise): New dummy procedure called when a raise is converted
17741 to a local goto. Used for debugger to detect that the exception
17742 is raised.
17743
17744 * debug.adb: Document new d.g flag (expand local raise statements to
17745 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
17746
17747 * exp_sel.adb: Use Make_Implicit_Exception_Handler
17748
17749 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
17750 suppress warnings for unused handlers.
17751 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
17752 warnings for raise statements not handled locally.
17753 (Get_RT_Exception_Entity): New function
17754 (Get_Local_Call_Entity): New function
17755 (Find_Local_Handler): New function
17756 (Warn_If_No_Propagation): New procedure
17757 (Expand_At_End_Handler): Call Make_Implicit_Handler
17758 (Expand_Exception_Handlers): Major additions to deal with local handlers
17759 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
17760 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
17761 for local raise
17762
17763 * exp_ch11.ads (Get_RT_Exception_Entity): New function
17764 (Get_Local_Call_Entity): New function
17765
17766 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
17767 of restrictions that the binder will never suggest adding.
17768
17769 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
17770 to No_Elist.
17771
17772 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
17773 be with'ed in the presence of pragma Restriction
17774 (No_Exception_Propagation).
17775
17776 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
17777
17778 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
17779 parameter, then the handler is not a suitable target for a local raise,
17780 and this is a violation of restriction No_Exception_Propagation.
17781 (Analyze_Handled_Statements): Analyze choice parameters in exception
17782 handlers before analyzing statement sequence (needed for proper
17783 detection of local raise statements).
17784 (Analyze_Raise_Statement): Reraise statement is a violation of the
17785 No_Exception_Propagation restriction.
17786
17787 * s-rident.ads: Add new restriction No_Exception_Propagation
17788
17789 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
17790 function, like Make_Exception_Handler but sets Local_Raise_Statements
17791 to No_List.
17792 (Add_Unique_Serial_Number): Deal with case where this is called during
17793 processing of configuration pragmas.
17794
17795 2007-04-06 Thomas Quinot <quinot@adacore.com>
17796 Pat Rogers <rogers@adacore.com>
17797 Pascal Obry <obry@adacore.com>
17798
17799 * g-stsifd-sockets.adb: New file.
17800
17801 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
17802 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
17803 g-socthi-vms.adb: Move signalling
17804 fd management to a nested package, so that they can conveniently be
17805 moved to a subunit that is shared across Windows, VMS, and VxWorks
17806 (Ada implementation) or completed with imported bodies from socket.c
17807 (UNIX case).
17808 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
17809 subprograms.
17810 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
17811 the signalling file descriptor.
17812 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
17813 signalling file descriptor.
17814 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
17815 instead of creating a pair of sockets for signalling here.
17816
17817 * g-socthi.adb: Ditto.
17818 Set the runtime process to ignore SIGPIPEs on platforms that support
17819 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
17820
17821 * g-socthi-mingw.adb: Ditto.
17822 (WS_Version): Use Windows 2.2.
17823 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
17824
17825 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
17826 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
17827
17828 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
17829 added GNAT byte swapping facility
17830 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
17831
17832 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
17833
17834 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
17835 New subprograms.
17836 (__gnat_create_signalling_fds): New subprogram.
17837 Set the runtime process to ignore SIGPIPEs on platforms that support
17838 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
17839
17840 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
17841 Vincent Celier <celier@adacore.com>
17842
17843 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
17844 New version of Ada.Calendar which supports the new upper bound of Ada
17845 time (2399-12-31 86_399.999999999).
17846 The following modifications have been made to the package:
17847 - New representation of time as count of nanoseconds since the start of
17848 Ada time (1901-1-1 0.0).
17849 - Target independent Split and Time_Of routines which service both
17850 Ada 95 and Ada 2005 code.
17851 - Target independent interface to the Ada 2005 children of Calendar.
17852 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
17853 - Handling of non-leap centenial years.
17854 - Updated clock function.
17855 - Updated arithmetic and comparison operators.
17856
17857 * a-caldel.adb (To_Duration): Add call to target independent routine in
17858 Ada.Calendar to handle the conversion of time to duration.
17859
17860 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
17861 (UTC Offset).
17862 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
17863 set off to 0.
17864 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
17865 targets do not have a natural time zone, GMT is used as a default.
17866 (__gnat_get_task_options): New.
17867
17868 * a-direct.adb (Modification_Time): Add with and use clauses for
17869 Ada.Calendar and Ada.
17870 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
17871 since it is no longer needed.
17872 (Duration_To_Time): Removed.
17873 (OS_Time_To_Long_Integer): Removed.
17874 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
17875 Formatting Time_Of routines which automatically handle time zones,
17876 buffer periods and leap seconds.
17877
17878 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
17879 target independent routines in Ada.Calendar.
17880
17881 * a-calfor.ads, a-calfor.adb:
17882 Code cleanup and addition of validity checks in various routines.
17883 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
17884 Ada.Calendar.
17885
17886 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
17887 independent routine in Ada.Calendar.
17888
17889 2007-04-06 Olivier Hainque <hainque@adacore.com>
17890
17891 * adaint.c:
17892 (convert_addresses): Adjust prototype and dummy definition to expect an
17893 extra file_name argument.
17894
17895 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
17896 filling the now expected file_name argument with the appropriate
17897 argv[0] expansion.
17898 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
17899 (tracebk): Array of void * instead of char *, corresponding to what
17900 convert_addresses expects.
17901 (exename): New static global, to hold the executable file name to be
17902 used in all convert_addresses invocations.
17903 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
17904 change.
17905 (__gnat_gmem_a2l_initialize): Resolve exename.
17906 (__gnat_convert_addresses): Use exename as the convert_addresses
17907 file_name argument.
17908
17909 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
17910 "convert_addresses", now expecting a filename argument. Import the
17911 necessary entities to compute the filename to use and pass it to
17912 convert_addresses.
17913
17914 2007-04-06 Matt Gingell <gingell@adacore.com>
17915
17916 * system-aix.ads: Back out previous change.
17917 (Functions_Return_By_DSP): Removed
17918
17919 2007-04-06 Pascal Obry <obry@adacore.com>
17920
17921 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
17922 or the monotonic used by Ada.Real_Time) to compute the sleep duration
17923 on Windows.
17924
17925 2007-04-06 Jose Ruiz <ruiz@adacore.com>
17926
17927 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
17928 function. Its value changes in different VxWorks versions, and it is
17929 now handled by the function __gnat_get_task_options.
17930
17931 * s-taprop-vxworks.adb (Create_Task): Call the function
17932 __gnat_get_task_options to get the required options for creating a task.
17933
17934 2007-04-06 Pascal Obry <obry@adacore.com>
17935 Thomas Quinot <quinot@adacore.com>
17936
17937 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
17938 dealing with filename.
17939 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
17940 filename from a standard string to a wide-string depending on the
17941 encoding value.
17942 (__gnat_freopen): Idem.
17943 (__gnat_current_time): New function (wrapper for time(3) standard C
17944 function).
17945
17946 * g-os_lib.ads (Current_Time): New function. Returns the current
17947 system time as an OS_Time value.
17948
17949 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
17950 (Monotonic_Clock): Same.
17951
17952 2007-04-06 Quentin Ochem <ochem@adacore.com>
17953
17954 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
17955 not on a natural.
17956 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
17957
17958 2007-04-06 Jose Ruiz <ruiz@adacore.com>
17959
17960 * a-retide.adb: Add elaboration code to ensure that the tasking run
17961 time is initialized when using delay operations even when no task is
17962 created.
17963
17964 2007-04-06 Javier Miranda <miranda@adacore.com>
17965
17966 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
17967 component Num_Prim_Ops.
17968 (Set_Num_Prim_Ops): Removed.
17969 Remove all the assertions because all the routines of this
17970 package are inline always.
17971 (Get_Offset_Index): Add support to primary dispatch tables.
17972 Move the documentation about the dispatch table to a-tags.ads
17973 (Set_External_Tag): Removed
17974 (Inherit_TSD): Removed.
17975 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
17976 moved to a-tags.ads
17977 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
17978 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
17979 of the TSD field "Table" because this field has been renamed to
17980 "Ifaces_Table".
17981 (Inherit_CPP_DT): Removed.
17982 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
17983 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
17984 declarations have been moved to a-tags.ads
17985 (Check_Size): Removed.
17986 (Expanded_Name): Updated to get access to the new field of TSD
17987 containing the address of the expanded name.
17988 (Get_Access_Level/Set_Access_Level): Removed.
17989 (Get_Predefined_Prim_Op_Address): Removed.
17990 (Set_Predefined_Prim_Op_Address): Removed.
17991 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
17992 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
17993 (Set_Expanded_Name): Removed.
17994 (Inherit_DT): Removed.
17995 (Inherit_CPP_DT): Removed.
17996 (Set_RC_Offset): Removed.
17997 (Set_TSD): Removed.
17998 (Base_Address): New function that displaces "this" to point to the base
17999 of the object (that is, to point to the primary tag of the object).
18000
18001 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18002 Javier Miranda <miranda@adacore.com>
18003
18004 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
18005 anonymous access component, do not create a master_id if type already
18006 has one, as may happen if the type is a subcomponent of a packed array
18007 type.
18008 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
18009 Initialize_Tag): Remove code associated with the old CPP pragmas.
18010 CPP_Virtual and CPP_Vtable are no longer supported.
18011 (Build_Offset_To_Top_Internal): Add support for concurrent record types
18012 (Build_Offset_To_Top_Functions): Add support for concurrent record types
18013 (Freeze_Record_Type): Remove call to
18014 Init_Predefined_Interface_Primitives.
18015 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
18016 code required to initialize the tags of the secondary dispatch tables.
18017 This leaves the algoritm more clear.
18018 (Init_Secondary_Tags): Add support for concurrent record types
18019 (Make_Predefined_Primitive_Specs): Code cleanup.
18020 (Predefined_Primitive_Bodies): Code cleanup.
18021 (Build_Master_Renaming): New local subprogram.
18022 (Expand_N_Full_Type_Declaration): Build the master_id associated with
18023 anonymous access to task type components.
18024 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
18025 subtype indication are resolved during analysis, and must not be done
18026 here.
18027 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
18028
18029 2007-04-06 Geert Bosch <bosch@adacore.com>
18030 Ed Schonberg <schonberg@adacore.com>
18031 Javier Miranda <miranda@adacore.com>
18032 Bob Duff <duff@adacore.com>
18033
18034 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
18035 for conversion of a Float_Type'Truncation to integer.
18036
18037 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
18038 check if a node is an attribute that can be handled directly by the
18039 back end.
18040 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
18041 attributes that can be handled directly by the back end.
18042 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
18043 use new predicate Is_Access_Protected_Subprogram_Type.
18044 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
18045 and Unchecked_Union if it is generated as part of the default Output
18046 procedure for a type with default discriminants.
18047 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
18048 if we are compiling under restriction No_Dispatching_Calls.
18049 (Constrained): Use Underlying_Type, in case the type is private without
18050 discriminants, but the full type has discriminants.
18051 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
18052 call to Build_Get_Access_Level.
18053 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
18054 interface objects requires a call to the run-time subprogram that
18055 returns the base address of the object.
18056 (Valid_Conversion): Improve error message on illegal attempt to store
18057 an anonymous access to subprogram value into a record component.
18058
18059 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
18060 null".
18061 (Simplify_Type_Conversion): New procedure that performs simplification
18062 of Int_Type (Float_Type'Truncation (X)).
18063 (Resolve_Type_Conversion): Call above procedure after resolving operand
18064 and before performing checks. This replaces the existing ineffective
18065 code in Exp_Ch4.
18066 (Set_String_Literal_Subtype): When creating the internal static lower
18067 bound subtype for a string literal, use a newly created copy of the
18068 subtree representing the lower bound.
18069 (Resolve_Call): Exclude build-in-place function calls from transient
18070 scope treatment. Update comments to describe this exception.
18071 (Resolve_Equality_Op): In case of dispatching call check violation of
18072 restriction No_Dispatching_Calls.
18073 (Resolve_Call): If the call returns an array, the context imposes the
18074 component type of the array, and the function has one non-defaulted
18075 parameter, rewrite the call as the indexing of a call with a single
18076 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
18077 in prefix form.
18078 (Resolve_Actuals): If an actual is an allocator for an access parameter,
18079 the master of the created object is the innermost enclosing statement.
18080 (Remove_Conversions): For a binary operator, check if type of second
18081 formal is numeric, to check if an abstract interpretation is present
18082 in the case of exponentiation as well.
18083
18084 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18085 Bob Duff <duff@adacore.com>
18086
18087 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
18088 copying a parameter list in a call, set properly the First_Named_Formal
18089 and Next_Named_Formal fields in the new list and in the enclosing call.
18090 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
18091 names, to ease typing in the debugger. Improve comments.
18092 (Watch_Node): New variable, intended to be set in the debugger.
18093 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
18094 called when the watched node is created.
18095 (New_Node_Debugging_Output): Combined version of local procedures
18096 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
18097 with a parameter so that conditional breakpoints like "if Node = 12345"
18098 work.
18099 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
18100 Add Elist1 function
18101
18102 2007-04-06 Thomas Quinot <quinot@adacore.com>
18103 Ed Schonberg <schonberg@adacore.com>
18104 Gary Dismukes <dismukes@adacore.com>
18105
18106 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
18107 required for a conversion between two access-to-unconstrained-array
18108 types.
18109 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
18110 to discriminant constraints on discriminant objects. This rule must
18111 apply as well to discriminants of protected types in private components.
18112 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
18113 object of a null-excluding access type then don't require the
18114 the object declaration to have an expression and don't emit a
18115 run-time check.
18116
18117 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18118 Eric Botcazou <botcazou@adacore.com>
18119
18120 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
18121 and made constant.
18122
18123 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
18124 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
18125 carry any.
18126
18127 * fe.h (Compiler_Abort): Add third parameter.
18128
18129 * misc.c (internal_error_function): Build third argument from current
18130 input location and pass it to Compiler_Abort.
18131
18132 2007-04-06 Gary Dismukes <dismukes@adacore.com>
18133
18134 * cstand.adb (Create_Standard): When the target's storage unit size is
18135 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
18136 Standard_String.
18137
18138 2007-04-06 Nicolas Roche <roche@adacore.com>
18139
18140 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
18141 absolute path can have the following form: device:/a/b. In this case
18142 '/' should be inserted between the path and the filename.
18143
18144 2007-04-06 Olivier Hainque <hainque@adacore.com>
18145 Eric Botcazou <botcazou@adacore.com>
18146
18147 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
18148 VAR_DECL to a CONST_DECL we make for a public constant when we know the
18149 corresponding definition has created the so made visible variable.
18150 Handle anonymous access to protected subprogram.
18151 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
18152 object with an address clause volatile. Re-enable original fix.
18153 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
18154 too.
18155 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
18156 associated with either the Equivalent or Root type, instead of the
18157 naked type node.
18158 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
18159 subtree for every field of a global record type.
18160 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
18161 discriminants, invoke again variable_size on its newly computed sizes.
18162
18163 2007-04-06 Robert Dewar <dewar@adacore.com>
18164 Thomas Quinot <quinot@adacore.com>
18165 Ed Schonberg <schonberg@adacore.com>
18166 Bob Duff <duff@adacore.com>
18167
18168 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
18169 (Next_Component_Or_Discriminant): New function and procedure
18170 (First_Index, First_Literal, Master_Id,
18171 Set_First_Index, Set_First_Literal, Set_Master_Id):
18172 Add missing Ekind assertions.
18173 (Is_Access_Protected_Subprogram_Type): New predicate.
18174 (Has_RACW): New entity flag, set on package entities to indicate that
18175 the package contains the declaration of a remote accecss-to-classwide
18176 type.
18177 (E_Return_Statement): This node type has the Finalization_Chain_Entity
18178 attribute, in case the result type has controlled parts.
18179 (Requires_Overriding): Add this new flag, because "requires
18180 overriding" is subtly different from "is abstract" (see AI-228).
18181 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
18182 Is_Abstract_Type. Make sure these are called only when appropriate.
18183 (Has_Pragma_Unreferenced_Objects): New flag
18184
18185 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
18186 class-wide, the tag of the right-hand side must be an exact match, not
18187 an ancestor of that of the object on left-hand side.
18188 (Move_Activation_Chain): New procedure to create the call to
18189 System.Tasking.Stages.Move_Activation_Chain.
18190 (Expand_N_Extended_Return_Statement): Generate code to call
18191 System.Finalization_Implementation.Move_Final_List at the end of a
18192 return statement if the function's result type has controlled parts.
18193 Move asserts to Build_In_Place_Formal.
18194 (Move_Final_List): New function to create the call statement.
18195 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
18196 tagged type, replace generation of call to the run-time subprogram
18197 CW_Membership by call to Build_CW_Membership.
18198 (Expand_N_Return_Statement): Replace generation of call to the run-time
18199 subprogram Get_Access_Level by call to Build_Get_Access_Level.
18200 (Expand_N_Simple_Function_Return): Replace generation of call to the
18201 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18202
18203 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
18204 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
18205 access to protected operations.
18206 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
18207 master and chain actual parameters to a build-in-place function call
18208 involving tasks.
18209 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
18210 statement.
18211 (Make_Build_In_Place_Call_In_Allocator,
18212 Make_Build_In_Place_Call_In_Anonymous_Context,
18213 Make_Build_In_Place_Call_In_Assignment,
18214 Make_Build_In_Place_Call_In_Object_Declaration): Call
18215 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
18216 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
18217 stubbed procedure with a null body, replace the call with a null
18218 statement without using the full inlining machinery, for efficiency
18219 and to avoid invalid values in source file table entries.
18220
18221 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
18222 renamings of calls to build-in-place functions.
18223
18224 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
18225 provides the functionality of RTE_Available to record components.
18226 (RTU_Entity): The function Entity has been renamed to RTU_Entity
18227 to avoid undesired overloading.
18228 (Entity): New subprogram that returns the entity for the referened
18229 unit. If this unit has not been loaded, it returns Empty.
18230 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
18231 Remove no longer used entities.
18232 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
18233 (RE_Type_Specific_Data): New entity.
18234 (RE_Move_Any_Value): New entity.
18235 (RE_TA_A, RE_Get_Any_Type): New entities.
18236 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
18237 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
18238 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
18239 (Entity): New subprogram that returns the entity for the referened
18240 unit. If this unit has not been loaded, it returns Empty.
18241 (RTE): Addition of a new formal that extends the search to the scopes
18242 of the record types found in the chain of the package.
18243
18244 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
18245 "abstract subprograms must be visible" message, whether or not the type
18246 is an interface; that is, remove the special case for interface types.
18247 (Analyze_Function_Return): Remove error message "return of task objects
18248 is not yet implemented" because this is now implemented.
18249 (Create_Extra_Formals): Add the extra master and activation chain
18250 formals in case the result type has tasks.
18251 Remove error message "return of limited controlled objects is not yet
18252 implemented".
18253 (Create_Extra_Formals): Add the extra caller's finalization list formal
18254 in case the result type has controlled parts.
18255 (Process_Formals): In case of access formal types there is no need
18256 to continue with the analysis of the formals if we already notified
18257 errors.
18258 (Check_Overriding_Indicator): Add code to check overriding of predefined
18259 operators.
18260 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
18261 flags for formals that do not require them,.
18262 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
18263 hidden entity is use visible or directly visible.
18264 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
18265 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
18266 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
18267 New_Overloaded_Entity): Split Is_Abstract flag into
18268 Is_Abstract_Subprogram and Is_Abstract_Type.
18269
18270 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
18271 a return statement's finalization list to the caller's list, used for
18272 build-in-place functions with result type with controlled parts.
18273 Remove no longer used entities.
18274
18275 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
18276 longer needed, because the full type is now limited, and therefore a
18277 pass-by-reference type.
18278 (Foreign_Task_Level): New constant.
18279
18280 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
18281 move tasks from the activation chain belonging to a return statement to
18282 the one passed in by the caller, and update the master to the one
18283 passed in by the caller.
18284 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
18285 of unactivated tasks, so we don't kill the ones that are being returned
18286 by a build-in-place function.
18287 (Create_Task): Ignore AI-280 for foreign threads.
18288
18289 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18290 Robert Dewar <dewar@adacore.com>
18291 Bob Duff <duff@adacore.com>
18292 Gary Dismukes <dismukes@adacore.com>
18293
18294 * errout.adb (Unwind_Internal_Type): Use predicate
18295 Is_Access__Protected_Subprogram_Type.
18296
18297 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
18298 (Freeze_Entity, packed array case): Do not override explicitly set
18299 alignment and size clauses.
18300 (Freeze_Entity): An entity declared in an outer scope can be frozen if
18301 the enclosing subprogram is a child unit body that acts as a spec.
18302 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
18303 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
18304 Remove all code for DSP option
18305
18306 * layout.adb (Layout_Record_Type): Use First/
18307 Next_Component_Or_Discriminant
18308 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
18309 to handle properly the anonymous access case.
18310
18311 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
18312 for all access attributes, because overload resolution should work the
18313 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
18314 causes the error message for the ambiguous "X'Access = Y'Access" and
18315 "X'Unrestricted_Access = Y'Access" and so forth to match.
18316 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
18317 now that anonymous access to protected operations have their own kind.
18318 (Resolve_Attribute): In case of dispatching call check the violation of
18319 restriction No_Dispatching_Calls.
18320 (Check_Array_Type): Check new -gnatyA array index style option
18321
18322 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
18323 attempt to derive from a synchronized tagged type.
18324 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
18325 type, inherit the class-wide type already created, because it may
18326 already have been used in a self-referential anonymous access component.
18327 (Mentions_T): Recognize self-referential anonymous access components
18328 that use (a subtype of) the class-wide type of the enclosing type.
18329 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
18330 Derived_Type for Prev formal on call to
18331 Check_Anonymous_Access_Components rather than Empty.
18332 (Make_Incomplete_Type_Declaration): Add test for case where the type has
18333 a record extension in deciding whether to create a class-wide type,
18334 rather than just checking Tagged_Present.
18335 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
18336 to stand-alone object declarations as well as component declarations.
18337 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
18338 prevent accidental overwriting when enclosing package appears in
18339 a limited_with_clause.
18340 (Array_Type_Declaration): If the component type is an anonymous access,
18341 the associated_node for the itype is the type declaration itself.
18342 (Add_Interface_Tag_Components): Modified to support concurrent
18343 types with abstract interfaces.
18344 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
18345 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
18346 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
18347 to complete the decoration of synchronized interface types. Add also
18348 a call to Check_Abstract_Interfaces to verify the ARM rules.
18349 (Derive_Interface_Subprograms): Modified to support concurrent types
18350 with abstract interfaces.
18351 (Analyze_Subtype_Indication): Resolve the range with the given subtype
18352 mark, rather than delaying the full resolution depending on context.
18353 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
18354 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
18355 Array_Type_Declaration,Build_Derived_Record_Type,
18356 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
18357 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
18358 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
18359 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
18360 called only when appropriate.
18361 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
18362 to private type.
18363 (Analyze_Subtype_Declaration): For an access subtype declaration, create
18364 an itype reference for the anonymous designated subtype, to prevent
18365 scope anonmalies in gigi.
18366 (Build_Itype_Reference): New utility, to simplify construction of such
18367 references.
18368
18369 2007-04-06 Vincent Celier <celier@adacore.com>
18370
18371 * errutil.adb (Initialize): Initialize warnings table, if all warnings
18372 are suppressed, supply an initial dummy entry covering all possible
18373 source locations.
18374
18375 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
18376 and start with only one, such as "-RTS=none".
18377 (Collect_Arguments): Do not check for sources outside of projects.
18378 Do not collect arguments if project is externally built.
18379 (Compile_Sources): Do nothing, not even check if the source is up to
18380 date, if its project is externally built.
18381 (Compile): When compiling a predefined source, add -gnatpg
18382 as the second switch, after -c.
18383 (Compile_Sources): Allow compilation of Annex J renames without -a
18384 (Is_In_Object_Directory): Check if the ALI file is in the object
18385 even if there is no project extension.
18386 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
18387 gnatbind if the ALI file effectively exists.
18388 (Initialize): Add the directory where gnatmake is invoked in front of
18389 the path if it is invoked from a bin directory, even without directory
18390 information, so that the correct GNAT tools will be used when spawned
18391 without directory information.
18392
18393 * makeusg.adb: Change switch -S to -eS
18394 Add lines for new switches -we, -wn and -ws
18395 Add line for new switch -p
18396
18397 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
18398 Treat_As_Error and there are warnings.
18399
18400 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
18401 -gnatww Change gnatmake switch -S to -eS
18402 (Scan_Make_Switches): Code reorganisation. Process separately multi
18403 character switches and single character switches.
18404 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
18405 False when switch is not recognized by gnatmake.
18406 (Scan_Make_Switches): Set Setup_Projects True when -p or
18407 --create-missing-dirs is specified.
18408
18409 * fname.adb (Is_Predefined_File_Name): Return True for annex J
18410 renamings Calendar, Machine_Code, Unchecked_Conversion and
18411 Unchecked_Deallocation only when Renamings_Included is True.
18412
18413 * par.adb: Allow library units Calendar, Machine_Code,
18414 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
18415 when -gnatg is not specified.
18416 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
18417 there is no need to generate always a record_definition_node in case
18418 of synchronized interface types.
18419 (SIS_Entry_Active): Initialize global variable to False
18420 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
18421 indicate cases where AI-447 says "not null" is legal.
18422
18423 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
18424
18425 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
18426 files with with several lines starting with the object fileb name.
18427 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
18428 is specified.
18429 (Initialize): Add the directory where gprmake is invoked in front of the
18430 path, if it is invoked from a bin directory or with directory
18431 information, so that the correct GNAT tools will be used when invoked
18432 directly.
18433 (Check_Compilation_Needed): Process correctly backslashes on Windows.
18434
18435 * vms_data.ads: Update switches/qualifiers
18436
18437 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18438 Thomas Quinot <quinot@adacore.com>
18439
18440 * exp_aggr.adb:
18441 If the array component is a discriminated record, the array aggregate
18442 is non-static even if the component is given by an aggregate with
18443 static components.
18444 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
18445 (Convert_Aggr_In_Allocator): If the allocator is for an access
18446 discriminant and the type is controlled. do not place on a finalization
18447 list at this point. The proper list will be determined from the
18448 enclosing object.
18449 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
18450 initialize record controller if needed, before the components, to ensure
18451 that they are properly finalized.
18452 (Build_Record_Aggr_Code): For the case of an array component that has a
18453 corresponding array aggregate in the record aggregate, perform sliding
18454 if required.
18455
18456 2007-04-06 Javier Miranda <miranda@adacore.com>
18457 Gary Dismukes <dismukes@adacore.com>
18458 Ed Schonberg <schonberg@adacore.com>
18459
18460 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
18461 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
18462
18463 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
18464 accessibility on class-wide allocators if the allocator occurs at the
18465 same scope level as the allocator's type. The check is guaranteed to
18466 succeed in that case, even when the expression originates from a
18467 parameter of the containing subprogram.
18468 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
18469 under No_Dispatching_Calls restriction. During the semantic analysis
18470 we already notified such violation.
18471 (Tagged_Membership): Constant folding. There is no need to check
18472 the tag at run-time if the type of the right operand is non
18473 class-wide abstract.
18474 Replace call to Is_Ancestor by call to Is_Parent
18475 to support concurrent types with interface types.
18476 (Expand_N_Allocator): Add an assertion associated with the generation
18477 of the master_id.
18478 (Expand_N_Slice): Do not enable range check to nodes associated
18479 with the frontend expansion of the dispatch table.
18480 (Is_Local_Access_Discriminant): Subsidiary function to
18481 Expand_N_Allocator.
18482 (Tagged_Membership): Replace generation of call to the run-time
18483 subprogram CW_Membership by call to Build_CW_Membership.
18484 (Expand_Allocator_Expression): Replace generation of call to the
18485 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18486
18487 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
18488 initialize most the TSD components by means of an aggregate.
18489 Modify the declaration of the object containing the TSD
18490 because we now expand code that has a higher level of abstraction.
18491 The TSD has a discriminant containing the Inheritance Depth Level,
18492 value that is used in the membership test but also to fix the size
18493 of the table of ancestors.
18494 (Expand_Interface_Conversion): Insert function body at the closest place
18495 to the conversion expression, to prevent access-before-elaboration
18496 errors in the backend.
18497 Code improved to reduce the size of the dispatch table if
18498 compiling under restriction No_Dispatching_Calls plus code cleanup.
18499 Code reorganization plus removal of calls to Set_Num_Prim_Ops
18500 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
18501 (Expand_Dispatching_Call): Minor code reorganization plus addition of
18502 code to return immediately if compiling under No_Dispatching_Calls
18503 restriction.
18504 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
18505 CPP_Virtual and CPP_Vtable are no longer supported.
18506 (Expand_Interface_Conversion): Add missing support for interface type
18507 derivations.
18508 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
18509 Is_Parent to support concurrent types with interfaces.
18510 (Init_Predefined_Interface_Primitives): Removed.
18511 (Make_Secondary_DT): Modified to support concurrent record types.
18512 (Set_All_DT_Position): Modified to support concurrent record types.
18513 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18514 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
18515 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
18516 with CW_Membership.
18517 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18518 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
18519 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
18520 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
18521 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
18522 (Expand_Dispatching_Call): Replace generation of call to the run-time
18523 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
18524 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
18525 Address.
18526 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
18527 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
18528 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
18529 Build_Set_Prim_Op_Address.
18530 (Get_Remotely_Callable): Subprogram removed.
18531 (Init_Predefined_Interface_Primitives): Replace generation of call to
18532 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
18533 Prims.
18534
18535 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
18536 First (Parameter_Associations ()) with the call to First_Actual that
18537 returns an actual parameter expression for both named and positional
18538 associations.
18539
18540 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
18541 check violation of restriction No_Dispatching_Calls.
18542 (Check_Controlling_Type): A formal of a tagged incomplete type is a
18543 controlling argument.
18544
18545 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
18546 First/Next_Component_Or_Discriminant
18547 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
18548 (Find_Implemented_Interface): Removed. All the calls to this subprogram
18549 specify Any_Limited_Interface, and this functionality is already
18550 provided by the function Has_Abstract_Interfaces.
18551 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
18552 support concurrent types implementing interfaces.
18553 (Find_Implemented_Interface): Removed. All the calls to this subprogram
18554 specify kind Any_Limited_Interface, and this functionality is already
18555 provided by the function Has_Abstract_Interfaces.
18556 (Remove_Side_Effects): replace Controlled_Type by
18557 CW_Or_Controlled_Type whenever the issue is related to
18558 using or not the secondary stack.
18559
18560 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
18561 P_Interface_Type_Definition to fulfill the new interface (the formal
18562 Is_Synchronized is no longer required).
18563
18564 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
18565 Update dependencies.
18566
18567 * exp_atag.ads, exp_atag.adb: New file
18568
18569 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18570 Bob Duff <duff@adacore.com>
18571 Cyrille Comar <comar@adacore.com>
18572
18573 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
18574 anonymous, use finalization list of enclosing dynamic scope.
18575 (Expand_N_Package_Declaration): For a library package declaration
18576 without a corresponding body, generate RACW subprogram bodies in the
18577 spec (just as we do for the task activation call).
18578 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
18579 Is_Abstract_Type. Make sure these are called only when appropriate.
18580 Remove all code for DSP option
18581 (CW_Or_Controlled_Type): new subprogram.
18582
18583 2007-04-06 Eric Botcazou <botcazou@adacore.com>
18584 Ed Schonberg <schonberg@adacore.com>
18585 Gary Dismukes <dismukes@adacore.com>
18586
18587 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
18588 parameter. If it is set to true, return a result capped according to
18589 the global upper bound for the index of an entry family.
18590 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
18591 (Build_Find_Body_Index): Adjust for above change.
18592 (Entry_Index_Expression): Likewise.
18593 (Is_Potentially_Large_Family): New function extracted from...
18594 (Collect_Entry_Families): ...here. Call it to detect whether the family
18595 is potentially large.
18596 (Build_Entry_Count_Expression): If the family is potentially large, call
18597 Family_Size with 'Cap' set to true.
18598 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
18599 a protected version of an operation declared in the private part of
18600 a protected object, because they may be invoked through a callback.
18601 (Set_Privals): If the type of a private component is an anonymous access
18602 type, do not create a new itype for each protected body.
18603 If the body of a protected operation creates
18604 controlled types (including allocators for class-widetypes), the
18605 body of the corresponding protected subprogram must include a
18606 finalization list.
18607 (Build_Activation_Chain_Entity): Build the chain entity for extended
18608 return statements.
18609 (Type_Conformant_Parameters): Use common predicate Conforming_Types
18610 to determine whether operation overrides an inherited primitive.
18611 (Build_Wrapper_Spec): Add code to examine the parents while looking
18612 for a possible overriding candidate.
18613 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
18614 hold an actual parameter value since its initialization is separated
18615 from the the declaration. Prevents errors on null-excluding access
18616 formals.
18617
18618 2007-04-06 Thomas Quinot <quinot@adacore.com>
18619 Pablo Oliveira <oliveira@adacore.com>
18620
18621 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
18622 Do an Unchecked_Conversion to handle the passage from the Underlying
18623 Type to the Base Type when calling Build_To_Any_Call and
18624 Build_From_Any_Call.
18625 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
18626 E_Constant, depending upon Variable formal.
18627 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18628 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
18629 parameter that requires an extra constrained parameter, declare
18630 temporary for actual as a variable, not a constant.
18631 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
18632 the unit being compiled is the one that contains the stub type.
18633 Change primitive operation name for the RACW associated with a RAS
18634 from Call to _Call so it cannot clash with any legal identifier.
18635 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
18636 Is_RAS.
18637 (Append_RACW_Bodies): New subprogram.
18638 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
18639 Add_Receiving_Stubs_To_Declarations functions.
18640 When expanding a package body, this list correspond to the
18641 statements in the HSS at the end of the pacakge.
18642 When expanding a package spec, this list correspond to the
18643 spec declarations.
18644 (Add_Receiving_Stubs_To_Declarations): Append the function
18645 registering the receiving stubs at the end of the 'Stmts' list.
18646 (RCI_Package_Locator): Pass the new Version generic formal when
18647 instantiating a RCI_Locator package.
18648 (Build_From_Any_Function): To compute the High bound for an
18649 unconstrained array actual, we add the Low bound with the length.
18650 Thus we must convert the low bound and the length to an appropriate
18651 type before doing the sum.
18652 (Build_Subprogram_Receiving_Stubs, PolyORB):
18653 * Retrieve the extra formals parameters at the
18654 end of the parameter stream.
18655 * Use Move_Any_Value to write back out parameters
18656 after executing the request as it is more efficient
18657 than Copy_Any_Value.
18658 * Build the any containing Extra Formals with the
18659 appropriate typecode.
18660 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
18661 empty Component_List.
18662 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
18663 the tree the declaration for an object that serves as actual parameter
18664 in server-side stubs.
18665 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18666 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
18667 Use Build_Actual_Object_Declaration to prepare the actuals.
18668 (Add_Parameter_To_NVList): Set the parameter mode to In for
18669 Extra Constrained Parameters.
18670 (Build_General_Calling_Stubs): Set the parameter type to boolean for
18671 Extra Constrained parameters.
18672 (Build_To_Any_Function, Build_From_Any_Function,
18673 Built_TypeCode_Function): When Typ is implicit, call the correct
18674 function with the first not implicit parent type.
18675 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
18676 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
18677 typecode from the Etype. Therefore we retrieve the correct typecode
18678 with a call to Get_Any_Type.
18679 (Copy_Specification): Do controlling formal type substitution based on
18680 Is_Controlling_Formal flag, instead of caller-provided object type.
18681 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
18682 a RACW primitive operation, we might get a subprogram declaration for an
18683 ancestor of the RACW designated type (not for the designated type
18684 itself), in the case where this operation is inherited. In this case we
18685 have no easy means of determining the original tagged type for which
18686 the primitive was declared, so instead we now rely on
18687 Copy_Specification to use the Is_Controlling_Formal flag to determine
18688 which formals require type substitution.
18689
18690 2007-04-06 Robert Dewar <dewar@adacore.com>
18691 Ed Schonberg <schonberg@adacore.com>
18692
18693 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
18694 GNAT.Current_Exception are not allowed if pragma Restrictions
18695 (No_Exception_Propagation) is set and in any case make the associated
18696 handler unsuitable as a target for a local raise statement.
18697 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
18698 run-time subprogram CW_Membership by call to Build_CW_Membership.
18699 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
18700 by a function call, a temporary must be created before expanding the
18701 Constructor_Call itself, to prevent out-of-order elaboration in the
18702 back-end when stack checking is enabled..
18703
18704 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18705
18706 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
18707 result are the bounds of the left operand, not the right.
18708
18709 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18710
18711 * exp_strm.adb
18712 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
18713 discriminant defaults.
18714 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
18715 (Make_Component_List_Attributes): Ditto.
18716
18717 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18718 Bob Duff <duff@adacore.com>
18719
18720 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
18721 an association with a box as providing a value even though the
18722 initialization procedure for the type is not available.
18723 (Resolve_Record_Aggregate): Check that a choice of an association with a
18724 box corresponds to a component of the type.
18725 (Resolve_Record_Aggregate): Split Is_Abstract flag into
18726 Is_Abstract_Subprogram and Is_Abstract_Type.
18727
18728 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
18729 assert.
18730
18731 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
18732 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
18733 called only when appropriate.
18734
18735 2007-04-06 Olivier Hainque <hainque@adacore.com>
18736
18737 * g-alleve.ads (Low Level Vector type definitions): Map each to the
18738 associated vector view instead of all to the unsigned char view.
18739
18740 * g-altcon.adb (Generic_Conversions): New internal generic package,
18741 offering facilities for all the Vector/View conversion routines
18742 implemented by this unit.
18743 (To_View/To_Vector - all versions): Reimplemented in a systematic
18744 manner, using the internal Generic_Conversions facilities.
18745
18746 2007-04-06 Pascal Obry <obry@adacore.com>
18747
18748 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
18749 string.
18750 (Create): Free the source string before storing the new one.
18751
18752 2007-04-06 Vincent Celier <celier@adacore.com>
18753
18754 * g-debpoo.adb (Validity): New package with a complete new
18755 implementation of subprograms Is_Valid and Set_Valid.
18756 (Is_Valid): Move to local package Validity
18757 (Set_Valid): Move to local package Validity
18758
18759 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18760 Pablo Oliveira <oliveira@adacore.com>
18761
18762 * g-expect.adb (Get_Command_Output): When expanding the output buffer
18763 we must ensure that there is enough place for the new data we are going
18764 to copy in.
18765
18766 2007-04-06 Thomas Quinot <quinot@adacore.com>
18767
18768 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
18769 computation.
18770
18771 2007-04-06 Jose Ruiz <ruiz@adacore.com>
18772 Vincent Celier <celier@adacore.com>
18773
18774 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
18775 (Stack_String): Add this String that contains the name of the Stack
18776 package in the project file.
18777 (Packages_To_Check_By_Stack): Add this list that contains the packages
18778 to be checked by gnatstack, which are the naming and the stack packages.
18779 (Check_Files): If no .ci files were specified for gnatstack we add all
18780 the .ci files belonging to the projects, including binder generated
18781 files.
18782 (Non_VMS_Usage): Document that gnatstack accept project file switches.
18783 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
18784 Add gnatstack to the list of commands that use project file related
18785 switches, and get the single attribute Switches from the stack package
18786 in a project file when calling gnatstack. Parse the -U flag for
18787 processing files belonging to all projects in the project tree.
18788 Remove all processing for command Setup
18789
18790 * prj-attr.adb: Add new package Stack with single attribute Switches
18791
18792 * vms_conv.ads (Command_Type): Add command Stack.
18793 Move to body declarations that are only used in the body: types Item_Id,
18794 Translation_Type, Item_Ptr, Item and its subtypes.
18795
18796 * vms_conv.adb: (Initialize): Add data for new command Stack.
18797 Add declarations moved from the spec: types Item_Id, Translation_Type,
18798 Item_Ptr, Item and its subtypes.
18799 (Cargs_Buffer): New table
18800 (Cargs): New Boolean global variable
18801 (Process_Buffer): New procedure to create arguments
18802 (Place): Put character in table Buffer or Cargs_Buffer depending on the
18803 value of Cargs.
18804 (Process_Argument): Set Cargs when processing qualifiers for GNAT
18805 COMPILE
18806 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
18807 empty, for table Cargs_Buffer.
18808 (Initialize): Remove component Setup in Command_List
18809
18810 2007-04-06 Vincent Celier <celier@adacore.com>
18811
18812 * gprep.adb (Process_Files.Process_One_File): Use full file name when
18813 issuing pragma Source_Reference.
18814
18815 2007-04-06 Emmanuel Briot <briot@adacore.com>
18816
18817 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
18818 [[:xdigit:]] character class.
18819 Also raise an exception when an invalid character class is used.
18820
18821 2007-04-06 Pascal Obry <obry@adacore.com>
18822
18823 * i-cstrea.ads: (fopen): Add encoding parameter.
18824 (freopen): Idem.
18825 Change reference from a-sysdep.c to sysdep.c in comment.
18826 Update copyright notice.
18827 This set of patch add support for the encoding form parameter.
18828
18829 * mingw32.h (S2WSU): New macro to convert from a string to a
18830 wide-string using the UTF-8 encoding. The S2WS macro supports now only
18831 standard 8bits encoding.
18832 (WS2SU): As above but converting from wide-sring to string.
18833 This is needed as it is necessary to have access to both versions in the
18834 runtime for the form parameter encoding support.
18835 This set of patch add support for the encoding form parameter.
18836 (S2WS): Improve implementation to handle cases where the filename is not
18837 UTF-8 encoded. In this case we default to using the current code page
18838 for the conversion.
18839
18840 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
18841 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
18842 the constants defined in adaint.h.
18843 (fopen): Add encoding parameter.
18844 (freopen): Idem.
18845
18846 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
18847 encoding. This is needed for the Reset routine (freopen low level-call).
18848
18849 * s-fileio.adb (Open): Decode encoding form parameter and set the
18850 corresponding encoding value into AFCB structure.
18851 (Reset): Pass the encoding value to freopen.
18852 (Close): Move the call to Lock_Task to the beginning of the procedure.
18853
18854 2007-04-06 Geert Bosch <bosch@adacore.com>
18855 Robert Dewar <dewar@adacore.com>
18856
18857 * i-fortra.ads: Add Double_Complex type.
18858
18859 * impunit.adb: (Is_Known_Unit): New function
18860 Add Gnat.Byte_Swapping
18861 Add GNAT.SHA1
18862 Add new Ada 2005 units
18863 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
18864 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
18865 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
18866 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
18867
18868 * impunit.ads (Is_Known_Unit): New function
18869
18870 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
18871 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
18872 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
18873 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
18874 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
18875 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
18876 New files.
18877
18878 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
18879
18880 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
18881
18882 2007-04-06 Eric Botcazou <botcazou@adacore.com>
18883 Arnaud Charlet <charlet@adacore.com>
18884
18885 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
18886 __gnat_adjust_context_for_raise.
18887 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
18888 implementation of floating point operations as native x86 targets.
18889 So the FPU should be initialized in the same way using finit. Fix
18890 floating point operations accuracy issues.
18891 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
18892 member in struct sigaction, so as to avoid warning for incompatible
18893 pointer types.
18894
18895 2007-04-06 Serguei Rybin <rybin@adacore.com>
18896
18897 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
18898 switches from previously loaded tree
18899
18900 2007-04-06 Thomas Quinot <quinot@adacore.com>
18901
18902 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
18903 cases where a given dependency has a body or not.
18904 (Write_With_File_Names): New subprogram, common code for the two cases
18905 above.
18906
18907 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18908 Javier Miranda <miranda@adacore.com>
18909
18910 * lib-xref.ads, lib-xref.adb:
18911 Modify the loop that collects type references, to include interface
18912 types that the type implements. List each of these interfaces when
18913 building the entry for the type.
18914 (Generate_Definition): Initialize component Def and Typ of new entry
18915 in table Xrefs, to avoid to have these components unitialized.
18916 (Output_References): Split Is_Abstract flag into
18917 Is_Abstract_Subprogram and Is_Abstract_Type.
18918 (Generate_Reference): Add barrier to do not generate the warning
18919 associated with Ada 2005 entities with entities generated by the
18920 expander.
18921
18922 2007-04-06 Robert Dewar <dewar@adacore.com>
18923 Arnaud Charlet <charlet@adacore.com>
18924 Vincent Celier <celier@adacore.com>
18925
18926 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
18927 Update 'Exception Handling Control' chapter which was outdated.
18928 Minor fix to documentation of -gnatwq
18929 Remove section "Adapting the Run Time to a New C++ Compiler" because
18930 it is now obsolete.
18931 Add passage on need of -nostart-files in some non-ada-main cases.
18932 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
18933 Update documentation about Interfacing with C++
18934 Add documentation for new gnatmake switch -p
18935 Add missing protocol part in URLs.
18936 Document -gnatyA
18937 Document pragma Compile_Time_Error
18938 Add documentation for Object_Size indicating that stand alone
18939 objects can have a larger size in some cases.
18940 Add node for GNAT.Byte_Swapping, GNAT.SHA1
18941 Update reference to the Ravenscar profile.
18942 Document pragma Unreferenced_Objects
18943
18944 * gnat-style.texi: Fix typo
18945
18946 2007-04-06 Vincent Celier <celier@adacore.com>
18947
18948 * mlib.adb (Building_Library): Only output "building a library..." in
18949 verbose mode
18950
18951 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
18952 files in verbose mode.
18953
18954 * mlib-utl.adb (Ar): Only output the first object files when not in
18955 verbose mode.
18956 (Gcc): Do not display all the object files if not in verbose mode, only
18957 the first one.
18958
18959 2007-04-06 Robert Dewar <dewar@adacore.com>
18960
18961 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
18962 it no longer destroys the contents of Name_Buffer or Name_Len and
18963 non-standard and invalid names are handled better.
18964 (Get_Decoded_Name_String): Improve performance by using
18965 Name_Has_No_Encodings flag in the name table.
18966 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
18967 Used for debugging printouts.
18968
18969 2007-04-06 Robert Dewar <dewar@adacore.com>
18970 Javier Miranda <miranda@adacore.com>
18971 Bob Duff <duff@adacore.com>
18972
18973 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
18974 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
18975 there is no need to generate always a record_definition_node in case
18976 of synchronized interface types.
18977 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
18978 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
18979 illegal in Ada 95, in cases where it is legal. Change the warnings to
18980 errors in other cases. Don't give the error unless the "not null"
18981 parses properly. Correct the source position at which the error occurs.
18982 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
18983 P_Null_Exclusion, to suppress "not null" warnings.
18984 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
18985 associated goto statements.
18986
18987 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
18988 of END RECORD
18989
18990 * scans.ads (Type_Token_Location): New flag
18991
18992 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
18993 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
18994 P_Null_Exclusion, to suppress "not null" warnings.
18995
18996 2007-04-06 Robert Dewar <dewar@adacore.com>
18997 Javier Miranda <miranda@adacore.com>
18998 Bob Duff <duff@adacore.com>
18999 Vincent Celier <celier@adacore.com>
19000
19001 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
19002 (Extensions_Allowed): No longer sets Ada_Version
19003 Entry for pragma Unreferenced_Objects
19004
19005 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
19006 system.tasking if pragma priority used in a procedure
19007 (Analyze_Pragma, case Warning): Handle dot warning switches
19008 (Process_Compile_Time_Warning_Or_Error): New procedure
19009 (Analyze_Pragma): Add processing for Compile_Time_Error
19010 Add support for extra arguments External_Name and Link_Name.
19011 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
19012 (Process_Import_Or_Interface): Add support for the use of pragma Import
19013 with tagged types.
19014 (Extensions_Allowed): No longer affects Ada_Version
19015 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
19016 Is_Abstract_Type. Make sure these are called only when appropriate.
19017 Add processing for pragma Unreferenced_Objects
19018
19019 * snames.h, snames.ads, snames.adb: Add entry for pragma
19020 Compile_Time_Error
19021 Add new standard name Minimum_Binder_Options for new gprmake
19022 Add new standard names for gprmake: Archive_Suffix,
19023 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
19024 Library_Support, Library_Version_Options,
19025 Shared_Library_Minimum_Options,
19026 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
19027 Change Name_Call to Name_uCall so that it cannot clash with a legal
19028 subprogram name.
19029 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
19030 Append C_Plus_Plus to convention identifiers as synonym for CPP
19031 Add new standard names Stack and Builder_Switches
19032 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
19033 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
19034 Run_Path_Option, Toolchain_Version.
19035 Entry for pragma Unreferenced_Objects
19036
19037 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
19038 switches, without repetition of "eD". Make sure that last character of
19039 -gnatep= switch is not taken as -gnat switch character.
19040 Complete rewrite of circuit for handling saving compilation options
19041 Occasioned by need to support dot switchs for -gnatw, but cleans up
19042 things in general.
19043 -gnatX does not affect Ada_Version
19044 Include -gnatyA in -gnatg style switches
19045
19046 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
19047 warnings on return objects.
19048 (Warn_On_Useless_Assignment): Exclude warnings on return objects
19049 (Set_Dot_Warning_Switch): New procedure
19050 (Check_References): Add missing case of test for
19051 Has_Pragma_Unreferenced_Objects
19052 (Output_Unreferenced_Messages): Implement effect of new pragma
19053 Unreferenced_Objects, remove special casing of limited controlled
19054 variables.
19055
19056 2007-04-06 Vincent Celier <celier@adacore.com>
19057
19058 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
19059 the default project path, initially done during elaboration of the
19060 package.
19061 If the prefix returned by Sdefault is null, get the prefix from a call
19062 to Executable_Prefix_Path.
19063 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
19064 null.
19065
19066 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
19067 canonical directory name to open the directory from which files are
19068 retrieved.
19069 (Record_Other_Sources): Idem.
19070 (Locate_Directory): Add the possibility to create automatically missing
19071 directories when Setup_Projects is True.
19072 Call Locate_Directory so that the directory will be created when
19073 Setup_Projects is True, for object dir, library dir, library ALI dir,
19074 library source copy dir and exec dir.
19075
19076 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
19077 versions of GNAT.
19078
19079 2007-04-06 Robert Dewar <dewar@adacore.com>
19080
19081 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
19082 Use First/Next_Component_Or_Discriminant
19083 (Analyze_Record_Representation_Clause):
19084 Use First/Next_Component_Or_Discriminant
19085 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
19086 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
19087 definition if type is unconstrained.
19088 (Adjust_Record_For_Reverse_Bit_Order): New procedure
19089 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
19090 Is_Abstract_Subprogram and Is_Abstract_Type.
19091 (Adjust_Record_For_Reverse_Bit_Order): New procedure
19092
19093 * repinfo.adb (List_Record_Info): Use First/
19094 Next_Component_Or_Discriminant.
19095
19096 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
19097 New procedure.
19098
19099 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
19100 Include -gnatyA in default switches
19101
19102 * opt.ads: (Warn_On_Non_Local_Exception): New flag
19103 (Warn_On_Reverse_Bit_Order): New flag
19104 (Extensions_Allowed): Update the documentation.
19105 (Warn_On_Questionable_Missing_Parens): Now on by default
19106
19107 * usage.adb: Add documentation of -gnatw.x/X switches
19108 Document new -gnatyA style switch
19109 -gnatq warnings are on by default
19110
19111 2007-04-06 Ed Falis <falis@adacore.com>
19112
19113 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
19114 full word is no longer compared twice.
19115
19116 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19117
19118 * sem_ch10.adb (Install_Limited_Context_Clauses.
19119 Expand_Limited_With_Clause): Use a new copy of selector name in the
19120 call to Make_With_Clause. This fixes the tree structure for ASIS
19121 purposes. Nothing is changed in the compiler behaviour.
19122 (Process_Body_Clauses): Handle properly use clauses whose prefix is
19123 a package renaming.
19124 (Install_Limited_With_Clauses): Do not install non-limited view when it
19125 is still incomplete.
19126
19127 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19128 Gary Dismukes <dismukes@adacore.com>
19129
19130 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
19131 when capturing size information, instead of base type, which for a
19132 formal array type will be the unconstrained type.
19133 (Analyze_Formal_Object_Declaration): Add check for illegal default
19134 expressions for a formal in object of a limited type.
19135 (Instantiate_Object): Ditto.
19136 (Check_Formal_Package_Instance): Skip entities that are formal objects,
19137 because they were defaulted in the formal package and no check applies
19138 to them.
19139 (Check_Formal_Package_Instance): Extend conformance check to other
19140 discrete types beyond Integer.
19141 (Process_Default): Copy directly the unmatched formal. A generic copy
19142 has already been performed in Analyze_Formal_Package.
19143 (Analyze_Associations): If a formal subprogram has no match, check for
19144 partial parametrization before looking for a default, to prevent
19145 spurious errors.
19146 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
19147 not set the instantiation environment before analyzing the actuals.
19148 Fixes regression on 8515-003 with implementation of AI-133.
19149 Set_Instance_Env checks whether the generic unit is a predefined
19150 unit, in which case the instance must be analyzed with the latest Ada
19151 mode. This setting must take place after analysis of the actuals,
19152 because the actuals must be analyzed and frozen in the Ada mode extant
19153 outside of the current instantiation.
19154 (Save_Env, Restore_Env): Preserve and restore the configuration
19155 parameters so that predefined units can be compiled in the proper Ada
19156 mode.
19157 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
19158 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
19159 and Is_Abstract_Type.
19160 (Analyze_Formal_Package): For better error recovery, Add exception
19161 handler to catch Instantion_Error, which can be raised in
19162 Analyze_Associations
19163
19164 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19165 Bob Duff <duff@adacore.com>
19166 Gary Dismukes <dismukes@adacore.com>
19167
19168 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
19169 prefix type is a discriminated subtype of the type of the formal.
19170 (Analyze_Allocator): Collect all coextensions regardless of the context.
19171 Whether they can be allocated statically is determined in exp_ch4.
19172 (Analyze_Selected_Component): If the prefix is a limited view and the
19173 non-limited view is available, use the non-limited one.
19174 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
19175 therefore illegal), suggest a qualified expression rather than a type
19176 conversion, because a type conversion would be illegal in this context.
19177 (Anayze_Allocator): Trace recursively all nested allocators so that all
19178 coextensions are on the corresponding list for the root. Do no mark
19179 coextensions if the root allocator is within a declaration for a stack-
19180 allocated object, because the access discriminants will be allocated on
19181 the stack as well.
19182 (Analyze_Call): Remove restriction on calls to limited functions for the
19183 cases of generic actuals for formal objects, defaults for formal objects
19184 and defaults for record components.
19185 (Analyze_Allocator): Before analysis, chain coextensions on the proper
19186 element list. Their expansion is delayed until the enclosing allocator
19187 is processed and its finalization list constructed.
19188 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
19189 for an operation with the given name among the primitive operations of
19190 the corresponding record type.
19191 (Analyze_Selected_Component): If the prefix is a task type that
19192 implements an interface, and there is no entry with the given name,
19193 check whether there is another primitive operation (e.g. a function)
19194 with that name.
19195 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
19196 properly the indexing of a function call written in prefix form, where
19197 the function returns an array type, and all parameters of the function
19198 except the first have defaults.
19199 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
19200 the original operands, rather than relocating them, for efficiency and
19201 to work properly when an operand is overloaded.
19202 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
19203 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
19204 (Analyze_Selected_Component): If the prefix is a private extension, only
19205 scan the visible components, not those of the full view.
19206 (Try_Primitive_Operation): If the operation is a procedure, collect all
19207 possible interpretations, as for a function, because in the presence of
19208 classwide parameters several primitive operations of the type can match
19209 the given arguments.
19210
19211 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19212 Robert Dewar <dewar@adacore.com>
19213
19214 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
19215 tag-indeterminate call to an abstract function, when the left-hand side
19216 is not classwide.
19217 (Analyze_Loop_Statement): Improve detection of infinite loops
19218
19219 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19220 Thomas Quinot <quinot@adacore.com>
19221
19222 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
19223 out of Analyze_Package_Declaration, because processing must be applied
19224 to package bodies as well, for deferred constants completed by pragmas.
19225 (Analyze_Package_Declaration): When the package declaration being
19226 analyzed does not require an explicit body, call Check_Completion.
19227 (May_Need_Implicit_Body): An implicit body is required when a package
19228 spec contains the declaration of a remote access-to-classwide type.
19229 (Analyze_Package_Body): If the package contains RACWs, append the
19230 pending subprogram bodies generated by exp_dist at the end of the body.
19231 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
19232 Is_Abstract_Subprogram and Is_Abstract_Type.
19233 (Preserve_Full_Attributes): The full entity list is not an attribute
19234 that must be preserved from full to partial view.
19235
19236 * sem_dist.adb (Add_RAS_Dereference_TSS):
19237 Change primitive name to _Call so it cannot clash with any legal
19238 identifier, and be special-cased in Check_Completion.
19239 Mark the full view of the designated type for the RACW associated with
19240 a RAS as Comes_From_Source to get proper view switching when installing
19241 private declarations.
19242 Provite a placeholder nested package body along with the nested spec
19243 to have a place for Append_RACW_Bodies to generate the calling stubs
19244 and stream attributes.
19245
19246 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19247 Robert Dewar <dewar@adacore.com>
19248
19249 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
19250 that is a limited view, check the non-limited view if available.
19251 (Undefined): Refine error message for missing with of Text_IO
19252 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
19253 to distinguish real missing with cases.
19254 Fix format of all missing with messages
19255 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
19256 renaming as body when renamed entity is abstract.
19257
19258 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19259 Javier Miranda <miranda@adacore.com>
19260
19261 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
19262 predicate recursive, to handle complex expressions on literals whose
19263 spurious ambiguity comes from the abstract interpretation of some
19264 subexpression.
19265 (Interface_Present_In_Ancestor): Add support to concurrent record
19266 types.
19267 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
19268 Is_Abstract_Subprogram and Is_Abstract_Type.
19269
19270 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19271 Javier Miranda <miranda@adacore.com>
19272
19273 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
19274 dereference of a local object R created as a reference to another
19275 object O, use the access level of O.
19276 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
19277 rather than local Same_Formal_Type, to check whether protected operation
19278 overrides an inherited one.
19279 (Same_Formal_Type): New predicate, used when matching signatures of
19280 overriding synchronized operations, to handle the case when a formal
19281 has a type that is a generic actual.
19282 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
19283 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
19284 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
19285 syntactic ambiguities involving indexing of function calls that return
19286 arrays.
19287 (Abstract_Interface_List): New subprogram that returns the list of
19288 abstract interfaces associated with a concurrent type or a
19289 concurrent record type.
19290 (Interface_Present_In_Parent): New subprogram used to check if a
19291 given type or some of its parents implement a given interface.
19292 (Collect_Abstract_Interfaces): Add support for concurrent types
19293 with interface types.
19294 (Has_Abstract_Interfaces): Add support for concurrent types with
19295 interface types.
19296 (Is_Parent): New subprogram that determines whether E1 is a parent
19297 of E2. For a concurrent type its parent is the first element of its
19298 list of interface types; for other types this function provides the
19299 same result than Is_Ancestor.
19300 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
19301 (Collect_Synchronized_Interfaces): Removed because the subprogram
19302 Collect_Abstract_Interfaces provides this functionality.
19303 (Collect_Abstract_Interfaces): Minor update to give support to
19304 concurrent types and thus avoid undesired code duplication.
19305 (Get_Subprogram_Entity): Handle entry calls.
19306 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
19307 entry calls.
19308 (Enter_Name): Do not give -gnatwh hiding warning for record component
19309 entities, they never result in hiding.
19310
19311 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19312 Robert Dewar <dewar@adacore.com>
19313
19314 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
19315 to chain nested components that are allocators for access discriminants
19316 of the enclosing object.
19317 Add N_Push and N_Pop nodes
19318 New field Exception_Label added
19319 (Local_Raise_Statements): New field in N_Exception_Handler_Node
19320 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
19321 (Is_Coextension): New flag for allocators, to mark allocators that
19322 correspond to access discriminants of dynamically allocated objects.
19323 (N_Block_Statement): Document the fact that the corresponding entity
19324 can be an E_Return_Statement.
19325 (Is_Coextension): New flag for allocators.
19326 Remove all code for DSP option
19327
19328 * sprint.ads, sprint.adb: Display basic information for class_wide
19329 subtypes. Add handling of N_Push and N_Pop nodes
19330
19331 2007-04-06 Arnaud Charlet <charlet@adacore.com>
19332
19333 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
19334 before propagating exception.
19335
19336 2007-04-06 Olivier Hainque <hainque@adacore.com>
19337
19338 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
19339 an address always within the call instruction from a return address.
19340
19341 2007-04-06 Olivier Hainque <hainque@adacore.com>
19342 Eric Botcazou <botcazou@adacore.com>
19343
19344 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
19345 expression with a COMPOUND_EXPR including the call instead of emitting
19346 the call directly here.
19347 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
19348 high bound is constant and the slice is empty. Tidy.
19349 (tree_transform, case N_Op_Not): Handle properly the case where the
19350 operation applies to a private type whose full view is a modular type.
19351 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
19352 Address_Clause, use the associated Expression as the GNAT tree
19353 representing the choice value to ensure the corresponding GCC tree is
19354 of the proper kind.
19355 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
19356 instead of just the operands, as the base GCC stabilize_reference does.
19357 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
19358 requested; otherwise fail.
19359 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
19360
19361 2007-04-06 Thomas Quinot <quinot@adacore.com>
19362
19363 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
19364 implementation of UI_Div.
19365 (UI_Div): Reimplement as a call to UI_Div_Rem.
19366 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
19367 remainder, avoiding the cost of a multiplication and a subtraction.
19368 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
19369 provides both quotient and remainder in a single computation.
19370 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
19371 functions for uint.
19372 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
19373 is undefined if the given n is not inversible.
19374
19375 2007-04-06 Olivier Hainque <hainque@adacore.com>
19376
19377 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
19378 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
19379 opcodes.
19380
19381 2007-04-06 Eric Botcazou <botcazou@adacore.com>
19382 Olivier Hainque <hainque@adacore.com>
19383
19384 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
19385 when updating the contents of the old pointer to an unconstrained array.
19386 (end_subprog_body): Set error_gnat_node to Empty.
19387 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
19388 (unchecked_convert): For subtype to base type conversions, require that
19389 the source be a subtype if it is an integer type.
19390 (builtin_decls): New global, vector of available builtin functions.
19391 (gnat_pushdecl): Add global builtin function declaration nodes to the
19392 builtin_decls list.
19393 (gnat_install_builtins): Adjust comments.
19394 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
19395 calling gnat_pushdecl, so that it knows when it handed a builtin
19396 function declaration node.
19397 (builtin_decl_for): Search the builtin_decls list.
19398
19399 2007-04-06 Eric Botcazou <botcazou@adacore.com>
19400
19401 * s-stchop-vxworks.adb:
19402 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
19403
19404 2007-04-06 Robert Dewar <dewar@adacore.com>
19405 Arnaud Charlet <charlet@adacore.com>
19406
19407 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
19408
19409 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
19410 of files
19411 Add mention of -Sev (set initialize_scalars option from environment
19412 variable at run time) in gnatbind usage message.
19413
19414 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
19415
19416 * fname-uf.ads: Minor comment fix
19417
19418 * osint.ads: Change pragma Elaborate to Elaborate_All
19419
19420 * par-load.adb: Add documentation.
19421
19422 * sem_cat.ads, sem_cat.adb: Minor code reorganization
19423
19424 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
19425
19426 * s-secsta.ads: Extra comments
19427
19428 * s-soflin.ads: Minor comment fixes
19429
19430 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
19431
19432 * s-wchcon.ads: Minor comment addition
19433
19434 * treepr.adb: Minor change in message
19435 (Print_Name,Print_Node): Make these debug printouts more robust: print
19436 "no such..." instead of crashing on bad input.
19437
19438 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
19439
19440 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
19441 instead of gnat_signed_or_unsigned_type.
19442 * utils.c (gnat_signed_or_unsigned_type): Remove.
19443 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
19444 * gigi.h (gnat_signed_or_unsigned_type): Remove
19445
19446 2007-03-09 Roger Sayle <roger@eyesopen.com>
19447
19448 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
19449 fold with the result of buildN.
19450 * decl.c (gnat_to_gnu_entity): Likewise.
19451 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
19452 * utils.c (finish_record_type, merge_sizes, max_size, convert):
19453 Likewise.
19454 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
19455 nonbinary_modular_operation, build_binary_op, build_unary_op,
19456 build_cond_expr): Likewise.
19457
19458 * utils.c (convert): Use fold_build1 when casting values to void.
19459 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
19460 fold_convert instead of convert when appropriate.
19461
19462 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19463
19464 * Make-lang.in: Add install-pdf target as copied from
19465 automake v1.10 rules.
19466
19467 2007-02-28 Andreas Schwab <schwab@suse.de>
19468
19469 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
19470 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
19471 (doc/gnat-style.info): Likewise.
19472
19473 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
19474
19475 * gnat-style.texi: Standardize title page.
19476 * gnat_rm.texi: Likewise.
19477 * gnat_ugn.texi: Likewise.
19478
19479 2007-02-25 Mark Mitchell <mark@codesourcery.com>
19480
19481 * decl.c (annotate_value): Adjust for refactoring of tree_map
19482 hierarchy.
19483
19484 2007-02-24 Mark Mitchell <mark@codesourcery.com>
19485
19486 * decl.c (annotate_value): Adjust for refactoring of tree_map
19487 hierarchy.
19488
19489 2007-02-21 Ed Schonberg <schonberg@adacore.com>
19490
19491 PR ada/18819
19492 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
19493 untagged derived type, add hidden components to keep discriminant
19494 layout consistent, when a given discriminant of the derived type
19495 constraints several discriminants of the parent type.
19496
19497 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
19498 Sandra Loosemore <sandra@codesourcery.com>
19499
19500 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
19501 build the call expression.
19502 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
19503 * utils.c (max_size) <tcc_exceptional>: Delete.
19504 <tcc_vl_exp>: New case.
19505 <tcc_expression>: Delete CALL_EXPR subcase.
19506 (build_global_cdtor): Use build_call_nary instead of build3.
19507 * utils2.c (build_call_1_expr): Likewise.
19508 (build_call_2_expr): Likewise.
19509 (build_call_0_expr): Likewise.
19510 (build_call_alloc_dealloc): Likewise.
19511
19512 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
19513
19514 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
19515 get_action_description_for): Replace _Unwind_Word with _uleb128_t
19516 and _Unwind_SWord with _sleb128_t.
19517
19518 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
19519
19520 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
19521 * decl.c: Include gt-ada-decl.h.
19522 (annotate_value_cache): New.
19523 (annotate_value): Use it instead of TREE_COMPLEXITY.
19524
19525 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
19526
19527 * misc.c, utils2.c: Fix comment typos.
19528
19529 2007-01-24 Roger Sayle <roger@eyesopen.com>
19530
19531 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
19532 TREE_CONSTANT_OVERFLOW.
19533 (allocatable_size_p, annotate_value): Likewise.
19534 * trans.c (gnat_to_gnu): Likewise.
19535 * utils.c (unchecked_convert): Likewise.
19536 * utils2.c (build_simple_component_ref): Likewise.
19537
19538 2007-01-23 Richard Guenther <rguenther@suse.de>
19539
19540 PR bootstrap/30541
19541 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
19542 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
19543 (gnatboot3): Likewise.
19544 (GNATBIND): Do not define.
19545 * Makefile.in (GNATBIND): Do not define.
19546
19547 2007-01-08 Richard Guenther <rguenther@suse.de>
19548
19549 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
19550 * trans.c (gnat_to_gnu): Likewise.
19551
19552 2006-12-07 Geoffrey Keating <geoffk@apple.com>
19553
19554 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
19555 * adaint.c: Likewise.
19556
19557 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
19558
19559 Merge from gimple-tuples-branch:
19560 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
19561
19562 * ada-tree.h (lang_tree_node): Handle gimple tuples.
19563 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
19564 GIMPLE_MODIFY_STMT.
19565
19566 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
19567
19568 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
19569 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
19570 Fix typos.
19571
19572 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
19573
19574 PR ada/27936
19575 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
19576 if the initializer takes into account the padding.
19577
19578 2006-11-11 Richard Guenther <rguenther@suse.de>
19579
19580 * trans.c (maybe_stabilize_reference): Remove handling of
19581 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
19582
19583 2006-11-05 Arnaud Charlet <charlet@adacore.com>
19584
19585 PR ada/29707
19586 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
19587 (To_Target_Priority): New function.
19588
19589 2006-10-31 Robert Dewar <dewar@adacore.com>
19590
19591 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
19592 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
19593 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
19594 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
19595 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
19596 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
19597 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
19598 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
19599 a-szbzha.adb: Minor reformatting. Fix header.
19600
19601 * a-numaux-x86.adb: Add parentheses for use of unary minus
19602 * a-ngcefu.adb: Supply missing parentheses for unary minus
19603 * a-ngcoty.adb: Add parens for use of unary minus
19604 * a-ngelfu.adb: Add missing parens for unary minus
19605 * a-tifiio.adb: Add parentheses for uses of unary minus
19606
19607 2006-10-31 Robert Dewar <dewar@adacore.com>
19608 Bob Duff <duff@adacore.com>
19609 Ed Schonberg <schonberg@adacore.com>
19610
19611 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
19612 with multiplying operator.
19613 (Expected_Type_Is_Any_Real): New function to determine from the Parent
19614 pointer whether the context expects "any real type".
19615 (Resolve_Arithmetic_Op): Do not give an error on calls to the
19616 universal_fixed "*" and "/" operators when they are used in a context
19617 that expects any real type. Also set the type of the node to
19618 Universal_Real in this case, because downstream processing requires it
19619 (mainly static expression evaluation).
19620 Reword some continuation messages
19621 Add some \\ sequences to continuation messages
19622 (Resolve_Call): Refine infinite recursion case. The test has been
19623 sharpened to eliminate some false positives.
19624 Check for Current_Task usage now includes entry barrier, and is now a
19625 warning, not an error.
19626 (Resolve): If the call is ambiguous, indicate whether an interpretation
19627 is an inherited operation.
19628 (Check_Aggr): When resolving aggregates, skip associations with a box,
19629 which are priori correct, and will be replaced by an actual default
19630 expression in the course of expansion.
19631 (Resolve_Type_Conversion): Add missing support for conversion from
19632 a class-wide interface to a tagged type. Minor code cleanup.
19633 (Valid_Tagged_Converion): Add support for abstact interface type
19634 conversions.
19635 (Resolve_Selected_Component): Call Generate_Reference here rather than
19636 during analysis, and use May_Be_Lvalue to distinguish read/write.
19637 (Valid_Array_Conversion): New procedure, abstracted from
19638 Valid_Conversion, to incorporate accessibility checks for arrays of
19639 anonymous access types.
19640 (Valid_Conversion): For a conversion to a numeric type occurring in an
19641 instance or inlined body, no need to check that the operand type is
19642 numeric, since this has been checked during analysis of the template.
19643 Remove legacy test for scope name Unchecked_Conversion.
19644
19645 * sem_res.ads: Minor reformatting
19646
19647 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
19648 (PE_Current_Task_In_Entry_Body): New exception code
19649 (SE_Restriction_Violation): Removed, not used
19650
19651 * a-except.ads: Update comments.
19652
19653 * types.h, types.ads: Add definition for Validity_Check
19654 (PE_Current_Task_In_Entry_Body): New exception code
19655 (SE_Restriction_Violation): Removed, not used
19656
19657 2006-10-31 Thomas Quinot <quinot@adacore.com>
19658
19659 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
19660 error status.
19661
19662 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19663 Jose Ruiz <ruiz@adacore.com>
19664
19665 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
19666 part of Ada.Calendar: all subprogram raise Unimplemented.
19667 (Split_W_Offset): Temp function body, raising Unimplemented
19668
19669 * a-calend.ads, a-calend-vms.ads:
19670 Add imported variable Invalid_TZ_Offset used to designate targets unable
19671 to support time zones.
19672 (Unimplemented): Temporary function raised by the body of new
19673 subprograms below.
19674 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
19675 unit provides handling of leap seconds and is used by the new Ada 2005
19676 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
19677 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
19678 version returns an extra value which is the offset to UTC.
19679
19680 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
19681 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
19682 (Split_W_Offset): New function body.
19683 (Time_Of): When a date is close to UNIX epoch, compute the time for
19684 that date plus one day (that amount is later substracted after
19685 executing mktime) so there are no problems with time zone adjustments.
19686
19687 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
19688
19689 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
19690 a-catizo.ads, a-catizo.adb: New files.
19691
19692 * impunit.adb: Add new Ada 2005 entries
19693
19694 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
19695 Rename all occurences of "__gnat_localtime_r" to
19696 "__gnat_localtime_tzoff".
19697 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
19698 zone data and calculate the GMT offset.
19699 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
19700 Use the field "tm_gmtoff" to extract the GMT offset.
19701 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
19702 the external variable "timezone" to calculate the GMT offset.
19703
19704 2006-10-31 Arnaud Charlet <charlet@adacore.com>
19705 Jose Ruiz <ruiz@adacore.com>
19706
19707 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
19708 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
19709 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
19710 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
19711 System.Any_Priority to a POSIX priority on the target.
19712
19713 * system-linux-ia64.ads:
19714 Extend range of Priority types on Linux to use the whole range made
19715 available by the system.
19716
19717 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
19718 function maps from System.Any_Priority to a POSIX priority on the
19719 target.
19720 (PTHREAD_PRIO_PROTECT): Set real value.
19721 (PTHREAD_PRIO_INHERIT): Now a function.
19722 (SIGCPUFAIL): New signal.
19723 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
19724 are documented as reserved by the OS.
19725
19726 * system-aix.ads: Use the full range of priorities provided by the
19727 system on AIX.
19728
19729 * s-taprop-posix.adb: Call new function To_Target_Priority.
19730 (Set_Priority): Take into account Task_Dispatching_Policy and
19731 Priority_Specific_Dispatching pragmas when determining if Round Robin
19732 must be used for scheduling the task.
19733
19734 * system-linux-x86_64.ads, system-linux-x86.ads,
19735 system-linux-ppc.ads: Extend range of Priority types on Linux to use
19736 the whole range made available by the system.
19737
19738 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
19739 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
19740 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
19741 when deallocating the TCB in order to avoid potential references to
19742 deallocated data.
19743 (Set_Priority): Take into account Task_Dispatching_Policy and
19744 Priority_Specific_Dispatching pragmas when determining if Round Robin
19745 or FIFO within priorities must be used for scheduling the task.
19746
19747 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
19748 the Thread field (to be used internally by the run-time system) and the
19749 kernel-level task id in the LWP field (to be used by the debugger).
19750 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
19751 instance, and propagate the current task options to the spawned task.
19752 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
19753 (Initialize): Set Round Robin dispatching when the corresponding pragma
19754 is in effect.
19755
19756 2006-10-31 Robert Dewar <dewar@adacore.com>
19757
19758 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19759 system-linux-hppa.ads, system-hpux-ia64.ads,
19760 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
19761 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
19762 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
19763 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
19764 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
19765 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
19766 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
19767 Default_Bit_Order) to kill constant condition warnings for references
19768 to this switch.
19769
19770 2006-10-31 Vincent Celier <celier@adacore.com>
19771 Eric Botcazou <ebotcazou@adacore.com>
19772
19773 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
19774 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
19775 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
19776 Ext_To, when building the library file name
19777
19778 * mlib-tgt-vxworks.adb: ditto.
19779 (Get_Target_Suffix): Add support for x86 targets.
19780
19781 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
19782
19783 * mlib-tgt-darwin.adb:
19784 Use Append_To, instead of Ext_To, when building the library file name
19785 (Flat_Namespace): New global variable.
19786 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
19787 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
19788 (Link_Shared_Libgcc): Delete.
19789 (Build_Dynamic_Library): Adjust for above changes.
19790 Use Opt package.
19791 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
19792
19793 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
19794
19795 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
19796 (Initialize): Add type conversions required by above change.
19797
19798 2006-10-31 Jose Ruiz <ruiz@adacore.com>
19799
19800 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
19801 (getpid): New body for this function that uses the underlying taskIdSelf
19802 function for VxWorks 5 and VxWorks 6 in kernel mode.
19803 (unsigned_int): New type, modular to allow logical bit operations.
19804 (taskOptionsGet): New imported function.
19805
19806 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
19807 field to be compliant with the type used by the corresponding operating
19808 system primitive.
19809
19810 2006-10-31 Pascal Obry <obry@adacore.com>
19811 Eric Botcazou <ebotcazou@adacore.com>
19812 Vincent Celier <celier@adacore.com>
19813
19814 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
19815 ASCII version of the registry API. This is needed as the GNAT runtime
19816 is now UNICODE by default.
19817 Include version.h.
19818 (get_gcc_version): Do not hardcode the return value.
19819 (__gnat_file_time_name): On Windows properly set the default returned
19820 value to -1 which corresponds to Invalid_Time.
19821 (__gnat_fopen): New routine. A simple wrapper on all plateforms
19822 except on Windows where it does conversion for unicode support.
19823 (__gnat_freopen): Idem.
19824 (__gnat_locate_exec_on_path): If environment variable PATH does not
19825 exist, return a NULL pointer
19826
19827 * adaint.h: (__gnat_fopen): Declare.
19828 (__gnat_freopen): Likewise.
19829
19830 * mingw32.h (_tfreopen): Define this macro here for older MingW
19831 version.
19832 Activate the unicode support on platforms using a MingW runtime
19833 version 3.9 or newer.
19834
19835 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
19836 This is needed for proper unicode support on Windows.
19837 (freopen): Idem.
19838
19839 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
19840 Nicolas Setton <setton@adacore.com>
19841 Olivier Hainque <hainque@adacore.com>
19842 Gary Dismukes <dismukes@adacore.com>
19843
19844 * gigi.h: (tree_code_for_record_type): Declare.
19845 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
19846 (get_global_renaming_pointers): Rename to
19847 invalidate_global_renaming_pointers.
19848 (static_ctors): Delete.
19849 (static_dtors): Likewise.
19850 (gnat_write_global_declarations): Declare.
19851 (create_var_decl): Adjust descriptive comment to indicate that the
19852 subprogram may return a CONST_DECL node.
19853 (create_true_var_decl): Declare new function, similar to
19854 create_var_decl but forcing the creation of a VAR_DECL node.
19855 (get_global_renaming_pointers): Declare.
19856 (add_global_renaming_pointer): Likewise.
19857
19858 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
19859
19860 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
19861 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
19862 processing.
19863 (gnat_to_gnu_entity): Remove From_With_Type from computation for
19864 imported_p.
19865 <E_Access_Type>: Use the Non_Limited_View as the full view of the
19866 designated type if the pointer comes from a limited_with clause. Make
19867 incomplete designated type if it is in the main unit and has a freeze
19868 node.
19869 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
19870 Underlying_Full_View similarly. Return earlier if the full view already
19871 has an associated tree.
19872 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
19873 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
19874 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
19875 reference type built for objects with an address clause.
19876 Use create_true_var_decl with const_flag set for
19877 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
19878 TREE_READONLY set.
19879 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
19880 for Character and Wide_Character types. This info is read by the
19881 dwarf-2 writer, and is needed to be able to use the command "ptype
19882 character" in the debugger.
19883 (gnat_to_gnu_entity): When generating a type representing
19884 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
19885 so that debug writers can distinguish it from ordinary integers.
19886 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
19887 addition to TREE_READONLY to assert the constantness of variables for
19888 elaboration purposes.
19889 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
19890 parameters to call new Einfo function First_Formal_With_Extras.
19891 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
19892 protected type with its corresponding discriminant, to obtain a usable
19893 declaration
19894 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
19895 for a multiple elaboration of the "equivalent" type.
19896 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
19897 into record_global_renaming_pointer.
19898 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
19899 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
19900 <E_Array_Subtype>: Likewise.
19901 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
19902 incomplete subtypes and incomplete subtypes of incomplete types visible
19903 through a limited with clause.
19904 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
19905 the base index type for the maximum size of the array only if they are
19906 constant.
19907 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
19908 expression into a SAVE_EXPR if stabilization failed.
19909
19910 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
19911 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
19912 by lower level compilation passes.
19913 (gnat_genericize): New function, lowering a function body to GENERIC.
19914 Turn the type of RESULT_DECL into a real reference type if the decl
19915 has been marked DECL_BY_REFERENCE, and adjust references to the latter
19916 accordingly.
19917 (gnat_genericize_r): New function. Tree walking callback for
19918 gnat_genericize.
19919 (convert_from_reference, is_byref_result): New functions. Helpers for
19920 gnat_genericize_r.
19921 (create_type_decl): Call gnat_pushdecl before calling
19922 rest_of_decl_compilation, to make sure that field TYPE_NAME of
19923 type_decl is properly set before calling the debug information writers.
19924 (write_record_type_debug_info): The heuristics which compute the
19925 alignment of a field in a variant record might not be accurate. Add a
19926 safety test to make sure no alignment is set to a smaller value than
19927 the alignment of the field type.
19928 (make_dummy_type): Use the Non_Limited_View as the underlying type if
19929 the type comes from a limited_with clause. Do not loop on the full view.
19930 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
19931 (dummy_node_table): New global variable, moved from decl.c.
19932 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
19933 (save_gnu_tree): Use above macros.
19934 (get_gnu_tree): Likewise.
19935 (present_gnu_tree): Likewise.
19936 (init_dummy_type): New function, moved from decl.c. Use above macros.
19937 (make_dummy_type): Likewise.
19938 (tree_code_for_record_type): New function extracted from make_dummy_type
19939 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
19940 (static_ctors): Change it to a vector, make static.
19941 (static_dtors): Likewise.
19942 (end_subprog_body): Adjust for above change.
19943 (build_global_cdtor): Moved from trans.c.
19944 (gnat_write_global_declarations): Emit global constructor and
19945 destructor, and call cgraph_optimize before emitting debug info for
19946 global declarations.
19947 (global_decls): New global variable.
19948 (gnat_pushdecl): Store the global declarations in global_decls, for
19949 later use.
19950 (gnat_write_global_declarations): Emit debug information for global
19951 declarations.
19952 (create_var_decl_1): Former create_var_decl, with an extra argument to
19953 state whether the creation of a CONST_DECL is allowed.
19954 (create_var_decl): Behavior unchanged. Now a wrapper around
19955 create_var_decl_1 allowing CONST_DECL creation.
19956 (create_true_var_decl): New function, similar to create_var_decl but
19957 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
19958 (create_field_decl): Do not always mark the field as addressable
19959 if its type is an aggregate.
19960 (global_renaming_pointers): New static variable.
19961 (add_global_renaming_pointer): New function.
19962 (get_global_renaming_pointers): Likewise.
19963
19964 * misc.c (gnat_dwarf_name): New function.
19965 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
19966 (gnat_post_options): Add comment about structural alias analysis.
19967 (gnat_parse_file): Do not call cgraph_optimize here.
19968 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
19969
19970 * trans.c (process_freeze_entity): Don't abort if we already have a
19971 non dummy GCC tree for a Concurrent_Record_Type, as it might
19972 legitimately have been elaborated while processing the associated
19973 Concurrent_Type prior to this explicit freeze node.
19974 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
19975 exception handler volatile if it is of variable size.
19976 (process_type): Remove bypass for types coming from a limited_with
19977 clause.
19978 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
19979 actual, convert the corresponding gnu_actual to the real destination
19980 type when necessary.
19981 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
19982 originally TREE_READONLY but whose elaboration cannot be performed
19983 statically.
19984 Part of fix for F504-021.
19985 (tree_transform, subprogram cases): Change loops on formal parameters to
19986 call new Einfo function First_Formal_With_Extras.
19987 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
19988 stemming from type conversion for the lhs.
19989 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
19990 number of bits per unit for components of records.
19991 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
19992 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
19993 with At_End_Proc after the SJLJ EH cleanup.
19994 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
19995 compilation unit.
19996 (elaborate_all_entities): Do not retest type_annotate_only.
19997 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
19998 result type of an abstract subprogram, which may be an itype associated
19999 with an anonymous access result (related to AI-318-02).
20000 (build_global_cdtor): Move to utils.c.
20001 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
20002 this choice is not a null tree nor an integer constant.
20003 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
20004 on the body of elaboration routines instead of mark_unvisited.
20005 (add_stmt): Do not mark the tree.
20006 (add_decl_expr): Tweak comment.
20007 (mark_unvisited): Delete.
20008 (unshare_save_expr): New static function.
20009 (call_to_gnu): Issue an error when making a temporary around a
20010 procedure call because of non-addressable actual parameter if the
20011 type of the formal is by_reference.
20012 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
20013 after building the elaboration routine.
20014
20015 2006-10-31 Bob Duff <duff@adacore.com>
20016
20017 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
20018 as finalization-started, so we can raise Program_Error on 'new'.
20019
20020 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
20021 collection has already started.
20022
20023 * s-finimp.ads (Collection_Finalization_Started): Added new special
20024 flag value for indicating that a collection's finalization has started.
20025
20026 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
20027 create a task whose master has already waited for dependent tasks.
20028
20029 2006-10-31 Robert Dewar <dewar@adacore.com>
20030
20031 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
20032
20033 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
20034 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
20035 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
20036 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
20037 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
20038 a-except-2005.ads: Add pragma Preelaborable_Warning
20039
20040 2006-10-31 Robert Dewar <dewar@adacore.com>
20041 Jose Ruiz <ruiz@adacore.com>
20042
20043 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
20044
20045 * ali.adb (Get_Name): Properly handle scanning of wide character names
20046 encoded with brackets notation.
20047 (Known_ALI_Lines): Add S lines to this list.
20048 (Scan_ALI): Acquire S (priority specific dispatching) lines.
20049 New flag Elaborate_All_Desirable in unit table
20050
20051 * ali.ads (Priority_Specific_Dispatching): Add this range of
20052 identifiers to be used for Priority_Specific_Dispatching table entries.
20053 (ALIs_Record): Add First_Specific_Dispatching and
20054 Last_Specific_Dispatching that point to the first and last entries
20055 respectively in the priority specific dispatching table for this unit.
20056 (Specific_Dispatching): Add this table for storing each S (priority
20057 specific dispatching) line encountered in the input ALI file.
20058 New flag Elaborate_All_Desirable in unit table
20059
20060 * bcheck.adb: (Check_Configuration_Consistency): Add call to
20061 Check_Consistent_Dispatching_Policy.
20062 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
20063 verifying that the use of Priority_Specific_Dispatching,
20064 Task_Dispatching_Policy, and Locking_Policy is consistent across the
20065 partition.
20066
20067 * bindgen.adb: (Public_Version_Warning): function removed.
20068 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
20069 required information from ALI files in order to initialize the table
20070 containing the specific dispatching policy.
20071 (Gen_Adainit_Ada): Generate the variables required for priority specific
20072 dispatching entries (__gl_priority_specific_dispatching and
20073 __gl_num_specific_dispatching).
20074 (Gen_Adainit_C): Generate the variables required for priority specific
20075 dispatching entries (__gl_priority_specific_dispatching and
20076 __gl_num_specific_dispatching).
20077 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
20078 pragma entries.
20079 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
20080 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
20081 (Tab_To): Removed.
20082 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
20083 a call to gnat_set_globals.
20084 Generate a string containing settings from
20085 Priority_Specific_Dispatching pragma entries.
20086 (Gen_Object_Files_Options): Do not include the runtime libraries when
20087 pragma No_Run_Time is specified.
20088
20089 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
20090 consistency with s-intman-posix.adb.
20091 (__gnat_error_handler, case FreeBSD): Account for the fact that the
20092 handler is installed with SA_SIGINFO.
20093 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
20094 FreeBSD ZCX support, copied from Linux version.
20095 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
20096 sigfillset, and sigemptyset so the routines defined by MaRTE.
20097 (__gl_priority_specific_dispatching): Add this variable that stores the
20098 string containing priority specific dispatching policies in the
20099 partition.
20100 (__gl_num_specific_dispatching): Add this variable that indicates the
20101 highest priority for which a priority specific dispatching pragma
20102 applies.
20103 (__gnat_get_specific_dispatching): Add this routine that returns the
20104 priority specific dispatching policy, as set by a
20105 Priority_Specific_Dispatching pragma appearing anywhere in the current
20106 partition. The input argument is the priority number, and the result
20107 is the upper case first character of the policy name.
20108 (__gnat_set_globals): Now a dummy function.
20109 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
20110 mechargs instead of sigargs, as the latter can be retrieved from the
20111 former and sigargs is not what we want on ia64.
20112 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
20113 mechargs argument.
20114 (__gnat_adjust_context_for_raise, ia64-vms): New function.
20115 (tasking_error): Remove unused symbol.
20116 (_abort_signal): Move this symbol to the IRIX specific part since this
20117 is the only target that uses this definition.
20118 (Check_Abort_Status): Move this symbol to the IRIX specific part since
20119 this is the only target that uses this definition.
20120 (Lock_Task): Remove unused symbol.
20121 (Unlock_Task): Remove unused symbol.
20122
20123 * lib-writ.adb (Write_ALI): Output new S lines for
20124 Priority_Specific_Dispatching pragmas.
20125 Implement new flag BD for elaborate body desirable
20126
20127 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
20128 (Specific_Dispatching): Add this table for storing the entries
20129 corresponding to Priority_Specific_Dispatching pragmas.
20130 Document new BD flag for elaborate body desirable
20131
20132 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
20133 of known pragmas.
20134
20135 2006-10-31 Javier Miranda <miranda@adacore.com>
20136
20137 * a-tags.ads, a-tags.adb:
20138 (Predefined_DT): New function that improves readability of the code.
20139 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
20140 Inherit_DT): Use the new function Predefined_DT to improve code
20141 readability.
20142 (Register_Interface_Tag): Update assertion.
20143 (Set_Interface_Table): Update assertion.
20144 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
20145 determining progenitor interfaces in Tags.
20146 (Inherit_CPP_DT): New subprogram.
20147
20148 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
20149 analysis of the thunk code.
20150 (Expand_Interface_Conversion): Handle run-time conversion of
20151 access to class wide types.
20152 (Expand_Dispatching_Call): When generating the profile for the
20153 subprogram itype for a dispatching operation, properly terminate the
20154 formal parameters chaind list (set the Next_Entity of the last formal
20155 to Empty).
20156 (Collect_All_Interfaces): Removed. This routine has been moved to
20157 sem_util and renamed as Collect_All_Abstract_Interfaces.
20158 (Set_All_DT_Position): Hidden entities associated with abstract
20159 interface primitives are not taken into account in the check for
20160 3.9.3(10); this check is done with the aliased entity.
20161 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
20162 interfacing with CPP by default.
20163 (Expand_Interface_Conversion): Add missing support for static conversion
20164 from an interface to a tagged type.
20165 (Collect_All_Interfaces): Add new out formal containing the list of
20166 abstract interface types to cleanup the subprogram Make_DT.
20167 (Make_DT): Update the code to generate the table of interfaces in case
20168 of abstract interface types.
20169 (Is_Predefined_Dispatching_Alias): New function that returns true if
20170 a primitive is not a predefined dispatching primitive but it is an
20171 alias of a predefined dispatching primitive.
20172 (Make_DT): If the ancestor of the type is a CPP_Class and we are
20173 compiling under full ABI compatibility mode we avoid the generation of
20174 calls to run-time services that fill the dispatch tables because under
20175 this mode we currently inherit the dispatch tables in the IP subprogram.
20176 (Write_DT): Emit an "is null" indication for a null procedure primitive.
20177 (Expand_Interface_Conversion): Use an address as the type of the formal
20178 of the internally built function that handles the case in which the
20179 target type is an access type.
20180
20181 2006-10-31 Robert Dewar <dewar@adacore.com>
20182
20183 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
20184
20185 2006-10-31 Robert Dewar <dewar@adacore.com>
20186
20187 * bindusg.ads, bindusg.adb:
20188 Change to package and rename procedure as Display, which
20189 now ensures that it only outputs usage information once.
20190
20191 2006-10-31 Jose Ruiz <ruiz@adacore.com>
20192
20193 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
20194 using RTPs.
20195
20196 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
20197 when using RTPs.
20198
20199 2006-10-31 Robert Dewar <dewar@adacore.com>
20200 Ed Schonberg <schonberg@adacore.com>
20201
20202 * treepr.adb: Use new subtype N_Membership_Test
20203
20204 * checks.ads, checks.adb: Add definition for Validity_Check
20205 (Range_Or_Validity_Checks_Suppressed): New function
20206 (Ensure_Valid): Test Validity_Check suppressed
20207 (Insert_Valid_Check): Test Validity_Check suppressed
20208 (Insert_Valid_Check): Preserve Do_Range_Check flag
20209 (Validity_Check_Range): New procedure
20210 (Expr_Known_Valid): Result of membership test is always valid
20211 (Selected_Range_Checks): Range checks cannot be applied to discriminants
20212 by themselves. Disabling those checks must also be done for task types,
20213 where discriminants may be used for the bounds of entry families.
20214 (Apply_Address_Clause_Check): Remove side-effects if address expression
20215 is non-static and is not the name of a declared constant.
20216 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
20217 Code cleanup and new error messages.
20218 (Enable_Range_Check): Test for some cases of suppressed checks
20219 (Generate_Index_Checks): Suppress index checks if index checks are
20220 suppressed for array object or array type.
20221 (Apply_Selected_Length_Checks): Give warning for compile-time detected
20222 length check failure, even if checks are off.
20223 (Ensure_Valid): Do not generate a check on an indexed component whose
20224 prefix is a packed boolean array.
20225 * checks.adb: (Alignment_Checks_Suppressed): New function
20226 (Apply_Address_Clause_Check): New procedure, this is a completely
20227 rewritten replacement for Apply_Alignment_Check
20228 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
20229 we request a discriminal value only in case of discriminants.
20230 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
20231 assignments where the target subtype is unconstrained and the target
20232 object is a parameter or dereference (other aliased cases are known
20233 to be unconstrained).
20234
20235 2006-10-31 Robert Dewar <dewar@adacore.com>
20236
20237 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
20238 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
20239 vms_conv.adb: Fix bad table increment values (much too small)
20240
20241 * table.adb (Realloc): Make sure we get at least some new elements
20242 Defends against silly small values for table increment
20243
20244 2006-10-31 Robert Dewar <dewar@adacore.com>
20245 Ed Schonberg <schonberg@adacore.com>
20246 Bob Duff <duff@adacore.com>
20247
20248 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
20249 entities. Move other fields around to make this possible
20250 (Is_Derived_Type): Add missing call to Is_Type.
20251 (Extra_Formals): New function for subprograms, entries, subprogram
20252 types.
20253 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
20254 (First_Formal_With_Extras): New function for subprogs, entries, subp
20255 types.
20256 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
20257 Add node information for E_Return_Statement.
20258 (Elaborate_Body_Desirable): New flag
20259 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
20260 to be Is_Inherently_Limited_Type, because return-by-reference has
20261 no meaning in Ada 2005.
20262 (E_Return_Statement): New entity kind.
20263 (Return_Applies_To): Field of E_Return_Statement.
20264 (Is_Return_Object): New flag in object entities.
20265 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
20266 (Must_Have_Preelab_Init): New flag
20267 (Known_To_Have_Preelab_Init): New flag
20268 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
20269 (Is_Visible_Formal): New flag on entities in formal packages.
20270 (Low_Bound_Known): New flag
20271 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
20272 Incomplete_Kind.
20273 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
20274 output when Id is an incomplete subtype.
20275
20276 2006-10-31 Robert Dewar <dewar@adacore.com>
20277
20278 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
20279 Avoid abbreviation Creat
20280 (Finalize): List all sources in extended mail source if -gnatl
20281 switch is active.
20282 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
20283 (Finalize): Implement new -gnatl=xxx switch to output listing to file
20284 (Set_Specific_Warning_On): New procedure
20285 (Set_Specific_Warning_Off): New procedure
20286 Add implementation of new insertion \\
20287 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
20288 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
20289 types.
20290 (Error_Msg_Internal): Make sure that we set Last_Killed to
20291 True when a message from another package is suppressed.
20292 Implement insertion character ~ (insert string)
20293 (First_Node): Minor adjustments to get better placement.
20294
20295 * frontend.adb:
20296 Implement new -gnatl=xxx switch to output listing to file
20297
20298 * gnat1drv.adb:
20299 Implement new -gnatl=xxx switch to output listing to file
20300
20301 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
20302 (Commands_To_Stdout): New flag
20303 Implement new -gnatl=xxx switch to output listing to file
20304 New switch Dump_Source_Text
20305 (Warn_On_Deleted_Code): New warning flag for -gnatwt
20306 Define Error_Msg_Line_Length
20307 (Warn_On_Assumed_Low_Bound): New switch
20308
20309 * osint.ads, osint.adb
20310 (Normalize_Directory_Name): Fix bug.
20311 Implement new -gnatl=xxx switch to output listing to file
20312 (Concat): Removed, replaced by real concatenation
20313 Make use of concatenation now allowed in compiler
20314 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
20315 we find the 'lib' or 'bin' directory even when the tool has been
20316 invoked with a relative path.
20317 (Executable_Name): New function taking string parameters.
20318
20319 * osint-c.ads, osint-c.adb:
20320 Implement new -gnatl=xxx switch to output listing to file
20321
20322 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
20323
20324 * switch-c.adb:
20325 Implement new -gnatl=xxx switch to output listing to file
20326 Recognize new -gnatL switch
20327 (no longer keep in old warning about old style usage)
20328 Use concatenation to simplify code
20329 Recognize -gnatjnn switch
20330 (Scan_Front_End_Switches): Clean up handling of -gnatW
20331 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
20332
20333 2006-10-31 Robert Dewar <dewar@adacore.com>
20334
20335 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
20336 (Set_Specific_Warning_Off): New procedure
20337 (Warning_Specifically_Suppressed): New function
20338 (Validate_Specific_Warnings): New procedure
20339 (Output_Msg_Text): Complete rewrite to support -gnatjnn
20340
20341 * err_vars.ads: Implement insertion character ~ (insert string)
20342
20343 2006-10-31 Bob Duff <duff@adacore.com>
20344 Ed Schonberg <schonberg@adacore.com>
20345
20346 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
20347 the parent part is a build-in-place function call, generate assignments.
20348 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
20349 are build-in-place function calls.
20350 (Replace_Self_Reference): New subsidiary of
20351 Make_OK_Assignment_Statement, to replace an access attribute that is a
20352 self-reference into an access to the appropriate component of the
20353 target object. Generalizes previous mechanism to handle self-references
20354 nested at any level.
20355 (Is_Self_Referential_Init): Remove, not needed.
20356 (Is_Self_Referential_Init): New predicate to simplify handling of self
20357 referential components in record aggregates.
20358 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
20359 check for presence of entity before checking for self-reference.
20360 (Has_Default_Init_Comps): Return True if a component association is a
20361 self-reference to the enclosing type, which can only come from a
20362 default initialization.
20363 (Make_OK_Assignment_Statement): If the expression is of the form
20364 Typ'Acc, where Acc is an access attribute, the expression comes from a
20365 default initialized self-referential component.
20366 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
20367 that has been derived from several abstract interfaces we must also
20368 initialize the tags of the secondary dispatch tables.
20369
20370 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20371 Thomas Quinot <quinot@adacore.com>
20372 Javier Miranda <miranda@adacore.com>
20373 Robert Dewar <dewar@adacore.com>
20374
20375 * exp_attr.adb:
20376 (Expand_Access_To_Protected_Op): If the context indicates that an access
20377 to a local operation may be transfered outside of the object, create an
20378 access to the wrapper operation that must be used in an external call.
20379 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
20380 target, pass the Valid attribute applied to a floating-point prefix on
20381 to the back end without expansion.
20382 (Storage_Size): Use the new run-time function Storage_Size to retrieve
20383 the allocated storage when it is specified by a per-object expression.
20384 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
20385 Nothing to do here, the attribute has been rewritten during semantic
20386 analysis.
20387 (Expand_Attribute_Reference): Handle expansion of the new Priority
20388 attribute
20389 (Find_Fat_Info): Handle case of universal real
20390 (Expand_Access_To_Protected_Op): Fix use of access to protected
20391 subprogram from inside the body of a protected entry.
20392 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
20393 'Access and 'Unrestricted_Access, to transform the attribute reference
20394 into a fat pointer.
20395 (Is_Constrained_Aliased_View): New predicate to help determine whether a
20396 subcomponent's enclosing variable is aliased with a constrained subtype.
20397 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
20398 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
20399 an aliased prefix must be known to be constrained in order to use True
20400 for the attribute value, and now it's possible for some aliased views
20401 to be unconstrained.
20402
20403 2006-10-31 Robert Dewar <dewar@adacore.com>
20404
20405 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
20406 (Expand_Entity_Reference): Correct error of not handling subprogram
20407 formals in current_value processing.
20408
20409 2006-10-31 Javier Miranda <miranda@adacore.com>
20410 Robert Dewar <dewar@adacore.com>
20411 Ed Schonberg <schonberg@adacore.com>
20412 Gary Dismukes <dismukes@adacore.com>
20413
20414 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
20415 register in the final list objects containing class-wide interfaces;
20416 otherwise we incorrectly register the tag of the interface in the final
20417 list.
20418 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
20419 generate the wrapper if the parent primitive is abstract. This is
20420 required to report the correct error message.
20421 (Expand_N_Subtype_Indication): Do validity checks on range
20422 (Clean_Task_Names): If an initialization procedure includes a call to
20423 initialize a task (sub)component, indicate that the procedure will use
20424 the secondary stack.
20425 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
20426 compatibility for interfacing with CPP by default.
20427 (Expand_N_Object_Declaration): Only build an Adjust call when the
20428 object's type is a nonlimited controlled type.
20429 * exp_ch3.adb: Add with and use of Exp_Ch6.
20430 (Expand_N_Object_Declaration): Check for object initialization that is a
20431 call to build-in-place function and apply Make_Build_In_Place_Call_In_
20432 Object_Declaration to the call.
20433 (Freeze_Type): When the designated type of an RACW was not frozen at the
20434 point where the RACW was declared, validate the primitive operations
20435 with respect to E.2.2(14) when it finally is frozen.
20436 (Build_Initialization_Call,Expand_Record_Controller): Rename
20437 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
20438 return-by-reference has no meaning in Ada 2005.
20439 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
20440 to register tag of the immediate ancestor interfaces in the
20441 run-time structure.
20442 (Init_Secondary_Tags): Moved to the specification to allow the
20443 initialization of extension aggregates with abstract interfaces.
20444 (Build_Master_Renaming): Make public, for use by function declarations
20445 whose return type is an anonymous access type.
20446 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
20447 Insert_List_Before_And_Analyze after the generation of the specs
20448 associated with null procedures.
20449 (Expand_Tagged_Root): Update documentation in its specification.
20450 (Init_Secondary_Tags): Update documentation.
20451 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
20452 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
20453 then generate code to inherit the contents of the dispatch table
20454 directly from the ancestor.
20455 (Expand_Record_Controller): Insert controller component after tags of
20456 implemented interfaces.
20457 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
20458 create null procedure overridings when null procedures are inherited
20459 from interfaces.
20460 (Make_Null_Procedure_Specs): New procedure to generate null procedure
20461 declarations for overriding null primitives inherited from interfaces.
20462 (Is_Null_Interface_Procedure): New function in
20463 Make_Null_Procedure_Specs.
20464 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
20465 immediate ancestor of a tagged type is an abstract interface type we
20466 must generate the specification of the predefined primitives associated
20467 with controlled types (because the dispatch table of the ancestor is
20468 null and hence these entries cannot be inherited). This is required to
20469 elaborate well the dispatch table.
20470
20471 2006-10-31 Javier Miranda <miranda@adacore.com>
20472 Ed Schonberg <schonberg@adacore.com>
20473 Bob Duff <duff@adacore.com>
20474 Gary Dismukes <dismukes@adacore.com>
20475 Robert Dewar <dewar@adacore.com>
20476
20477 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
20478 conversion.
20479 (Expand_N_In): Do validity checks on range
20480 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
20481 (Expand_N_Allocator): For "new T", if the object is constrained by
20482 discriminant defaults, allocate the right amount of memory, rather than
20483 the maximum for type T.
20484 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
20485 when the allocator is initialized by a build-in-place call, since the
20486 allocator is already rewritten as a reference to the function result,
20487 and this prevents an unwanted duplication of the function call.
20488 Add with and use of Exp_Ch6.
20489 (Expand_Allocator_Expresssion): Check for an allocator whose expression
20490 is a call to build-in-place function and apply
20491 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
20492 untagged designated types).
20493 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
20494 optimization if source or target is biased.
20495 (Expand_N_Allocator): Add comments for case of an allocator within a
20496 function that returns an anonymous access type designating tasks.
20497 (Expand_N_Allocator): apply discriminant checks for access
20498 discriminants of anonymous access types (AI-402, AI-416)
20499
20500 2006-10-31 Bob Duff <duff@adacore.com>
20501 Robert Dewar <dewar@adacore.com>
20502 Gary Dismukes <dismukes@adacore.com>
20503 Ed Schonberg <schonberg@adacore.com>
20504
20505 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
20506
20507 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
20508 (Expand_N_Assignment_Statement): Call
20509 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
20510 build-in-place function call. Currently, this can happen only for
20511 assignments that come from aggregates.
20512 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20513 in order to alleviate the upward compatibility introduced by AI-318.
20514 (Expand_N_Extended_Return_Statement): Add support for handling the
20515 return object as a build-in-place result.
20516 (Expand_Non_Function_Return): Implement simple return statements nested
20517 within an extended return.
20518 (Enable_New_Return_Processing): Turn on the new processing of return
20519 statements.
20520 (Expand_Non_Function_Return): For a return within an extended return,
20521 don't raise Program_Error, because Sem_Ch6 now gives a warning.
20522 (Expand_N_Extended_Return_Statement): Implement AI-318
20523 (Expand_Simple_Function_Return): Ditto.
20524 (Expand_N_If_Statement): Handle new -gnatwt warning
20525 (Expand_N_Case_Statement): Handle new -gnatwt warning
20526 (Expand_N_Assignment): Handle assignment to the Priority attribute of
20527 a protected object.
20528 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
20529 validity checking of assignments to elementary record components.
20530 (Expand_N_Return_Statement): return Class Wide types on the secondary
20531 stack independantly of their controlled status since with HIE runtimes,
20532 class wide types are not potentially controlled anymore.
20533
20534 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
20535 node kind.
20536
20537 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
20538 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
20539 it expects a block, procedure, or task. The return statement will get
20540 turned into a block, and Expand_Cleanup_Actions will happen then.
20541
20542 2006-10-31 Robert Dewar <dewar@adacore.com>
20543 Ed Schonberg <schonberg@adacore.com>
20544 Bob Duff <duff@adacore.com>
20545 Gary Dismukes <dismukes@adacore.com>
20546
20547 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
20548 capability.
20549 (Expand_Inlined_Call): Tagged types are by-reference types, and
20550 therefore should be replaced by a renaming declaration in the expanded
20551 body, as is done for limited types.
20552 (Expand_Call): If this is a call to a function with dispatching access
20553 result, propagate tag from context.
20554 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
20555 CPP by default.
20556 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
20557 build-in-place when the right-hand side of an assignment is a
20558 build-in-place function call.
20559 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
20560 of the explicit dereference of the allocator to the result subtype of
20561 the build-in-place function. This is needed to satisfy type checking
20562 in cases where the caller's return object is created by an allocator for
20563 a class-wide access type and the type named in the allocator is a
20564 specific type.
20565 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
20566 conversion of the reference to the declared object to the result subtype
20567 of the build-in-place function. This is needed to satisfy type checking
20568 in cases where the declared object has a class-wide type. Also, in the
20569 class-wide case, change the type of the object entity to the specific
20570 result subtype of the function, to avoid passing a class-wide object
20571 without explicit initialization to the back end.
20572 (Register_Interface_DT_Entry): Moved outside the body of
20573 Freeze_Subprogram because this routine is now public; it is called from
20574 Check_Dispatching_Overriding to handle late overriding of abstract
20575 interface primitives.
20576 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
20577 adding an implicit access actual on a call to a build-in-place function.
20578 (Expand_Actuals): Test for an actual parameter that is a call to a
20579 build-in-place function and apply
20580 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
20581 (Is_Build_In_Place_Function): New function to determine whether an
20582 entity is a function whose calls should be handled as build-in-place.
20583 (Is_Build_In_Place_Function_Call): New function to determine whether an
20584 expression is a function call that should handled as build-in-place.
20585 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
20586 calls to build-in-place functions as the initialization of an allocator.
20587 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
20588 handling calls to build-in-place functions in contexts that do not
20589 involve init of a separate object (for example, actuals of subprogram
20590 calls).
20591 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
20592 handling calls to build-in-place functions as the initialization of an
20593 object declaration.
20594 (Detect_Infinite_Recursion): Add explicit parameter Process to
20595 instantiation of Traverse_Body to avoid unreferenced warning.
20596 (Check_Overriding_Inherited_Interfaces): Removed.
20597 (Register_Interface_DT_Entry): Code cleanup.
20598 (Register_Predefined_DT_Entry): Code cleanup.
20599 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
20600 inlined statements if within a transient scope.
20601 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
20602 formal parameters with occurrences of actuals in inlined body, establish
20603 visibility on the proper view of the actual's subtype for the body's
20604 context.
20605 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
20606 compatibility mode and we have an imported CPP subprogram because
20607 for now we assume that imported CPP primitives correspond with
20608 objects whose constructor is in the CPP side (and therefore we
20609 don't need to generate code to register them in the dispatch table).
20610 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
20611 aligned selected component.
20612 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
20613 the actual of an in-mode parameter is a type conversion.
20614 (Expand_Actuals): If the call does not come from source and the actual
20615 is potentially misaligned, let gigi handle it rather than rejecting the
20616 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
20617 Class Wide types as returning by reference independantly of their
20618 controlled status since with HIE runtimes class wide types are not
20619 potentially controlled anymore.
20620
20621 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20622
20623 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
20624 references that are private components of the protected object.
20625 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
20626 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
20627 instantiation to deal with warnings.
20628 (Initialize_Protection): If expression for priority is non-static, use
20629 System_Priority as its expected type, in case the expression has not
20630 been analyzed yet.
20631
20632 2006-10-31 Robert Dewar <dewar@adacore.com>
20633
20634 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
20635 initialization of Homonym_Len.
20636 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
20637 names from fully qualified name. Fixes problem of duplicate
20638 external names differing only in the presence of such a block name.
20639
20640 2006-10-31 Thomas Quinot <quinot@adacore.com>
20641 Pablo Oliveira <oliveira@adacore.com>
20642
20643 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
20644 subprogram Ids, even if they are not yet assigned.
20645 (Build_Subprogram_Id): It is now this function that will take care of
20646 calling Assign_Subprogram_Ids if necessary.
20647 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
20648 should be done only once they are assigned.
20649 (Build_From_Any_Function, case of tagged types): Add missing call to
20650 Allocate_Buffer.
20651 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
20652 type for an RACW type.
20653 (Add_RACW_Features): When processing an RACW declaration for which the
20654 designated type is already frozen, enforce E.2.2(14) rules immediately.
20655 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
20656 special reordering of controlling formals.
20657
20658 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
20659 associated stub type for an RACW type.
20660
20661 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20662
20663 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
20664 fixed-point operations in an integer context, i.e. as operands of a
20665 conversion to an integer type, indicate that result must be rounded.
20666
20667 2006-10-31 Robert Dewar <dewar@adacore.com>
20668
20669 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
20670 cases, pass the encoding method, since it is now required by the run
20671 time.
20672
20673 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
20674 assumption that Str'First = 1.
20675 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
20676 it on to the Value_Wide_Wide_Character call.
20677 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
20678 properly handles a string of the form quote-encoded_wide_char-quote.
20679
20680 * s-wchcnv.adb: Minor reformatting
20681
20682 2006-10-31 Javier Miranda <miranda@adacore.com>
20683
20684 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
20685 run-time membership test to ensure that the constructed object
20686 implements the target abstract interface.
20687
20688 2006-10-31 Robert Dewar <dewar@adacore.com>
20689
20690 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
20691 Machine_Attribute pragma internally to implement the user pragma.
20692 Add processing for pragma Interface so that it is now completely
20693 equivalent to pragma Import.
20694
20695 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
20696 so that it can be applied to all entities, including record components
20697 and enumeration literals.
20698 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
20699 priority ranges are correct, verify compatibility against task
20700 dispatching and locking policies, and if everything is correct an entry
20701 is added to the table containing priority specific dispatching entries
20702 for this compilation unit.
20703 (Delay_Config_Pragma_Analyze): Delay processing
20704 Priority_Specific_Dispatching pragmas because when processing the
20705 pragma we need to access run-time data, such as the range of
20706 System.Any_Priority.
20707 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
20708 Allow pragma Unreferenced as a context item
20709 Add pragma Preelaborable_Initialization
20710 (Analyze_Pragma, case Interface): Interface is extended so that it is
20711 now syntactically and semantically equivalent to Import.
20712 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
20713 insertion characters.
20714 Add handling for Pragma_Wide_Character_Encoding
20715 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
20716 never supercedes a real restriction, and that a real restriction
20717 always supercedes a warning.
20718 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
20719 appropriate form.
20720
20721 2006-10-31 Bob Duff <duff@adacore.com>
20722 Ed Schonberg <schonberg@adacore.com>
20723 Robert Dewar <dewar@adacore.com>
20724
20725 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
20726 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
20727 Is_Inherently_Limited_Type, because return-by-reference has no meaning
20728 in Ada 2005.
20729 (Find_Node_To_Be_Wrapped): Use new method of determining the result
20730 type of the function containing a return statement, because the
20731 Return_Type field was removed. We now use the Return_Applies_To field.
20732
20733 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
20734 (Build_Task_Image_Decl): If procedure is not called from an
20735 initialization procedure, indicate that function that builds task name
20736 uses the sec. stack. Otherwise the enclosing initialization procedure
20737 will carry the indication.
20738 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
20739 N_Object_Declaration instead.
20740 (Kill_Dead_Code): New interface to implement -gnatwt warning for
20741 conditional dead code killed, and change implementation accordingly.
20742 (Insert_Actions): Add N_Return_Object_Declaration case.
20743 Correct comment to mention N_Extension_Aggregate node.
20744 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
20745 attempts to save information for global variables which cannot be
20746 safely tracked.
20747 (Get_Current_Value_Condition): Handle conditions the other way round
20748 (constant on left). Also handle right operand of AND and AND THEN
20749 (Set_Current_Value_Condition): Corresponding changes
20750 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
20751 (Get_Current_Value_Condition): Handle simple boolean operands
20752 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
20753 (Get_Current_Value_Condition): If the variable reference is within an
20754 if-statement, does not appear in the list of then_statments, and does
20755 not come from source, treat it as being at unknown location.
20756 (Get_Current_Value_Condition): Enhance to allow while statements to be
20757 processed as well as if statements.
20758 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
20759 come from source.
20760 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
20761 of loop. This is safe now that we fixed Kill_Current_Values.
20762 (OK_To_Do_Constant_Replacement): Check whether current scope is
20763 Standard, before examining outer scopes.
20764
20765 2006-10-31 Vincent Celier <celier@adacore.com>
20766
20767 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
20768 When True, apply VMS treatment to children of packages A, G, I and S.
20769 For F320-016
20770
20771 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
20772
20773 2006-10-31 Robert Dewar <dewar@adacore.com>
20774 Ed Schonberg <schonberg@adacore.com>
20775
20776 * freeze.adb: Add handling of Last_Assignment field
20777 (Warn_Overlay): Supply missing continuation marks in error msgs
20778 (Freeze_Entity): Add check for Preelaborable_Initialization
20779
20780 * g-comlin.adb: Add Warnings (Off) to prevent new warning
20781
20782 * g-expect.adb: Add Warnings (Off) to prevent new warning
20783
20784 * lib-xref.adb: Add handling of Last_Assignment field
20785 (Generate_Reference): Centralize handling of pragma Obsolescent here
20786 (Generate_Reference): Accept an implicit reference generated for a
20787 default in an instance.
20788 (Generate_Reference): Accept a reference for a node that is not in the
20789 main unit, if it is the generic body corresponding to an subprogram
20790 instantiation.
20791
20792 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
20793
20794 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
20795 -gnatwq/Q.
20796 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
20797 exception handler.
20798 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
20799 use clauses, to avoid messages on packages used to qualify, and also
20800 to avoid messages from obsolescent units.
20801 (Warn_On_Useless_Assignments): Don't generate messages for imported
20802 and exported variables.
20803 (Warn_On_Useless_Assignments): New procedure
20804 (Output_Obsolescent_Entity_Warnings): New procedure
20805 (Check_Code_Statement): New procedure
20806
20807 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
20808 Change name Is_Ada_2005 to Is_Ada_2005_Only
20809 (Last_Assignment): New field for useless assignment warning
20810
20811 2006-10-31 Olivier Hainque <hainque@adacore.com>
20812
20813 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
20814 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
20815
20816 2006-10-31 Bob Duff <duff@adacore.com>
20817 Robert Dewar <dewar@adacore.com>
20818 Ed Schonberg <schonberg@adacore.com>
20819
20820 * g-awk.adb (Default_Session, Current_Session): Compile this file in
20821 Ada 95 mode, because it violates the new rules for AI-318.
20822
20823 * g-awk.ads: Use overloaded subprograms in every case where we used to
20824 have a default of Current_Session. This makes the code closer to be
20825 correct for both Ada 95 and 2005.
20826
20827 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
20828 code, relying on the fact that the compiler generates a warning
20829 instead of an error in -gnatg mode.
20830
20831 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
20832 E_Return_Statement entity kind.
20833 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
20834
20835 * par.adb (P_Interface_Type_Definition): Addition of one formal to
20836 report an error if the reserved word abstract has been previously found.
20837 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
20838
20839 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
20840 parenthesized range attribute usage
20841 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
20842
20843 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
20844 in the syntax for extended_return_statement. This is not in the latest
20845 RM, but the ARG is expected to issue an AI allowing this.
20846 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
20847 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
20848 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
20849 P_Return_Statement): Parse the new syntax for extended_return_statement.
20850
20851 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
20852 Output_End_Missing): Add error-recovery code for the new
20853 extended_return_statement syntax; that is, the new E_Return entry on
20854 the scope stack.
20855
20856 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
20857 limited to nonlimited, because otherwise we violate the new Ada 2005
20858 rules about returning limited types in function Create_AST_Handler in
20859 s-asthan.adb.
20860
20861 * sem.adb (Analyze): Add cases for new node kinds
20862 N_Extended_Return_Statement and N_Return_Object_Declaration.
20863
20864 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
20865 type is in the same category as type of context before applying check,
20866 to prevent anomalies in instantiations.
20867 (Resolve_Aggregate): Remove test for limited components in aggregates.
20868 It's unnecessary in Ada 95, because if it has limited components, then
20869 it must be limited. It's wrong in Ada 2005, because limited aggregates
20870 are now allowed.
20871 (Resolve_Record_Aggregate): Move check for limited types later, because
20872 OK_For_Limited_Init requires its argument to have been resolved.
20873 (Get_Value): When copying the component default expression for a
20874 defaulted association in an aggregate, use the sloc of the aggregate
20875 and not that of the original expression, to prevent spurious
20876 elaboration errors, when the expression includes function calls.
20877 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
20878 were missing. We also didn't handle qualified expressions. Now also
20879 allow function calls. Use new common routine OK_For_Limited_Init.
20880 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
20881 with space can upper case letter).
20882
20883 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
20884 Has_Static_Discriminants flag
20885 (Record_Type_Declaration): Diagnose an attempt to declare an interface
20886 type with discriminants.
20887 (Process_Range_Expr_In_Decl): Do validity checks on range
20888 (Build_Discriminant_Constraints): Use updated form of
20889 Denotes_Discriminant.
20890 (Process_Subtype): If the subtype is a private subtype whose full view
20891 is a concurrent subtype, introduce an itype reference to prevent scope
20892 anomalies in gigi.
20893 (Build_Derived_Record_Type, Collect_Interface_Primitives,
20894 Record_Type_Declaration): The functionality of the subprograms
20895 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
20896 is now performed by a single routine.
20897 (Build_Derived_Record_Type): If the type definition includes an explicit
20898 indication of limitedness, then the type must be marked as limited here
20899 to ensure that any access discriminants will not be treated as having
20900 a local anonymous access type.
20901 (Check_Abstract_Overriding): Issue a detailed error message when an
20902 abstract subprogram was not overridden due to incorrect mode of its
20903 first parameter.
20904 (Analyze_Private_Extension_Declaration): Add support for the analysis of
20905 synchronized private extension declarations. Verify that the ancestor is
20906 a limited or synchronized interface or in the generic case, the ancestor
20907 is a tagged limited type or synchronized interface and all progenitors
20908 are either limited or synchronized interfaces.
20909 Derived_Type_Declaration): Check for presence of private extension when
20910 dealing with synchronized formal derived types.
20911 Process_Full_View): Enchance the check done on the usage of "limited" by
20912 testing whether the private view is synchronized.
20913 Verify that a synchronized private view is completed by a protected or
20914 task type.
20915 (OK_For_Limited_Init_In_05): New function.
20916 (Analyze_Object_Declaration): Move check for limited types later,
20917 because OK_For_Limited_Init requires its argument to have been resolved.
20918 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20919 in order to alleviate the upward compatibility introduced by AI-318.
20920 (Constrain_Corresponding_Record): If the constraint is for a component
20921 subtype, mark the itype as frozen, to avoid out-of-scope references to
20922 discriminants in the back-end.
20923 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
20924 this subprogram against wrong sources.
20925 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
20926 discriminant of limited type completed with a protected type, when the
20927 discriminant is used to constrain a private component of the type, and
20928 expansion is disabled.
20929 (Find_Type_Of_Object): Do not treat a return subtype that is an
20930 anonymous subtype as a local_anonymous_type, because its accessibility
20931 level is the return type of the enclosing function.
20932 (Check_Initialization): In -gnatg mode, turn the error "cannot
20933 initialize entities of limited type" into a warning.
20934 (OK_For_Limited_Init): Return true for generated nodes, since it
20935 sometimes violates the legality rules.
20936 (Make_Incomplete_Declaration): If the type for which an incomplete
20937 declaration is created happens to be the currently visible entity,
20938 preserve the homonym chain when removing it from visibility.
20939 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
20940 inherited subprograms.
20941 (Access_Definition): If this is an access to function that is the return
20942 type of an access_to_function definition, context is a type declaration
20943 and the scope of the anonymous type is the current one.
20944 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
20945 incomplete subtype to the set of private dependents of the original
20946 incomplete type.
20947 (Constrain_Discriminated_Type): Emit an error message whenever an
20948 incomplete subtype is being constrained.
20949 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
20950 corresponding subtype of the full view of the original incomplete type.
20951 (Check_Incomplete): Properly detect invalid usage of incomplete types
20952 and subtypes.
20953
20954 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
20955
20956 * g-catiio.ads, g-catiio.adb (Value): New function.
20957 Given an input String, try and parse a valid Time value.
20958
20959 2006-10-31 Vincent Celier <celier@adacore.com>
20960
20961 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
20962 Integer_Address arithmetic, as in Set_Valid.
20963
20964 2006-10-31 Arnaud Charlet <charlet@adacore.com>
20965 Robert Dewar <dewar@adacore.com>
20966
20967 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
20968 handling executable extension manually and duplicating code.
20969
20970 * make.adb: Implement new -S switch
20971 (Gnatmake): Use new function Osint.Executable_Name instead
20972 of handling executable extension manually.
20973
20974 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
20975 is specified, the executable name ends with this suffix.
20976 Take advantage of Osint.Executable_Name instead of duplicating code.
20977
20978 * switch-m.adb: Recognize new gnatmake -S switch
20979
20980 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
20981 variable.
20982 (Get_Target_Parameters): Set Executable_Extension_On_Target if
20983 available.
20984
20985 * makeusg.adb: Add line for gnatmake -S switch
20986
20987 2006-10-31 Vincent Celier <celier@adacore.com>
20988
20989 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
20990 call it with -static-libgcc, as there are some platforms, such as
20991 Darwin, where one of these two switches is compulsory to link.
20992
20993 2006-10-31 Vincent Celier <celier@adacore.com>
20994
20995 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
20996 instead of ADA_PROJECT_PATH, for the project path.
20997 (Gnatls): When displaying the project path directories, use host dir
20998 specs.
20999
21000 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
21001 names in the project path, as absolute paths may correspond to
21002 multi-valued VMS logical names.
21003
21004 2006-10-31 Vincent Celier <celier@adacore.com>
21005
21006 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
21007 absolute path name.
21008 (Locate_Regular_File): Ditto
21009 (Change_Dir): Remove, no longer used
21010 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
21011 on Windows. Get it calling Get_Current_Dir.
21012 (OpenVMS): Remove imported boolean, no longer needed.
21013 (Normalize_Pathname)[VMS]: Do not resolve directory names.
21014 (Pid_To_Integer): New function to convert a Process_Id to Integer
21015
21016 2006-10-31 Thomas Quinot <quinot@adacore.com>
21017
21018 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
21019 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
21020 to No_Socket.
21021 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
21022 W_Sig_Socket.
21023
21024 2006-10-31 Robert Dewar <dewar@adacore.com>
21025
21026 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
21027 initial letter o as a zero.
21028
21029 2006-10-31 Robert Dewar <dewar@adacore.com>
21030
21031 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
21032
21033 2006-10-31 Robert Dewar <dewar@adacore.com>
21034
21035 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
21036 variant records
21037 (Layout_Variant_Record): Retrieve the discriminants from the entity
21038 rather than from the type definition, because in the case of a full
21039 type for a private type we need to take the discriminants from the
21040 partial view.
21041 (Layout_Component_List): When applying the Max operator to variants with
21042 a nonstatic size, check whether either operand is static and scale that
21043 operand from bits to storage units before applying Max.
21044 (Layout_Type): In VMS, if a C-convention access type has no explicit
21045 size clause (and does not inherit one in the case of a derived type),
21046 then the size is reset to 32 from 64.
21047
21048 2006-10-31 Vincent Celier <celier@adacore.com>
21049
21050 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
21051 its file has already been loaded, according to the unit being loaded,
21052 not to the current value of Multiple_Unit_Index.
21053
21054 2006-10-31 Thomas Quinot <quinot@adacore.com>
21055 Eric Botcazou <ebotcazou@adacore.com>
21056 Arnaud Charlet <charlet@adacore.com>
21057
21058 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
21059 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
21060 possible.
21061 (a-except.o): Pass it to the compiler.
21062 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
21063 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
21064 a-calend-mingw.adb version.
21065
21066 * Makefile.rtl: Added s-dsaser.
21067 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
21068 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
21069 Ada.Dispatching.Round_Robin.
21070 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
21071
21072 * Make-lang.in: Remove all references to gt-ada-decl.h.
21073 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
21074 sources.
21075 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
21076 Update dependencies.
21077
21078 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
21079
21080 2006-10-31 Vincent Celier <celier@adacore.com>
21081
21082 * mlib-utl.adb (Initialized): Remove, no longer used
21083 (Initialize): Remove, no longer used
21084 (Ar): If Ar_Exec is null, get the location of the archive builder and,
21085 if there is one, the archive indexer. Fail if the archive builder cannot
21086 be found.
21087 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
21088 be found.
21089
21090 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21091
21092 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
21093 Process_Body_Clauses): If the context of a body includes a use clause
21094 for P.Q then a with_clause for P in the same body is not redundant,
21095 even if the spec also has a with_clause on P.
21096 Add missing continuation mark to error msg
21097 (Build_Limited_Views): A limited view of a type is tagged if its
21098 declaration includes a record extension.
21099 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
21100 node, even if the subunit has errors. This avoids malfunction by
21101 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
21102 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
21103 generation of obsolescent messages for with statements (cannot do
21104 this too early, or we cannot implement avoiding the messages in the
21105 case of obsolescent units withing obsolescent units).
21106 (Install_Siblings): If the with_clause is on a remote descendant of
21107 an ancestor of the current compilation unit, find whether there is
21108 a sibling child unit that is immediately visible.
21109 (Remove_Private_With_Clauses): New procedure, invoked after completing
21110 the analysis of the private part of a nested package, to remove from
21111 visibility the private with_clauses of the enclosing package
21112 declaration.
21113 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
21114 now centralized in Generate_Reference.
21115 (Install_Limited_Context_Clauses): Remove superfluous error
21116 message associated with unlimited view visible through use
21117 and renamings. In addition, at the point in which the error
21118 is reported, we add the backslash to the text of the error
21119 to ensure that it is reported as a single error message.
21120 Use new // insertion for some continuation messages
21121 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
21122 to create implicit with_clause for parent unit mentioned in original
21123 limited_with_clause.
21124 (Install_Limited_With_Unit): Set entity of parent identifiers if the
21125 unit is a child unit. For ASIS queries.
21126 (Analyze_Subunit): If the subunit appears within a child unit, make all
21127 ancestor child units directly visible again.
21128
21129 2006-10-31 Robert Dewar <dewar@adacore.com>
21130
21131 * par-ch10.adb (P_Context_Clause): Minor error message fix
21132
21133 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21134 Javier Miranda <miranda@adacore.com>
21135
21136 * par-ch12.adb: Grammar update and cleanup.
21137 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
21138 support for synchronized derived type definitions.
21139 Add the new actual Abstract_Present to every call to
21140 P_Interface_Type_Definition.
21141 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
21142 a formal object declaration with an access definition or a subtype mark
21143 with a null exclusion.
21144 (P_Generic_Association): Handle association with box, and others_choice
21145 with box, to support Ada 2005 partially parametrized formal packages.
21146
21147 2006-10-31 Robert Dewar <dewar@adacore.com>
21148 Javier Miranda <miranda@adacore.com>
21149
21150 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
21151 (P_Type_Declaration): Remove barrier against the reserved word "limited"
21152 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
21153 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
21154 private extensions.
21155 (P_Type_Declaration): Add the new actual Abstract_Present to every call
21156 to P_Interface_Type_Definition.
21157 (P_Interface_Type_Definition): Addition of one formal to report an error
21158 if the reserved word abstract has been previously found.
21159 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
21160 object renaming declaration with an access definition or subtype mark
21161 with a possible null exclusion.
21162
21163 * par-ch9.adb: Minor error msg fix
21164
21165 * par-load.adb: Add missing continuation mark to error msg
21166
21167 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
21168
21169 2006-10-31 Vincent Celier <celier@adacore.com>
21170
21171 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
21172 unknown attribute in unknown package or in package that does not need
21173 to be checked.
21174 (Parse_Package_Declaration): Do not issue warning for unknown package in
21175 quiet output.
21176
21177 2006-10-31 Vincent Celier <celier@adacore.com>
21178
21179 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
21180 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
21181 Packages_To_Check.
21182
21183 2006-10-31 Vincent Celier <celier@adacore.com>
21184
21185 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
21186 on VMS, change "__" to '.' before checking the name.
21187 (Record_Ada_Source): Always add the source file name in the list of
21188 of sources, even if it is not the first time, as it is for another
21189 source index.
21190 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
21191 dot, instead of replacing only the first '_'.
21192
21193 * prj-part.adb (Parse): Convert project file path to canonical form
21194
21195 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
21196 extended, the project id of the project extending it is recorded in its
21197 data, even when it has already been processed as an imported project.
21198
21199 2006-10-31 Robert Dewar <dewar@adacore.com>
21200
21201 * repinfo.adb (List_Entities): Don't list entities from renaming
21202 declarations.
21203
21204 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21205 Robert Dewar <dewar@adacore.com>
21206
21207 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
21208 only a restriction warning is active for the given restriction. This is
21209 desirable because we do not want to modify code in the case where only
21210 a warning is set.
21211 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
21212 causes overriding of real restrictions.
21213 Take advantage of new No_Restrictions constant.
21214
21215 * raise.h: (__gnat_set_globals): Change profile.
21216
21217 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21218
21219 * rtsfind.adb: Remove s-polint from comment as it exists no more.
21220
21221 * rtsfind.ads:
21222 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
21223 Move all the entities in obsolete package System.PolyORB_Interface to
21224 System.Partition_Interface.
21225 (RE_Storage_Size): New function in System.Tasking.
21226 (RE_Get_Ceiling): New entity.
21227 (RE_Set_Ceiling): New entity.
21228 (RO_PE_Get_Ceiling): New entity.
21229 (RO_RE_Set_Ceiling): New entity.
21230 (Inherit_CPP_DT): New entity
21231
21232 2006-10-31 Robert Dewar <dewar@adacore.com>
21233
21234 * scng.adb (Scan, case of numeric literal): Better msg for identifier
21235 starting with a digit.
21236
21237 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21238 Thomas Quinot <quinot@adacore.com>
21239 Javier Miranda <miranda@adacore.com>
21240 Gary Dismukes <dismukes@adacore.com>
21241
21242 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
21243 properly an attempt to apply Unchecked_Access to a protected operation.
21244 (OK_Self_Reference): New subprogram to check the legality of an access
21245 attribute whose prefix is the type of an enclosing aggregate.
21246 Generalizes previous mechanism to handle attribute references nested
21247 arbitrarily deep within the aggregate.
21248 (Analyze_Access_Attribute): An access attribute whose prefix is a type
21249 can appear in an aggregate if this is a default-initialized aggregate
21250 for a self-referential type.
21251 (Resolve_Attribute, case Access): Ditto.
21252 Add support for new implementation defined attribute Stub_Type.
21253 (Eval_Attribute, case Attribute_Stub_Type): New case.
21254 (Analyze_Attribute, case Attribute_Stub_Type): New case.
21255 (Stream_Attribute_Available): Implement using new subprogram from
21256 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
21257 Has_Specified_Stream_Attribute flag.
21258 Disallow Storage_Size and Storage_Pool for access to subprogram
21259 (Resolve_Attribute, case 'Access et al): Take into account anonymous
21260 access types of return subtypes in extended return statements. Remove
21261 accessibility checks on anonymous access types when Unchecked_Access is
21262 used.
21263 (Analyze_Attribute): Add support for the use of 'Class to convert
21264 a class-wide interface to a tagged type.
21265 Add support for the attribute Priority.
21266 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
21267 whether the designated type is discriminated with a constrained partial
21268 view and require static matching in that case.
21269 Add local variable Des_Btyp. The Designated_Type
21270 of an access to incomplete subtype is either its non-limited view if
21271 coming from a limited with or its etype if regular incomplete subtype.
21272
21273 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
21274 Fix predicate to identify and allow cases of (expander-generated)
21275 references to tag of designated object of a RACW.
21276 (Validate_Static_Object_Name): In Ada 2005, a formal object is
21277 non-static, and therefore cannot appear as a primary in a preelaborable
21278 package.
21279 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
21280 Has_Read_Write_Attributes.
21281 (Has_Read_Write_Attributes): Reimplement in termes of
21282 Has_Stream_Attribute_Definition.
21283 (Missing_Read_Write_Attributes): When checking component types in a
21284 record, unconditionally call Missing_Read_Write_Attributes recursively
21285 (remove guard checking for Is_Record_Type / Is_Access_Type).
21286
21287 2006-10-31 Robert Dewar <dewar@adacore.com>
21288
21289 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
21290 useless assignments here and conditionalize it on absence of exception
21291 handlers.
21292 (Analyze_Exception_Handlers): Small code reorganization of error
21293 detection code, for new handling of formal packages.
21294
21295 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21296 Hristian Kirtchev <kirtchev@adacore.com>
21297
21298 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
21299 that has been constant-folded, preserve information of original tree,
21300 for ASIS uses.
21301 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
21302 generated private extension declaration if the formal derived type is
21303 synchronized. Carry synchronized present over to the generated private
21304 extension.
21305 (Validate_Derived_Type_Instance): Ensure that the actual of a
21306 synchronized formal derived type is a synchronized tagged type.
21307 (Instantiate_Formal_Package): When creating the instantiation used to
21308 validate the actual package of a formal declared without a box, check
21309 whether the formal itself depends on a prior actual.
21310 (Instantiate_Formal_Subprogram): Create new entities for the defining
21311 identifiers of the formals in the renaming declaration, for ASIS use.
21312 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
21313 a renaming declaration or a subtype declaration for an actual in an
21314 instance, capture location information of declaration in generic, for
21315 ASIS use.
21316 (Instantiate_Formal_Package): Add comments on needed additional tests.
21317 AI-317 (partial parametrization) is fully implemented.
21318 (Validate_Private_Type_Instance): Add check for actual which
21319 must have preelaborable initialization
21320 Use new // insertion for some continuation messages
21321 (Analyze_Formal_Object_Declaration): Change usage of Expression to
21322 Default_Expression. Add type retrieval when the declaration has an
21323 access definition. Update premature usage of incomplete type check.
21324 (Check_Access_Definition): New subsidiary routine. Check whether the
21325 current compilation version is Ada 05 and the supplied node has an
21326 access definition.
21327 (Instantiate object): Alphabetize local variables. Handle the creation
21328 of new renaming declarations with respect to the kind of definition
21329 used - either an access definition or a subtype mark. Guard against
21330 unnecessary error message in the context of anonymous access types after
21331 they have been resolved. Add check for required null exclusion in a
21332 formal object declaration.
21333 (Switch_View): A private subtype of a non-private type needs to be
21334 switched (the base type can have been switched without its private
21335 dependents because of the last branch of Check_Private_View.
21336 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
21337 value from BT.
21338 (Instantiate_Type): Emit an error message whenever a class-wide type of
21339 a tagged incomplete type is used as a generic actual.
21340 (Find_Actual_Type): Extend routine to handle a component type in a child
21341 unit that is imported from a formal package in a parent.
21342 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
21343 agree on constrainedness, rather than checking against ultimate ancestor
21344 (Instantiate_Subprogram_Body): Create a cross-reference link to the
21345 generic body, for navigation purposes.
21346
21347 2006-10-31 Robert Dewar <dewar@adacore.com>
21348 Thomas Quinot <quinot@adacore.com>
21349
21350 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
21351 type.
21352 (New_Stream_Subprogram): When processing an attribute definition clause
21353 for a stream-oriented subprogram, record an entity node occurring at
21354 the point of clause to use for checking the visibility of the clause,
21355 as defined by 8.3(23) as amended by AI-195.
21356 (New_Stream_Subprogram): New procedure, factoring behaviour from both
21357 New_Stream_Function and New_Stream_Procedure.
21358 (New_Stream_Function, New_Stream_Procedure): Removed.
21359 (Analyze_Attribute_Definition_Clause, case Address): Check new
21360 Alignment_Check check
21361
21362 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21363 Javier Miranda <miranda@adacore.com>
21364 Robert Dewar <dewar@adacore.com>
21365
21366 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
21367 generate the same errors compiling under -gnatc.
21368 (Try_Object_Operation): If no candidate interpretation succeeds, but
21369 there is at least one primitive operation with the right name, report
21370 error in call rather than on a malformed selected component.
21371 (Analyze_Selected_Component): If the prefix is an incomplete type from
21372 a limited view, and the full view is available, use the full view to
21373 determine whether this is a prefixed call to a primitive operation.
21374 (Operator_Check): Verify that a candidate interpretation is a binary
21375 operation before checking the type of its second formal.
21376 (Analyze_Call): Add additional warnings for function call contexts not
21377 yet supported.
21378 (Analyze_Allocator): Move the check for "initialization not allowed for
21379 limited types" after analyzing the expression. This is necessary,
21380 because OK_For_Limited_Init looks at the structure of the expression.
21381 Before analysis, we don't necessarily know what sort of expression it
21382 is. For example, we don't know whether F(X) is a function call or an
21383 indexed component; the former is legal in Ada 2005; the latter is not.
21384 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
21385 were missing. We also didn't handle qualified expressions. Now also
21386 allow function calls. Use new common routine OK_For_Limited_Init.
21387 (Analyze_Type_Conversion): Do not perform some legality checks in an
21388 instance, because the error message will be redundant or spurious.
21389 (Analyze_Overloaded_Selected_Component): Do not do style check when
21390 setting an entity, since we do not know it is the right entity yet.
21391 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
21392 (Analyze_Overloaded_Selected_Component): Same change
21393 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
21394 since regular incomplete subtypes are transformed into corresponding
21395 subtypes of their full views.
21396 (Complete_Object_Operation): Treat name of transformed subprogram call
21397 as coming from source, for browsing purposes.
21398 (Try_Primitive_Operation): If formal is an access parameter, compare
21399 with base type of object to determine whether it is a primitive
21400 operation.
21401 (Operator_Check): If no interpretation of the operator matches, check
21402 whether a use clause on any candidate might make the operation legal.
21403 (Try_Class_Wide_Operation): Check whether the first parameter is an
21404 access type whose designated type is class-wide.
21405
21406 2006-10-31 Robert Dewar <dewar@adacore.com>
21407 Ed Schonberg <schonberg@adacore.com>
21408 Gary Dismukes <dismukes@adacore.com>
21409
21410 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
21411 warn on infinite loops.
21412 Add \\ to some continuation messages
21413 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
21414 (Process_Bounds): If the bounds are integer literals that result from
21415 constant-folding, and they carry a user-defined type, preserve that type
21416 rather than treating this as an integer range.
21417 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
21418 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
21419 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
21420 left hand side of assignment.
21421 (Analyze_Assignment): Add suport to manage assigments to the attribute
21422 priority of a protected object.
21423 (Check_Possible_Current_Value_Condition): Allow fully qualified names
21424 not just identifiers.
21425 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
21426 or AND THEN for possible tracking.
21427 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
21428 case of while loops so we can track values in the loop body.
21429
21430 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21431 Hristian Kirtchev <kirtchev@adacore.com>
21432 Bob Duff <duff@adacore.com>
21433
21434 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
21435 procedure cannot be a protected operation (it is a basic_declaration,
21436 not a subprogram_declaration).
21437 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
21438 Subp. Add logic for entry processing.
21439 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
21440 Determine whether an entry or subprogram of a protected or task type
21441 override an inherited primitive of an implemented interface.
21442 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
21443 Update the actual used in calls to Check_Overriding_Indicator.
21444 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
21445 generate the proper reference to the parent unit, for cross-reference.
21446 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
21447 Is_Formal.
21448 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21449 (Add_Extra_Formal): Revise procedure to allow passing in associated
21450 entity, scope, and name suffix, and handle setting of the new
21451 Extra_Formals field.
21452 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
21453 pass new parameters. Add support for adding the new extra access formal
21454 for functions whose calls are treated as build-in-place.
21455 (Analyze_A_Return_Statement): Correct casing in error message.
21456 Move Pop_Scope to after Analyze_Function_Return, because an extended
21457 return statement really is a full-fledged scope. Otherwise, visibility
21458 doesn't work right. Correct use of "\" for continuation messages.
21459 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
21460 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
21461 the node doesn't get properly marked as analyzed.
21462 (Analyze_Subprogram_Body): If subprogram is a function that returns
21463 an anonymous access type that denotes a task, build a Master Entity
21464 for it.
21465 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
21466 proper usage of null exclusion in a result definition.
21467 (Process_Formals): Code cleanup and new error message.
21468 (Process_Formals): Detect incorrect application of null exclusion to
21469 non-access types.
21470 (Conforming_Types): Handle conformance between [sub]types and itypes
21471 generated for entities that have null exclusions applied to them.
21472 (Maybe_Primitive_Operation): Add an additional type retrieval when the
21473 base type is an access subtype. This case arrises with null exclusions.
21474 (New_Overloaded_Entity): Do not remove the overriden entity from the
21475 homonym chain if it corresponds with an abstract interface primitive.
21476 (Process_Formals): Replace membership test agains Incomplete_Kind with a
21477 call to the synthesized predicate Is_Incomplete_Type.
21478 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
21479 primitives.
21480 (Analyze_Subprogram_Declaration): Check that abstract interface
21481 primitives are abstract or null.
21482 (Analyze_Subprogram_Specification): Remove previous check for abstract
21483 interfaces because it was not complete.
21484 (Has_Interface_Formals): Removed.
21485
21486 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21487 Javier Miranda <miranda@adacore.com>
21488
21489 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
21490 of Analyze_Package_Body, to create Itype references for anonymous
21491 access types created in the package declaration, whose designated types
21492 may have only a limited view.
21493 (Analyze_Package_Specification): For the private part of a nested
21494 package, install private_with_clauses of enclosing compilation unit if
21495 we are in its visible part.
21496 (Declare_Inherited_Private_Subprograms): Complete barrier
21497 to ensure that the primitive operation has an alias to some parent
21498 primitive. This is now required because, after the changes done for the
21499 implementation of abstract interfaces, the contents of the list of
21500 primitives has entities whose alias attribute references entities of
21501 such list of primitives.
21502 (Analyze_Package_Specification): Simplify code that handles parent units
21503 of instances and formal packages.
21504 (Uninstall_Declarations): Check the convention consistency among
21505 primitive overriding operations of a tagged record type.
21506
21507 2006-10-31 Robert Dewar <dewar@adacore.com>
21508 Hristian Kirtchev <kirtchev@adacore.com>
21509 Javier Miranda <miranda@adacore.com>
21510 Ed Schonberg <schonberg@adacore.com>
21511
21512 * sem_ch8.adb: Minor error msg rewording
21513 (Undefined): When checking for misspellings, invert arguments (to get
21514 expected and found set right)
21515 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
21516 (Analyze_Generic_Renaming): Same fix
21517 (Use_One_Package): Do not take into account the internal entities of
21518 abstract interfaces during the analysis of entities that are marked
21519 as potentially use-visible.
21520 (Find_Type): Handle the case of an attribute reference for
21521 implementation defined attribute Stub_Type (simply let the analysis of
21522 the attribute reference rewrite it).
21523 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
21524 type that appears in a Use_Type clause.
21525 (Analyze_Object_Renaming): Add support for renaming of the Priority
21526 attribute.
21527 (Find_Type): In Ada 2005, a task type can be used within its own body,
21528 when it appears in an access definition.
21529 (Analyze_Object_Renaming): Remove warning on null_exclusion.
21530 (Analyze_Object_Renaming): Introduce checks for required null exclusion
21531 in a formal object declaration or in a subtype declaration.
21532 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
21533 (Check_Null_Exclusion): New local routine to
21534 Analyze_Subprogram_Renaming. Check whether the formals and return
21535 profile of a renamed subprogram have required null exclusions when
21536 their counterparts of the renaming already impose them.
21537 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
21538 Determine whether an entity is inside a generic scope.
21539 (In_Open_Scope): First pass of documentation update.
21540 (Find_Expanded_Name): Add support for shadow entities associated with
21541 limited withed packages. This is required to handle nested packages.
21542 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
21543 that makes a renaming of a limited withed package illegal.
21544
21545 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21546 Ed Schonberg <schonberg@adacore.com>
21547
21548 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
21549 Check_Overriding_Indicator.
21550 (Analyze_Task_Definition): Ditto.
21551 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
21552 (Check_Overriding_Indicator): To find overridden interface operation,
21553 examine only homonyms that have an explicit subprogram declaration, not
21554 inherited operations created by an unrelated type derivation.
21555 (Check_Overriding_Indicator): When checking for the presence of "null"
21556 in a procedure, ensure that the queried node is a procedure
21557 specification.
21558 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
21559 type when the formal is an access to variable.
21560 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
21561 (Analyze_Task_Type): Same addition
21562 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
21563 provide navigation capabilities for entries.
21564
21565 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21566 Ed Schonberg <schonberg@adacore.com>
21567 Javier Miranda <miranda@adacore.com>
21568 Gary Dismukes <dismukes@adacore.com>
21569
21570 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
21571 inherited from an interface ancestor by another interface in the
21572 context of an instance as 'late'.
21573 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
21574 of a call to a function that dispatches on access result.
21575 (Check_Dispatching_Operation): In case of late overriding of a primitive
21576 that covers abstract interface subprograms we register it in all the
21577 secondary dispatch tables associated with abstract interfaces.
21578 (Check_Dispatching_Call): Add check that a dispatching call is not made
21579 to a function with a controlling result of a limited type. This is a
21580 current implementation restriction.
21581 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
21582 (Check_Dispatching_Operation): Do no emit a warning if the controlling
21583 argument is an interface type that is a generic formal.
21584 (Is_Interface_Subprogram): Removed.
21585 (Check_Dispatching_Operation): If the subprogram is not a dispatching
21586 operation, check the formals to handle the case in which it is
21587 associated with an abstract interface type.
21588
21589 2006-10-31 Robert Dewar <dewar@adacore.com>
21590 Ed Schonberg <schonberg@adacore.com>
21591
21592 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
21593 Add new calls to this procedure during traversal
21594 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
21595 another unit if expansion is disabled.
21596
21597 2006-10-31 Robert Dewar <dewar@adacore.com>
21598
21599 * sem_eval.adb (Compile_Time_Compare): Make use of information from
21600 Current_Value in the conditional case, to evaluate additional
21601 comparisons at compile time.
21602
21603 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21604 Hristian Kirtchev <kirtchev@adacore.com>
21605 Javier Miranda <miranda@adacore.com>
21606
21607 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
21608 subprogram type to provide better diagnostics in case of ambiguity.
21609 (Covers): Handle coverage of formal and actual anonymous access types in
21610 the context of generic instantiation.
21611 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
21612 abstract interface types; this is required to handle concurrent types
21613 with discriminants and abstract interface types.
21614 (Covers): Include type coverage of both regular incomplete subtypes and
21615 incomplete subtypes of incomplete type visibles through a limited with
21616 clause.
21617
21618 2006-10-31 Robert Dewar <dewar@adacore.com>
21619 Hristian Kirtchev <kirtchev@adacore.com>
21620 Ed Schonberg <schonberg@adacore.com>
21621
21622 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
21623 messages for entities in packages which are not used.
21624 (Collect_Synchronized_Interfaces): New procedure.
21625 (Overrides_Synchronized_Primitive): New function.
21626 (Denotes_Discriminant): Extend predicate to apply to task types.
21627 Add missing continuation marks in error msgs
21628 (Unqualify): New function for removing zero or more levels of
21629 qualification from an expression. There are numerous places where this
21630 ought to be used, but we currently only deal properly with zero or one
21631 level.
21632 (In_Instance); The analysis of the actuals in the instantiation of a
21633 child unit is not within an instantiation, even though the parent
21634 instance is on the scope stack.
21635 (Safe_To_Capture_Value): Exclude the case of variables that are
21636 renamings.
21637 (Check_Obsolescent): Removed
21638 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
21639 is an aliased view, even when rewritten as a reference to the target
21640 object in an assignment.
21641 (Get_Subprogram_Entity): New function
21642 (Known_To_Be_Assigned): New function
21643 (Type_Access_Level): Compute properly the access level of a return
21644 subtype that is an anonymous access type.
21645 (Explain_Limited_Type): Correct use of "\" for continuation messages.
21646 (Is_Transfer): The new extended_return_statement causes a transfer of
21647 control.
21648 (Has_Preelaborable_Initialization): New function
21649 (Has_Null_Exclusion): New function. Given a node N, determine whether it
21650 has a null exclusion depending on its Nkind.
21651 Change Is_Lvalue to May_Be_Lvalue
21652 (May_Be_Lvalue): Extensive additional code to deal with subprogram
21653 arguments (IN parameters are not Lvalues, IN OUT parameters are).
21654 (Safe_To_Capture_Value): Extend functionality so it can be used for
21655 the current value condition case.
21656 (Has_Compatible_Alignment): New function
21657 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
21658 objects to handle the Ada 2005 case, where aliasedness no longer implies
21659 that the object is constrained. In particular, for dereferenced names,
21660 the designated object must be assumed to be unconstrained.
21661 (Kill_Current_Values): Properly deal with the case where we encounter
21662 a loop in the scope chain.
21663 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
21664 a value.
21665 (Compile_Time_Constraint_Error): Improve error message in error case
21666
21667 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
21668 associated with entities of abstract interface primitives.
21669 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
21670
21671 2006-10-31 Robert Dewar <dewar@adacore.com>
21672
21673 * s-osinte-tru64.adb:
21674 Mark Asm statements Volatile to prevent warnings (seems a
21675 reasonable change anyway)
21676 Fixes new warnings
21677
21678 * s-mastop-irix.adb: Add Volatile to Asm statements
21679 Suppresses warning, and seems appropriate in any case
21680
21681 * s-osinte-vms.adb: Add Volatile to Asm statement
21682
21683 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
21684
21685 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
21686 returned.
21687 Add call to Check_Code_Statement
21688
21689 2006-10-31 Robert Dewar <dewar@adacore.com>
21690 Ed Schonberg <schonberg@adacore.com>
21691 Bob Duff <duff@adacore.com>
21692
21693 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
21694 Synchronized_Present): Add Formal_Derived_Type_Definition and
21695 Private_Extension_Declaration to the list of assertions.
21696 (Is_Entry_Barrier_Function): New flag
21697 (Has_Self_Reference): New flag on aggregates, to indicate that they
21698 contain a reference to the enclosing type, inserted through a default
21699 initialization.
21700 (Next_Rep_Item): Move from Node4 to Node5.
21701 (Entity): Add this field for N_Attribute_Definition_Clause.
21702 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
21703 (N_Return_Object_Declaration): Remove this node kind. We now use
21704 N_Object_Declaration instead.
21705 (Actual_Designated_Subtype): Move to a different place to make room in
21706 N_Extended_Return_Statement.
21707 (Procedure_To_Call): Move to a different place to make room in
21708 N_Extended_Return_Statement.
21709 (Return_Type): Removed this field to make room in return statements
21710 (both kinds).
21711 (Return_Statement_Entity): New field in return statements, in part to
21712 replace Return_Type, and in part to support the fact that return
21713 statements are now pushed on the scope stack during semantic analysis.
21714 (Return_Object_Declarations): New field to support extended return
21715 statements.
21716 (N_Extended_Return_Statement): New node for extended_return_statement
21717 nonterminal.
21718 (N_Return_Object_Declaration): New node for part of
21719 extended_return_statement nonterminal. Needed because all the necessary
21720 fields won't fit in N_Extended_Return_Statement.
21721 Generic_associations now carry the Box_Present flag, to indicate a
21722 default for an actual in a partially parametrized formal package.
21723
21724 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
21725 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
21726 and for the new predefined dispatching policies: EDF_Across_Priorities,
21727 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
21728 Introduce new name Stub_Type for implementation defined attribute.
21729 Add pragma Preelaborable_Initialization
21730 Add entry for Priority attribute.
21731 Add Pragma_Wide_Character_Encoding
21732 (Get_Convention_Name): Given a convention id, this function returns the
21733 corresponding name id from the names table.
21734
21735 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21736 Robert Dewar <dewar@adacore.com>
21737 Bob Duff <duff@adacore.com>
21738
21739 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
21740 print null exclusion twice in the case of an access definition,
21741 Implement new -gnatL switch
21742 Remove N_Return_Object_Declaration. We now use
21743 N_Object_Declaration instead. Implement the case for
21744 N_Extended_Return_Statement. Alphabetize the cases.
21745 Add cases for new nodes N_Extended_Return_Statement and
21746 N_Return_Object_Declaration. The code is not yet written.
21747 Update the output for N_Formal_Object_Declaration
21748 and N_Object_Renaming_Declaration.
21749 (Write_Itype): Account for the case of a modular integer subtype whose
21750 base type is private.
21751
21752 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21753
21754 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
21755 Remove elaboration code, now done in the binder.
21756
21757 * s-rident.ads: Make this unit Preelaborate.
21758 (No_Restrictions): New constant used to clean up code and follow
21759 preelaborate constraints.
21760
21761 * s-stalib.adb:
21762 Add System.Restrictions dependence, referenced directly from the
21763 binder generated file.
21764
21765 2006-10-31 Gary Dismukes <dismukes@adacore.com>
21766
21767 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
21768 True when AAMP extended floating-point is in use (48-bit). Change type
21769 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
21770 the two byte array types on AFloat. Change type of IV_Ilf overlay
21771 variable from Byte8 to ByteLF. Add appropriate initializations of
21772 floating-point overlays for AAMP cases.
21773
21774 2006-10-31 Javier Miranda <miranda@adacore.com>
21775
21776 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
21777 (Get_Ceiling): New subprogram that returns
21778 the ceiling priority of the protected object.
21779 (Set_Ceiling): New subprogram that sets the new ceiling priority of
21780 the protected object.
21781
21782 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
21783
21784 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
21785
21786 2006-10-31 Jose Ruiz <ruiz@adacore.com>
21787
21788 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
21789 requeuing to the same protected object to give higher priority tasks
21790 the opportunity to execute.
21791
21792 2006-10-31 Robert Dewar <dewar@adacore.com>
21793
21794 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
21795 add more precise check for the character sequence that follows '[' to
21796 avoid possible confusion in case if '[' is the last character of a
21797 string literals.
21798 (Scan_Wide): Always allow brackets encoding
21799
21800 2006-10-31 Olivier Hainque <hainque@adacore.com>
21801
21802 * s-stchop.ads: make this unit preelaborate. This is desirable in
21803 general and made mandatory by the use of this unit by s-taprop which
21804 is itself preelaborate.
21805
21806 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
21807 Td_Events component.
21808
21809 2006-10-31 Vincent Celier <celier@adacore.com>
21810
21811 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
21812 in file names.
21813
21814 2006-10-31 Vincent Celier <celier@adacore.com>
21815
21816 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
21817
21818 2006-10-31 Vincent Celier <celier@adacore.com>
21819
21820 * makegpr.adb (Check_Compilation_Needed): Take into account path names
21821 with spaces.
21822 (Check_Compilation_Needed): When checking a C or C++ source, do not
21823 resolve symbolic links.
21824 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
21825 When not in verbose mode and Ellipse is True, display "..." for the
21826 first argument with Display set to False.
21827 (Build_Global_Archive): Always set Display True for the first object
21828 file. Call Display_Command with Ellipse set to True.
21829
21830 2006-10-31 Matt Heaney <heaney@adacore.com>
21831
21832 * a-crbtgo.ads: Commented each subprogram
21833
21834 * a-crbtgo.adb: Added reference to book from which algorithms were
21835 adapted.
21836
21837 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
21838 indicate which child.
21839 (Generic_Conditional_Insert): changed parameter name from "Success" to
21840 "Inserted".
21841 (Generic_Unconditional_Insert_With_Hint): improved algorithm
21842
21843 * a-coorse.adb (Replace_Element): changed parameter name in call to
21844 conditional insert operation.
21845
21846 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
21847
21848 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
21849 Generic_Iteration
21850
21851 * a-ciorse.adb (Replace_Element): changed parameter name in call to
21852 conditional insert operation.
21853
21854 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
21855 Generic_Iteration.
21856
21857 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
21858 instead of mode inout.
21859
21860 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
21861 draft
21862 (Generic_Read): preserve existing buckets array if possible
21863 (Generic_Write): don't send buckets array length anymore
21864
21865 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
21866 instead of mode inout.
21867
21868 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
21869 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
21870
21871 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
21872 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
21873 (Replace_Element): local operation is now an instantiation
21874
21875 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
21876 check current length.
21877 (Generic_Replace_Element): new operation
21878
21879 2006-10-31 Doug Rupp <rupp@adacore.com>
21880
21881 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
21882 Call TBK$SYMBOLIZE without omitting parameters.
21883
21884 2006-10-31 Vincent Celier <celier@adacore.com>
21885
21886 * symbols-processing-vms-ia64.adb,
21887 symbols-processing-vms-alpha.adb (Process): Do not include symbols
21888 that come from generic instantiations in bodies.
21889
21890 2006-10-31 Pat Rogers <rogers@adacore.com>
21891
21892 * a-rttiev.ads, a-rttiev.adb:
21893 This is a significant redesign primarily for the sake of automatic
21894 timer task termination but also to fix a design flaw.
21895 Therefore we are now using an RTS lock, instead of a protected
21896 object, to provide mutual exclusion to the queue of pending events
21897 and the type Timing_Event is no longer a protected type.
21898
21899 2006-10-31 Robert Dewar <dewar@adacore.com>
21900 Cyrille Comar <comar@adacore.com>
21901 Ben Brosgol <brosgol@adacore.com>
21902
21903 * debug.adb: Update flags documentation
21904
21905 * gnat_ugn.texi: Add documentation for new -gnatwq switch
21906 Clean up documentation for several other warning switches
21907 Clarify how task stack size can be specified with various
21908 versions of Windows.
21909 Add note that -gnatVo includes ranges including loops
21910 Add documentation for -gnatL switch
21911 Add note on elaboration warning for initializing variables
21912 Add documentation for new -gnatwt warning switch
21913 Document new form of pragma Warnings (On|Off, string)
21914 Add comment on use of pragma Warnings to control warnings
21915 Add documentation for -gnatjnn switch
21916 Modify section on interfacing with C for VMS 64-bit.
21917 Add doc for -gnatVe/E
21918 Add documentation of new warning flags -gnatww/-gnatwW
21919 Add warnings about address clause overlays to list of warnings
21920 (Exception Handling Control): Document that the option --RTS must be
21921 used consistently for gcc and gnatbind.
21922 Clarify that inlining is not always possible
21923 Update documentation on pragma Unchecked_Union.
21924
21925 * gnat_rm.texi:
21926 Add documentation for new extended version of pragma Obsolescent
21927 Add documentation for implementation defined attribute 'Stub_Type.
21928 Add note on use of Volatile in asm statements
21929 Add documentation on use of pragma Unreferenced in context clause
21930 Document new form of pragma Warnings (On|Off, pattern)
21931 Document pragma Wide_Character_Encoding
21932 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
21933 enforced if code generation is active.
21934 Add section on pragma Suppress to document GNAT specific check
21935 Alignment_Check
21936 Clarify difference between No_Dispatching_Calls & No_Dispatch.
21937 Add documentation for pragma Restrictions (No_Elaboration_Code)
21938
21939 * gnat-style.texi:
21940 Add comments on layout of subprogram local variables in the
21941 presence of nested subprograms.
21942
21943 * ug_words: Resync.
21944
21945 * elists.ads: Minor reformatting
21946 Node returns Node_Or_Entity_Id (doc change only)
21947
21948 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
21949
21950 * g-arrspl.ads (Create): Update comments.
21951
21952 * sem.ads: Add details on the handling of the scope stack.
21953
21954 * usage.adb: Update documentation.
21955
21956 * validsw.ads, validsw.adb:
21957 Add definition of Validity_Check_Components and implement -gnatVe/E
21958
21959 * vms_data.ads: Add missing VMS qualifiers.
21960
21961 * s-addope.ads: Add documentation on overflow and divide by zero
21962
21963 2006-10-31 Robert Dewar <dewar@adacore.com>
21964 Thomas Quinot <quinot@adacore.com>
21965 Arnaud Charlet <charlet@adacore.com>
21966
21967 * fmap.adb: Put routines in alpha order
21968
21969 * g-boumai.ads: Remove redundant 'in' keywords
21970
21971 * g-cgi.adb: Minor reformatting
21972
21973 * g-cgi.ads: Remove redundant 'in' keywords
21974
21975 * get_targ.adb: Put routines in alpha order
21976
21977 * prj-attr.ads: Minor reformatting
21978
21979 * s-atacco.ads: Minor reformatting
21980
21981 * scn.adb: Put routines in alpha order
21982
21983 * sinput-l.adb: Minor comment fix
21984
21985 * sinput-p.adb: Minor comment fix
21986
21987 * s-maccod.ads: Minor reformatting
21988
21989 * s-memory.adb: Minor reformatting
21990
21991 * s-htable.adb: Fix typo in comment.
21992
21993 * s-secsta.adb: Minor comment update.
21994
21995 * s-soflin.adb: Minor reformatting
21996
21997 * s-stoele.ads:
21998 Add comment about odd qualification in Storage_Offset declaration
21999
22000 * s-strxdr.adb:
22001 Remove unnecessary 'in' keywords for formal parameters.
22002
22003 * treeprs.adt: Minor reformatting
22004
22005 * urealp.adb: Put routines in alpha order
22006
22007 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
22008 taking string.
22009
22010 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22011
22012 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
22013
22014 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
22015 workaround as on other platforms.
22016
22017 * g-eacodu-vms.adb: Remove redundant 'in' keywords
22018 * g-expect-vms.adb: Remove redundant 'in' keywords
22019
22020 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
22021 clear error message if the list-of-files file cannot be opened.
22022
22023 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
22024 equality operator is always visible.
22025
22026 * lang.opt: Woverlength-strings: New option.
22027
22028 * nmake.adt:
22029 Update copyright, since nmake.ads and nmake.adb have changed.
22030
22031 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
22032 (Binder_Output_Time_Stamps_Set): removed.
22033 (Old_Binder_Output_Time_Stamp): idem.
22034 (New_Binder_Output_Time_Stamp): idem.
22035 (Recording_Time_From_Last_Bind): idem.
22036 (Recording_Time_From_Last_Bind): Make constant.
22037
22038 * output.ads, output.adb (Write_Str): Allow LF characters
22039 (Write_Spaces): New procedure
22040
22041 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
22042
22043 * inline.adb: Minor reformatting
22044
22045 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22046
22047 * s-mastop-vms.adb: Remove redundant 'in' keywords
22048
22049 * s-osprim-vms.adb: Remove redundant 'in' keywords
22050
22051 * s-trafor-default.adb: Remove redundant 'in' keywords
22052
22053 * 9drpc.adb: Remove redundant 'in' keywords
22054
22055 * s-osinte-mingw.ads: Minor reformatting
22056
22057 * s-inmaop-posix.adb: Minor reformatting
22058
22059 * a-direio.ads: Remove quotes from Compile_Time_Warning message
22060
22061 * a-exexda.adb: Minor code reorganization
22062
22063 * a-filico.adb: Minor reformatting
22064
22065 * a-finali.adb: Minor reformatting
22066
22067 * a-nudira.ads: Remove quote from Compile_Time_Warning message
22068
22069 * a-numeri.ads: Minor reformatting
22070
22071 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
22072
22073 * exp_pakd.ads: Fix obsolete comment
22074
22075 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
22076 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
22077 Probably not a bug, but certainly neater and more efficient.
22078
22079 * a-tienio.adb: Minor reformatting
22080
22081 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
22082 Avoid assuming low bound of string is 1.
22083
22084 * gnatbind.adb: Change Bindusg to package and rename procedure as
22085 Display, which now ensures that it only outputs usage information once.
22086 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
22087
22088 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
22089 Table'First.
22090
22091 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
22092 warning.
22093 (Match): Add pragma Assert to ensure that Matches'First is zero
22094
22095 * g-regpat.ads (Match): Document that Matches lower bound must be zero
22096
22097 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
22098 documented preconditions (also kills warnings about bad indexes).
22099
22100 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
22101 is 1.
22102 (Build_Import_Library): Ditto;
22103
22104 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
22105
22106 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
22107
22108 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
22109 lower bound of choice table is 1.
22110
22111 * sem_case.ads (Analyze_Choices): Document that lower bound of
22112 Choice_Table is 1.
22113
22114 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
22115 string is 1.
22116
22117 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
22118 and add appropriate Assert pragma to suppress warnings.
22119
22120 * atree.h, atree.ads, atree.adb
22121 Change Elist24 to Elist25
22122 Add definitions of Field28 and Node28
22123 (Traverse_Field): Use new syntactic parent table in sinfo.
22124
22125 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22126
22127 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22128
22129 * exp_tss.adb: Put routines in alpha order
22130
22131 * fe.h: Remove redundant declarations.
22132
22133 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22134
22135 * utils.c (builtin_function): Rename to gnat_builtin_function.
22136 Move common code to add_builtin_function.
22137 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
22138 gnat_builtin_function.
22139 * gigi.h (builtin_function): Rename to gnat_builtin_function.
22140 Change the signature.
22141
22142 2006-10-16 Brooks Moses <bmoses@stanford.edu>
22143
22144 * Makefile.in: Add TEXI2PDF definition.
22145 * Make-lang.in: Add "ada.pdf" target.
22146
22147 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
22148
22149 * decl.c, utils.c: Fix comment typos.
22150 * utils.c: Fix a typo.
22151
22152 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
22153
22154 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
22155 on "pure" Ada subprograms if SJLJ exceptions are used.
22156 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
22157 on the declaration node of JMPBUF_SAVE.
22158 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
22159 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
22160 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
22161
22162 2006-08-20 Laurent Guerby <laurent@guerby.net>
22163
22164 PR ada/28716
22165 g-socket.adb (Bind_Socket): Call Set_Address.
22166
22167 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
22168
22169 PR ada/15802
22170 * decl.c (same_discriminant_p): New static function.
22171 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
22172 subtype and we have discriminants, fix up the COMPONENT_REFs
22173 for the discriminants to make them reference the corresponding
22174 fields of the parent subtype after it has been built.
22175
22176 2006-09-15 Roger Sayle <roger@eyesopen.com>
22177
22178 PR ada/18817
22179 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
22180 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
22181
22182 2006-09-13 Olivier Hainque <hainque@adacore.com>
22183
22184 PR ada/29025
22185 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
22186 of a SAVE_EXPR, just make the operand addressable/not-readonly and
22187 let the common gimplifier code make and propagate a temporary copy.
22188 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
22189 out/in-out actuals and defer setting the addressable/readonly bits
22190 to the gimplifier.
22191
22192 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
22193
22194 PR ada/28591
22195 * decl.c (components_to_record): Defer emitting debug info for the
22196 record type associated with the variant until after we are sure to
22197 actually use it.
22198
22199 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
22200
22201 PR ada/21952
22202 * gigi.h (gnat_internal_attribute_table): Declare.
22203 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
22204 * utils.c (gnat_internal_attribute_table): New global variable.
22205 (builtin_function): Always call decl_attributes on the builtin.
22206 (handle_const_attribute): New static function.
22207 (handle_nothrow_attribute): Likewise.
22208
22209 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
22210
22211 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
22212
22213 2006-06-23 Olivier Hainque <hainque@adacore.com>
22214
22215 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
22216 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
22217
22218 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
22219 Eric Botcazou <ebotcazou@adacore.com>
22220
22221 PR ada/18692
22222 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
22223 check-gnat into check-acats.
22224
22225 2006-06-17 Karl Berry <karl@gnu.org>
22226
22227 * gnat-style.texi (@dircategory): Use "Software development"
22228 instead of "Programming", following the Free Software Directory.
22229
22230 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22231
22232 PR ada/27944
22233 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
22234
22235 2006-06-06 Laurent Guerby <laurent@guerby.net>
22236
22237 PR ada/27769
22238 mlib-utl.adb: Use Program_Name.
22239
22240 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
22241
22242 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
22243 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
22244 trans.c, utils.c: Fix comment typos. Follow spelling
22245 conventions.
22246 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
22247 conventions.
22248
22249 2006-05-19 Nicolas Setton <setton@adacore.com>
22250
22251 * misc.c (gnat_dwarf_name): New function.
22252 (LANG_HOOKS_DWARF_NAME): Define to it.
22253
22254 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
22255
22256 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
22257 (ada/misc.o): Likewise.
22258 (ada/utils.o): Likewise.
22259
22260 2006-04-08 Aurelien Jarno <aurel32@debian.org>
22261
22262 * Makefile.in: Add Ada support for GNU/kFreeBSD.
22263 * s-osinte-kfreebsd-gnu.ads: New file.
22264
22265 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
22266
22267 * Make-lang.in: Rename docdir to gcc_docdir.
22268
22269 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
22270
22271 * gigi.h (get_ada_base_type): Delete.
22272 * utils2.c (get_ada_base_type): Likewise.
22273 * trans.c (convert_with_check): Operate in the real base type.
22274
22275 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22276
22277 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
22278
22279 2006-03-02 Richard Sandiford <richard@codesourcery.com>
22280
22281 * utils.c (create_var_decl): Use have_global_bss_p when deciding
22282 whether to make the decl common.
22283
22284 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22285
22286 * Make-lang.in (Ada): Remove.
22287 (.PHONY): Remove Ada
22288
22289 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22290
22291 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
22292 aggregate, check the interpretations of the other operand to find one
22293 that may be a boolean array.
22294
22295 (Analyze_Selected_Component): Fix flow-of-control typo in case where
22296 the prefix is a private extension.
22297
22298 2006-02-17 Eric Botcazou <botcazou@adacore.com>
22299
22300 PR ada/26315
22301 * utils2.c (find_common_type): If both input types are BLKmode and
22302 have the same constant size, keep using the first one.
22303
22304 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
22305
22306 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
22307
22308 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
22309
22310 2006-02-17 Jose Ruiz <ruiz@adacore.com>
22311
22312 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
22313 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
22314 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
22315 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
22316 Abort_Defer/Undefer pairs to avoid the possibility of a task being
22317 aborted while owning a lock.
22318
22319 2006-02-17 Javier Miranda <miranda@adacore.com>
22320 Robert Dewar <dewar@adacore.com>
22321
22322 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
22323 through an access to class-wide interface we force the displacement of
22324 the pointer to the allocated object to reference the corresponding
22325 secondary dispatch table.
22326 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
22327 if Long_Shifts are supported on the target, even if 64 bit divides
22328 are not supported (configurable run time mode).
22329 (Expand_N_Type_Conversion): Do validity check if validity checks on
22330 operands are enabled.
22331 (Expand_N_Qualified_Expression): Do validity check if validity checks
22332 on operands are enabled.
22333
22334 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22335
22336 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
22337 must be materialized when the renamed expression is an explicit
22338 dereference.
22339
22340 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22341
22342 * freeze.adb (Statically_Discriminated_Components): Return false if
22343 the bounds of the type of the discriminant are not static expressions.
22344
22345 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
22346 the bounds of the discriminant type are not static.
22347
22348 2006-02-17 Robert Dewar <dewar@adacore.com>
22349
22350 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
22351 then we close To if it is valid.
22352
22353 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
22354
22355 * init.c (facility_resignal_table): new array
22356 (__gnat_default_resignal_p): enhance default predicate to resignal if
22357 VMS condition has one of the predefined facility codes.
22358
22359 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
22360
22361 * Makefile.in: Use VMS64 specialized versions of several units in
22362 Interfaces.C hierarchy to be compatible with HP C default size choices.
22363 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
22364
22365 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22366
22367 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
22368 instantiation, the corresponding entity is the related_instance of the
22369 wrapper package created for the instance.
22370
22371 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22372
22373 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
22374 the current instance is nested within another instance in a child unit.
22375
22376 2006-02-17 Javier Miranda <miranda@adacore.com>
22377 Ed Schonberg <schonberg@adacore.com>
22378
22379 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
22380 type we cannot inherit the primitive operations; we inherit the
22381 Corresponding_Record_Type (which has the list of primitive operations).
22382 (Check_Anonymous_Access_Types): When creating anonymous access types for
22383 access components, use Rewrite in order to preserve the tree structure,
22384 for ASIS use.
22385 (Analyze_Object_Declaration): For limited types with access
22386 discriminants with defaults initialized by an aggregate, obtain
22387 subtype from aggregate as for other mutable types.
22388 (Derived_Type_Declaration): If the derived type is a limited interface,
22389 set the corresponding flag (Is_Limited_Record is not sufficient).
22390
22391 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22392
22393 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
22394 to inline a function that returns an unconstrained type, the return
22395 expression must be the first variable declared in the body of the
22396 function.
22397
22398 2006-02-17 Javier Miranda <miranda@adacore.com>
22399
22400 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
22401 abstract interface type, the static analysis is not enough to know if
22402 the interface is implemented or not by the source tagged type. Hence
22403 we must pass the work to the expander to generate the required code to
22404 evaluate the conversion at run-time.
22405 (Resolve_Equality_Op): Do not apply previous
22406 transformation if expansion is disasbled, to prevent anomalies when
22407 locating global references in a generic unit.
22408
22409 2006-02-17 Vincent Celier <celier@adacore.com>
22410
22411 * snames.ads, snames.adb: New standard names for new project attributes:
22412 archive_builder, archive_indexer, compiler_pic_option,
22413 config_body_file_name, config_body_file_name_pattern,
22414 config_file_switches, config_file_unique, config_spec_file_name,
22415 config_spec_file_name_pattern, default_builder_switches,
22416 default_global_compiler_switches, default_language,
22417 dependency_file_kind, global_compiler_switches, include_path,
22418 include_path_file, language_kind, linker_executable_option,
22419 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
22420 roots, runtime_project.
22421
22422 2006-02-17 Matthew Heaney <heaney@adacore.com>
22423
22424 * a-convec.ads, a-convec.adb:
22425 (operator "&"): handle potential overflow for large index types
22426 (Insert): removed Contraint_Error when using large index types
22427 (Insert_Space): removed Constraint_Error for large index types
22428 (Length): moved constraint check from Length to Insert
22429
22430 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
22431 as not null access.
22432 Explicit raise statements now include an exception message.
22433 (operator "&"): handle potential overflow for large index types
22434 (Insert): removed Contraint_Error when using large index types
22435 (Insert_Space): removed Constraint_Error for large index types
22436 (Length): moved constraint check from Length to Insert
22437
22438 2006-02-17 Robert Dewar <dewar@adacore.com>
22439
22440 * s-wchcnv.adb: Document handling of [ on output (we do not change
22441 this to ["5B"] and the new comments say why not.
22442
22443 * gnat_ugn.texi:
22444 Add note for -gnatVo that this now includes the cases of type
22445 conversions and qualified expressions.
22446 Add comments on handling of brackets encoding for Text_IO
22447
22448 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
22449 Thomas Quinot <quinot@adacore.com>
22450 Robert Dewar <dewar@adacore.com>
22451 Javier Miranda <miranda@adacore.com>
22452
22453 * expander.adb: Fix typo in comment
22454
22455 * exp_pakd.adb: Fix typo
22456 Minor comment reformatting.
22457
22458 * g-dyntab.adb: Minor reformatting
22459
22460 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
22461 aliased subprograms to look for the abstract interface subprogram.
22462
22463 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
22464
22465 * env.c (__gnat_setenv): Use size_t.
22466 (__gnat_unsetenv): Likewise.
22467 (__gnat_clearenv): Likewise.
22468
22469 2006-02-16 Arnaud Charlet <charlet@adacore.com>
22470
22471 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
22472
22473 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22474
22475 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
22476 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
22477 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
22478 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
22479 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
22480 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
22481 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
22482 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
22483 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
22484 no longer used.
22485
22486 2006-02-13 Jose Ruiz <ruiz@adacore.com>
22487
22488 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
22489 protection against race conditions is not needed.
22490 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
22491 fallback handler.
22492 (Set_Specific_Handler): Add mutual exclusive access to the specific
22493 handler.
22494 (Specific_Handler): Add mutual exclusive access for retrieving the
22495 specific handler.
22496
22497 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
22498 back handler.
22499
22500 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
22501 Fall_Back_Handler and Specific_Handler.
22502
22503 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
22504 termination handlers.
22505 Set two different owerflow depending on the maximal stack size.
22506
22507 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
22508 protection against race conditions is not needed when executing the
22509 task termination handler.
22510
22511 2006-02-13 Robert Dewar <dewar@adacore.com>
22512
22513 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
22514 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
22515 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22516 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
22517 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
22518 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
22519 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
22520 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
22521 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
22522 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
22523 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
22524 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
22525 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
22526 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
22527 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
22528 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
22529 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
22530 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
22531 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
22532 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
22533 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
22534 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
22535 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
22536 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
22537 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
22538 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
22539 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
22540 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
22541 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
22542 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
22543 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
22544 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
22545 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
22546 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
22547 reformatting.
22548
22549 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
22550
22551 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
22552 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
22553 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
22554 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
22555 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
22556 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
22557 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
22558 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
22559 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
22560
22561 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22562
22563 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
22564 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
22565 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
22566 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
22567 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
22568 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
22569 replaced by anonymous access type.
22570 (pthread_sigmask): Now take an access sigset_t
22571
22572 * s-osinte-hpux.ads: Ditto.
22573 (pthread_mutex_t, pthread_cond_t): Update definitions to support
22574 properly 32 and 64 bit ABIs.
22575
22576 2006-02-13 Pascal Obry <obry@adacore.com>
22577
22578 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
22579 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
22580 s-taprop-linux.adb, s-taprop-solaris.adb,
22581 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
22582 adjustement is already done when calling this routine.
22583
22584 2006-02-13 Pascal Obry <obry@adacore.com>
22585
22586 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
22587 table to take advantage of the 16 priority levels available on Windows
22588 2000 and XP. On NT4 there are only 7 priority levels, this is properly
22589 supported by this new mapping.
22590
22591 2006-02-13 Nicolas Setton <setton@adacore.com>
22592
22593 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
22594 (get_encoding): New subprogram. Extracts the encodings from an encoded
22595 Ada name.
22596
22597 2006-02-13 Pascal Obry <obry@adacore.com>
22598 Nicolas Roche <roche@adacore.com>
22599 Arnaud Charlet <charlet@adacore.com>
22600
22601 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
22602 support.
22603 (__gnat_try_lock): Add unicode support by using a specific section on
22604 Windows.
22605 (__gnat_get_current_dir): Idem.
22606 (__gnat_open_read): Idem.
22607 (__gnat_open_rw): Idem.
22608 (__gnat_open_create): Idem.
22609 (__gnat_create_output_file): Idem.
22610 (__gnat_open_append): Idem.
22611 (__gnat_open_new): Idem.
22612 (__gnat_file_time_name): Idem.
22613 (__gnat_set_file_time_name): Idem.
22614 (__gnat_stat): Idem.
22615 (win32_no_block_spawn): Idem.
22616 (__gnat_locate_exec_on_path): Idem.
22617 (__gnat_opendir): New routine.
22618 (__gnat_closedir): Idem.
22619 (__gnat_readdir): Add new parameter length (pointer to int). Update
22620 implementation to use it and add specific Win32 code for Unicode
22621 support.
22622 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
22623 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
22624 (convert_addresses): Do not define this dummy routine on VMS.
22625
22626 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
22627 runtime Unicode support will be activated.
22628 (S2WS): String to Wide-String conversion. This version just copy a
22629 string in non Unicode version.
22630 (WS2S): Wide-String to String conversion. This version just copy a
22631 string in non Unicode version.
22632
22633 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
22634 (Open): Now import __gnat_opendir from adaint.c.
22635 (Read): Change the implementation to support unicode characters. It is
22636 not possible to use strlen() on Windows as this version supports only
22637 standard ASCII characters. So the length of the directory entry is now
22638 returned from the imported __gnat_readdir routine.
22639 Update copyright notice.
22640
22641 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
22642 (opendir): Moved to adaint.c.
22643
22644 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
22645 (Get_Directory): Fix wrong indexing.
22646 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
22647 __gnat_getenv from env.c
22648 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
22649 from env.c
22650
22651 * env.h, env.c: New file.
22652
22653 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
22654 adaint.c by __gnat_getenv from env.c
22655
22656 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
22657 adaint.c by __gnat_getenv from env.c
22658
22659 * Make-lang.in: Add env.o in the list of C object needed by gnat1
22660 and gnatbind.
22661 Update dependencies.
22662
22663 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22664 Olivier Hainque <hainque@adacore.com>
22665 Eric Botcazou <ebotcazou@adacore.com>
22666
22667 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
22668
22669 * gigi.h (value_factor_p): Add prototype and description, now public.
22670
22671 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
22672 promotion for field with rep clause if the associated size was proven
22673 to be in error.
22674 Expand comments describing attempts to use a packable type.
22675 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
22676 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
22677 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
22678 necessary since these are not different types and pointers may
22679 actually designate any subtype in this hierarchy.
22680 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
22681 discriminants but put them into record only if not Unchecked_Union;
22682 pass flag to components_to_record showing Unchecked_Union.
22683 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
22684 components before variants; don't set TYPE_UNCHECKED_UNION_P.
22685 (components_to_record): New argument UNCHECKED_UNION.
22686 Remove special case code for Unchecked_Union and instead use main code
22687 with small changes.
22688
22689 PR ada/26096
22690 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
22691 variable with the expression being built, only its inner field.
22692
22693 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
22694 emit_sequence_entry_statements.
22695 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
22696 (establish_gnat_vms_condition_handler): Move before
22697 Subprogram_Body_to_gnu.
22698 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
22699 for a subprogram if it has a foreign convention or is exported.
22700 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
22701 substituted for a CONST_DECL.
22702 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
22703 Etype to assoc_to_constructor.
22704 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
22705 discriminants of Unchecked_Union.
22706 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
22707 don't need cluttering preprocessor directives.
22708 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
22709 condition handler as current in the compiled function.
22710 (body_with_handlers_p): New function. Tell whether a given sequence of
22711 statements node is attached to a package or subprogram body and involves
22712 exception handlers possibly nested within inner block statements.
22713 (emit_sequence_entry_statements): New function, to emit special
22714 statements on entry of sequences when necessary. Establish GNAT
22715 condition handler in the proper cases for VMS.
22716 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
22717 emit_sequence_entry_statements.
22718
22719 * utils2.c (find_common_type): If both input types are BLKmode and
22720 have a constant size, use the smaller one.
22721 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
22722 the same.
22723
22724 * utils.c (value_factor_p): Make public, to allow uses from other gigi
22725 units.
22726 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
22727 (convert, case UNION_TYPE): Remove special treatment for unchecked
22728 unions.
22729
22730 PR ada/18659
22731 (update_pointer_to): Update variants of pointer types to unconstrained
22732 arrays by attaching the list of fields of the main variant.
22733
22734 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22735 Robert Dewar <dewar@adacore.com>
22736
22737 * a-exexpr.adb, a-exexpr-gcc.adb
22738 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
22739 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
22740 Remove code unused for exception propagation for the compiler itself
22741 from a-except.adb and update to still share separate packages.
22742
22743 * a-except.ads, a-except.adb: Ditto.
22744 Add comments that this version is now used only by the compiler and
22745 other basic tools. The full version that includes the Ada 2005 stuff
22746 is in separate files a-except-2005.ads/adb. The reason is that we do
22747 not want to cause bootstrap problems with compilers not recognizing
22748 Wide_Wide_String.
22749 Add exception reason code PE_Implicit_Return
22750 Add new exception reason code (Null Exception_Id)
22751
22752 * a-except-2005.adb, a-except-2005.ads: New files.
22753
22754 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
22755
22756 * s-wchcon.adb: New file.
22757
22758 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
22759 (traceback.o deps): Likewise.
22760 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
22761 Activate build of GMEM instrumentation library on VMS targets.
22762 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
22763 Use a-except-2005.ads/adb for all run-time library builds unless
22764 specified otherwise.
22765 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
22766 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
22767 Use s-parame.adb on all native platforms.
22768 Use s-parame-vxworks.adb on all vxworks platforms.
22769 Add env.c env.h in LIBGNAT_SRCS
22770 Add env.o in LIBGNAT_OBJS
22771 (GNATMAKE_OBJS): Remove ctrl_c.o object.
22772 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
22773 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22774 supports VxWorks 6 RTPs.
22775 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
22776 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22777
22778 * types.h, types.ads (Terminate_Program): New exception
22779 Add comment on modifying multiple versions of a-except.adb when the
22780 table of exception reasons is modified.
22781 Add exception reason code PE_Implicit_Return
22782 Add new exception reason code (Null Exception_Id)
22783
22784 * clean.adb (Initialize): Get the target parameters before checking
22785 if target is OpenVMS. Move the OpenVMS specific code here from package
22786 body elaboration code.
22787
22788 2006-02-13 Thomas Quinot <quinot@adacore.com>
22789 Vincent Celier <celier@adacore.com>
22790 Robert Dewar <dewar@adacore.com>
22791
22792 * ali-util.adb (Get_File_Checksum): Update to account for change in
22793 profile of Initialize_Scanner.
22794
22795 * gprep.adb (Gnatprep): Update to account for change in profile of
22796 Initialize_Scanner.
22797 (Process_One_File): Same.
22798
22799 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
22800 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
22801 that behaviour using the new Unit information recorded in the source
22802 files table, rather than going through all units every time.
22803 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
22804 (Get_Source_Unit): Same.
22805
22806 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
22807 change in profile of Initialize_Scanner.
22808 (Prepare_To_Preprocess): Same.
22809
22810 * lib.ads: Fix typo in comment (templace -> template).
22811
22812 * prj-part.adb (Parse_Single_Project): Update to account for change in
22813 profile of Initialize_Scanner.
22814
22815 * scn.adb (Initialize_Scanner): Account for change in profile of
22816 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
22817 Also record the association of the given Source_File_Index to the
22818 corresponding Unit_Number_Type.
22819
22820 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
22821 procedure.
22822 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
22823 Remove Unit formal for generic scanner: this formal
22824 is only relevant to Scn (the scanner instance used to parse Ada source
22825 files), not to other instances. Update comment accordingly.
22826 (Scan): Use new function Snames.Is_Keyword_Name.
22827
22828 * sinfo-cn.adb: Fix typo in comment.
22829
22830 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
22831 Unit.
22832
22833 * sinput.ads (Source_File_Record): New component Unit, used to capture
22834 the unit identifier (if any) associated to a source file.
22835
22836 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
22837 Unit in Source_File_Record.
22838
22839 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
22840 in profile of Initialize_Scanner.
22841
22842 * scans.adb (Initialize_Ada_Keywords): New procedure
22843
22844 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
22845 Ada keywords in the Namet table, without the need to call
22846 Initialize_Scanner.
22847
22848 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
22849 (Is_Keyword_Name): New function
22850
22851 * snames.ads: Add subtype Configuration_Pragma_Names
22852 Add pragma Ada_2005 (synonym for Ada_05)
22853 (Is_Keyword_Name): New function
22854
22855 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
22856
22857 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22858
22859 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
22860 index.
22861
22862 * a-stwima.adb (To_Set): Add extra check when N = 0.
22863
22864 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
22865
22866 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22867
22868 * s-parame-mingw.adb, s-parame-linux.adb,
22869 s-parame-solaris.adb: Removed, replaced by s-parame.adb
22870
22871 * s-parame-vxworks.ads: Fix typo.
22872
22873 * s-parame-vxworks.adb: New file.
22874
22875 * s-parame.adb: Version now used by all native platforms.
22876 (Default_Stack_Size): Use 2 megs for default stack size and use
22877 __gl_default_stack_size when available.
22878 (Minimum_Stack_Size): Use 12K.
22879
22880 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
22881 (Create_Task): Refine implementation taking advantage of the XP stack
22882 size support. On XP, we now create the thread using the flag
22883 STACK_SIZE_PARAM_IS_A_RESERVATION.
22884
22885 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
22886
22887 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
22888 XP and 0 on older Windows versions.
22889
22890 * interfac-vms.ads: Removed, no longer used.
22891
22892 2006-02-13 Matthew Heaney <heaney@adacore.com>
22893
22894 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
22895 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
22896 a-cohase.adb: All explicit raise statements now include an exception
22897 message.
22898
22899 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
22900 (Update_Element_Preserving_Key): renamed op to just Update_Element.
22901 Explicit raise statements now include an exception message
22902
22903 * a-cihase.ads, a-cohase.ads: Removed comment.
22904
22905 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
22906 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
22907 a-szbzha.adb, a-szfzha.ads: New files.
22908
22909 2006-02-13 Matthew Heaney <heaney@adacore.com>
22910
22911 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
22912 quicksort.
22913
22914 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
22915
22916 * lang.opt: Wvariadic-macros: New option.
22917 Wold-style-definition: Likewise.
22918 Wmissing-format-attribute: Likewise.
22919
22920 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
22921 -Wold-style-definition and -Wmissing-format-attribute.
22922
22923 2006-02-13 Robert Dewar <dewar@adacore.com>
22924
22925 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
22926
22927 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
22928
22929 2006-02-13 Nicolas Roche <roche@adacore.com>
22930
22931 * a-envvar.adb, a-envvar.ads: New files.
22932
22933 2006-02-13 Douglas Rupp <rupp@adacore.com>
22934
22935 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
22936
22937 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
22938
22939 2006-02-13 Pat Rogers <rogers@adacore.com>
22940
22941 * a-rttiev.adb, a-rttiev.ads: New files.
22942
22943 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
22944
22945 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
22946 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
22947
22948 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
22949
22950 2006-02-13 Robert Dewar <dewar@adacore.com>
22951
22952 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
22953 sem_case.adb: Minor code reorganization (not Present should be No)
22954
22955 2006-02-13 Geert Bosch <bosch@adacore.com>
22956 Gary Dismukes <dismukes@adacore.com>
22957
22958 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
22959 0, since the lower bound of the actual string may be greater than one.
22960
22961 PR ada/20753
22962 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
22963 layout is requested.
22964
22965 2006-02-13 Vincent Celier <celier@adacore.com>
22966
22967 * back_end.adb (Scan_Compiler_Arguments): Check if
22968 Search_Directory_Present is True and, if it is, add the argument in
22969 the source search directory path.
22970
22971 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
22972 Search_Directory_Present to True.
22973
22974 2006-02-13 Joel Brobecker <brobecke@adacore.com>
22975
22976 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
22977 volatile, to tell the compiler to preserve this variable at any level
22978 of optimization.
22979 (Gen_Versions_Ada): Temporarily work around codegen bug.
22980
22981 2006-02-13 Vincent Celier <celier@adacore.com>
22982
22983 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
22984 gcc to link with option -shared-libgcc.
22985 (Gnatlink): Remove duplicate switches -shared-libgcc
22986
22987 2006-02-13 Robert Dewar <dewar@adacore.com>
22988
22989 * gnatvsn.ads (Current_Year): New constant, used to easily update
22990 copyright on all GNAT tools.
22991
22992 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
22993 copyright notice.
22994
22995 2006-02-13 Robert Dewar <dewar@adacore.com>
22996
22997 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
22998 after hyphen (small aesthetic change useful for a range of numbers
22999 using ^-^.
23000 Suppress range checks for a couple of assignments which otherwise
23001 cause validity checks with validity checking turned on.
23002
23003 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
23004 Improvement in error message for object.
23005 (Rep_Item_Too_Late): Remove '!' in warning message.
23006
23007 2006-02-13 Robert Dewar <dewar@adacore.com>
23008 Eric Botcazou <ebotcazou@adacore.com>
23009
23010 * err_vars.ads: Suppress range checks for a couple of assignments
23011 which otherwise cause validity checks with validity checking turned on.
23012 Update comments.
23013
23014 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
23015 Make message unconditional if it is a warning.
23016 (Error_Msg_NEL): Always output warning messages.
23017 Suppress range checks for a couple of assignments which otherwise
23018 cause validity checks with validity checking turned on.
23019
23020 * errout.ads (Message Insertion Characters): Document that '!' is
23021 implied by '?' in error messages.
23022
23023 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
23024 (Gnat1drv): Use a goto to end of main subprogram instead of
23025 Exit_Program (E_Success) so that finalization can occur normally.
23026
23027 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23028
23029 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
23030 wrapped around.
23031
23032 2006-02-13 Vincent Celier <celier@adacore.com>
23033
23034 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
23035 Unchecked_Conversion functions.
23036 (Modification_Time): Use direct conversion of OS_Time to Calendar time
23037 when OpenVMS returns False.
23038
23039 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
23040 a-dirval.adb (OpenVMS): New Boolean function
23041
23042 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23043 Thomas Quinot <quinot@adacore.com>
23044
23045 * checks.adb (Build_Discriminant_Checks): If the expression being
23046 checks is an aggregate retrieve the values of its discriminants to
23047 generate the check, rather than creating a temporary and a reference
23048 to it.
23049 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
23050 (Install_Null_Excluding_Check): Ditto
23051 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
23052 not for the renamed object, so that the actual itype is attached in the
23053 proper context.
23054
23055 2006-02-13 Robert Dewar <dewar@adacore.com>
23056 Vincent Celier <celier@adacore.com>
23057
23058 * debug.adb: Eliminate numeric switches for binder/gnatmake
23059
23060 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
23061 switches for the compiler.
23062 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
23063 (Scan_Make_Switches): When failing with an illegal switch, output an
23064 error message with the full switch.
23065 Eliminate numeric switches for binder/gnatmake
23066
23067 * switch.ads, switch.adb (Bad_Switch): New procedure
23068
23069 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
23070 Remove 0-9 as debug flag character possibilities
23071 -d is now controlling the primary stack size when its value is a
23072 positive. Also add checks against invalid values, and support for kb,
23073 mb. Ditto for -D switch.
23074
23075 2006-02-13 Robert Dewar <dewar@adacore.com>
23076 Serguei Rybin <rybin@adacore.com>
23077
23078 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
23079 save/restore routines.
23080 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23081 were not always properly handled previously.
23082 Since we are changing the tree format anyway, also get rid of the
23083 junk obsolete Immediate_Errors flag.
23084 (Tree_Read): Change the way of reading Tree_Version_String - now we
23085 read the version string from the tree even if its length is not the
23086 same as the length of the version string computed from Gnatvsn.
23087 (Search_Directory_Present): New Boolean flag for the compiler.
23088 Define Tree_Version_String as a dynamic string.
23089 (Default_Stack_Size): new variable, used to handle switch -d.
23090
23091 * par-prag.adb:
23092 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
23093 only for main unit.
23094 Add pragma Ada_2005 (synonym for Ada_05)
23095 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23096 were not always properly handled previously.
23097
23098 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
23099 explicit Ada_95 to Ada_2005.
23100
23101 2006-02-13 Javier Miranda <miranda@adacore.com>
23102 Robert Dewar <dewar@adacore.com>
23103 Ed Schonberg <schonberg@adacore.com>
23104
23105 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
23106 against errors in the source program: a private types for which the
23107 corresponding full type declaration is missing and pragma CPP_Virtual
23108 is used.
23109 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
23110 (Is_Known_Null): New flag
23111 (Has_Pragma_Pure): New flag
23112 (No_Return): Present in all entities, set only for procedures
23113 (Is_Limited_Type): A type whose ancestor is an interface is limited if
23114 explicitly declared limited.
23115 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
23116 entities. Only used for component marked Is_Tag. If present it stores
23117 the Offset_To_Top function used to provide this value in tagged types
23118 whose ancestor has discriminants.
23119
23120 * exp_ch2.adb: Update status of new Is_Known_Null flag
23121
23122 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
23123
23124 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
23125 the categorization sense if Is_Pure was set by pragma Pure_Function.
23126
23127 2006-02-13 Quentin Ochem <ochem@adacore.com>
23128 Olivier Hainque <hainque@adacore.com>
23129
23130 * bindusg.adb: Updated documentation for -d and -D switches.
23131
23132 * raise.h (__gnat_set_globals): added new parameter for
23133 Default_Stack_Size.
23134
23135 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
23136 (__gnat_handle_vms_condition): Adjust context before raise.
23137 (__gnat_install_handler): Restore the global vector setup for GCC
23138 versions before 3.4, as the frame based circtuitry is not available
23139 in this case.
23140 (__gnat_set_globals): added a parameter default_stack_size
23141 (__gl_default_stack_size): new variable.
23142
23143 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23144
23145 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
23146 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
23147 does not exist in the Ada RM.
23148 (Compatible_Int_Bounds): Determine whether two integer range bounds
23149 are of equal length and have the same start and end values.
23150 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
23151 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
23152 aggregate when it is part of an object declaration.
23153 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
23154 constrains discriminants of its parent, add explicitly the discriminant
23155 constraints of the ancestor by retrieving them from the
23156 stored_constraint of the parent.
23157
23158 2006-02-13 Robert Dewar <dewar@adacore.com>
23159
23160 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
23161 attribute Mechanism_Code is applied to renamed subprogram, modify
23162 prefix to point to base subprogram.
23163 Max/Min attributes now violate Restriction No_Implicit_Conditionals
23164
23165 * sinfo.ads: Document that Mechanism_Code cannot be applied to
23166 renamed subprograms so that the front-end must replace the prefix
23167 appropriately.
23168
23169 2006-02-13 Javier Miranda <miranda@adacore.com>
23170 Gary Dismukes <dismukes@adacore.com>
23171
23172 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
23173 availability of RE_Interface_Tag.
23174 (Build_Initialization_Call): Fix wrong access to the discriminant value.
23175 (Freeze_Record_Type): Do not generate the tables associated with
23176 timed and conditional dispatching calls through synchronized
23177 interfaces if compiling under No_Dispatching_Calls restriction.
23178 When compiling for Ada 2005, for a nonabstract
23179 type with a null extension, call Make_Controlling_Function_Wrappers
23180 and insert the wrapper function declarations and bodies (the latter
23181 being appended as freeze actions).
23182 (Predefined_Primitive_Bodies): Do not generate the bodies of the
23183 predefined primitives associated with timed and conditional
23184 dispatching calls through synchronized interfaces if we are
23185 compiling under No_Dispatching_Calls.
23186 (Build_Init_Procedure): Use RTE_Available to check if a run-time
23187 service is available before generating a call.
23188 (Make_Controlling_Function_Wrappers): New procedure.
23189 (Expand_N_Full_Type_Declaration): Create a class-wide master for
23190 access-to-limited-interfaces because they can be used to reference
23191 tasks that implement such limited interface.
23192 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
23193 procedure spec and body of the Offset_To_Top function that is generated
23194 when the parent of a type with discriminants has secondary dispatch
23195 tables.
23196 (Init_Secondary_Tags): Handle the case in which the parent of the type
23197 containing secondary dispatch tables has discriminants to generate the
23198 correct arguments to call Set_Offset_To_Top.
23199 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
23200
23201 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
23202 Add Wide_[Wide_]Expanded_Name.
23203 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
23204 the same functionality of Get_Prim_Op_Address but applied to predefined
23205 primitive operations because the pointers to the predefined primitives
23206 are now saved in a separate table.
23207 (Parent_Size): Modified to get access to the separate table of primitive
23208 operations or the parent type.
23209 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
23210 functionality of Set_Prim_Op_Address but applied to predefined primitive
23211 operations.
23212 (Set_Signature): New subprogram used to store the signature of a DT.
23213 (Displace): If the Offset_To_Top value is not static then call the
23214 function generated by the expander to get such value; otherwise use
23215 the value stored in the table of interfaces.
23216 (Offset_To_Top): The type of the actual has been changed to Address to
23217 give the correct support to tagged types with discriminants. In this
23218 case this value is stored just immediately after the tag field.
23219 (Set_Offset_To_Top): Two new formals have been added to indicate if the
23220 offset_to_top value is static and hence pass this value to the run-time
23221 to store it in the table of interfaces, or else if this value is dynamic
23222 and then pass to the run-time the address of a function that is
23223 generated by the expander to provide this value for each object of the
23224 type.
23225
23226 * rtsfind.ads (Default_Prin_Op_Count): Removed.
23227 (Default_Prim_Op_Count): New entity
23228 (Get_Predefined_Prim_Op_Address): New entity
23229 (Set_Predefined_Prim_Op_Address): New entity
23230 (RE_Set_Signature): New entity
23231
23232 2006-02-13 Thomas Quinot <quinot@adacore.com>
23233 Ed Schonberg <schonberg@adacore.com>
23234
23235 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
23236 Make_Adjust_Call done for a newly-allocated object.
23237
23238 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
23239 in a subprogram are wrapped in a cleanup block, indicate that the
23240 subprogram contains an inner block with an exception handler.
23241 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
23242 Adjust call is for a newly-allocated object. In that case we must not
23243 assume that the finalization list chain pointers are correct (since they
23244 come from a bit-for-bit copy of the original object's pointers) so if
23245 the attach level would otherwise be zero (no change), we set it to 4
23246 instead to cause the pointers to be reset to null.
23247
23248 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
23249 reset chain pointers to null.
23250
23251 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23252
23253 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
23254 string, and the context requires a loop for the assignment (e.g.
23255 because the left-hand side is packed), generate a unique name for the
23256 temporary that holds the string, to prevent spurious name clashes.
23257
23258 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23259 Javier Miranda <miranda@adacore.com>
23260 Robert Dewar <dewar@adacore.com>
23261 Gary Dismukes <dismukes@adacore.com>
23262
23263 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
23264 return unconstrained arrays.
23265 Update comments.
23266 (Expand_Call): An indirect call through an access parameter of a
23267 protected operation is not a protected call.
23268 Add circuit to raise CE in Ada 2005 mode following call
23269 to Raise_Exception.
23270 (Register_DT_Entry): Do nothing if
23271 the run-time does not give support to abstract interfaces.
23272 (Freeze_Subprogram): In case of dispatching operations, do not generate
23273 code to register the operation in the dispatch table if the source
23274 is compiled with No_Dispatching_Calls.
23275 (Register_Predefined_DT_Entry): Generate code that calls the new
23276 run-time subprogram Set_Predefined_Prim_Op_Address instead of
23277 Set_Prim_Op_Address.
23278
23279 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
23280 on array assignments if the right-hand side is a function call that has
23281 been inlined. Check is performed on the assignment in the block.
23282 (Process_Bounds): If bounds and range are overloaded, apply preference
23283 rule for root operations to disambiguate, and diagnose true ambiguity.
23284 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
23285 a tag-indeterminate right-hand side even when Expander_Active is True.
23286 Needed to ensure that dispatching calls to T'Input are allowed and
23287 get the tag of the target class-wide object.
23288
23289 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
23290 an inherited primitive operation that already overrides several
23291 abstract interface primitives. For transitivity, the new entity must
23292 also override all the abstract interface primitives covered by the
23293 inherited overriden primitive.
23294 Emit warning if new entity differs from homograph in same scope only in
23295 that one has an access parameter and the other one has a parameter of
23296 a general access type with the same designated type, at the same
23297 position in the signature.
23298 (Make_Inequality_Operator): Use source locations of parameters and
23299 subtype marks from corresponding equality operator when creating the
23300 tree structure for the implicit declaration of "/=". This does not
23301 change anything in behaviour except that the decoration of the
23302 components of the subtree created for "/=" allows ASIS to get the
23303 string images of the corresponding identifiers.
23304 (Analyze_Return_Statement): Remove '!' in warning message.
23305 (Check_Statement_Sequence): Likewise.
23306 (Analyze_Subprogram_Body): For an access parameter whose designated type
23307 is an incomplete type imported through a limited_with clause, use the
23308 type of the corresponding formal in the body.
23309 (Check_Returns): Implicit return in No_Return procedure now raises
23310 Program_Error with a compile time warning, instead of beging illegal.
23311 (Has_Single_Return): Function returning unconstrained type cannot be
23312 inlined if expression in unique return statement is not an identifier.
23313 (Build_Body_To_Inline): It is possible to inline a function call that
23314 returns an unconstrained type if all return statements in the function
23315 return the same local variable. Subsidiary procedure Has_Single_Return
23316 verifies that the body conforms to this restriction.
23317
23318 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
23319 same type, and one of them is of an anonymous access type, convert
23320 the other operand to it, so that this is a valid binary operation for
23321 gigi.
23322 (Resolve_Type_Conversion): Handle subtypes of protected types and
23323 task types when accessing to the corresponding record type.
23324 (Resolve_Allocator): Add '\' in 2-line warning message.
23325 Remove '!' in warning message.
23326 (Resolve_Call): Add '\' in 2-line warning message.
23327 (Valid_Conversion): Likewise.
23328 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
23329 resulting type may be an access type with an implicit dereference.
23330 Obtain the proper component from the designated type.
23331 (Make_Call_Into_Operator): Handle properly a call to predefined equality
23332 given by an expanded name with prefix Standard, when the operands are
23333 of an anonymous access type.
23334 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
23335 Explicit_Dereference and Resolve_Selected_Component, to verify that the
23336 prefix of the expression is not of an incomplete type. Allows full
23337 diagnoses of all semantic errors.
23338 (Resolve_Actuals): If the actual is an allocator whose directly
23339 designated type is a class-wide interface we build an anonymous
23340 access type to use it as the type of the allocator. Later, when
23341 the subprogram call is expanded, if the interface has a secondary
23342 dispatch table the expander will add a type conversion to force
23343 the displacement of the pointer.
23344 (Resolve_Call): If a function that returns an unconstrained type is
23345 marked Inlined_Always and inlined, the call will be inlined and does
23346 not require the creation of a transient scope.
23347 (Check_Direct_Boolean_Op): Removed
23348 (Resolve_Comparison_Op): Remove call to above
23349 (Resolve_Equality_Op): Remove call to above
23350 (Resolve_Logical_Op): Inline above, since this is only call.
23351 (Valid_Conversion): Handle properly conversions between arrays of
23352 convertible anonymous access types.
23353
23354 PR ada/25885
23355 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
23356 the literal in an unchecked conversion, because GCC 4.x needs a static
23357 value for a string bound.
23358
23359 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23360 Hristian Kirtchev <kirtchev@adacore.com>
23361
23362 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
23363 components of the corresponding record, take into account component
23364 definitions that are access definitions.
23365 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
23366 procedure is not considered a dispatching call and will be expanded
23367 properly.
23368
23369 2006-02-13 Javier Miranda <miranda@adacore.com>
23370
23371 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
23372 controlling argument of the dispatching call is an abstract interface
23373 class-wide type then we use it directly.
23374 Check No_Dispatching_Calls restriction.
23375 (Default_Prim_Op_Position): Remove the code that looks for the last
23376 entity in the list of aliased subprograms. This code was wrong in
23377 case of renamings.
23378 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
23379 when the source is compiled with the No_Dispatching_Calls restriction.
23380 (Init_Predefined_Interface_Primitives): No need to inherit primitives
23381 if we are compiling with restriction No_Dispatching_Calls.
23382 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
23383 subprograms if we are compiling under No_Dispatching_Calls restriction.
23384 (Make_DT): Generate a dispatch table with a single dummy entry if
23385 we are compiling with the No_Dispatching_Calls restriction. In
23386 addition, in this case we don't generate code that calls to the
23387 following run-time subprograms: Set_Type_Kind, Inherit_DT.
23388 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
23389 of this subprogram if compiling with the No_Dispatching_Calls
23390 restriction.
23391 (Expand_Type_Conversion): Instead of using the actual parameter,
23392 the argument passed as parameter to the conversion function was
23393 erroneously referenced by the expander.
23394 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
23395 Set_Predefined_Primitive_Op_Address and Set_Signature.
23396 (Expand_Dispatching_Call): Generate call to
23397 Get_Predefined_Prim_Op_Address for predefined primitives.
23398 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
23399 predefined primitives.
23400 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
23401 primitives we reserve one dummy entry to ensure that the tag does not
23402 point to some memory that is associated with some other object. In
23403 addition, remove all the old code that generated the assignments
23404 associated with the signature of the dispatch table and replace them
23405 by a call to the new subprogram Set_Signature.
23406 (Set_All_DT_Position): Change the algorithm because now we have a
23407 separate dispatch table associated with predefined primitive operations.
23408 (Expand_Interface_Conversion): In case of non-static offset_to_top
23409 add explicit dereference to get access to the object after the call
23410 to displace the pointer to the object.
23411 (Expand_Interface_Thunk): Modify the generation of the actual used
23412 in the calls to the run-time function Offset_To_Top to fulfil its
23413 new interface.
23414 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
23415
23416 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23417
23418 * exp_dist.adb (Copy_Specification): For access parameters, copy
23419 Null_Exclusion flag, which will have been set for stream subprograms
23420 in Ada2005 mode.
23421
23422 2006-02-13 Pascal Obry <obry@adacore.com>
23423
23424 * expect.c (__gnat_expect_portable_execvp): New implementation. The
23425 previous implementation was using the C runtime spawnve routine but
23426 the corresponding wait was using directly the Win32 API. This was
23427 causing some times a lock when waiting for an event using
23428 WaitForSingleObject in __gnat_waitpid. This new implementation uses
23429 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
23430 API fixes this problem.
23431
23432 2006-02-13 Robert Dewar <dewar@adacore.com>
23433
23434 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
23435 call.
23436
23437 2006-02-13 Thomas Quinot <quinot@adacore.com>
23438
23439 * exp_pakd.ads: Fix typos in comments.
23440
23441 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
23442 array reference that is an explicit dereference, mark the converted
23443 (packed) array reference as analyzed to prevent a forthcoming
23444 reanalysis from resetting its type to the original (non-packed) array
23445 type.
23446
23447 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23448 Javier Miranda <miranda@adacore.com>
23449 Eric Botcazou <ebotcazou@adacore.com>
23450
23451 * exp_util.ads, exp_util.adb (Find_Prim_Op,
23452 Is_Predefined_Primitive_Operation): When
23453 searching for the predefined equality operator, verify that operands
23454 have the same type.
23455 (Is_Predefined_Dispatching_Operation): Remove the code that looks
23456 for the last entity in the list of aliased subprograms. This code
23457 was wrong in case of renamings.
23458 (Set_Renamed_Subprogram): New procedure
23459 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
23460 Exp_Type constant computed when entering this subprogram.
23461 (Known_Null): New function
23462 (OK_To_Do_Constant_Replacement): New function
23463 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
23464 (Side_Effect_Free): An attribute reference 'Input is not free of
23465 side effect, unlike other attributes that are functions. (from code
23466 reading).
23467 (Remove_Side_Effects): Expressions that involve packed arrays or records
23468 are copied at the point of reference, and therefore must be marked as
23469 renamings of objects.
23470 (Is_Predefined_Dispatching_Operation): Return false if the operation is
23471 not a dispatching operation.
23472
23473 PR ada/18819
23474 (Remove_Side_Effects): Lift enclosing type conversion nodes for
23475 elementary types in all cases.
23476
23477 2006-02-13 Javier Miranda <miranda@adacore.com>
23478
23479 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
23480 task types when accessing to the corresponding record type.
23481 Remove '!' in warning message.
23482
23483 2006-02-13 Olivier Hainque <hainque@adacore.com>
23484
23485 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
23486 to avoid useless and space inefficient overalignments on targets where
23487 Max_Alignment is larger than 16.
23488
23489 2006-02-13 Pascal Obry <obry@adacore.com>
23490
23491 * g-catiio.adb (Sec_Number): New type used to compute the number of
23492 seconds since 1-1-1970.
23493 (Image) [Natural]: The parameter was an Integer, as we can't deal with
23494 negative numbers (years, months...) it is better to have a Natural here.
23495 Code clean-up.
23496 (Image) [Number]: Change parameter from Long_Integer to Number.
23497 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
23498 overflow for dates past year 2038.
23499
23500 2006-02-13 Matthew Heaney <heaney@adacore.com>
23501
23502 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
23503 Constraint_Error.
23504
23505 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23506
23507 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
23508 native platforms.
23509 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
23510 finalization can occur normally.
23511
23512 2006-02-13 Vincent Celier <celier@adacore.com>
23513
23514 * gnatcmd.adb (Rules_Switches): New table
23515 (Add_To_Rules_Switches): New procedure
23516 (GNATCmd): For command CHECK, put all options following "-rules" in the
23517 Rules_Switches table. Append these -rules switches after the -cargs
23518 switches.
23519
23520 2006-02-13 Robert Dewar <dewar@adacore.com>
23521
23522 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
23523 These two cases were generating incorrect output, and if this unit
23524 was built with checks on, generated a discriminant mismatch constraint
23525 error.
23526
23527 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23528 Robert Dewar <dewar@adacore.com>
23529
23530 * lib-xref.adb (Get_Type_Reference): For a private type whose full
23531 view is an array type, indicate the component type as well, for
23532 navigation purposes.
23533 (Generate_Reference): Don't consider array ref on LHS to be a case
23534 of violating pragma Unreferenced.
23535 Do not give Ada 2005 warning except on real reference.
23536
23537 2006-02-13 Vincent Celier <celier@adacore.com>
23538
23539 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
23540 main source, add switch -mdebug-main=_ada_ so that the executable can
23541 be debugged by the standard VMS debugger.
23542 (Gnatmake): Set No_Main_Subprogram to True when there is no main
23543 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
23544 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
23545 of the last source, as the binding and linking phases are never
23546 performed.
23547 Set all executable obsolete when rebuilding a library.
23548
23549 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
23550 options.
23551
23552 2006-02-13 Javier Miranda <miranda@adacore.com>
23553
23554 PR ada/23973
23555 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
23556 code to improve the error message reported when the program has
23557 declarations of abstract interface types and it is not compiled with
23558 the -gnat05 switch.
23559 (P_Access_Definition): Reorganize the code to improve the error
23560 message reported when the new Ada 2005 syntax for anonymous
23561 access types is used and the program is not compiled with the
23562 -gnat05 switch.
23563
23564 2006-02-13 Robert Dewar <dewar@adacore.com>
23565
23566 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
23567 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
23568 (MODE_IN)
23569
23570 2006-02-13 Javier Miranda <miranda@adacore.com>
23571
23572 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
23573 against source containing syntax errors.
23574
23575 2006-02-13 Vincent Celier <celier@adacore.com>
23576
23577 * prj.adb (Reset): Initialize the first element of table Namings with
23578 the standard naming data.
23579
23580 2006-02-13 Vincent Celier <celier@adacore.com>
23581
23582 * prj.ads (Error_Warning): New enumeration type
23583
23584 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
23585 unknown, use the location of the project to report the error.
23586 (When_No_Sources): New global variable
23587 (Report_No_Ada_Sources): New procedure
23588 (Check): New parameter When_No_Sources. Set value of global variable
23589 When_No_Sources,
23590 (Find_Sources): Call Report_No_Ada_Sources when appropriate
23591 (Get_Sources_From_File): Ditto
23592 (Warn_If_Not_Sources): Better warning messages indicating the unit name
23593 and the file name.
23594
23595 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
23596 Call Prj.Proc.Process with parameter When_No_Sources.
23597
23598 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
23599 Call Recursive_Check with parameter When_No_Sources.
23600 (Recursive_Check): New parameter When_No_Sources. Call itself and
23601 Prj.Nmsc.Check with parameter When_No_Sources.
23602 (Process): New parameter When_No_Sources. Call Check with parameter
23603 When_No_Sources.
23604 (Copy_Package_Declarations): New procedure to copy renamed parameters
23605 and setting the location of the declared attributes to the location
23606 of the renamed package.
23607 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
23608 packages.
23609
23610 2006-02-13 Vincent Celier <celier@adacore.com>
23611
23612 * prj-makr.adb (Make): Preserve the comments from the original project
23613 file.
23614 When removing nodes (attributes Source_Dirs, Source_Files,
23615 Source_List_File and package Naming), save the comments and attach the
23616 saved comments to the newly created nodes.
23617 Do not add a with clause for the naming package if one already exists.
23618
23619 2006-02-13 Javier Miranda <miranda@adacore.com>
23620 Gary Dismukes <dismukes@adacore.com>
23621 Robert Dewar <dewar@adacore.com>
23622
23623 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
23624
23625 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
23626 aliased entities to look for the overriden abstract interface
23627 subprogram.
23628 (Is_Interface_Subprogram): Complete documentation.
23629 (Check_Dispatching_Operation): Do not generate code to register the
23630 operation in the dispatch table if the source is compiled with
23631 restriction No_Dispatching_Calls.
23632 (Override_Dispatching_Operation): Check for illegal attempt to override
23633 No_Return procedure with procedure that is not No_Return
23634 (Check_Dispatching_Call): Suppress the check for an abstract operation
23635 when the original node of an actual is a tag-indeterminate attribute
23636 call, since the attribute, which must be 'Input, can never be abstract.
23637 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
23638 call to the Input attribute (even when rewritten).
23639 (Propagate_Tag): Augment comment to indicate the possibility of a call
23640 to an Input attribute.
23641
23642 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
23643 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
23644
23645 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
23646 No_Wide_Characters is no longer partition-wide
23647 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
23648 rather than GNAT
23649
23650 2006-02-13 Douglas Rupp <rupp@adacore.com>
23651
23652 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
23653
23654 2006-02-13 Javier Miranda <miranda@adacore.com>
23655
23656 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
23657 handles default-initialized components to keep separate the management
23658 of this feature but also avoid the unrequired resolution and
23659 expansion of components that do not have partially initialized
23660 values.
23661 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
23662 (Check_Bounds): Likewise.
23663 (Check_Length): Likewise.
23664
23665 2006-02-13 Javier Miranda <miranda@adacore.com>
23666 Ed Schonberg <schonberg@adacore.com>
23667
23668 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
23669 abstract interface type call analyze_and_resolve to expand the type
23670 conversion into the corresponding displacement of the
23671 reference to the base of the object.
23672 (Eval_Attribute, case Width): For systems where IEEE extended precision
23673 is supported, the maximum exponent occupies 4 decimal digits.
23674 (Accessibility_Message): Add '\' in 2-line warning message.
23675 (Resolve_Attribute): Likewise.
23676 (case Attribute_Access): Significantly revise checks
23677 for illegal access-to-subprogram Access attributes to properly enforce
23678 the rules of 3.10.2(32/2).
23679 Diagnose use of current instance with an illegal attribute.
23680
23681 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
23682 to a Node_Id.
23683 (Enclosing_Generic_Unit): New function to return a node's innermost
23684 enclosing generic declaration node.
23685 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
23686 (Type_Access_Level): The accessibility level of anonymous acccess types
23687 associated with discriminants is that of the current instance of the
23688 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
23689 (Compile_Time_Constraint_Error): Handle case of conditional expression.
23690 (Kill_Current_Values_For_Entity): New function
23691 (Enter_Name): Change formal type to Entity_Id
23692
23693 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
23694 Ed Schonberg <schonberg@adacore.com>
23695 Gary Dismukes <dismukes@adacore.com>
23696
23697 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
23698 Analyze_Compilation_Unit.
23699 Detect and warn on redundant with clauses detected in a package spec
23700 and/or body when -gnatwr is used.
23701 (Analyze_Context): Analyze config pragmas before other items
23702 (Install_Context_Items): Don't analyze config pragmas here
23703 (Install_Limited_Withed_Unit): Set limited entity of package in
23704 with_clause so that cross-reference information or warning messages on
23705 unused packages can be properly generated
23706 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
23707 has Error_Posted set. Prevent infinite loops in illegal programs.
23708 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
23709 to the point of the error test requiring the current unit to be private.
23710 This ensures that private with clauses are not exempted from the basic
23711 checking for being a descendant of the same library unit parent as a
23712 withed private descendant unit.
23713 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
23714 handle private with clauses properly, as well as to account for cases
23715 where the withed unit is a public descendant of a private ancestor
23716 (in which case the current unit must be a descendant of the private
23717 ancestor's parent). The spec comments were updated accordingly. Also,
23718 the old error message in this subprogram was replaced with error
23719 messages that mirror the errors tested and reported by
23720 Check_Private_Child_Unit.
23721 Parameter and variable names improved for readability.
23722 (Install_Limited_Context_Clauses): Remove test for a withed unit being
23723 private as the precondition for calling
23724 Check_Private_Limited_Withed_Unit since that subprogram has been
23725 revised to test public units as well as private units.
23726
23727 2006-02-13 Thomas Quinot <quinot@adacore.com>
23728 Robert Dewar <dewar@adacore.com>
23729 Ed Schonberg <schonberg@adacore.com>
23730 Javier Miranda <miranda@adacore.com>
23731
23732 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
23733 that Scope_Stack.First = 1.
23734 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23735 were not always properly handled previously.
23736 (Formal_Entity): Complete rewrite, to handle properly some complex case
23737 with multiple levels of parametrization by formal packages.
23738 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
23739 to the corresponding derived type declaration for proper semantics.
23740
23741 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
23742 (Check_Component): Enforce restriction on components of
23743 unchecked_unions: a component in a variant cannot contain tasks or
23744 controlled types.
23745 (Unchecked_Union): Allow nested variants and multiple discriminants, to
23746 conform to AI-216.
23747 Add pragma Ada_2005 (synonym for Ada_05)
23748 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23749 were not always properly handled previously.
23750 Document that pragma Propagate_Exceptions has no effect
23751 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
23752 (Set_Convention_From_Pragma): Check that if a convention is
23753 specified for a dispatching operation, then it must be
23754 consistent with the existing convention for the operation.
23755 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
23756 longer required to specify an vtable-ptr component in the record. For
23757 compatibility reasons we leave the support for the previous definition.
23758 (Analyze_Pragma, case No_Return): Allow multiple arguments
23759
23760 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
23761 non-overrideen inherited operation with a controlling result as
23762 illegal only its implicit declaration comes from the derived type
23763 declaration of its result's type.
23764 (Check_Possible_Deferred_Completion): Relocate the object definition
23765 node of the subtype indication of a deferred constant completion rather
23766 than directly analyzing it. The analysis of the generated subtype will
23767 correctly decorate the GNAT tree.
23768 (Record_Type_Declaration): Check whether this is a declaration for a
23769 limited derived record before analyzing components.
23770 (Analyze_Component_Declaration): Diagnose record types not explicitly
23771 declared limited when a component has a limited type.
23772 (Build_Derived_Record_Type): Code reorganization to check if some of
23773 the inherited subprograms of a tagged type cover interface primitives.
23774 This check was missing in case of a full-type associated with a private
23775 type declaration.
23776 (Constant_Redeclaration): Check that the subtypes of the partial and the
23777 full view of a constrained deferred constant statically match.
23778 (Mentions_T): A reference to the current type in an anonymous access
23779 component declaration must be an entity name.
23780 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
23781 class_wide type to refer to full type, not to the incomplete one.
23782 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
23783 available. Required to give support to the certified run-time.
23784 (Analyze_Component_Declaration): In case of anonymous access components
23785 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
23786 (Process_Discriminants): For an access discriminant, use the
23787 discriminant specification as the associated_node_for_itype, to
23788 simplify accessibility checks.
23789
23790 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23791 Javier Miranda <miranda@adacore.com>
23792
23793 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
23794 abstract interpretations on an operator, remove interpretations that
23795 yield Address or a type derived from it, if one of the operands is an
23796 integer literal.
23797 (Try_Object_Operation.Try_Primitive_Operation,
23798 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
23799 location when creating the new reference to a primitive or class-wide
23800 operation as a part of rewriting a subprogram call.
23801 (Try_Primitive_Operations): If context requires a function, collect all
23802 interpretations after the first match, because there may be primitive
23803 operations of the same type with the same profile and different return
23804 types. From code reading.
23805 (Try_Primitive_Operation): Use the node kind to choose the proper
23806 operation when a function and a procedure have the same parameter
23807 profile.
23808 (Complete_Object_Operation): If formal is an access parameter and prefix
23809 is an object, rewrite as an Access reference, to match signature of
23810 primitive operation.
23811 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
23812 by an expanded name with prefix Standard, when the operands are of an
23813 anonymous access type.
23814 (Remove_Abstract_Operations): If the operation is abstract because it is
23815 inherited by a user-defined type derived from Address, remove it as
23816 well from the set of candidate interpretations of an overloaded node.
23817 (Analyze_Membership_Op): Membership test not applicable to cpp-class
23818 types.
23819
23820 2006-02-13 Bob Duff <duff@adacore.com>
23821
23822 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
23823 redundant use clauses.
23824 In particular, if the scope of two use clauses overlaps, but one is not
23825 entirely included in the other, we should not warn. This can happen
23826 with nested packages.
23827 (Analyze_Subprogram_Renaming): Protect the compiler against previously
23828 reported errors. The bug was reported when the compiler was built
23829 with assertions enabled.
23830 (Find_Type): If the node is a 'Class reference and the prefix is a
23831 synchronized type without a corresponding record, return the type
23832 itself.
23833
23834 2006-02-13 Javier Miranda <miranda@adacore.com>
23835
23836 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
23837 if this is the full-declaration associated with a private declaration
23838 that implement interfaces, then the private type declaration must be
23839 limited.
23840 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
23841 as aliased. The use of the 'access attribute is not available for such
23842 object (for this purpose the object should be explicitly marked as
23843 aliased, but being an anonymous type this is not possible).
23844
23845 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23846 Robert Dewar <dewar@adacore.com>
23847
23848 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
23849 compilation unit is an elaboration scope.
23850 (Add_Task_Proc): Add '\' in 2-line warning message.
23851 (Activate_All_Desirable): Deal with case of unit with'ed by parent
23852
23853 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23854 Javier Miranda <miranda@adacore.com>
23855
23856 * sem_type.adb (Write_Overloads): Improve display of candidate
23857 interpretations.
23858 (Add_One_Interp): Do not add to the list of interpretations aliased
23859 entities corresponding with an abstract interface type that is an
23860 immediate ancestor of a tagged type; otherwise we have a dummy
23861 conflict between this entity and the aliased entity.
23862 (Disambiguate): The predefined equality on universal_access is not
23863 usable if there is a user-defined equality with the proper signature,
23864 declared in the same declarative part as the designated type.
23865 (Find_Unique_Type): The universal_access equality operator defined under
23866 AI-230 does not cover pool specific access types.
23867 (Covers): If one of the types is a generic actual subtype, check whether
23868 it matches the partial view of the other type.
23869
23870 2006-02-13 Thomas Quinot <quinot@adacore.com>
23871
23872 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
23873 line. This is necessary to allow In_Extended_Main_Unit to provide
23874 correct results for itypes while writing out expanded source.
23875 (Close_File): No need to update the source_index_table here since it's
23876 now done for each line.
23877
23878 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23879 Robert Dewar <dewar@adacore.com>
23880
23881 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
23882 preserve the source unit where the itype is declared, and prevent a
23883 backend abort.
23884 (Note_Implicit_Run_Time_Call): New procedure
23885 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
23886 E_Subprogram_Type)
23887
23888 * sprint.ads: Document use of $ for implicit run time routine call
23889
23890 2006-02-13 Quentin Ochem <ochem@adacore.com>
23891
23892 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
23893 task name.
23894
23895 2006-02-13 Bob Duff <duff@adacore.com>
23896
23897 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
23898 Scan_Unsigned, so we do not scan leading blanks and sign twice.
23899 Integer'Value("- 5") and Integer'Value("-+5") now correctly
23900 raise Constraint_Error.
23901
23902 * s-vallli.adb (Scan_Long_Long_Integer): Call
23903 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
23904 do not scan leading blanks and sign twice.
23905 Integer'Value("- 5") and Integer'Value("-+5") now correctly
23906 raise Constraint_Error.
23907
23908 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
23909 Scan_Long_Long_Unsigned): Split out most of the processing from
23910 Scan_Long_Long_Unsigned out into
23911 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
23912 This prevents scanning leading blanks and sign twice.
23913 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
23914 See RM-3.5(44).
23915
23916 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
23917 out most of the processing from Scan_Unsigned out into
23918 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
23919 This prevents scanning leading blanks and sign twice.
23920
23921 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
23922 use with Modular'Value attribute.
23923 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
23924 attribute.
23925
23926 2006-02-13 Robert Dewar <dewar@adacore.com>
23927
23928 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
23929
23930 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23931
23932 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
23933 (PPC VxWorks): Likewise.
23934 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
23935 (forced_callee): Make non-inlinable and non-pure.
23936 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
23937
23938 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23939 Ben Brosgol <brosgol@adacore.com>
23940 Robert Dewar <dewar@adacore.com>
23941
23942 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
23943 support.
23944 Document that gnatbind -M option is for cross environments only.
23945 Added description of using gnatmem to trace gnat rtl allocs and deallocs
23946 Add note on use of $ to label implicit run time calls
23947 Add documentation for -gnatyI (check mode IN)
23948 Updated chapter on compatibility with HP Ada
23949 VMS-oriented edits.
23950 Ran spell and corrected errors
23951 Add documentation for gnatbind -d and rework documentation of -D
23952 at the same time.
23953 Add subprogram/data elimination section.
23954 Minor editing of annex A.
23955 Add section for gnatcheck.
23956 Add documentation for restriction No_Dispatching_Calls
23957 Add documentation for pragma Ada_2005
23958 Remove mention of obsolete pragma Propagate_Exceptions
23959 Document that pragma Unreferenced can appear after DO in ACCEPT
23960 Clarify Pure_Function for library level units
23961 Mention Max/Min in connection with No_Implicit_Conditionals
23962 No_Wide_Characters restriction is no longer partition-wide
23963 Add a nice example for Universal_Literal_String attribute
23964 Document that pragma No_Return can take multiple arguments
23965
23966 * ug_words: Added entry for gnatcheck
23967
23968 * g-ctrl_c.ads (Install_Handler): Enhance comments
23969
23970 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
23971
23972 * g-trasym.ads: Add documentation on how to do off line symbolic
23973 traceback computation.
23974
23975 * s-fatgen.adb: Add comments for Unaligned_Valid
23976
23977 * stand.ads: Fix typo in comment
23978
23979 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23980
23981 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
23982
23983 2006-02-06 Roger Sayle <roger@eyesopen.com>
23984
23985 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
23986
23987 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23988
23989 PR target/25926
23990 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
23991 implementation that calls __main.
23992
23993 2006-01-25 Peter O'Gorman <peter@pogma.com>
23994
23995 PR bootstrap/25859
23996 * Makefile.in (GCC_LINK): Remove quotes.
23997 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
23998 or $(GCC_LINK).
23999
24000 (powerpc-darwin): Pass -shared-libgcc when building shared library.
24001
24002 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24003
24004 PR ada/24533
24005 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
24006
24007 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24008
24009 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
24010
24011 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24012
24013 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
24014 needed.
24015
24016 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24017
24018 * Make-lang.in: Update dependencies
24019
24020 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24021
24022 * Make-lang.in: Add rule for ada/exp_sel.o
24023
24024 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24025
24026 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
24027
24028 2005-12-09 Arnaud Charlet <charlet@adacore.com>
24029
24030 * gnatvsn.ads (Library_Version): Bump to version 4.2
24031 (ASIS_Version_Number): Bumped.
24032
24033 2005-12-09 Doug Rupp <rupp@adacore.com>
24034
24035 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
24036 Ada bind file prefix on VMS from b$ to b__.
24037 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
24038 __init.
24039
24040 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
24041 Targparm.OpenVMS_On_Target.
24042 (Object_Suffix): Initialize with target object suffix.
24043 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
24044
24045 * butil.adb: Change some Hostparm.OpenVMS checks to
24046 Targparm.OpenVMS_On_Target.
24047
24048 * clean.adb: Change some Hostparm.OpenVMS checks to
24049 Targparm.OpenVMS_On_Target.
24050 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
24051 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
24052 Ada bind file prefix on VMS from b$ to b__.
24053
24054 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
24055 --GCC so that Get_Target_Parameters can find system.ads.
24056 (Gnatlink): Call Get_Target_Parameters in mainline.
24057 Initialize standard packages for Targparm.
24058 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24059 (Process_Args): Also Check for object files with target object
24060 extension.
24061 (Make_Binder_File_Names): Create with target object extension.
24062 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
24063 to b__.
24064
24065 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
24066 Targparm.OpenVMS_On_Target.
24067 ({declaration},Build_Library,Check_Library): Change Ada bind file
24068 prefix on VMS from b$ to b__.
24069
24070 * osint-b.adb: Change some Hostparm.OpenVMS checks to
24071 Targparm.OpenVMS_On_Target.
24072 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
24073 b__.
24074
24075 * targext.c: New file.
24076
24077 * Makefile.in: add support for vxworks653 builds
24078 (../../vxaddr2line): gnatlink with targext.o.
24079 (TOOLS_LIBS): Move targext.o to precede libgnat.
24080 (init.o, initialize.o): Minor clean up in dependencies.
24081 (GNATLINK_OBJS): Add targparm.o, snames.o
24082 Add rules fo building targext.o and linking it explicitly with all
24083 tools.
24084 Also add targext.o to gnatlib.
24085
24086 * Make-lang.in: Add rules for building targext.o and linking it in
24087 with gnat1 and gnatbind.
24088 Add entry for exp_sel.o.
24089
24090 * osint.adb Change some Hostparm.OpenVMS checks to
24091 Targparm.OpenVMS_On_Target.
24092 (Object_File_Name): Use target object suffix.
24093
24094 * osint.ads (Object_Suffix): Remove, no longer used.
24095 (Target_Object_Suffix): Initialize with target object suffix.
24096
24097 * rident.ads: Add special exception to license.
24098
24099 * targparm.adb (Get_Target_Parameters): Set the value of
24100 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
24101 value.
24102 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
24103
24104 * targparm.ads: Add special exception to license.
24105
24106 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
24107 function.
24108 (Copy_File): Make sure from file is closed if error on to file
24109 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
24110
24111 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
24112 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
24113
24114 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
24115 target object suffix.
24116
24117 2005-12-09 Jose Ruiz <ruiz@adacore.com>
24118 Quentin Ochem <ochem@adacore.com>
24119 Florian Villoing <villoing@adacore.com>
24120
24121 * a-taster.ads, a-taster.adb: New files.
24122
24123 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
24124 link to the version that does nothing. This way the task termination
24125 routine is not executed twice for the environment task when finishing
24126 because of an unhandled exception.
24127
24128 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
24129 handler because of an unhandled exception.
24130
24131 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
24132 System.Tasking.Utilities instead of that in System.Tasking.Stages.
24133
24134 * s-finimp.adb (initialization code): Modify the soft link for the
24135 finalization of the global list instead of Adafinal.
24136
24137 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
24138 non-tasking version of the soft link for task termination. We do
24139 nothing since if we are using the non-tasking version it
24140 means that the task termination functionality is not used.
24141 (Null_Finalize_Global_List): Add this null version for the procedure
24142 in charge of finalizing the global list for controlled objects.
24143 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
24144 instead for handling run-time termination in a more flexible way.
24145 (Adafinal_NT): This new procedure will take care of finalizing the
24146 global list for controlled objects if needed, but no tasking
24147 finalization.
24148
24149 * s-tarest.adb (Task_Lock): Do not try to lock again the
24150 Global_Task_Lock if we already own it. Otherwise, we get blocked in
24151 some run-time operations.
24152 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
24153 until all nested locks have been released.
24154 (Task_Wrapper): Call the fall-back task termination handler. It
24155 applies to all tasks but the environment task.
24156 (Finalize_Global_Tasks): Add the call for the task termination
24157 procedure for the environment task.
24158 (Task_Wrapper): suppress warnings around declaration of
24159 Secondary_Stack_Address.
24160
24161 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
24162 moved to the Common_ATCB record.
24163 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
24164 Common_ATCB record.
24165 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
24166 Common_ATCB record.
24167
24168 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
24169 Fall_Back_Handler, and Specific_Handler.
24170
24171 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
24172 defined in Ada.Task_Termination, to avoid circular dependencies.
24173 (Termination_Handler): Redefine this type here, alredy defined in
24174 Ada.Task_Termination, for avoiding circular dependencies.
24175 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
24176 for storing task termination handlers. In addition,
24177 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
24178 Common_ATCB because it is used by both the regular and the restricted
24179 run times.
24180 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
24181 Common_ATCB because it is used by both the regular and the restricted
24182 run times.
24183 (Common_ATCB): Added a dynamic task analyzer field.
24184
24185 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
24186 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
24187 (Task_Wrapper): Call the task termination handler. It applies to all
24188 tasks but the environment task.
24189 (Finalize_Global_Tasks): Call the task termination procedure for the
24190 environment task. The call to Finalize_Global_List is now performed
24191 using the soft links mechanism.
24192 (Task_Wrapper): added dynamic stack analysis.
24193
24194 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
24195 potentially blocking operations has been moved from
24196 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
24197 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
24198 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
24199 this run-time check.
24200
24201 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
24202 of task termination procedure.
24203 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
24204 link for the task termination procedure.
24205
24206 * bindusg.adb: (Bindusg): Added documentation for -u option.
24207
24208 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
24209 (Get_Main_C): Add handling of dynamic stack analysis.
24210 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
24211
24212 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
24213 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
24214 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
24215
24216 * opt.ads: Added flags used by dynamic stack measurement.
24217 (Max_Line_Length): Remove (not used anymore)
24218
24219 * s-io.ads, s-io.adb (Standard_Error): new subprogram
24220 (Standart_Output): new subprogram
24221 (Set_Output): new subprogram
24222 (Put): now uses the value of Current_Out to know if the output has to be
24223 send to stderr or stdout.
24224
24225 * s-stausa.ads: Complete implementation.
24226
24227 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
24228
24229 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
24230 list of Ada 05 files.
24231 (GNAT Library Units): Add AltiVec files.
24232
24233 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
24234 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
24235 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
24236
24237 2005-12-09 Nicolas Setton <setton@adacore.com>
24238
24239 * adaint.c (__gnat_locate_regular_file): Return immediately if
24240 file_name is empty.
24241
24242 2005-12-09 Javier Miranda <miranda@adacore.com>
24243 Hristian Kirtchev <kirtchev@adacore.com>
24244
24245 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
24246 to the specification because the frontend generates code that uses this
24247 subprogram.
24248 (Set_Interface_Table): Add missing assertion.
24249 Update documentation describing the run-time structure.
24250 (Displace): New subprogram that displaces the pointer to the object
24251 to reference one of its secondary dispatch tables.
24252 (IW_Membership): Modified to use the new table of interfaces.
24253 (Inherit_TSD): Modified to use the new table of interfaces.
24254 (Register_Interface_Tag): Use the additional formal to fill the
24255 contents of the new table of interfaces.
24256 (Set_Interface_Table): New subprogram that stores in the TSD the
24257 pointer to the table of interfaces.
24258 (Set_Offset_To_Top): Use the additional formal to save copy of
24259 the offset value in the table of interfaces.
24260 Update structure of GNAT Primary and Secondary dispatch table diagram.
24261 Add comment section on GNAT dispatch table prologue.
24262 (Offset_To_Signature): Update the constant value of the Signature field.
24263 (Dispatch_Table): Update comment on hidden fields in the prologue.
24264 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
24265 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
24266 the type of formal parameter T to Tag, introduce additional assertions.
24267 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
24268 conversion.
24269 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
24270
24271 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
24272 in all the calls to Expand_Interface_Thunk. Instead of referencing the
24273 record component containing the tag of the secondary dispatch table we
24274 have to use the Offset_To_Top run-time function to get this information;
24275 otherwise if the pointer to the base of the object has been displace
24276 we get a wrong value if we use the 'position attribute.
24277
24278 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
24279 all the calls to Expand_Interface_Thunk.
24280 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
24281 interfaces; hence the call to Set_Interface_Table was clearly wrong.
24282 (Collect_All_Interfaces): Modify the internal subprogram Collect to
24283 ensure that the interfaces implemented by the ancestors are placed
24284 at the header of the generated list.
24285 (Expand_Interface_Conversion): Handle the case in which the displacement
24286 associated with the interface conversion is not statically known. In
24287 this case we generate a call to the new run-time subprogram Displace.
24288 (Make_DT): Generate and fill the new table of interfaces.
24289 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
24290 Get_Tagged_Kind and Set_Tagged_Kind.
24291 (Tagged_Kind): New function that determines the tagged kind of a type
24292 with respect to limitedness and concurrency and returns a reference to
24293 RE_Tagged_Kind.
24294 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
24295 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
24296 primary dispatch table for a type.
24297 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
24298 secondary dispatch table respectively of a tagged type.
24299
24300 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
24301 (Expand_Interface_Conversion): New subprogram to indicate if the
24302 displacement of the type conversion is statically known.
24303 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
24304
24305 * rtsfind.ads (RE_Offset_To_Top): New entity
24306 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
24307 accessible to users.
24308 (Re_Displace): New entity
24309 (RE_Interface_Data): New entity
24310 (RE_Set_Interface_Data): New_Entity
24311 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
24312 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
24313 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
24314 RE_TK_Tagged, RE_TK_Task.
24315
24316 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
24317 Init_Secondary_Tags_Internal to allow its use with interface types and
24318 also to generate the code for the new additional actual required
24319 by Set_Offset_To_Top.
24320 (Build_Init_Statements): In case of components associated with abstract
24321 interface types there is no need to generate a call to its IP.
24322 (Freeze_Record_Type): Generate Select Specific Data tables only for
24323 concurrent types.
24324 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
24325 the bodies and specifications of the predefined primitive operations
24326 dealing with dispatching selects and abort, 'Callable, 'Terminated only
24327 for concurrent types.
24328
24329 * exp_sel.ads, exp_sel.adb: New files.
24330
24331 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
24332 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
24333 properly protected objects and attach handler in the case of the
24334 restricted profile.
24335 Move embeded package Select_Expansion_Utilities into a separate external
24336 package.
24337 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
24338 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
24339 (Build_K, Build_S_Assignment): New subprograms, part of the select
24340 expansion utilities.
24341 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
24342 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
24343 where the trigger is a dispatching procedure of a limited tagged type.
24344
24345 2005-12-09 Olivier Hainque <hainque@adacore.com>
24346
24347 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
24348 pointer initialization values. Make a SAVE_EXPR instead. Add comments
24349 about the use and expansion of SAVE_EXPRs in the various possible
24350 renaming handling cases.
24351 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
24352 abusing DECL_FCONTEXT.
24353
24354 2005-12-09 Matthew Heaney <heaney@adacore.com>
24355
24356 * a-convec.adb (Merge): Added assertions to check whether vector params
24357 are sorted.
24358
24359 * a-coinve.adb (Merge): Added assertions to check whether vector params
24360 are sorted.
24361
24362 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
24363 draft.
24364 (Cursor'Read): raises PE
24365
24366 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
24367 to its default value.
24368
24369 * a-cihama.adb: Manually check whether cursor's key and elem are
24370 non-null
24371
24372 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
24373 (Merge): Assert that target and source lists are in order
24374 (Swap): Declare non-const temporaries, to pass to Splice
24375
24376 * a-cdlili.ads: (Splice): Changed param name and param mode
24377
24378 * a-cdlili.adb: (Splice): Changed param name and param mode
24379 (Merge): Assert that target and source lists are in order
24380 (Swap): Declare non-const temporaries, to pass to Splice
24381
24382 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
24383 (Write): declare Stream param as not null
24384
24385 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
24386 an exception message.
24387
24388 2005-12-09 Thomas Quinot <quinot@adacore.com>
24389 Robert Dewar <dewar@adacore.com>
24390
24391 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
24392 which is the absolute maximum length we can support.
24393
24394 * frontend.adb: For the processing of configuration pragma files,
24395 remove references to Opt.Max_Line_Length, which is not checked anymore.
24396
24397 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
24398 length.
24399
24400 * scn.adb, scng.adb:
24401 Always check line length against the absolute supported maximum,
24402 Hostparm.Max_Line_Length.
24403
24404 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
24405 value for the maximum line length is Max_Line_Length (not
24406 Column_Number'Last).
24407 Minor error msg update
24408 (Set_Style_Check_Options): New interface returning error msg
24409 Minor code reorganization (processing for 'M' was out of alpha order)
24410
24411 * switch-c.adb: New interface for Set_Style_Check_Options
24412
24413 * stylesw.ads (Set_Style_Check_Options): New interface returning error
24414 msg.
24415
24416 2005-12-09 Javier Miranda <miranda@adacore.com>
24417
24418 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
24419 with IP subprogram were only supported if there were limited types.
24420
24421 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
24422 records with IP subprogram were only supported if there were limited
24423 types.
24424
24425 2005-12-09 Olivier Hainque <hainque@adacore.com>
24426 Eric Botcazou <ebotcazou@adacore.com>
24427
24428 * trans.c (tree_transform, emit_check): Adjust calls to
24429 build_call_raise, passing the now expected GNAT_NODE argument.
24430
24431 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
24432 source line information than what the current global locus indicates
24433 when appropriate.
24434
24435 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
24436 field has overflowed.
24437 (build_call_raise): Add a GNAT_NODE argument to convey better source
24438 line information than what the current global locus indicates when
24439 appropriate.
24440 (build_component_ref): Adjust call to build_call_raise.
24441
24442 2005-12-09 Pascal Obry <obry@adacore.com>
24443
24444 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
24445 the iterator is quitting iteration on parent directory.
24446
24447 2005-12-09 Javier Miranda <miranda@adacore.com>
24448
24449 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
24450 and the assignment to a class-wide object, before the assignment we
24451 generate a run-time check to ensure that the tag of the Target is
24452 covered by the tag of the source.
24453
24454 2005-12-09 Robert Dewar <dewar@adacore.com>
24455
24456 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
24457 parameter in call to Image_Wide_Character.
24458
24459 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
24460 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
24461 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
24462 annoying FFFE/FFFF inconsistency.
24463
24464 2005-12-09 Robert Dewar <dewar@adacore.com>
24465 Javier Miranda <miranda@adacore.com>
24466 Ed Schonberg <schonberg@adacore.com>
24467
24468 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
24469 of type conversion.
24470 (Find_Interface): New subprogram that given a tagged type and one of its
24471 component associated with the secondary table of an abstract interface
24472 type, return the entity associated with such abstract interface type.
24473 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
24474 base type to create anonymous subtype, because entity may be a locally
24475 declared subtype or generic actual.
24476 (Find_Interface): New subprogram that given a tagged type and one of its
24477 component associated with the secondary table of an abstract interface
24478 type, return the entity associated with such abstract interface type.
24479
24480 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
24481 conversion cannot be handled at compile time. In this case we pass this
24482 information to the expander to generate the appropriate code.
24483
24484 2005-12-09 Robert Dewar <dewar@adacore.com>
24485 Ed Schonberg <schonberg@adacore.com>
24486 Gary Dismukes <dismukes@adacore.com>
24487 Javier Miranda <miranda@adacore.com>
24488 Hristian Kirtchev <kirtchev@adacore.com>
24489
24490 * einfo.adb (Itype_Printed): New flag
24491 (Is_Limited_Type): Derived types do not inherit limitedness from
24492 interface progenitors.
24493 (Is_Return_By_Reference_Type): Predicate does not apply to limited
24494 interfaces.
24495
24496 * einfo.ads (Itype_Printed): New flag
24497 Move Is_Wrapper_Package to proper section
24498 Add missing Inline for Is_Volatile
24499
24500 * output.ads, output.adb (Write_Erase_Char): New procedure
24501 (Save/Restore_Output_Buffer): New procedures
24502 (Save/Restore_Output_Buffer): New procedures
24503
24504 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
24505 Add missing support for anonymous access type
24506 (Write_Id): Insert calls to Write_Itype
24507 (Write_Itype): New procedure to output itypes
24508
24509 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
24510 use of "limited" in declaration.
24511
24512 * sinfo.ads, sinfo.adb:
24513 Formal derived types can carry an explicit "limited" indication.
24514
24515 * sem_ch3.adb: Add with and use of Targparm.
24516 (Create_Component): If Frontend_Layout_On_Target is True and the
24517 copied component does not have a known static Esize, then reset
24518 the size and positional fields of the new component.
24519 (Analyze_Component_Declaration): A limited component is
24520 legal within a protected type that implements an interface.
24521 (Collect_Interfaces): Do not add to the list the interfaces that
24522 are implemented by the ancestors.
24523 (Derived_Type_Declaration): If the parent of the full-view is an
24524 interface perform a transformation of the tree to ensure that it has
24525 the same parent than the partial-view. This simplifies the job of the
24526 expander in order to generate the correct object layout, and it is
24527 needed because the list of interfaces of the full-view can be given in
24528 any order.
24529 (Process_Full_View): The parent of the full-view does not need to be
24530 a descendant of the parent of the partial view if both parents are
24531 interfaces.
24532 (Analyze_Private_Extension_Declaration): If declaration has an explicit
24533 "limited" the parent must be a limited type.
24534 (Build_Derived_Record_Type): A derived type that is explicitly limited
24535 must have limited ancestor and progenitors.
24536 (Build_Derived_Type): Ditto.
24537 (Process_Full_View): Verify that explicit uses of "limited" in partial
24538 and full declarations are consistent.
24539 (Find_Ancestor_Interface): Remove function.
24540 (Collect_Implemented_Interfaces): New procedure used to gather all
24541 implemented interfaces by a type.
24542 (Contain_Interface): New function used to check whether an interface is
24543 present in a list.
24544 (Find_Hidden_Interface): New function used to determine whether two
24545 lists of interfaces constitute a set equality. If not, the first
24546 differing interface is returned.
24547 (Process_Full_View): Improve the check for the "no hidden interface"
24548 rule as defined by AI-396.
24549
24550 2005-12-09 Robert Dewar <dewar@adacore.com>
24551
24552 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
24553 types, not on record subtypes.
24554 (Freeze_Entity): Code cleanup. Add barrier to the loop
24555 that generates the references for primitive operations. This allows to
24556 remove an unnecessary exception handler.
24557 Code reformatting and comment clean ups.
24558
24559 2005-12-09 Vincent Celier <celier@adacore.com>
24560
24561 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
24562 If GNAT CHECK is called with a project file, but with no
24563 source on the command line, call gnatcheck with all the compilable
24564 sources of the project.
24565 Take into account the new command Check, for gnatcheck. Treat as for
24566 other ASIS tools: take into account project, specific package Check and
24567 Compiler switches.
24568 For ASIS tools, add the switches in package Compiler for
24569 the invocation of the compiler.
24570
24571 * prj-attr.adb: Add package Check and its attributes
24572
24573 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
24574
24575 * vms_conv.adb (Initialize): Change Params of command Check to
24576 unlimited files.
24577 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24578 Add data for new command Check
24579
24580 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
24581 ELIM.
24582 Add qualifiers for Check command options
24583 (Command_Type): New command Check
24584
24585 2005-12-09 Thomas Quinot <quinot@adacore.com>
24586
24587 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
24588 command line switch overruns the output buffer.
24589
24590 2005-12-09 Robert Dewar <dewar@adacore.com>
24591
24592 * sem_prag.adb: Processing for new pragma Complete_Representation
24593 (Analyze_Pragma, case Debug): Implement two argument form.
24594
24595 * par-prag.adb: Entry for new pragma Complete_Representation
24596 (Prag, case Debug): Recognize two argument form of pragma Debug
24597 New interface for Set_Style_Check_Options.
24598
24599 * sem_ch13.adb: Implement new pragma Complete_Representation.
24600
24601 * snames.adb, snames.ads, snames.h: Entry for new pragma
24602 Complete_Representation.
24603
24604 2005-12-09 Gary Dismukes <dismukes@adacore.com>
24605
24606 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
24607 available user-specified stream attributes on limited parameters to
24608 also test the type directly rather than only its underlying type (for
24609 Ada 95) and, in the case of Ada 2005, to check that the user-specified
24610 attributes are visible at the point of the subprogram declaration.
24611 For Ada 2005, the error message is modified to indicate that the
24612 type's stream attributes must be visible (again, only for -gnat05).
24613
24614 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24615
24616 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
24617 anonymous access types.
24618
24619 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
24620 matching of anonymous access types and anonymous access to subprogram
24621 types. 'R'M 4.9.1 (2/2).
24622
24623 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24624
24625 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
24626 rule prematurely when operands are universal, remaining ambiguities
24627 will be removed during resolution.
24628 Code cleanup.
24629
24630 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
24631 that are Ada 2005 functions.
24632 (Has_Abstract_Interpretation): Subsidiary to
24633 Remove_Conversions, to remove ambiguities caused by abstract operations
24634 on numeric types when operands are universal.
24635
24636 2005-12-09 Robert Dewar <dewar@adacore.com>
24637
24638 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
24639 for case where spec is categorized.
24640
24641 2005-12-09 Javier Miranda <miranda@adacore.com>
24642
24643 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
24644 types use the corresponding record type. This was not needed before
24645 the implementation of Ada 2005 synchronized types because
24646 concurrent types were never tagged types in Ada 95.
24647
24648 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24649
24650 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
24651 first subtype of the type of the expression to verify that it is a
24652 legal Time type.
24653
24654 2005-12-09 Robert Dewar <dewar@adacore.com>
24655
24656 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
24657 decoded names.
24658
24659 2005-12-09 Quentin Ochem <ochem@adacore.com>
24660 Robert Dewar <dewar@adacore.com>
24661 Ed Falis <falis@adacore.com>
24662 Florian Villoing <villoing@adacore.com>
24663 Thomas Quinot <quinot@adacore.com>
24664 Arnaud Charlet <charlet@adacore.com>
24665
24666 * gnat_ugn.texi: Created section "Stack Related Tools"
24667 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
24668 "Stack Related Tools"
24669 Added subsection "Static Stack Usage Analysis"
24670 Added subsection "Dynamic Stack Usage Analysis"
24671 Include documentation of itypes in sprint listing (-gnatG)
24672 Documented gnatbind -D switch (default sec stack size for fixed sec
24673 stacks).
24674 Added Interrupt_State and Persistent_BSS to list of configuration
24675 pragmas.
24676 Add missing doc for maximum value of nnn in -gnatyMnnn
24677
24678 * gnat_rm.texi: Document the AltiVec binding.
24679 Add documentation for pragma Complete_Representation
24680 Shortened an overly long line (> 79 chars)
24681 Clarify documentation of unchecked conversion in implementation
24682 defined cases.
24683 Document two argument form of pragma Debug
24684
24685 * types.ads (Column_Number): Update documentation.
24686
24687 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
24688 library level Finalize_Storage_Only objects (these are not attached to
24689 any finalization list).
24690
24691 * system-mingw.ads: (Underlying_Priorities): Update comment.
24692
24693 2005-12-09 Robert Dewar <dewar@adacore.com>
24694
24695 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
24696 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
24697 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
24698 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
24699 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
24700 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
24701 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
24702 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
24703 reformatting.
24704
24705 2005-12-09 Robert Dewar <dewar@adacore.com>
24706
24707 * s-vaflop-vms-alpha.adb: (Ne_F): New function
24708 (Ne_G): New function
24709
24710 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
24711 for tag assignment.
24712 (Rewrite_Comparison): Handle case where operation is not a comparison
24713 and ignore, and also handle type conversion case.
24714
24715 2005-12-09 Thomas Quinot <quinot@adacore.com>
24716
24717 * exp_aggr.ads: Fix typo in comment.
24718 ???-mark Convert_Aggr_In_Assignment as needing documentation.
24719
24720 2005-12-09 Gary Dismukes <dismukes@adacore.com>
24721
24722 * layout.adb: Replace various uses of byte by storage unit throughout.
24723 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
24724 static size, convert to storage units before returning, to conform to
24725 spec.
24726
24727 2005-12-09 Matthew Gingell <gingell@adacore.com>
24728
24729 * g-exctra.ads: Fix typo in comment.
24730
24731 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24732
24733 * utils.c: Minor reformatting.
24734
24735 2005-12-09 Robert Dewar <dewar@adacore.com>
24736
24737 * g-soccon.ads:
24738 Further comment fixes to make the status of the default file clear
24739
24740 * s-bitops.adb: Clarify comment for Bits_Array
24741
24742 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
24743
24744 * Make-lang.in (ada.install-normal): Remove.
24745
24746 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
24747
24748 * Make-lang.in: Remove all dependencies on s-gtype.
24749
24750 2005-12-05 Richard Guenther <rguenther@suse.de>
24751
24752 * utils.c (convert): Use fold_convert where appropriate.
24753
24754 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
24755
24756 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
24757 a period is meant.
24758
24759 2005-12-02 Richard Guenther <rguenther@suse.de>
24760
24761 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
24762
24763 2005-12-01 Roger Sayle <roger@eyesopen.com>
24764
24765 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
24766 nodes.
24767
24768 2005-11-23 Laurent Guerby <laurent@guerby.net>
24769
24770 * mlib-prj.adb (Build_Library): Initialize Delete.
24771
24772 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
24773
24774 * socket.c: Add extern int h_errno for rtems since networking header
24775 files are not available at this point in a tool bootstrap. Newlib
24776 only has basic C library header files.
24777
24778 2005-11-19 Richard Guenther <rguenther@suse.de>
24779 Roger Sayle <roger@eyesopen.com>
24780
24781 PR ada/23717
24782 * misc.c (internal_error_function): Don't use vsprintf to format
24783 the error message text, instead use pp_format_text and the new
24784 pretty printer APIs. This allows handling of %qs, %w, etc.
24785
24786 2005-11-18 Laurent Guerby <laurent@guerby.net>
24787
24788 PR ada/24857
24789 * Makefile.in: Use s-auxdec-empty for RTEMS.
24790
24791 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24792
24793 PR ada/22333
24794 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
24795 a temporary if taking the address of something that is neither
24796 reference, declaration, or constant, since the gimplifier
24797 can't handle that case.
24798
24799 2005-11-17 Laurent Guerby <laurent@guerby.net>
24800
24801 PR ada/24857
24802 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
24803
24804 2005-11-16 Richard Guenther <rguenther@suse.de>
24805
24806 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
24807
24808 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
24809
24810 PR ada/24855
24811 * raise-gcc.c: Add missing stdarg.h include.
24812
24813 2005-11-16 Richard Guenther <rguenther@suse.de>
24814
24815 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
24816 (ada/misc.o): Likewise.
24817
24818 2005-11-14 Thomas Quinot <quinot@adacore.com>
24819
24820 * g-soccon.ads: Minor reformatting. Update comments.
24821
24822 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
24823 gain visibility on the declaration of struct timeval.
24824
24825 * g-soccon-freebsd.ads,
24826 g-soccon-darwin.ads,
24827 g-soccon-tru64.ads,
24828 g-soccon-aix.ads,
24829 g-soccon-irix.ads,
24830 g-soccon-hpux.ads,
24831 g-soccon-solaris.ads,
24832 g-soccon-vms.ads,
24833 g-soccon-mingw.ads,
24834 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
24835
24836 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
24837 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
24838 g-soccon-linux-x86.ads: New files.
24839
24840 * g-socthi-mingw.adb:
24841 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
24842
24843 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
24844 (time_t, suseconds_t): New types constructed to match the tv_sec
24845 and tv_usec fields of C struct timeval.
24846 (Timeval): Construct structure in terms of the new types.
24847 (Host_Errno): New function (imported from socket.c), returns last hosts
24848 database error.
24849
24850 * g-socthi-vxworks.adb: Add error handling circuitry.
24851
24852 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
24853 components of struct timeval.
24854 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
24855 (Check_Selector): In error conditions, clear internal socket sets to
24856 avoid a memory leak.
24857 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
24858 Send_Timeout, Receive_Timeout.
24859
24860 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
24861 the tv_sec and tv_usec fields of C struct timeval.
24862 (Timeval): Construct structure in terms of the new types.
24863 (Host_Errno): New function (imported from socket.c), returns last hosts
24864 database error.
24865
24866 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
24867 hosts database last error code.
24868
24869 * gen-soccon.c: Complete value expansion should not be performed on
24870 TARGET, as it has the form of a math expression, and some components
24871 may be platform-defined macros.
24872 For VxWorks, generate the OK and ERROR values.
24873 New constants giving the sizes of the components of C struct timeval.
24874
24875 2005-11-14 Robert Dewar <dewar@adacore.com>
24876 Ed Schonberg <schonberg@adacore.com>
24877
24878 PR ada/18434
24879 * types.ads: Include All_Checks in Suppress_Array
24880
24881 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
24882 not(a=b), since we no longer do this rewriting, and hence it is not
24883 needed.
24884 (Elaboration_Checks_Suppressed): Add special casing to
24885 deal with different cases of static and dynamic elaboration checks (all
24886 checks does not count in the first case, but does in the second).
24887 (Expr_Known_Valid): Do not assume that the result of any arbitrary
24888 function call is valid, since this is not the case.
24889 (Ensure_Valid): Do not apply validity check to a real literal
24890 in a universal or fixed context
24891
24892 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
24893 elementary types using the operator in standard. It is cleaner not to
24894 modify the programmers intent, especially in the case of floating-point.
24895 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
24896 it did not matter because we always rewrote a/=b to not(a=b).
24897 (Expand_Allocator_Expression): For an allocator expression whose nominal
24898 subtype is an unconstrained packed type, convert the expression to its
24899 actual constrained subtype.
24900 Implement warning for <= or >= where < or > not possible
24901 Fix to Vax_Float tests (too early in many routines, causing premature
24902 Vax_Float expansions.
24903
24904 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
24905 to be used with packages and generic packages as well as with
24906 subprograms.
24907 (Suppress): Set All_Checks, but not Elaboration_Check, for case
24908 of pragma Suppress (All_Checks)
24909 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
24910 a string literal for precise control over warnings.
24911 Avoid raise of pragma in case of unrecognized pragma and just return
24912 instead.
24913
24914 * sem_prag.ads: Minor reformatting
24915
24916 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
24917 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
24918 Switch. Do not handle any exception.
24919 Include -gnatwx as part of -gnatg (warn on redundant parens)
24920 Allow optional = after -gnatm
24921 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
24922 longer sets Elaboration_Checks.
24923 Code to set warning mode moved to Sem_Warn
24924 so that it can be shared by pragma processing.
24925
24926 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
24927 statement.
24928
24929 * s-taprop-solaris.adb:
24930 Change some <= to =, to avoid new warning
24931
24932 * a-exexda.adb, prj-proc.adb:
24933 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
24934 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
24935
24936 2005-11-14 Robert Dewar <dewar@adacore.com>
24937
24938 * exp_vfpt.adb: Handle /= case
24939 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
24940 so that we do not get duplicate scaling for fixed point conversions.
24941
24942 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
24943
24944 2005-11-14 Matthew Gingell <gingell@adacore.com>
24945
24946 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
24947 Increase default priority on Lynx from 15 to 17, and meet the Ada
24948 requirement that Default_Priority be ((Priority'First +
24949 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
24950
24951 2005-11-14 Vincent Celier <celier@adacore.com>
24952
24953 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24954 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
24955 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
24956 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
24957 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
24958 mlib-tgt-lynxos.adb (DLL_Prefix): New function
24959
24960 2005-11-14 Doug Rupp <rupp@adacore.com>
24961
24962 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
24963 private part.
24964
24965 2005-11-14 Arnaud Charlet <charlet@adacore.com>
24966
24967 * s-traces-default.adb, s-trafor-default.ads,
24968 s-tratas-default.adb: Fix compilation errors.
24969
24970 2005-11-14 Jose Ruiz <ruiz@adacore.com>
24971
24972 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
24973 raising the exception so the memory used is freed.
24974
24975 2005-11-14 Arnaud Charlet <charlet@adacore.com>
24976
24977 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
24978 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
24979 (convert_address): Update comments and list of platforms using this.
24980
24981 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
24982 no longer used.
24983
24984 2005-11-14 Pascal Obry <obry@adacore.com>
24985 Vincent Celier <celier@adacore.com>
24986
24987 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
24988 GNAT.Command_Line.
24989
24990 * memroot.adb: Remove redundant with/use clause on
24991 System.Storage_Elements.
24992
24993 2005-11-14 Arnaud Charlet <charlet@adacore.com>
24994
24995 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
24996 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
24997 related code to a-exexpr.adb
24998 (Save_Occurrence_And_Private): Move GCC EH related code to
24999 a-exexpr-gcc.adb
25000 (Raise_Current_Excep): Add new variable Id with pragma
25001 volatile, to ensure that the variable lives on stack.
25002
25003 * a-exexpr-gcc.adb, raise-gcc.c: New file.
25004
25005 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
25006 from a-except.adb.
25007 Move GCC EH related code to a-exexpr-gcc.adb
25008
25009 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
25010 64-bit Solaris
25011 Split the Linux version of g-soccon into separate variants for 32 and 64
25012 bit platforms.
25013 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
25014 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
25015 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
25016 of host variable $(RANLIB_FLAGS).
25017 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
25018 Code clean up: remove unused/obsolete targets.
25019 (EH_MECHANISM): New variable introduced to differenciate between the
25020 two EH mechanisms statically.
25021 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
25022 (LIBGNAT_OBJS): Add raise-gcc.o
25023 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
25024 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
25025 supports VxWorks 6 RTPs.
25026 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
25027 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
25028
25029 * raise.c: Move all GCC EH-related routines to raise-gcc.c
25030
25031 2005-11-14 Jose Ruiz <ruiz@adacore.com>
25032
25033 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
25034 deferral level, when abort is not allowed, to a later stage (the
25035 Task_Wrapper).
25036 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
25037 it will not get changed by the generated code. It was previously done
25038 in Create_Task.
25039
25040 2005-11-14 Thomas Quinot <quinot@adacore.com>
25041 Olivier Hainque <hainque@adacore.com>
25042 Eric Botcazou <ebotcazou@adacore.com>
25043
25044 * decl.c:
25045 Factor common code to build a storage type for an unconstrained object
25046 from a fat or thin pointer type and a constrained object type.
25047 (annotate_value): Handle BIT_AND_EXPR.
25048 (annotate_rep): Don't restrict the back annotation of inherited
25049 components to the type_annotate_only case.
25050 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
25051 we are not defining the type.
25052 <E_Record_Type>: Likewise.
25053 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
25054 to get advantage of the new maybe_stabilize_reference interface, to
25055 ensure that what we reference is indeed stabilized instead of relying
25056 on assumptions on what the stabilizer does.
25057 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
25058 type imported through a limited_with clause, use its non-limited view.
25059 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
25060 differentiation.
25061 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
25062 of #if sections + explicit comparisons of convention identifiers.
25063 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
25064 before early-returning for certain types when code generation is
25065 disabled.
25066 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
25067 nullification of gnu_expr we do for objects with address clause and
25068 that we are not defining.
25069 (elaborate_expression_1): Do not create constants when creating
25070 variables needed by the debug info: the dwarf2 writer considers that
25071 CONST_DECLs is used only to represent enumeration constants, and emits
25072 nothing for them.
25073 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
25074 object with an address clause into an indirect reference, drop the
25075 initializing expression.
25076 Include "expr.h".
25077 (STACK_CHECK_BUILTIN): Delete.
25078 (STACK_CHECK_PROBE_INTERVAL): Likewise.
25079 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
25080 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
25081 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
25082 corresponding to the renamed object as ignored for debugging purposes.
25083
25084 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
25085 related): For a prefix that is a dereference of a fat or thin pointer,
25086 if there is an actual subtype provided by the front-end, use that
25087 subtype to build an actual type with bounds template.
25088 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
25089 is provided by the front-end, use that subtype to compute the size of
25090 the deallocated object.
25091 (gnat_to_gnu): When adding a statement into an elaboration procedure,
25092 check for a potential violation of a No_Elaboration_Code restriction.
25093 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25094 with extra arguments to control whether to recurse through non-values
25095 and to let the caller know if the stabilization has succeeded.
25096 (gnat_stabilize_reference): Now a simple wrapper around
25097 maybe_stabilize, for common uses without restriction on lvalues and
25098 without need to check for the success indication.
25099 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
25100 pass false instead of 0 as the FORCE argument which is a bool.
25101 (Identifier_to_gnu): Remove checks ensuring that an renamed object
25102 attached to a renaming pointer has been properly stabilized, as no such
25103 object is attached otherwise.
25104 (call_to_gnu): Invoke create_var_decl to create the temporary when the
25105 function uses the "target pointer" return mechanism.
25106 Reinstate conversion of the actual to the type of the formal
25107 parameter before any other specific treatment based on the passing
25108 mechanism. This turns out to be necessary in order for PLACEHOLDER
25109 substitution to work properly when the latter type is unconstrained.
25110
25111 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
25112 common pattern.
25113 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25114 with extra arguments to control whether to recurse through non-values
25115 and to let the caller know if the stabilization has succeeded.
25116
25117 * utils2.c (gnat_build_constructor): Only sort the fields for possible
25118 static output of record constructor if all the components are constant.
25119 (gnat_build_constructor): For a record type, sort the list of field
25120 initializers in increasing bit position order.
25121 Factor common code to build a storage type for an unconstrained object
25122 from a fat or thin pointer type and a constrained object type.
25123 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
25124 types variants, and process special cases of VIEW_CONVERT expressions
25125 as their NOP_EXPR counterpart to ensure we get to the
25126 CORRESPONDING_VARs associated with CONST_DECls.
25127 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
25128 on the right-hand side.
25129
25130 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
25131 a common pattern.
25132 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
25133 are converting back to its original type.
25134 (convert) <JM input>: Fallthrough regular conversion code instead of
25135 extracting the object if converting to a type variant.
25136 (create_var_decl): When a variable has an initializer requiring code
25137 generation and we are at the top level, check for a potential violation
25138 of a No_Elaboration_Code restriction.
25139 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
25140 SIZE and SIZE_UNIT which we need for later back-annotations.
25141 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
25142 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
25143 is an unchecked union.
25144 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
25145 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
25146 main variant, just replace the VIEW_CONVERT_EXPR.
25147 <UNION_TYPE>: Revert 2005-03-02 change.
25148
25149 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
25150
25151 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
25152
25153 2005-11-14 Matthew Heaney <heaney@adacore.com>
25154
25155 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
25156 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
25157 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
25158 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
25159 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25160 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
25161 Compiles against the spec for ordered maps described in sections
25162 A.18.6 of the most recent (August 2005) AI-302 draft.
25163
25164 2005-11-14 Olivier Hainque <hainque@adacore.com>
25165
25166 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
25167 to ensure bias adjustments take place when need be and to prevent
25168 occurrences of intermediate overflows.
25169
25170 2005-11-14 Matthew Gingell <gingell@adacore.com>
25171 Olivier Hainque <hainque@adacore.com>
25172
25173 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
25174 ia64 HP-UX.
25175
25176 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
25177 tracebacks on ia64 HP-UX and provide explanatory comment.
25178 Enable backtraces on ia64 GNU/Linux.
25179 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
25180 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
25181
25182 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
25183 Javier Miranda <miranda@adacore.com>
25184
25185 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
25186 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
25187 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
25188 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
25189
25190 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
25191 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
25192 assertions).
25193
25194 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
25195 subprogram that generates the external name associated with a
25196 secondary dispatch table.
25197 (Get_Secondary_DT_External_Name): New subprogram that generates the
25198 external name associated with a secondary dispatch table.
25199
25200 2005-11-14 Emmanuel Briot <briot@adacore.com>
25201
25202 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
25203 line in the ALI file to include both an instantiation reference, and a
25204 returned value.
25205
25206 2005-11-14 Vincent Celier <celier@adacore.com>
25207
25208 * clean.adb (Check_Project): Look for Ada code in extending project,
25209 even if Ada is not specified as a language.
25210 Use new function DLL_Prefix for DLL_Name
25211 (Clean_Interface_Copy_Directory): New procedure
25212 (Clean_Library_Directory): New procedure
25213 (Clean_Directory): Remove procedure, no longer used
25214 (Clean_Project): Do not delete any file in an externally built project
25215
25216 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
25217 directory of an extending project, even when there are no Ada source
25218 present.
25219 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
25220 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25221
25222 * mlib-prj.adb (Check_Library): For all library projects, get the
25223 library file timestamp.
25224 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
25225 (Build_Library): Use new function DLL_Prefix for the DLL_Name
25226 (Clean): Remove procedure, no longer used
25227 (Ultimate_Extension_Of): New function
25228 (Build_Library): When cleaning the library directory, only remove an
25229 existing library file and any ALI file of a source of the project.
25230 When cleaning the interface copy directory, remove any source that
25231 could be a source of the project.
25232
25233 * prj.ads, prj.adb (Project_Empty): Add values of new components
25234 Library_TS and All_Imported_Projects.
25235 (Project_Empty): Add values for new components of Project_Data:
25236 Library_ALI_Dir and Display_Library_ALI_Dir
25237
25238 * prj-attr.adb: New project level attribute name Library_ALI_Dir
25239
25240 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
25241 attribute Library_ALI_Dir.
25242 (Check_Library_Attributes): The library directory cannot be the same as
25243 any source directory of the project tree.
25244 (Check_Stand_Alone_Library): The interface copy directory cannot be
25245 the same as any source directory of the project tree.
25246
25247 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
25248 all temporary files.
25249
25250 2005-11-14 Robert Dewar <dewar@adacore.com>
25251 Ed Schonberg <schonberg@adacore.com>
25252
25253 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25254 (Check_Elab_Call): A call within a protected body is never an
25255 elaboration call, and does not require checking.
25256 (Same_Elaboration_Scope): Take into account protected types for both
25257 entities.
25258 (Activate_Elaborate_All_Desirable): New procedure
25259
25260 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
25261 desirable
25262
25263 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
25264 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
25265
25266 * lib-writ.ads, lib-writ.adb:
25267 Implement new AD/ED for Elaborate_All/Elaborate desirable
25268 Use new Elaborate_All_Desirable flag in N_With_Clause node
25269
25270 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
25271 N_Free_Statement nodes.
25272 Define new class N_Subprogram_Instantiation
25273 Add Elaborate_Desirable flag to N_With_Clause node
25274 Add N_Delay_Statement (covering two kinds of delay)
25275
25276 * debug.adb: Introduce d.f flag for compiler
25277 Add -da switch for binder
25278
25279 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25280 Cyrille Comar <comar@adacore.com>
25281
25282 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
25283 for task component, in the case of a limited aggregate. The enclosed
25284 object declaration will create it earlier. Otherwise, in the case of a
25285 nested aggregate, the object may appear in the wrong scope.
25286 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
25287 (Gen_Assign): If the component being assigned is an array type and the
25288 expression is itself an aggregate, wrap the assignment in a block to
25289 force finalization actions on the temporary created for each row of the
25290 enclosing object.
25291 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
25292 structures are initialized after all discriminants are set so that
25293 they can be accessed even when their offset is dynamic.
25294
25295 2005-11-14 Robert Dewar <dewar@adacore.com>
25296 Hristian Kirtchev <kirtchev@adacore.com>
25297
25298 * sem_attr.adb: Implement Machine_Rounding attribute
25299 (Analyze_Access_Attribute): The access attribute may appear within an
25300 aggregate that has been expanded into a loop.
25301 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
25302 'Terminated whenever the prefix is of a task interface class-wide type.
25303 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
25304 the prefix is of a task interface class-wide type.
25305
25306 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
25307 to avoid warnings.
25308
25309 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
25310 Remove pragma Inline for [Unaligned_]Valid.
25311 Add comments that Valid routines do not work for Vax_Float
25312
25313 * exp_attr.adb: Implement Machine_Rounding attribute
25314
25315 * snames.h: Add entry for Machine_Rounding attribute
25316
25317 2005-11-14 Javier Miranda <miranda@adacore.com>
25318 Robert Dewar <dewar@adacore.com>
25319 Hristian Kirtchev <kirtchev@adacore.com>
25320
25321 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
25322 and related): For a prefix that is an explicit dereference of an
25323 access to unconstrained packed array type, annotate the dereference
25324 with an actual subtype so GIGI can make a correct size computation.
25325 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
25326 'Unrestricted_Access, if the designated type is an interface we
25327 add a type conversion to force the displacement of the pointer
25328 to the secondary dispatch table.
25329 Use Universal_Real instead of Long_Long_Float when we need a high
25330 precision float type for the generated code (prevents gratuitous
25331 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
25332 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
25333 'Terminated for task interface class-wide objects. Generate a call to
25334 the predefined dispatching routine used to retrieve the _task_id from
25335 a task corresponding record.
25336 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
25337
25338 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25339 (Check_Dispatching_Operation): Protect the frontend againts
25340 previously detected errors.
25341
25342 * Makefile.rtl: Add new instantiations of system.fat_gen
25343
25344 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
25345 Change name of instantiated package for better consistency
25346 with newly added system.fat_gen instantiations.
25347
25348 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
25349 s-fvagfl.ads: New files.
25350
25351 2005-11-14 Cyrille Comar <comar@adacore.com>
25352 Thomas Quinot <quinot@adacore.com>
25353
25354 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
25355 assignment of a value of a tagged type that has been rewritten to a
25356 block statement, it is known by construction that no checks are
25357 necessary for the statements within the block: analyze it with checks
25358 suppressed.
25359 (Expand_N_If_Statement): When killing a dead then-branch in an
25360 if-statement that has elsif_parts, recompute the Current_Value node
25361 for any entity whose value is known from the condition of the first
25362 elsif_part.
25363 (Expand_N_Return_Statement): When returning a mutable record, convert
25364 the return value into its actual subtype in order to help the backend
25365 to return the actual size instead of the maximum. This is another
25366 aftermath of not returning mutable records on the sec-stack anymore.
25367
25368 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
25369 handling of error msg for suspicious reverse range iteration.
25370 (Check_Possible_Current_Value_Condition): Move declaration from body to
25371 spec, to allow this subprogram to be called from exp_ch5.
25372
25373 2005-11-14 Thomas Quinot <quinot@adacore.com>
25374
25375 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
25376 generate a set of nested array aggregates instead of a single flat
25377 aggregate for multi-dimensional arrays.
25378
25379 2005-11-14 Pascal Obry <obry@adacore.com>
25380
25381 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
25382 by spawnve is a process handle, no need to convert. Add a parameter
25383 close to control wether the process handle must be closed.
25384 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
25385 a process handle, not need to convert.
25386 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
25387
25388 * g-expect.adb: (Kill): Document the new close parameter.
25389 (Close): Do not release the process handle in the kill there as
25390 waitpid() is using it.
25391 (Send_Signal): Release the process handle.
25392
25393 2005-11-14 Robert Dewar <dewar@adacore.com>
25394
25395 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
25396 need a high precision float type for the generated code (prevents
25397 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25398 used).
25399
25400 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
25401 need a high precision float type for the generated code (prevents
25402 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25403 used).
25404 (Expand_Width_Attribute): In configurable run-time, the attribute is not
25405 allowed on non-static enumeration subtypes. Force a load error to emit
25406 the correct diagnostic.
25407
25408 2005-11-14 Thomas Quinot <quinot@adacore.com>
25409 Robert Dewar <dewar@adacore.com>
25410 Ed Schonberg <schonberg@adacore.com>
25411
25412 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
25413 subtype to compute the size of the designated object at run-time,
25414 create such a subtype and store it in the Actual_Designated_Subtype
25415 attribute of the N_Free_Statement.
25416 Generate itype for classwide designated object in both cases of
25417 user-specified storage pool: specific and class-wide, not only in the
25418 specific case.
25419 Raise CE when trying to set a not null access type object to null.
25420 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
25421 an explicit loop, because freeze nodes make its position variable.
25422
25423 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
25424 null object.
25425
25426 2005-11-14 Javier Miranda <miranda@adacore.com>
25427
25428 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
25429 Build_Stream_Procedure): Add the null-excluding attribute to the first
25430 formal.
25431 This has no semantic meaning under Ada95 mode but it is a
25432 requirement under Ada05 mode.
25433
25434 * par-ch3.adb (P_Access_Definition): Addition of warning message if
25435 the null exclusion is used under Ada95 mode
25436 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
25437 (P_Access_Definition): Remove assertion that forbids the use of
25438 the null-exclusion feature in Ada95.
25439
25440 2005-11-14 Robert Dewar <dewar@adacore.com>
25441
25442 * impunit.adb: Exclude container helper units not intended for use by
25443 users.
25444
25445 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25446
25447 * freeze.adb (Freeze_Entity): For an access formal that is an access
25448 to subprogram, freeze the anonymous subprogram type at the same time,
25449 to prevent later freezing in the wrong scope, such as the enclosing
25450 subprogram body.
25451 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
25452 subprogram whenever available.
25453
25454 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25455
25456 PR ada/23732
25457 * gnatvsn.ads (Library_Version): Bump to 4.1
25458
25459 2005-11-14 Robert Dewar <dewar@adacore.com>
25460
25461 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
25462 Storage_Offset to avoid wrap around causing invalid results.
25463
25464 2005-11-14 Pascal Obry <obry@adacore.com>
25465
25466 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
25467 cross-compiler.
25468 (Scan_Bind_Arg): Fail with an error message if -M option is used
25469 on a native compiler.
25470
25471 2005-11-14 Robert Dewar <dewar@adacore.com>
25472 Vincent Celier <celier@adacore.com>
25473
25474 * gprep.adb: Implement -C switch to scan comments
25475
25476 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
25477
25478 * scans.ads: Comment updates (including new use of Tok_Comment in
25479 preprocessing)
25480
25481 * opt.ads: Add documentation for flags that are used by gprmake,
25482 currently and in the next version of gprmake.
25483 (Verbosity_Level): New variable
25484 Add Replace_In_Comments switch
25485
25486 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
25487 and -vm.
25488 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
25489
25490 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25491
25492 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
25493 message, friendlier.
25494
25495 2005-11-14 Robert Dewar <dewar@adacore.com>
25496
25497 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
25498
25499 2005-11-14 Doug Rupp <rupp@adacore.com>
25500
25501 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
25502
25503 2005-11-14 Robert Dewar <dewar@adacore.com>
25504
25505 * interfac.ads: Change declarations of IEEE float types so that we no
25506 longer need a separate version of this package for VMS.
25507
25508 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25509
25510 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
25511 internal entity created for the declaration of a child subprogram body
25512 with no spec as coming from source, to generate proper cross-reference
25513 information.
25514
25515 2005-11-14 Vincent Celier <celier@adacore.com>
25516
25517 * make.adb (Compile_Sources): Change verbose message to minimum
25518 verbosity level High for "is in an Ada library", "is a read-only
25519 library" and "is an internal library",
25520 (Create_Binder_Mapping_File): Path name of ALI file for library project
25521 must include the library directory, not the object directory.
25522 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
25523 for new switches -vl, -vm and -vh.
25524 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
25525 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
25526 (Compile_Sources): Do not attempt to compile if an ALI file is missing
25527 in a project that is externally built.
25528 (Compute_All_Imported_Projects): New procedure
25529 (Gnatmake): Check if importing libraries should be regenerated because
25530 at least an imported library is more recent.
25531 (Initialize): For each project compute the list of the projects it
25532 imports directly or indirectly.
25533 (Add_Library_Search_Dir): New procedure, used in place of
25534 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25535 put in the search paths.
25536 (Add_Source_Search_Dir): New procedure, used in place of
25537 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25538 put in the search paths.
25539 (Mark_Directory): Resolve the absolute path the directory before marking
25540 it.
25541
25542 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
25543 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25544 Switch. Do not handle any exception.
25545 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
25546 so that the switch is recognized as valid.
25547 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
25548
25549 2005-11-14 GNAT Script <nobody@adacore.com>
25550
25551 * Make-lang.in: Makefile automatically updated
25552
25553 2005-11-14 Pascal Obry <obry@adacore.com>
25554
25555 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
25556 used.
25557 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
25558 In both cases the last argument was dropped.
25559
25560 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
25561
25562 * namet.h: (Column_Numbe): New type.
25563 (Get_Column_Number): Define to sinput__get_column_number.
25564 (Instantiation): Define to sinput__instantiation.
25565 (Get_Column_Number): Declare.
25566 (Instantiation): Likewise.
25567
25568 2005-11-14 Robert Dewar <dewar@adacore.com>
25569
25570 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
25571 syntax, which could cause compiler hangs.
25572
25573 2005-11-14 Vincent Celier <celier@adacore.com>
25574
25575 * prj-ext.adb: Take into account new environment variable
25576 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
25577 are defined.
25578 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
25579 normalize its path name, making it absolute and resolving symbolic
25580 links, and replace the original if resolved path is different.
25581
25582 2005-11-14 Vincent Celier <celier@adacore.com>
25583
25584 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
25585 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
25586
25587 2005-11-14 Emmanuel Briot <briot@adacore.com>
25588
25589 * prj-pp.adb (Print): Do not output the with statement if the
25590 associated name is empty, which happens for virtual extending projects.
25591 (Print): Preserve the "extends all" attribute when printing the project.
25592
25593 * prj-tree.ads (String_Value_Of): Add comment about returned value for
25594 a virtual extending project.
25595
25596 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25597
25598 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
25599 rhs of an assignment even if the type is unconstrained, when the
25600 context is non-expanding.
25601 In an inlined body, if the context type is private,
25602 resolve with its full view, which must be a composite type.
25603
25604 2005-11-14 Robert Dewar <dewar@adacore.com>
25605 Ed Schonberg <schonberg@adacore.com>
25606
25607 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25608 Do not give obsolescent warning on with of subprogram (since we
25609 diagnose calls)
25610 (Analyze_With_Clause): Add test for obsolescent package
25611 (Install_Context_Clauses): If the unit is the body of a child unit, do
25612 not install twice the private declarations of the parents, to prevent
25613 circular lists of Use_Clauses in a parent.
25614 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
25615 compiling body of child unit.
25616 Use new class N_Subprogram_Instantiation
25617 (Expand_With_Clause): If this is a private with_clause for a child unit,
25618 appearing in the context of a package declaration, then the implicit
25619 with_clauses generated for parent units are private as well.
25620 (License_Check): Do not generate message if with'ed unit is internal
25621
25622 2005-11-14 Gary Dismukes <dismukes@adacore.com>
25623 Ed Schonberg <schonberg@adacore.com>
25624 Thomas Quinot <quinot@adacore.com>
25625
25626 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
25627 names are internal, because they will not have a corresponding partner
25628 in the actual package.
25629 (Analyze_Formal_Package): Move the setting of the formal package spec's
25630 Generic_Parent field so that it occurs prior to analyzing the package,
25631 to allow proper operation of Install_Parent_Private_Declarations.
25632 (Analyze_Package_Instantiation): Set the instantiated package entity's
25633 Package_Instantiation field.
25634 (Get_Package_Instantiation_Node): Move declaration to package spec.
25635 Retrieve the N_Package_Instantiation node when the Package_Instantiation
25636 field is present.
25637 (Check_Generic_Child_Unit): Within an inlined call, the only possible
25638 instantiation is Unchecked_Conversion, for which no parents are needed.
25639 (Inline_Instance_Body): Deinstall and record the use_clauses for all
25640 parent scopes of a scope being removed prior to inlining an instance
25641 body.
25642 (Analyze_Package_Instantiation): Do not perform front-end inlining when
25643 the current context is itself an instance within a non-instance child
25644 unit, to prevent scope stack errors.
25645 (Save_References): If the node is an aggregate that is an actual in a
25646 call, rewrite as a qualified expression to preserve some type
25647 information, to resolve possible ambiguities in the instance.
25648 (Instance_Parent_Unit): New global variable to record the ultimate
25649 parent unit associated with a generic child unit instance (associated
25650 with the existing Parent_Unit_Visible flag).
25651 (type Instance_Env): New component Instance_Parent_Unit for stacking
25652 parents recorded in the global Instance_Parent_Unit.
25653 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
25654 stack.
25655 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
25656 it's not a top-level unit, and only do this if Instance_Parent_Unit is
25657 not already set. Replace test of Is_Child_Unit with test of parent's
25658 scope against package Standard. Add comments and a ??? comment.
25659 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
25660 on a child instance parent to test that the parent equals
25661 Instance_Parent rather than simply checking that the unit is not a
25662 child unit.
25663 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
25664 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
25665 a formal interface are ancestors of the corresponding actual.
25666 (Validate_Formal_Interface_Type): Additional legality checks.
25667 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
25668 interface types with ancestors.
25669 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
25670 to diagnose attempts to use generic within its own declaration.
25671
25672 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25673 Javier Miranda <miranda@adacore.com>
25674
25675 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
25676 discriminant.
25677 (Build_Private_Derived_Type): The entity of the created full view of the
25678 derived type does not come from source. If after installing the private
25679 declarations of the parent scope the parent is still private, use its
25680 full view to construct the full declaration of the derived type.
25681 (Build_Derived_Record_Type): Relax the condition that controls the
25682 execution of the check that verifies that the partial view and
25683 the full view agree in the set of implemented interfaces. In
25684 addition, this test now only takes into account the progenitors.
25685 (Derive_Interface_Subprograms): No need to derive subprograms
25686 of ancestors that are interfaces.
25687 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
25688 associated code.
25689 Change name Is_Package to Is_Package_Or_Generic_Package
25690 (Complete_Subprograms_Derivation): Handle the case in which the full
25691 view is a transitive derivation of the ancestor of the partial view.
25692 (Process_Full_View): Rename local subprogram Find_Interface_In_
25693 Descendant to Find_Ancestor_Interface to leave the code more clear.
25694 Remove wrong code that avoids the generation of an error message
25695 when the immediate ancestor of the partial view is an interface.
25696 In addition some minor reorganization of the code has been done to
25697 leave it more clear.
25698 (Analyze_Type_Declaration): If type has previous incomplete tagged
25699 partial view, inherit properly its primitive operations.
25700 (Collect_Interfaces): Make public, for analysis of formal
25701 interfaces.
25702 (Analyze_Interface_Declaration): New procedure for use for regular and
25703 formal interface declarations.
25704 (Build_Derived_Record_Type): Add support for private types to the code
25705 that checks if a tagged type implements abstract interfaces.
25706 (Check_Aliased_Component_Type): The test applies in the spec of an
25707 instance as well.
25708 (Access_Type_Declaration): Clean up declaration of malformed type
25709 declared as an access to its own classwide type, to prevent cascaded
25710 crash.
25711 (Collect_Interfaces): For private extensions and for derived task types
25712 and derived protected types, the parent may be an interface that must
25713 be included in the interface list.
25714 (Access_Definition): If the designated type is an interface that may
25715 contain tasks, create Master_Id for it before analyzing the expression
25716 of the declaration, which may be an allocator.
25717 (Record_Type_Declaration): Set properly the interface kind, for use
25718 in allocators, the creation of master id's for task interfaces, etc.
25719
25720 2005-11-14 Javier Miranda <miranda@adacore.com>
25721 Ed Schonberg <schonberg@adacore.com>
25722
25723 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
25724 omitted in case of stream attribute subprograms.
25725 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
25726 appear immediately after a subprogram body, when there is no previous
25727 subprogram declaration.
25728 Change name Is_Package to Is_Package_Or_Generic_Package
25729 (Process_Formals): A non null qualifier on a non null named access
25730 type is not an error, and is a warning only if Redundant_Constructs
25731 are flagged.
25732
25733 2005-11-14 Gary Dismukes <dismukes@adacore.com>
25734 Ed Schonberg <schonberg@adacore.com>
25735
25736 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
25737 nested within Analyze_Package_Specification to install the private
25738 declarations and use clauses within each of the parent units of a
25739 package instance of a generic child package.
25740 (Analyze_Package_Specification): When entering a private part of a
25741 package associated with a generic instance or formal package, the
25742 private declarations of the parent must be installed (by calling new
25743 procedure Install_Parent_Private_Declarations).
25744 Change name Is_Package to Is_Package_Or_Generic_Package
25745 (Preserve_Full_Attributes): For a synchronized type, the corresponding
25746 record is absent in a generic context, which does not indicate a
25747 compiler error.
25748
25749 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25750
25751 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
25752 not try to rewrite a renamed stream attribute, because the operations
25753 on the type may not have been generated.
25754 Handle properly a renaming_as_body generated for a stream operation
25755 whose default is abstract because the object type itself is abstract.
25756 (Find_Type): If the type is incomplete and appears as the prefix of a
25757 'Class reference, it is tagged, and its list of primitive operations
25758 must be initialized properly.
25759 (Chain_Use_Clauses): When chaining the use clauses that appear in the
25760 private declaration of a parent unit, prior to compiling the private
25761 part of a child unit, find on the scope stack the proper parent entity
25762 on which to link the use clause.
25763 (Note_Redundant_Use): Emit a warning when a redundant use clause is
25764 detected.
25765 (Analyze_Object_Renaming): An attribute reference is not a legal object
25766 if it is not a function call.
25767
25768 2005-11-14 Robert Dewar <dewar@adacore.com>
25769 Ed Schonberg <schonberg@adacore.com>
25770
25771 * sem_eval.adb: Implement d.f flag
25772 (Subtype_Statically_Match): A generic actual type has unknown
25773 discriminants when the corresponding actual has a similar partial view.
25774 If the routine is called to validate the signature of an inherited
25775 operation in a child instance, the generic actual matches the full view,
25776
25777 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
25778 Ed Schonberg <schonberg@adacore.com>
25779 Robert Dewar <dewar@adacore.com>
25780 Thomas Quinot <quinot@adacore.com>
25781
25782 * sem_res.adb (Resolve_Call): Provide a better error message whenever
25783 a procedure call is used as a select statement trigger and is not an
25784 entry renaming or a primitive of a limited interface.
25785 (Valid_Conversion): If the operand has a single interpretation do not
25786 remove address operations.
25787 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
25788 statement to inhibit warning.
25789 (Resolve_Unary_Op): Do not produce a warning when
25790 processing an expression of the form -(A mod B)
25791 Use Universal_Real instead of Long_Long_Float when we need a high
25792 precision float type for the generated code (prevents gratuitous
25793 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
25794 (Resolve_Concatenation_Arg): Improve error message when argument is an
25795 ambiguous call to a function that returns an array.
25796 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
25797 there is an implicit operator in the given scope if we are within an
25798 instance: legality check has been performed on the generic.
25799 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
25800 after resolving operand, to avoid false warnings on overloaded calls.
25801
25802 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25803 Javier Miranda <miranda@adacore.com>
25804
25805 PR ada/15604
25806 * sem_type.adb (Covers): In an inlined body, a composite type matches
25807 a private type whose full view is a composite type.
25808 (Interface_Present_In_Ancestor): Protect the frontend against
25809 previously detected errors to ensure that its compilation
25810 with assertions enabled gives the same output that its
25811 compilation without assertions.
25812 (Interface_Present_In_Ancestor): Add support for private types.
25813 Change name In_Actual to In_Generic_Actual (clean up)
25814 (Disambiguate): New predicate In_Actual, to recognize expressions that
25815 appear in the renaming declaration generated for generic actuals, and
25816 which must be resolved in the outer context.
25817
25818 2005-11-14 Robert Dewar <dewar@adacore.com>
25819 Thomas Quinot <quinot@adacore.com>
25820 Hristian Kirtchev <kirtchev@adacore.com>
25821 Ed Schonberg <schonberg@adacore.com>
25822
25823 * sem_util.ads, sem_util.adb: Change name Is_Package to
25824 Is_Package_Or_Generic_Package.
25825 (Check_Obsolescent): New procedure.
25826 (Set_Is_Public): Remove obsolete junk test.
25827 (Set_Public_Status): Do not set Is_Public on an object whose declaration
25828 occurs within a handled_sequence_of_statemets.
25829 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
25830 for a parameterless procedure.
25831 (Enter_Name): Recognize renaming declarations created for private
25832 component of a protected type within protected operations, so that
25833 the source name of the component can be used in the debugger.
25834
25835 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25836 Robert Dewar <dewar@adacore.com>
25837
25838 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
25839 of a generic subprogram are not visible outside the body.
25840 (Set_Warning_Switch): New procedure (code to set warning mode moved
25841 here from Switch.C so that it can be shared by pragma processing.
25842 (Check_References): Special case warning for non-modified non-imported
25843 volatile objects.
25844 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
25845 form with a string literal argument
25846
25847 2005-11-14 Javier Miranda <miranda@adacore.com>
25848
25849 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
25850 anonymous access.
25851 (Write): Addition of "not null" to the anonymous access.
25852 (Read): Addition of "not null" to the anonymous access.
25853 (Write): Addition of "not null" to the anonymous access.
25854
25855 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
25856 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
25857 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
25858 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
25859 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
25860 "not null" to the anonymous access.
25861
25862 2005-11-14 Robert Dewar <dewar@adacore.com>
25863
25864 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
25865 offset values
25866
25867 2005-11-14 Vincent Celier <celier@adacore.com>
25868
25869 * switch.adb (Bad_Switch): New procedure
25870 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
25871 message when in error.
25872
25873 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
25874 Too_Many_Output_Files): Remove declarations, no longer used.
25875 (Scan_Nat): New parameter Switch
25876 (Scan_Pos): Ditto
25877 (Bad_Switch): New procedure
25878
25879 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
25880 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
25881 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
25882 to Osint.Fail. Do not handle any exception.
25883
25884 2005-11-14 Vincent Celier <celier@adacore.com>
25885
25886 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
25887 designates a non existent directory.
25888
25889 2005-11-14 Robert Dewar <dewar@adacore.com>
25890
25891 * xgnatugn.adb: Replace invalid membership test by 'Valid
25892
25893 2005-11-14 Vincent Celier <celier@adacore.com>
25894
25895 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
25896 there is no object directory.
25897
25898 2005-11-14 Robert Dewar <dewar@adacore.com>
25899
25900 * usage.adb: Minor adjustment to output format, use nn instead of nnn
25901 (so that -gnateInnn does not run into next column)
25902
25903 2005-11-14 Ed Falis <falis@adacore.com>
25904
25905 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
25906 "constrained"
25907
25908 2005-11-14 Cyrille Comar <comar@adacore.com>
25909
25910 * s-chepoo.ads: Add comments on Dereference.
25911 Remove unnecessary inherited abstract primitives.
25912 Cosmetic cleanup.
25913
25914 2005-11-14 Robert Dewar <dewar@adacore.com>
25915
25916 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
25917 node parameter, not needed, since it is available as Declaration_Node.
25918
25919 2005-11-14 Geert Bosch <bosch@adacore.com>
25920
25921 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
25922 grammatically correct.
25923
25924 2005-11-14 Vincent Celier <celier@adacore.com>
25925
25926 * s-fileio.ads: Correct spelling error in comment
25927
25928 2005-11-14 Cyrille Comar <comar@adacore.com>
25929 Robert Dewar <dewar@adacore.com>
25930 Vincent Celier <celier@adacore.com>
25931 Ben Brosgol <brosgol@adacore.com>
25932 Jose Ruiz <ruiz@adacore.com>
25933 Pascal Obry <obry@adacore.com>
25934
25935 * gnat_ugn.texi:
25936 Document that -fstack-check is needed for strict compliance with the
25937 Ada 95 Reference Manual.
25938 Correct reference to VAX systems to meet HP guidelines
25939 Add documentation for new gnatmake switches -vl, -vm and -vh
25940 Replace DEC Ada by HP Ada
25941 Replace DIGITAL by HP
25942 Remove empty section on tools in compatibility section
25943 Clarify the Windows convention semantics.
25944 Document the Win32 calling convention.
25945 The Stdcall, Win32 and DLL convention are synonyms.
25946 Add a note in -gnatR description about zero size record components
25947 Note on new >= and <= warnings for -gnatwc
25948 Document that equal sign after -gnatm is optional.
25949 Note that strip is working fine on DLL built with a Library
25950 Project. The restriction apply only to DLL built with gnatdll.
25951 Update section about the way to debug a DLL.
25952 Update information about the DLL convention.
25953 Document -C switch for gnatprep
25954 Document new attribute Library_ALI_Dir
25955 Update elaboration doc to include implicit Elaborate pragmas now
25956 generated for subprogram instantiations.
25957 Document limitation on executable names that include spaces for --GCC,
25958 --GNATBIND, and --GNATLINK switches.
25959 Document that -w causes -gnatws to be added at start of gcc switches
25960
25961 * gnat_rm.texi: Document that -mieee is needed for generating infinite
25962 and NaN values in case of overflow on machines that are not fully
25963 compliant with the IEEE floating-point standard.
25964 Create a section describing the set of compiler options needed for
25965 strict compliance with the Ada 95 Reference Manual.
25966 Add documentation for pragma Obsolescent applied to a package
25967 Clarify potential issues of mixed language programs related to the
25968 I/O buffering enabling in the elaboration of the GNAT runtime.
25969 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
25970 This documentation only patch adds extra documentsion for pragma
25971 Restrictions (No_Elaboration_Code), explaining why it is not possible
25972 to document this restriction in terms of allowed source constructs.
25973 Document string literal form of pragma Warnings
25974 Document new attribute Library_ALI_Dir
25975 Add documentation on stable attributes in project files that was missing
25976
25977 * gnat-style.texi: Indicate that paragraphs within a single comment
25978 should be separated by empty comment lines
25979
25980 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
25981 /05 respectively)
25982
25983 * bindusg.adb: Minor cleanup, put -m before -M for consistency
25984
25985 2005-11-14 Robert Dewar <dewar@adacore.com>
25986
25987 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
25988 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
25989 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
25990 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
25991 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
25992 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
25993 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
25994 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
25995 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
25996 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
25997 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
25998 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
25999 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
26000 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
26001 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
26002 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
26003 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
26004 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
26005 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
26006 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
26007 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
26008 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
26009 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
26010 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
26011 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
26012 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
26013 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
26014 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
26015 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
26016 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
26017 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
26018 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
26019 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
26020 system-interix.ads, system-solaris-sparc.ads,
26021 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
26022 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
26023 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
26024 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
26025 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
26026 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
26027 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
26028 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
26029 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
26030 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
26031 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
26032 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
26033 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
26034 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
26035 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
26036 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
26037 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
26038 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
26039 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
26040 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
26041 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
26042 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
26043 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
26044 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
26045 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
26046 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
26047 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
26048 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
26049 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
26050 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
26051 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
26052 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
26053 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
26054 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
26055 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
26056 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
26057 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
26058 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
26059 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
26060 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
26061 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
26062 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
26063 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
26064 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
26065 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
26066 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
26067 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
26068 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
26069 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
26070 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
26071 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
26072 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
26073 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
26074 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
26075 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
26076 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
26077 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
26078 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
26079 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
26080 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
26081 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
26082 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
26083 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
26084 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
26085 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
26086 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
26087 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
26088 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
26089 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
26090 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
26091 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
26092 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
26093 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
26094 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
26095 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
26096 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
26097 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
26098 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
26099 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
26100 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
26101 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
26102 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
26103 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
26104 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
26105 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
26106 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
26107 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
26108 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
26109 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
26110 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
26111 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
26112 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
26113 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
26114 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
26115 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
26116 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
26117 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
26118 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
26119 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
26120 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
26121 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
26122 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
26123 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
26124 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
26125 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
26126 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
26127 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
26128 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
26129 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
26130 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
26131 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
26132 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
26133 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
26134 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
26135 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
26136 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
26137 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
26138 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
26139 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
26140 a-numaux-darwin.ads, a-numaux-darwin.adb,
26141 a-swuwha.ads, a-stunha.ads: Minor reformatting
26142
26143 2005-11-14 Robert Dewar <dewar@adacore.com>
26144
26145 PR ada/18434
26146 * osint-m.adb: Add pragma Elaborate_All for Osint
26147
26148 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
26149
26150 PR ada/23995
26151 * trans.c (call_to_gnu): Restore statement lost in translation.
26152
26153 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
26154
26155 * init.c: Use the Linux-specific section for the IA-64/Linux target.
26156 (__gnat_adjust_context_for_raise): Add conditional code so that the
26157 IA-64 is also supported.
26158
26159 2005-11-03 James E Wilson <wilson@specifix.com>
26160
26161 PR ada/23427
26162 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
26163 TREE_OVERFLOW check.
26164
26165 2005-09-21 Olivier Hainque <hainque@adacore.com>
26166
26167 PR ada/22418
26168 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
26169 as we create them to store a size in bits.
26170
26171 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
26172
26173 PR ada/21937
26174 PR ada/22328
26175 PR ada/22381
26176 PR ada/22383
26177 PR ada/22419
26178 PR ada/22420
26179 * utils2.c (build_return_expr): New helper function.
26180 * gigi.h (build_return_expr): Declare it.
26181 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
26182 of manually building the RETURN_EXPR tree.
26183 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
26184 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
26185 build_binary_op for the "target pointer" case. Use build_return_expr
26186 instead of manually building the RETURN_EXPR tree.
26187
26188 2005-09-16 Laurent Guerby <laurent@guerby.net>
26189
26190 PR ada/23788
26191 * s-tpinop.ads: Make this unit Preelaborate.
26192
26193 2005-09-16 Andreas Jaeger <aj@suse.de>
26194
26195 * socket.c: Add string.h for memcpy.
26196
26197 2005-09-05 Arnaud Charlet <charlet@adacore.com>
26198
26199 * dec-io.ads, dec-io.adb: Removed, no longer used.
26200
26201 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26202
26203 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
26204
26205 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
26206 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
26207 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
26208 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
26209 dependent units are Preelaborate.
26210 (Initialize): Call Interrupt_Managemeent.Initialize and
26211 OS_Primitives.Initialize to ensure proper initialization of this unit.
26212 Remove use of System.Soft_Links
26213 Make this unit Preelaborate.
26214
26215 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
26216 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
26217 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
26218 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
26219 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26220 s-tratas.ads, s-tasinf.ads: Minor reformatting.
26221 Add pragma Preelaborate, since these packages are suitable for this
26222 categorization.
26223 Update comments.
26224
26225 * s-traent-vms.ads, s-intman-dummy.adb,
26226 s-taprop-dummy.adb: Make this unit Preelaborate.
26227
26228 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26229 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
26230 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
26231 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
26232 s-intman-solaris.adb, s-intman-irix-athread.adb,
26233 s-intman-irix.adb: Mark this unit Preelaborate.
26234 (Initialize): New procedure.
26235 Update comments.
26236
26237 * s-taspri-linux.ads: Removed.
26238
26239 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
26240 as done by other implementations (e.g. posix).
26241
26242 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
26243 responsible for deferring abort.
26244 Mark this unit Preelaborate.
26245
26246 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
26247 proper initialization of the tasking run-time.
26248
26249 * s-tasdeb.ads: Mark this unit Preelaborate.
26250 (Known_Tasks): Add explicit default value to avoid elaboration code.
26251
26252 * s-inmaop-vms.adb (Elaboration code): Add call to
26253 Interrupt_Management.Initialize since the elaboration code depends on
26254 proper initialization of this package.
26255
26256 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
26257 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
26258 s-osprim-posix.adb: Make this unit Preelaborate.
26259
26260 * a-calend.adb: Add call to OS_Primitives.Initialize
26261
26262 * a-elchha.adb: Update use of Except.Id.Full_Name.
26263 Minor reformatting.
26264 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
26265
26266 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
26267 Move with clauses outside Warnings Off now that dependent units are
26268 Preelaborate.
26269 Use raise xxx with "..."; Ada 2005 form.
26270
26271 * a-taside.ads, a-taside.adb:
26272 Remove some dependencies, to make it easier to make this unit truly
26273 Preelaborate.
26274 Rewrite some code to be conformant with Preelaborate rules.
26275
26276 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
26277 marked Preelaborate in the future.
26278
26279 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
26280 these units Preelaborate.
26281
26282 * s-exctab.adb: Update use of Except.Id.Full_Name.
26283
26284 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
26285 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
26286 Set_Exc_Stack_Addr): Removed, no longer used.
26287 Remove reference to *Machine_State_Addr*, no longer needed.
26288
26289 * s-stalib.ads: Mark this unit as Preelaborate[_05].
26290 (Exception_Data): Full_Name is now a System.Address so that this unit
26291 can be made Preelaborate.
26292 Clean up/simplify code thanks to Full_Name being a System.Address.
26293 Remove obsolete pragma Suppress (All_Checks), no longer needed.
26294
26295 * s-taskin.ads, s-taskin.adb:
26296 Move with clauses outside Warnings Off now that dependent units are
26297 Preelaborate.
26298 Make this unit Preelaborate.
26299 (Initialize): New proceduure, replace elaboration code and makes the
26300 set up of the tasking run-time cleaner.
26301 (Detect_Blocking): Now a function instead of a deferred boolean, to
26302 obey Preelaborate rules.
26303
26304 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
26305 soft links, no longer used.
26306
26307 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
26308 packages are suitable for this categorization.
26309
26310 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
26311 since we compile run-time sources in Ada 2005 mode.
26312 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
26313 avoid having s-taprop*.adb depend on s-soflin and to avoid code
26314 duplication.
26315 Remove reference to *Machine_State_Addr*, no longer needed.
26316
26317 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26318
26319 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
26320 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26321 Remove reference to System.Exceptions.
26322
26323 * s-mastop-x86.adb: Removed, no longer used.
26324
26325 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
26326
26327 * a-excach.adb: Minor reformatting.
26328
26329 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
26330 instead fix new warnings that were hidden by this change.
26331 (AAA, ZZZ): Removed, replaced by...
26332 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
26333 are used instead of constants, to help make Ada.Exception truly
26334 preelaborate.
26335 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
26336 Raise_Storage_Error): File is now a System.Address, to simplify code.
26337 (Elab code): Removed, no longer used.
26338 (Null_Occurrence): Remove Warnings Off and make this construct
26339 preelaborate.
26340 Remove code related to front-end zero cost exception handling, since
26341 it is no longer used.
26342 Remove -gnatL/-gnatZ switches.
26343
26344 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
26345 Update use of Except.Msg.
26346
26347 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
26348 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
26349 to front-end zero cost exception handling, since it is no longer used.
26350 Remove -gnatL/-gnatZ switches.
26351
26352 * lib-writ.ads: Minor reformatting
26353 Remove doc of UX
26354
26355 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
26356
26357 * Make-lang.in: Remove references to s-except.ads
26358
26359 * s-except.ads: Removed, no longer used.
26360
26361 * s-mastop.ads, s-mastop.adb:
26362 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26363 Remove reference to System.Exceptions.
26364
26365 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
26366 switch-b.adb: Remove code related to front-end zero cost exception
26367 handling, since it is no longer used.
26368 Remove -gnatL/-gnatZ switches.
26369
26370 2005-09-01 Robert Dewar <dewar@adacore.com>
26371 Gary Dismukes <dismukes@adacore.com>
26372 Javier Miranda <miranda@adacore.com>
26373
26374 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
26375 type by valid test and generate warning.
26376 (Tagged_Membership): Generate call to the run-time
26377 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
26378 Change formal name Subtype_Mark to Result_Definition in several calls to
26379 Make_Function_Specification.
26380 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
26381 check for proper accessibility of the operand of a class-wide allocator.
26382 The check can be left out if checks are suppressed or if the expression
26383 has a specific tagged type whose level is known to be safe.
26384
26385 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
26386 generates the run-time check associated with null-excluding entities.
26387 (Expand_N_Return_Statement): Add tests to determine if the accessibility
26388 check on the level of the return expression of a class-wide function
26389 can be elided. The check usually isn't needed if the expression has a
26390 specific type (unless it's a conversion or a formal parameter). Also
26391 add a test for whether accessibility checks are suppressed. Augment
26392 the comments to describe the conditions for performing the check.
26393
26394 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
26395 Javier Miranda <miranda@adacore.com>
26396 Gary Dismukes <dismukes@adacore.com>
26397 Ed Schonberg <schonberg@adacore.com>
26398
26399 * a-tags.adb (IW_Membership): Give support to
26400 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
26401 subprogram has been extended to look for the tag in the ancestors tag
26402 table.
26403 Update the structure of the GNAT Dispatch Table to reflect the
26404 additional two tables used in dispatching selects.
26405 Introduce appropriate array types and record components in
26406 Type_Specific_Data to reflect the two tables.
26407 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
26408 the TSD of a tag, indexed by position.
26409 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
26410 operation kind in the TSD of a tag, indexed by position.
26411
26412 * a-tags.ads: Introduce an enumeration type to capture different
26413 primitive operation kinds. Define a constant reflecting the number of
26414 predefined primitive operations.
26415 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
26416 of an entry wrapper.
26417 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
26418 callable entity of a primitive operation.
26419
26420 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
26421 primitive operations used in dispatching selects for limited
26422 interfaces, limited tagged, task and protected types what implement a
26423 limited interface.
26424 (Freeze_Type): Generate the bodies of the primitive operations used in
26425 dispatching selects for limited tagged, task and protected types that
26426 implement a limited interface. Generate statements to populate the two
26427 auxiliary tables used for dispatching in select statements.
26428 (Freeze_Record_Type): Add call to initialize the dispatch table entries
26429 associated with predefined interface primitive operations.
26430 (Build_Dcheck_Function): Change Set_Subtype_Mark to
26431 Set_Result_Definition.
26432 (Build_Variant_Record_Equality): Change Subtype_Mark to
26433 Result_Definition.
26434 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
26435 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
26436 (Build_Assignment): Simplify the code that adds the run-time-check.
26437 (Expand_N_Object_Declaration): Code cleanup.
26438
26439 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
26440 entries when there is a protected type that implements a limited
26441 interface.
26442
26443 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
26444 common routines used in expansion of dispatching selects.
26445 (Add_Private_Declarations): Select the appropriate protection type when
26446 there is a protected type that implements a limited interface.
26447 (Build_Parameter_Block): Generate a wrapped parameter block.
26448 (Build_Protected_Subprogram_Body): Select the appropriate type for
26449 locking entries when there is a protected type that implements a
26450 limited interface.
26451 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
26452 classified as entry wrappers.
26453 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
26454 asynchronous selects.
26455 (Expand_N_Conditional_Entry_Call): Add support for expansion of
26456 dispatching conditional selects.
26457 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
26458 protection when there is a protected type that implements limited
26459 interfaces.
26460 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
26461 timed selects.
26462 (Extract_Dispatching_Call): Extract the entity of the name of a
26463 dispatching call, the object parameter, actual parameters and
26464 corresponding formals.
26465 (Make_Initialize_Protection): Correct logic of protection initialization
26466 when there is a protected type that implements a limited interface.
26467 (Parameter_Block_Pack): Populate a wrapped parameter block with the
26468 values of actual parameters.
26469 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
26470 block and assign them to the original actual parameters.
26471
26472 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
26473 (Build_Protected_Sub_Specification): Change the type and name of the
26474 last formal to account for the increased variety of protection modes.
26475
26476 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
26477 entities. Used to save the value of the Is_Hidden attribute when the
26478 limited-view is installed.
26479 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
26480 the attribute of procedures classified as entry wrappers.
26481 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
26482 entity of a primitive wrapper.
26483 (Write_Entity_Flags): Output the name and value of the
26484 Is_Primitive_Wrapper attribute.
26485 (Write_Field27_Name): Output the name and entity of the field Wrapped_
26486 Entity.
26487 (Underlying_Type): If we have an incomplete entity that comes from
26488 the limited view then we return the Underlying_Type of its non-limited
26489 view if it is already available.
26490 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
26491 including operators.
26492 (Write_Field26_Name): Add entry for Overridden_Operation
26493 (Overridden_Operation): New attribute of functions and procedures.
26494
26495 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
26496 predefined position in the dispatch table for the primitive operations
26497 used in dispatching selects.
26498 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
26499 predefined primitive operations and replace it with
26500 Default_Prim_Op_Count.
26501 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
26502 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
26503 the names of the generated primitive operations used in dispatching
26504 selects.
26505 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
26506 case of abstract interface types. They will be inherit by the objects
26507 implementing the interface.
26508 (Make_DT): There is no need to inherit the dispatch table of the
26509 ancestor interface for the elaboration of abstract interface types.
26510 The dispatch table will be inherited by the object implementing the
26511 interface.
26512 (Copy_Secondary_DTs): Add documentation.
26513 (Validate_Position): Improve this static check in case of
26514 aliased subprograms because aliased subprograms must have
26515 the same position.
26516 (Init_Predefined_Interface_Primitives): New subprogram that initializes
26517 the entries associated with predefined primitives of all the secondary
26518 dispatch tables.
26519 (Build_Anonymous_Access_Type): Removed.
26520 (Expand_Interface_Actuals): With the previous cleanup there is no need
26521 to build an anonymous access type. This allows further cleanup in the
26522 code generated by the expander.
26523 (Expand_Interface_Conversion): If the actual is an access type then
26524 build an internal function to handle the displacement. If the actual
26525 is null this function returns null because no displacement is
26526 required; otherwise performs a type conversion that will be
26527 expanded in the code that returns the value of the displaced actual.
26528 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
26529 conversions that have no effect in the generated code because no
26530 displacement is required. Code cleanup; use local variables to
26531 avoid repeated calls to the subprogram directly_designated_type().
26532
26533 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
26534 Classify the primitive operations used in dispatching selects as
26535 predefined.
26536 (Implements_Limited_Interface): Determine whether some type either
26537 directly implements a limited interface or extends a type that
26538 implements a limited interface.
26539 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
26540 (Expand_Subtype_From_Expr): Do not build actual subtype if the
26541 expression is limited.
26542 (Find_Interface_Tag): Add code to handle class-wide types and
26543 entities from the limited-view.
26544
26545 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
26546 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
26547 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
26548 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
26549 Set_Prim_Op_Kind.
26550
26551 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
26552 of procedure name or prefix that appears as a trigger in a triggering
26553 alternative.
26554
26555 * uintp.ads: Introduce constants Uint_11 and Uint_13.
26556
26557 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26558
26559 * s-tataat.adb, a-tasatt.adb:
26560 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
26561
26562 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
26563 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
26564 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
26565 longer used.
26566
26567 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26568 Jose Ruiz <ruiz@adacore.com>
26569
26570 * s-taprop-vxworks.adb:
26571 Move with clauses outside Warnings Off now that dependent units are
26572 Preelaborate.
26573 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
26574 initialization of this unit.
26575 (Specific): Add new procedures Initialize and Delete so that this
26576 package can be used for VxWorks 5.x and 6.x
26577 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
26578 differences between VxWorks 5.x and 6.x
26579 Minor reformatting.
26580 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
26581 caller.
26582 Use only Preelaborate-compatible constructs.
26583
26584 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
26585 Primitives.Operations.
26586 (Delete, Initialize): New procedures.
26587
26588 * s-osinte-vxworks.adb: Body used to handle differences between
26589 VxWorks 5.x and 6.x
26590 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
26591
26592 * s-osinte-vxworks.ads: Minor reformatting.
26593 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
26594 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
26595 and 6.
26596 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
26597 between Vxworks 5 and 6.
26598 (taskLock, taskUnlock): Removeed, no longer used.
26599
26600 * adaint.c: The wait.h header is not located in the sys directory on
26601 VxWorks when using RTPs.
26602 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
26603 using RTPs.
26604 (__gnat_dup): dup is available on Vxworks when using RTPs.
26605 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
26606
26607 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
26608
26609 * expect.c: The wait.h header is not located in the sys directory on
26610 VxWorks when using RTPs.
26611
26612 2005-09-01 Thomas Quinot <quinot@adacore.com>
26613
26614 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
26615
26616 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
26617
26618 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
26619 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26620 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
26621 g-soccon-freebsd.ads: Add new constants:
26622 IP_MULTICAST_IF
26623 SO_RCVTIMEO/SO_SNDTIMEO
26624 IOV_MAX
26625
26626 * gen-soccon.c:
26627 Move all target-specific file inclusions and macro definitions to
26628 gsocket.h, in order to ensure that any C code in socket.c will see a
26629 set of constants that is consistent with the contents of g-soccon.ads.
26630
26631 * gsocket.h: Code imported from gen-soccon.c:
26632 Move all target-specific file inclusions and macro definitions to
26633 gsocket.h, in order to ensure that any C code in socket.c will see a set
26634 of constants that is consistent with the contents of g-soccon.ads.
26635 This change also makes gen-soccon self-contained (removing dependencies
26636 upon GCC internal headers).
26637
26638 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
26639 iovecs at a time.
26640 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
26641
26642 * socket.c: Minor reformatting.
26643
26644 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26645 Thomas Quinot <quinot@adacore.com>
26646
26647 * fname-sf.adb, mlib-tgt.ads,
26648 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
26649 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
26650 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
26651 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
26652 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
26653 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
26654 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
26655 makegpr.adb: Remove redundant use_clauses.
26656
26657 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26658
26659 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
26660 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
26661 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
26662 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
26663 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
26664 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
26665 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
26666 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
26667 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26668 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
26669 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
26670 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
26671 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
26672 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
26673 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
26674 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
26675 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26676 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
26677 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
26678 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
26679 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
26680 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
26681 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
26682 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
26683 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
26684 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
26685 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
26686 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
26687 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
26688 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
26689 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
26690 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
26691 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
26692 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
26693 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
26694 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
26695 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
26696 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
26697 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
26698 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
26699 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
26700 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
26701 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
26702 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
26703 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
26704 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
26705 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
26706 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
26707 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
26708 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
26709 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
26710 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
26711 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
26712 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
26713 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
26714 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
26715 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
26716 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
26717 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
26718 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
26719 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
26720 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
26721 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
26722 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
26723 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
26724 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
26725 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
26726 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
26727 and always use the no parameter form for consistency.
26728
26729 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
26730
26731 2005-09-01 Robert Dewar <dewar@adacore.com>
26732
26733 * binde.adb: Minor reformatting
26734 (Find_Elab_Order): Output warning if -p used with static elab order
26735
26736 2005-09-01 Robert Dewar <dewar@adacore.com>
26737
26738 * checks.adb (Check_Needed): New procedure, deals with removing checks
26739 based on analysis of short-circuited forms. Also generates warnings for
26740 improper use of non-short-circuited forms.
26741 Code clean ups.
26742
26743 2005-09-01 Robert Dewar <dewar@adacore.com>
26744
26745 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
26746 with 'Valid tests.
26747
26748 2005-09-01 Robert Dewar <dewar@adacore.com>
26749
26750 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
26751 spec.
26752 Implement new insertion char < (conditional warning)
26753 * errutil.adb, erroutc.adb: Implement new insertion char <
26754 (conditional warning).
26755 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
26756 (Error_Msg_Warn): New variable for < insertion char.
26757 * prj-nmsc.adb: Implement new errout insertion char < (conditional
26758 warning).
26759 (Check_For_Source): Change value of Source_Id only after the current
26760 source has been dealt with.
26761
26762 2005-09-01 Robert Dewar <dewar@adacore.com>
26763 Doug Rupp <rupp@adacore.com>
26764
26765 * exp_attr.adb: Handle vax fpt for 'Valid attribute
26766 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
26767 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
26768 (Valid_D, Valid_F, Valid_G): New functions
26769
26770 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26771 Hristian Kirtchev <kirtchev@adacore.com>
26772 Javier Miranda <miranda@adacore.com>
26773
26774 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
26775 from object notation, the original node is unanalyzed and carries no
26776 semantic information, so that accessiblity checks must be performed on
26777 the type of the actual itself.
26778 (Expand_N_Subprogram_Declaration): Change last actual parameter for
26779 compatibility with Build_Protected_Sub_Specification.
26780 (Check_Overriding_Inherited_Interfaces): Add suport to handle
26781 overloaded primitives.
26782 (Register_Interface_DT_Entry): Use the new name of the formal
26783 the the calls to Expand_Interface_Thunk
26784
26785 * exp_dbug.ads: Augment comments on encoding of protected types to
26786 include the generation of dispatching subprograms when the type
26787 implements at least one interface.
26788
26789 * lib.ads: Extend information in Load_Stack to include whether a given
26790 load comes from a Limited_With_Clause.
26791
26792 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
26793 whether a potential circularity is harmless, because it includes units
26794 loaded through a limited_with clause. Extends previous treatment which
26795 did not handle properly arbitrary combinations of limited and
26796 non-limited clauses.
26797
26798 2005-09-01 Nicolas Setton <setton@adacore.com>
26799
26800 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
26801 to be encoded as typ___XBLU_lowerbound__upperbound instead of
26802 typ___XB_lowerbound__upperbound.
26803
26804 2005-09-01 Thomas Quinot <quinot@adacore.com>
26805
26806 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
26807 dummy access formal for RACW/RAS TypeCode TSS.
26808 (Build_TypeCode_Call): Do not generate dummy null access actual for
26809 calls to the TypeCode TSS.
26810
26811 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26812
26813 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
26814 fully qualified name, to distinguish instances with the same local name.
26815
26816 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
26817 fully qualified.
26818
26819 2005-09-01 Robert Dewar <dewar@adacore.com>
26820
26821 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
26822 packed arrays.
26823
26824 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
26825
26826 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
26827 (Free): New deallocation procedure for filter elements
26828 (Close): Deallocate any existing filter for the concerned connection
26829
26830 2005-09-01 Laurent Pautet <pautet@adacore.com>
26831
26832 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
26833 position set is provided, we compute one in order to reduce the maximum
26834 length of the keys. This computation first selects a character
26835 position between 1 and the minimum length of the keys in order to
26836 avoid reducing one of the keys to an empty string.
26837 (Initialize, Compute): When the ratio V to K is too low, the algorithm
26838 does not converge. The initialization procedure now comes with a
26839 maximum number of iterations such that when exceeded, an exception is
26840 raised in Compute. The user can initialize this ratio to another value
26841 and try again
26842 Reformating and updated headers.
26843
26844 2005-09-01 Javier Miranda <miranda@adacore.com>
26845
26846 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
26847 that given an entity T creates and returns an Itype that duplicates the
26848 contents of T. The returned Itype has the null-exclusion
26849 attribute set to True, and its Etype attribute references T
26850 to keep the association between the two entities.
26851 Update copyright notice
26852
26853 * sem_aggr.adb (Check_Can_Never_Be_Null,
26854 Aggregate_Constraint_Checks, Resolve_Aggregate,
26855 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
26856
26857 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
26858
26859 2005-09-01 Gary Dismukes <dismukes@adacore.com>
26860 Robert Dewar <dewar@adacore.com>
26861 Hristian Kirtchev <kirtchev@adacore.com>
26862
26863 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
26864 Result_Definition.
26865
26866 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
26867 function specs.
26868 Call Set_Result_Definition instead of Set_Subtype_Mark.
26869 (P_Subprogram_Specification): Add parsing of anonymous access result
26870 plus null exclusions. Call Set_Result_Definition instead of
26871 Set_Subtype_Mark.
26872
26873 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
26874 (P_Access_Type_Definition): Add parsing for an anonymous access result
26875 subtype, plus parsing for null exclusions. Call Set_Result_Definition
26876 instead of Set_Subtype_Mark.
26877
26878 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
26879 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
26880 (Result_Definition): New function for N_Function_Specifications.
26881 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
26882 N_Function_Specification.
26883 (Set_Null_Exclusion_Present): Allow this flag for
26884 N_Function_Specification.
26885 (Set_Result_Definition): New procedure for N_Function_Specifications.
26886 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
26887 and N_Function_Specification.
26888
26889 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
26890 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
26891 Add support for LIMITED NEW for Ada 2005 AI-419
26892 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
26893 syntax for anonymous access results.
26894 Replace Subtype_Mark field by Result_Definition in
26895 N_Function_Specification and N_Access_Definition specs.
26896 Add Null_Exclusion_Present to spec of N_Function_Specification.
26897 (Result_Definition): New function for N_Function_Specification and
26898 N_Access_Function_Definition.
26899 (Set_Result_Definition): New procedure for N_Function_Specification and
26900 N_Access_Function_Definition.
26901
26902 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
26903 Result_Definition for cases of N_Access_Function_Definition and
26904 N_Function_Specification.
26905 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
26906
26907 2005-09-01 Vincent Celier <celier@adacore.com>
26908
26909 * lib-writ.adb: Update Copyright notice
26910 (Write_With_Lines): On platforms where file names are case-insensitive,
26911 record the file names in lower case.
26912 (Write_ALI): For D lines, on platforms where file names are
26913 case-insensitive, record the file names in lower case.
26914
26915 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26916 Emmanuel Briot <briot@adacore.com>
26917
26918 * lib-xref.adb (Output_Overridden_Op): Display information on
26919 overridden operation.
26920
26921 * lib-xref.ads: Add documentation on overridden operations.
26922
26923 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
26924 information.
26925
26926 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
26927 overriding entity information.
26928
26929 2005-09-01 Vincent Celier <celier@adacore.com>
26930
26931 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
26932 including those that are inherited.
26933
26934 2005-09-01 Robert Dewar <dewar@adacore.com>
26935
26936 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
26937
26938 * par-prag.adb: Implement new pragma Debug_Policy
26939
26940 * sem_prag.adb Implement new pragma Debug_Policy
26941 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
26942 Component_Size attribute specification. Give warning for ignored pragma
26943 Pack.
26944
26945 * snames.h, snames.ads, snames.adb: Introduce entries in
26946 Preset_Names for Name_Disp_Asynchronous_Select,
26947 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
26948 Name_Disp_Timed_Select.
26949 New pragma Debug_Policy
26950
26951 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
26952 explicitly.
26953 Switch -gnata also sets Debug_Pragmas_Enabled
26954
26955 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
26956 handle an explicit -gnata when compiling predefined files.
26957
26958 2005-09-01 Vincent Celier <celier@adacore.com>
26959
26960 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
26961 directories of projects that have no Ada sources.
26962
26963 2005-09-01 Robert Dewar <dewar@adacore.com>
26964
26965 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
26966 (makes a difference for wide characters)
26967
26968 * widechar.adb, widechar.ads:
26969 Add Wide_Char_Byte_Count feature to count chars vs bytes
26970
26971 2005-09-01 Thomas Quinot <quinot@adacore.com>
26972 Ed Schonberg <schonberg@adacore.com>
26973 Robert Dewar <dewar@adacore.com>
26974
26975 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
26976 'Address attribute reference with an overloaded prefix, use the
26977 location of the prefix (not the location of the attribute reference) as
26978 the error location.
26979 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
26980 a function renaming thereof, is a valid prefix for 'Size (where it is
26981 intepreted as a function call).
26982 (Statically_Denotes_Entity): New predicate to determine whether the
26983 prefix of an array attribute can be considered static.
26984
26985 PR ada/9087
26986 (Eval_Attr): Fix failure to evaluate Component_Size for
26987 unconstrained arrays (resulted in wrong value in packed case, since
26988 back end cannot handle this case)
26989
26990 2005-09-01 Robert Dewar <dewar@adacore.com>
26991
26992 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
26993 error msgs for most common cases.
26994 Use new errout insertion char < (conditional warning)
26995
26996 2005-09-01 Javier Miranda <miranda@adacore.com>
26997 Ed Schonberg <schonberg@adacore.com>
26998
26999 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
27000 become local to the whole package.
27001 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
27002 the package was already analyzed the new algorithm "replaces" the
27003 real entities by the shadow ones. This is required to ensure that
27004 the order of these entities in the homonym chains does not change;
27005 otherwise we can have undefined references at linking time because
27006 in case of conflicts the external name of the entities will have
27007 a suffix that depends on the order of the entities in the chain.
27008 (Remove_Limited_With_Clause): Complementary code that completes the
27009 new algorithm and replaces the shadow entities by the real ones.
27010 (Install_Limited_Withed_Unit): When unchaining entities before the
27011 installation of the shadow entities, only regular entities of the
27012 public part must be taken into account. This is required to
27013 keep this routine in synch with the work done by Remove_Limited_
27014 With_Clause
27015 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
27016 even if unit is analyzed, because the analysis of the unit is
27017 idempotent in any case, and the limited view of the unit may have to
27018 be installed for proper visibility.
27019 (Expand_Limited_With_Clause): Even if the unit in the implicit
27020 with_clause has been analyzed already, a limited view of the package
27021 must be built for the current context, if it does not exist yet.
27022
27023 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27024 Javier Miranda <miranda@adacore.com>
27025 Gary Dismukes <dismukes@adacore.com>
27026
27027 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
27028 defining entity for the instance body, make a new defining identifier
27029 rather than copying the entity of the spec, to prevent accidental
27030 sharing of the entity list.
27031 (Check_Private_View): When exchanging views of private types, build the
27032 list of exchanged views as a stack, to ensure that on exit the exchanges
27033 are undone in the proper order.
27034 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
27035 Restore the compilation environment in case of instantiation_error.
27036 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
27037 for an anonymous access result.
27038 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
27039 (Formal_Entity): Handle properly the case of a formal package that
27040 denotes a generic package renaming.
27041
27042 2005-09-01 Thomas Quinot <quinot@adacore.com>
27043
27044 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
27045 clause if the array aggregate is surrounded by parentheses.
27046
27047 2005-09-01 Cyrille Comar <comar@adacore.com>
27048 Gary Dismukes <dismukes@adacore.com>
27049 Ed Schonberg <schonberg@adacore.com>
27050 Javier Miranda <miranda@adacore.com>
27051
27052 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
27053 underlying type
27054 to check if a type is Constrained in cases related to code generation
27055 (rather than semantic checking) since otherwise we do not generate
27056 similar code for mutable private types depending if their
27057 discriminants are visible or not.
27058 (Check_Abstract_Overriding): Do not complain about failure to override
27059 the primitive operations used in dispatching selects since they will
27060 always be overriden at the freeze point of the type.
27061 (Access_Definition): Separate out handling for resetting the scope
27062 of an anonymous access function result type. Retrieve the scope
27063 of the associated function rather than using Current_Scope, which
27064 does not have a consistent value (depends on whether we're in the
27065 middle of analyzing formal parameters). Add ??? comment about
27066 finding a cleaner way to handle the special cases of scope setting.
27067 (Process_Incomplete_Dependents): A protected operation is never a
27068 dispatching operation (only its wrapper may be).
27069 (Build_Derived_Record_Type): In case of tagged private types that
27070 implement interfaces add derivation of predefined primitive
27071 operations.
27072 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
27073 by two parameters that are used in case of derivation from abstract
27074 interface types: No_Predefined_Prims is used to avoid the derivation
27075 of predefined primitives from the interface, and Predefined
27076 Prims_Only is used to complete the derivation predefined primitives
27077 in case of private tagged types implementing interfaces.
27078 Fix typo in comments
27079 (Find_Interface_In_Descendant): Protect the frontend against
27080 wrong code with large circularity chains.
27081 (Is_Private_Overriding): Add support for entities overriding interface
27082 subprograms. The test failed because Entities associated with overriden
27083 interface subprograms are always marked as hidden (and used to build
27084 the secondary dispatch table); in this case the overriden entity is
27085 available through the field abstract_interface_alias (cf. override_
27086 dispatching_operation)
27087 (Access_Definition): Set the scope of the type to Current_Scope for the
27088 case of a function with an anonymous access result type.
27089 (Access_Subprogram_Declaration): Handle creation of the type entity for
27090 an access-to-function type with an anonymous access result.
27091 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
27092 in handling for N_Access_Function_Definition.
27093 (Analyze_Subtype_Declaration): Modify the text of error message.
27094 (Derived_Type_Declaration): Modify the text of error message.
27095 (Process_Subtype): Modify the text of error message plus cleanup
27096 of one redundant error message.
27097 (Analyze_Component_Declaration): Code cleanup.
27098 (Analyze_Object_Declaration): Code cleanup.
27099 (Analyze_Subtype_Declaration): Propagate the null-exclusion
27100 attribute in case of access types. Code cleanup.
27101 (Array_Type_Declaration): Code cleanup.
27102 (Process_Discriminants): Create the new null-excluding itype
27103 if required. Code cleanup.
27104 (Process_Subtype): Create the new null-excluding itype if
27105 required. Code cleanup.
27106 (Build_Derived_Record_Type): Code cleanup to avoid calling
27107 twice the subprogram derive_subprograms in case of private
27108 types that implement interfaces. In this particular case the
27109 subprogram Complete_Subprograms_Derivation already does the
27110 job associated with the second call.
27111
27112 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
27113 conversion to the full view when generating an operation for a
27114 discriminant whose type may currently be private.
27115
27116 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27117 Javier Miranda <miranda@adacore.com>
27118
27119 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
27120 V (Obj.F), the rewriting does not involve the indexed component, but
27121 only the selected component itself.
27122 Do not apply the transformation if the analyzed node is an actual of a
27123 call to another subprogram.
27124 (Complete_Object_Operation): Retain the entity of the
27125 dispatching operation in the selector of the rewritten node. The
27126 entity will be used in the expansion of dispatching selects.
27127 (Analyze_One_Call): Improve location of the error message associated
27128 with interface.
27129 (Analyze_Selected_Component): No need to resolve prefix when it is a
27130 function call, resolution is done when parent node is resolved, as
27131 usual.
27132 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
27133 when attempting to resolve a call transformed from its object notation.
27134 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
27135 of the argument list for each interpretation of the operation.
27136 (Try_Object_Operation): The designated type of an access parameter may
27137 be an incomplete type obtained through a limited_with clause, in which
27138 case the primitive operations of the type are retrieved from its full
27139 view.
27140 (Analyze_Call): If this is an indirect call, and the return type of the
27141 access_to_subprogram is incomplete, use its full view if available.
27142
27143 2005-09-01 Javier Miranda <miranda@adacore.com>
27144 Gary Dismukes <dismukes@adacore.com>
27145
27146 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
27147 access types the null-exclusion and access-to-constant attributes must
27148 also match.
27149 (Analyze_Return_Statement): When the result type is an anonymous access
27150 type, apply a conversion of the return expression to the access type
27151 to ensure that appropriate accessibility checks are performed.
27152 (Analyze_Return_Type): For the case of an anonymous access result type,
27153 generate the Itype and set Is_Local_Anonymous_Access on the type.
27154 Add ??? placeholder for check to disallow returning a limited object
27155 in Ada 2005 unless it's an aggregate or a result of a function call.
27156 Change calls from Subtype_Mark to Result_Definition.
27157 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
27158 Result_Definition in call to Make_Function_Specification.
27159 (Build_Body_To_Inline): Change Set_Subtype_Mark to
27160 Set_Result_Definition.
27161 (Make_Inequality_Operator): Change formal Subtype_Mark to
27162 Result_Definition in call to Make_Function_Specification.
27163 (Process_Formals): Create the new null-excluding itype if required.
27164 (New_Overloaded_Entity): For an entity overriding an interface primitive
27165 check if the entity also covers other abstract subprograms in the same
27166 scope. This is required to handle the general case, that is, overriding
27167 other interface primitives and overriding abstract subprograms inherited
27168 from some abstract ancestor type.
27169 (New_Overloaded_Entity): For an overriding entity that comes from
27170 source, note the operation that it overrides.
27171 (Check_Conformance, Type_Conformant): Addition of one new formal
27172 to skip controlling formals in the analysis. This is used to
27173 handle overloading of abstract interfaces.
27174 (Base_Types_Match): Add missing case for types imported from
27175 limited-with clauses
27176 (New_Overloaded_Entity): Add barrier to protect the use of
27177 the "alias" attribute.
27178
27179 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27180
27181 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
27182 verify that the procedure and the entry are mode conformant.
27183 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
27184 as a different operator, which is often a cut-and-paste error.
27185
27186 2005-09-01 Javier Miranda <miranda@adacore.com>
27187 Ed Schonberg <schonberg@adacore.com>
27188
27189 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
27190 used in controlling parameters exclude null because it is necessary to
27191 read the tag to dispatch, and null has no tag.
27192 (Override_Dispatching_Operation): If the previous operation is inherited
27193 from an interface, it becomes hidden and does not participate in later
27194 name resolution.
27195
27196 2005-09-01 Javier Miranda <miranda@adacore.com>
27197 Ed Schonberg <schonberg@adacore.com>
27198 Gary Dismukes <dismukes@adacore.com>
27199
27200 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
27201 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
27202 the expander will generate the corresponding run-time check to evaluate
27203 the expression.
27204 (Resolve_Call): Check for legal type of procedure name or prefix that
27205 appears as a trigger in a triggering alternative.
27206 (Valid_Conversion): If expression is ambiguous and the context involves
27207 an extension of System, remove System.Address interpretations.
27208 (Resolve_Qualified_Expression): Reject the case of a specific-type
27209 qualification applied to a class-wide argument. Enhance comment
27210 to explain checking of Original_Node.
27211 (Resolve_Type_Conversion): The location of the error message was not
27212 general enough to handle the general case and hence it has been removed.
27213 In addition, this patch improves the text of the message.
27214 (Resolve_Type_Conversion): Add missing support for access to interface
27215 types.
27216 (Resolve_Type_Conversion): If the target is a class-wide interface type,
27217 do not expand if the expression is the actual in a call, because proper
27218 expansion will take place when the call itself is expanded.
27219 (Resolve_Allocator): If the context is an unchecked conversion, the
27220 allocator inherits its storage pool, if any, from the target type of
27221 the conversion.
27222
27223 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27224 Javier Miranda <miranda@adacore.com>
27225
27226 * sem_type.adb (Add_One_Interp): If a candidate operation is an
27227 inherited interface operation that has an implementation, use the
27228 implementation to avoid spurious ambiguities.
27229 (Interface_Present_In_Ancestor): In case of concurrent types we can't
27230 use the Corresponding_Record_Typ attribute to look for the interface
27231 because it is set by the expander (and hence it is not always
27232 available). For this reason we traverse the list of interfaces
27233 (available in the parent of the concurrent type).
27234 (Interface_Present_In_Ancestor): Handle entities from the limited view
27235
27236 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27237
27238 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
27239 from the list of required components.
27240 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
27241 primitive procedure of a limited interface with a controlling first
27242 parameter.
27243 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
27244 of an entry.
27245 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
27246 capture if it is generated in the second operand of a short-circuit
27247 operation.
27248 Do not capture values for variables with address clauses.
27249 (Is_Object_Reference): Treat a function call as an object reference only
27250 if its type is not Standard_Void_Type.
27251
27252 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27253
27254 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
27255 to a variable that is statically known to be constant.
27256
27257 2005-09-01 Geert Bosch <bosch@adacore.com>
27258 Robert Dewar <dewar@adacore.com>
27259
27260 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
27261 (VAXGF_Safe_First): Idem.
27262
27263 2005-09-01 Robert Dewar <dewar@adacore.com>
27264 Arnaud Charlet <charlet@adacore.com>
27265
27266 * g-dirope.ads: Minor reformatting
27267 Document that bounds of result of Base_Name match the input index
27268 positions.
27269 Add documentation on environment variable syntax for Expand_Path
27270
27271 * gnat_ugn.texi: Update documentation to include mention of -m switches
27272 Document new treatment of wide characters in max line length
27273 style check.
27274 Remove -gnatL/-gnatZ switches, no longer used.
27275 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
27276 of -gnata switch.
27277
27278 * gnat_rm.texi: Add doc for two argument form of pragma
27279 Float_Representation.
27280 Add documentation for pragma No_Strict_Aliasing
27281 Add note that explicit component clause overrides pragma Pack.
27282 Add documentation of pragma Debug_Policy
27283
27284 2005-09-01 Matthew Heaney <heaney@adacore.com>
27285
27286 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
27287 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
27288 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
27289 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
27290 draft (Draft 13, August 2005) of Ada Amendment 1.
27291
27292 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27293
27294 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
27295 Note that the platform-specific version of g-soccon.ads for VMS is now
27296 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
27297 really is a package spec).
27298 Replace s-taspri-linux.ads by s-taspri-posix.ads
27299 Remove references to s-mastop-x86.adb
27300
27301 * system-vxworks-xscale.ads: Removed, no longer used.
27302 * s-vxwork-xscale.ads: Removed, no longer used.
27303
27304 2005-09-01 Robert Dewar <dewar@adacore.com>
27305
27306 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
27307 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
27308 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
27309 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
27310 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
27311 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
27312 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
27313 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
27314 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
27315 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
27316 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
27317 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
27318 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
27319 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
27320 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
27321 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
27322 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
27323 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
27324 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
27325 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
27326 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
27327
27328 2005-08-29 Arnaud Charlet <charlet@adacore.com>
27329
27330 PR ada/23187
27331 * adaint.c
27332 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
27333
27334 2005-08-29 Arnaud Charlet <charlet@adacore.com>
27335 Doug Rupp <rupp@adacore.com>
27336
27337 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
27338 when needed.
27339 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
27340 this code in the GNAT run-time.
27341
27342 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
27343
27344 PR ada/21053
27345 * init.c (__gnat_error_handler [many]): Mark "msg" as const
27346 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
27347
27348 (__gnat_inside_elab_final_code): Moved here from
27349 Standard_Library and only defined for the compiler.
27350 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
27351 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
27352 using RTPs because directly vectored Interrupt routines are not
27353 supported on this configuration.
27354 (getpid): Do not redefine this function on VxWorks when using RTPs
27355 because this primitive is well supported by the RTP libraries.
27356 (copy_msg): Correct the code that checks for buffer overflow.
27357 Discovered during code reading.
27358
27359 2005-08-29 Olivier Hainque <hainque@adacore.com>
27360
27361 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
27362 a library level mutable variable with an initializer, tell
27363 build_allocator to ignore the initializer's size. It may not be large
27364 enough for all the values that might be assigned to the variable later
27365 on.
27366
27367 2005-08-29 Arnaud Charlet <charlet@adacore.com>
27368 Eric Botcazou <ebotcazou@adacore.com>
27369
27370 * trans.c: Protect < in error msg with quote
27371 Replace GCC_ZCX by Back_End_Exceptions.
27372 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
27373 has been sufficiently aligned in the record.
27374
27375 2005-08-15 James E. Wilson <wilson@specifix.com>
27376
27377 * system-linux-alpha.ads: Change ia64 to alpha.
27378
27379 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
27380
27381 * decl.c, utils.c: Fix comment typos.
27382
27383 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
27384
27385 * decl.c, init.c, initialize.c: Fix comment typos.
27386
27387 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
27388
27389 Make CONSTRUCTOR use VEC to store initializers.
27390 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
27391 CONSTRUCTOR_ELTS.
27392 * trans.c (extract_values): Likewise.
27393 * utils.c (convert, remove_conversions): Likewise.
27394 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
27395 gnat_build_constructor): Likewise.
27396
27397 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
27398
27399 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
27400 DECL_SECTION_NAME.
27401 (compare_field_bitpos): Likewise.
27402
27403 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
27404
27405 * utils.c (create_var_decl): Only set DECL_COMMON on
27406 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
27407 VAR_OR_FUNCTION_DECL_P.
27408
27409 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
27410
27411 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
27412 removed.
27413
27414 2005-07-07 Pascal Obry <obry@adacore.com>
27415
27416 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
27417 returned type on Windows.
27418
27419 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
27420 routine.
27421
27422 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
27423 exception in this case.
27424 Simplify the code as "Image (Image'Range)" = "Image".
27425
27426 2005-07-07 Vincent Celier <celier@adacore.com>
27427
27428 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
27429 the destructor/constructor attributes for <lib>final/<lib>init.
27430
27431 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
27432
27433 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
27434
27435 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
27436 type if the parameter is not passed by copy but reference by default.
27437
27438 2005-07-07 Javier Miranda <miranda@adacore.com>
27439
27440 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
27441 Reimplementation of the support for abstract interface types in order
27442 to leave the code more clear and easy to maintain.
27443
27444 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
27445 abstract interface types in order to leave the code clearer and easier
27446 to maintain.
27447
27448 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
27449 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
27450 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
27451 appropriate entry of the secondary dispatch table.
27452 (Make_DT): Add code to inherit the secondary dispatch tables of
27453 the ancestors.
27454
27455 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
27456 implementing both functionalities by means of a common routine, each
27457 routine has its own code.
27458
27459 2005-07-07 Javier Miranda <miranda@adacore.com>
27460
27461 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
27462
27463 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
27464 types:
27465 --
27466 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27467 --
27468
27469 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
27470 use of tag incomplete types.
27471
27472 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
27473 give support to tagged incomplete types.
27474
27475 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
27476 expression is a discriminant reference and its type is private, as can
27477 happen within a stream operation for a mutable record, use the full
27478 view of the type to resolve the case alternatives.
27479 (Analyze_Assignment): Check wrong dereference of incomplete types.
27480
27481 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
27482 types.
27483
27484 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
27485 incomplete types.
27486
27487 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
27488 N_Incomplete_Type_Declaration nodes.
27489
27490 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
27491 Tag_Present to give support to tagged incomplete types:
27492 --
27493 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27494 --
27495
27496 2005-07-07 Olivier Hainque <hainque@adacore.com>
27497
27498 PR ada/22301
27499 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
27500 definitions for the Unwind wrappers in the compiler case.
27501
27502 2005-07-07 Ed Schonberg <schonberg@adacore.com>
27503 Javier Miranda <miranda@adacore.com>
27504
27505 * par-load.adb (Load): If a child unit is loaded through a limited_with
27506 clause, each parent must be loaded as a limited unit as well.
27507
27508 * sem_ch10.adb (Previous_Withed_Unit): Better name for
27509 Check_Withed_Unit. Return true if there is a previous with_clause for
27510 this unit, whether limited or not.
27511 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
27512 the current unit.
27513 (Is_Visible_Through_Renamings): New local subprogram of install_limited
27514 _withed_unit that checks if some package installed through normal with
27515 clauses has a renaming declaration of package whose limited-view is
27516 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
27517 of the current Draft document for Ada 2005.
27518 (Analyze_Context): Complete the list of compilation units that
27519 are allowed to contain limited-with clauses. It also contains
27520 checks that were previously done by Install_Limited_Context_Clauses.
27521 This makes the code more clear and easy to maintain.
27522 (Expand_Limited_With_Clause) It is now a local subprogram of
27523 Install_Limited_Context_Clauses, and contains the code that adds
27524 the implicit limited-with clauses for parents of child units.
27525 This functionality was prevously done by Analyze_Context.
27526
27527 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
27528 incomplete type.
27529
27530 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
27531 been erroneously named in a limited-with clause of its own context.
27532 In this case the error has been previously notified by Analyze_Context.
27533
27534 2005-07-07 Ed Schonberg <schonberg@adacore.com>
27535
27536 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
27537 generic package that contains local declarations with the same name.
27538 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
27539
27540 2005-07-07 Bernard Banner <banner@adacore.com>
27541
27542 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
27543 ia64 platform only on platforms that you the GCC unwind library
27544 rather than the system unwind library.
27545
27546 2005-07-07 Thomas Quinot <quinot@adacore.com>
27547
27548 * expect.c: Minor reformatting
27549
27550 2005-07-07 Sergey Rybin <rybin@adacore.com>
27551
27552 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
27553 --no-separate-is
27554
27555 * gnat_ugn.texi: Add description for new gnatpp option
27556 (--no-separate-is)
27557
27558 2005-07-04 Thomas Quinot <quinot@adacore.com>
27559
27560 * g-expect-vms.adb, g-expect.ads, g-expect.adb
27561 (Get_Command_Output): New subprogram to launch a process and get its
27562 standard output as a string.
27563
27564 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
27565 Olivier Hainque <hainque@adacore.com>
27566
27567 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
27568 fetch a code-range descriptor associated with the machine state. On
27569 failure set the machine state's PC to 0; on success, pass the
27570 descriptor to exc_virtual_unwind.
27571
27572 * init.c (Tru64 section): New function __gnat_set_code_loc.
27573
27574 2005-07-04 Vincent Celier <celier@adacore.com>
27575
27576 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27577 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27578 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
27579 Remove all auto-initialization code, as this is now done through the
27580 constructor mechanism.
27581
27582 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
27583 __gnat_sals_init_using_constructors): New functions.
27584
27585 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
27586 Linker_Constructor and Linker_Destructor when switch -a is used.
27587
27588 * bindusg.adb: Add line for new switch -a
27589
27590 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
27591 (Gnatbind): When switch -a is used, check if it is allowed
27592
27593 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
27594
27595 2005-07-04 Joel Brobecker <brobecker@adacore.com>
27596
27597 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
27598 This prevents us from hitting a limitation during the debug info
27599 generation when using stabs.
27600 (Prims_Ptr): Likewise.
27601
27602 2005-07-04 Gary Dismukes <dismukes@adacore.com>
27603 Ed Schonberg <schonberg@adacore.com>
27604 Javier Miranda <miranda@adacore.com>
27605
27606 * checks.adb (Null_Exclusion_Static_Checks): In the case of
27607 N_Object_Declaration, only perform the checks if the Object_Definition
27608 is not an Access_Definition.
27609
27610 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
27611 where the parent of an the access definition is an N_Object_Declaration
27612 when determining the Associated_Node_For_Itype and scope of an
27613 anonymous access-to-subprogram type.
27614
27615 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
27616 Corresponding_Spec on the body created for a null procedure. Add ???
27617 comment. Remove New_Copy_Tree call on body argument to
27618 Set_Body_To_Inline.
27619
27620 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
27621 discriminants, use the type of the actual as well, because the
27622 discriminants may be read by the called subprogram.
27623
27624 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
27625 access type we do not need to handle non-limited views.
27626 (Build_Derived_Record_Type): Additional check to check that in case of
27627 private types, interfaces are only allowed in private extensions.
27628
27629 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
27630
27631 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
27632 <Pragma_Linker_Destructor>: Likewise.
27633
27634 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
27635 Pragma_Linker_Destructor.
27636
27637 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
27638 ATTR_LINK_DESTRUCTOR.
27639 (static_ctors, static_dtors): New variables.
27640
27641 * misc.c (gnat_expand_body): Output current function as constructor
27642 and destructor if requested.
27643
27644 * par-prag.adb: Add processing for pragma Linker_Constructor and
27645 Linker_Destructor.
27646
27647 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
27648 extracted from Check_Interrupt_Or_Attach_Handler.
27649 (Check_Interrupt_Or_Attach_Handler): Invoke it.
27650 Implement pragma Linker_Constructor and Linker_Destructor with the
27651 help of Find_Unique_Parameterless_Procedure.
27652 Replace Name_Alias with Name_Target for pragma Linker_Alias.
27653
27654 * snames.h, snames.ads, snames.adb:
27655 Add Name_Linker_Constructor and Name_Linker_Destructor.
27656 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
27657 * snames.adb: Remove Name_Alias.
27658
27659 * trans.c: Include cgraph.h.
27660 (build_global_cdtor): New function.
27661 (Compilation_Unit_to_gnu): Build global constructor and destructor if
27662 needed.
27663 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
27664 of objects too.
27665 (addressable_p) <COMPONENT_REF>: Unconditionally test
27666 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
27667
27668 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
27669 variable if it is external.
27670
27671 (static_ctors, static_dtors): New global variables.
27672 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
27673 <ATTR_LINK_DESTRUCTOR>: Likewise.
27674 (end_subprog_body): Chain function as constructor and destructor
27675 if requested.
27676
27677 * exp_util.adb (Force_Evaluation): Unconditionally invoke
27678 Remove_Side_Effects with Variable_Ref set to true.
27679 (Remove_Side_Effects): Handle scalar types first. Use a renaming
27680 for non-scalar types even if Variable_Ref is true and for class-wide
27681 expressions.
27682
27683 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27684
27685 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
27686 to prevent spurious warnings.
27687
27688 2005-07-04 Thomas Quinot <quinot@adacore.com>
27689
27690 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
27691 Itypes. Itypes are really unexpected there.
27692 (Build_TypeCode_Function): Generalise special processing for Itypes to
27693 handle the case of numeric implicit base types as well as enumerated
27694 ones.
27695
27696 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27697
27698 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
27699 controlled, indicate the expected type of the dereference that is
27700 created for the call to Deep_Finalize, to prevent spurious errors when
27701 the designated type is private and completed with a derivation from
27702 another private type.
27703
27704 2005-07-04 Vincent Celier <celier@adacore.com>
27705
27706 * make.adb (Change_To_Object_Directory): When unable to change the
27707 current dir to the object directory, output the full path of the
27708 directory.
27709
27710 2005-07-04 Matthew Gingell <gingell@adacore.com>
27711
27712 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
27713
27714 * indepsw-linux.adb: Replace by...
27715
27716 * indepsw-gnu.adb: ...this new file
27717
27718 2005-07-04 Vincent Celier <celier@adacore.com>
27719
27720 * mlib-prj.adb (Auto_Initialize): New constant String
27721 (SALs_Use_Constructors): New Boolean function
27722 (Build_Library): Call gnatbind with Auto_Initialize switch when
27723 SALs_Use_Constructors returns True.
27724
27725 * mlib-tgt.ads: Minor reformatting
27726
27727 * mlib-utl.ads: Minor reformatting
27728
27729 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
27730
27731 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27732
27733 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
27734 single protected declarations can have an interface list.
27735 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
27736 with seriously malformed entry declarations, and lead to compilation
27737 abandoned messages.
27738
27739 2005-07-04 Javier Miranda <miranda@adacore.com>
27740
27741 * par-load.adb: Load the context items in two rounds.
27742
27743 2005-07-04 Robert Dewar <dewar@adacore.com>
27744
27745 * scng.adb: Do not consider Mod used as an attribute to be a keyword
27746
27747 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27748 Javier Miranda <miranda@adacore.com>
27749
27750 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
27751 type extension needs a limited view.
27752 Remove previous restriction on private types available through the
27753 limited-view (only tagged private types were previously allowed).
27754 (Install_Withed_Unit): In the code that implements the
27755 legality rule given in AI-377, exclude a child unit with the name
27756 Standard, because it is a homonym of the Standard environment package.
27757
27758 2005-07-04 Thomas Quinot <quinot@adacore.com>
27759
27760 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
27761 overloaded function call, carry interpretations from the original tree
27762 to the copy.
27763
27764 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27765
27766 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
27767 types check whether some designated type is a limited view, and use
27768 the non-limited view if available.
27769
27770 2005-07-04 Gary Dismukes <dismukes@adacore.com>
27771
27772 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
27773 constraint of full view of a private view T1 if present, when T2 is a
27774 discriminated full view.
27775
27776 2005-07-04 Thomas Quinot <quinot@adacore.com>
27777
27778 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
27779 actual that is a view conversion of a bit packed array reference.
27780
27781 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27782
27783 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
27784 present before checking whether an interface type covers a synchronized
27785 type.
27786
27787 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27788
27789 * sem_util.adb (Is_Object_Reference): An indexed or selected component
27790 whose prefix is an implicit dereference is an object reference. Removes
27791 spurious errors when compiling with -gnatc.
27792
27793 2005-07-04 Robert Dewar <dewar@adacore.com>
27794
27795 PR ada/22039
27796 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
27797
27798 2005-07-04 Matthew Gingell <gingell@adacore.com>
27799
27800 * tracebak.c: Enable tracebacks on ia64 platforms
27801
27802 2005-07-04 Vincent Celier <celier@adacore.com>
27803
27804 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
27805 the GNAT BIND command, as gnatbind accepts multiples ALI files with
27806 the -L or -n switches.
27807
27808 2005-07-04 Vincent Celier <celier@adacore.com>
27809
27810 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
27811 correctly computed and the main project data is not modified while
27812 doing so.
27813 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
27814 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
27815 c++linker as this does not work on some platforms.
27816
27817 2005-07-04 Matthew Heaney <heaney@adacore.com>
27818
27819 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
27820 was changed.
27821 * a-coinve.adb: Perform constraint checks explicitly.
27822
27823 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27824 Thomas Quinot <quinot@adacore.com>
27825
27826 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
27827 new target gen-soccon.
27828
27829 2005-07-04 Robert Dewar <dewar@adacore.com>
27830
27831 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
27832
27833 2005-07-04 Thomas Quinot <quinot@adacore.com>
27834
27835 * g-socket.ads (Check_Selector): Minor rewording of comment.
27836
27837 2005-07-04 Vincent Celier <celier@adacore.com>
27838
27839 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
27840
27841 2005-07-04 Thomas Quinot <quinot@adacore.com>
27842
27843 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
27844
27845 2005-07-04 Sergey Rybin <rybin@adacore.com>
27846
27847 * gnat_ugn.texi: Add description of --eol gnatpp option
27848
27849 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
27850 Thomas Quinot <quinot@adacore.com>
27851
27852 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
27853 if the user wants all calls of a subprogram to be flagged,
27854 independently of whether they are made from within the same unit or
27855 another unit.
27856 Mention restriction for pragma Linker_Alias on some platforms.
27857 Document pragma Linker_Constructor and Linker_Destructor.
27858 Rewrite documentation of Weak_External, Linker_Section and
27859 Linker_Alias pragmas.
27860
27861 2005-07-04 Arnaud Charlet <charlet@adacore.com>
27862
27863 * s-stausa.ads, s-stausa.adb: New files.
27864
27865 2005-06-30 Kelley Cook
27866
27867 * all files: Update FSF address in copyright headers.
27868 * gen-soccon.co (main): Output new FSF address in generated files.
27869
27870 2005-06-28 Paul Brook <paul@codesourcery.com>
27871
27872 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
27873
27874 2005-06-14 Olivier Hainque <hainque@adacore.com>
27875 Eric Botcazou <ebotcazou@adacore.com>
27876
27877 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
27878 exc_unwind, now that we are generating proper .debug_frame output for
27879 that target.
27880
27881 * tracebak.c: Remove the mips-irix section, as we are now using the
27882 s-mastop based unwinder again.
27883 Under SPARC/Solaris, take into account the stack bias to compute the
27884 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
27885 ABI.
27886
27887 2005-06-14 Doug Rupp <rupp@adacore.com>
27888
27889 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
27890
27891 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
27892
27893 2005-06-14 Pascal Obry <obry@adacore.com>
27894
27895 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
27896 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
27897 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
27898 package name).
27899
27900 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
27901 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
27902 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
27903 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
27904 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
27905 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
27906 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
27907 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
27908 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
27909 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
27910 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
27911 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
27912 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
27913 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
27914 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
27915 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
27916 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
27917 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
27918 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
27919 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
27920 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
27921 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
27922 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
27923 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
27924 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
27925 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
27926 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
27927 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
27928 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
27929 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
27930 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
27931 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
27932 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
27933 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
27934 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
27935 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
27936 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
27937 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
27938 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
27939 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
27940 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
27941 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
27942 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
27943 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
27944 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
27945 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
27946 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
27947 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
27948 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
27949 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
27950 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
27951 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
27952 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
27953 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
27954 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
27955 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
27956 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
27957 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
27958 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
27959 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
27960 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
27961 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
27962 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
27963 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
27964 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
27965 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
27966 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
27967 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
27968 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
27969 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
27970 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
27971 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
27972 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
27973 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
27974 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
27975 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
27976 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
27977 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
27978 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
27979 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
27980 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
27981 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
27982 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
27983 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
27984 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
27985 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
27986 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
27987 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
27988 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
27989 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
27990 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
27991 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
27992 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
27993 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
27994 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
27995 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
27996 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
27997 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
27998 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
27999 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
28000 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
28001 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
28002 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
28003 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
28004 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
28005 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
28006 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
28007 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
28008 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
28009 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
28010 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
28011 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
28012 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28013 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
28014 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
28015 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
28016 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
28017 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
28018 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
28019 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
28020 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
28021 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
28022 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
28023 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
28024 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
28025 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
28026 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
28027 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
28028 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
28029 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
28030 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
28031 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
28032 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
28033
28034 2005-06-14 Jose Ruiz <ruiz@adacore.com>
28035 Arnaud Charlet <charlet@adacore.com>
28036
28037 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
28038 longer protected objects. They have been replaced by lower-level
28039 suspension objects made up by a mutex and a condition variable (or
28040 their equivalent given a particular OS) plus some internal data to
28041 reflect the state of the suspension object.
28042 (Initialize, Finalize): Add this initialization procedure for
28043 Suspension_Object, which is a controlled type.
28044 (Finalize): Add the finalization procedure for Suspension_Object,
28045 which is a controlled type.
28046
28047 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
28048 Ada.Synchronous_Task_Control because there is no longer a need for a
28049 VxWorks specific version of this package. Target dependencies
28050 has been moved to System.Task_Primitives.Operations.
28051
28052 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
28053 longer needed.
28054 (InitializeCriticalSection, EnterCriticalSection,
28055 LeaveCriticalSection, DeleteCriticalSection): Replace the type
28056 pCriticalSection by an anonymous access type so that we avoid problems
28057 of accessibility to local objects.
28058
28059 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
28060 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
28061 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
28062 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
28063 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
28064 set the environment task mask here.
28065 (Current_State): Add this function that returns the state of the
28066 suspension object.
28067 (Set_False): Add this procedure that sets the state of the suspension
28068 object to False.
28069 (Set_True): Add this procedure that sets the state of the suspension
28070 object to True, releasing the task that was suspended, if any.
28071 (Suspend_Until_True): Add this procedure that blocks the calling task
28072 until the state of the object is True. Program_Error is raised if
28073 another task is already waiting on that suspension object.
28074 (Initialize): Add this procedure for initializing the suspension
28075 object. It initializes the mutex and the condition variable which are
28076 used for synchronization and queuing, and it sets the internal state
28077 to False.
28078 (Finalize): Add this procedure for finalizing the suspension object,
28079 destroying the mutex and the condition variable.
28080
28081 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
28082 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
28083 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
28084 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
28085 which provides a low-level abstraction (using operating system
28086 primitives) for Ada.Synchronous_Task_Control.
28087 This object is made up by a mutex (for ensuring mutual exclusion), a
28088 condition variable (for queuing threads until the condition is
28089 signaled), a Boolean (State) indicating whether the object is open,
28090 and a Boolean (Waiting) reflecting whether there is a task already
28091 suspended on this object.
28092
28093 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
28094 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
28095 s-intman-vms.ads, s-intman-mingw.adb,
28096 (Initialize_Interrupts): Removed, no longer used.
28097
28098 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
28099 (Setup_Interrupt_Mask): New procedure.
28100
28101 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
28102
28103 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
28104
28105 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
28106 this is no longer done in the body of s-taprop
28107 (Server_Task): Explicitely test for Pending_Action in case
28108 System.Parameters.No_Abort is True.
28109
28110 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
28111 is no longer done in the body of s-taprop
28112
28113 2005-06-14 Robert Dewar <dewar@adacore.com>
28114
28115 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
28116 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
28117 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28118 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
28119 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
28120 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
28121 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
28122 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
28123 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
28124 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
28125 system-linux-hppa.ads, system-vms_64.ads,
28126 system-vxworks-alpha.ads: Minor comment update for
28127 AI-362 (unit is Pure).
28128
28129 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
28130 Add pragma Pure_05 for AI-362
28131 Make remaining conversion functions obsolescent in Ada 95
28132
28133 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28134 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
28135 Add entries for a-wichun and a-zchuni
28136 Add a-widcha a-zchara for AI-395
28137 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
28138
28139 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28140 Add entries for a-wichun.o and a-zchuni.o
28141 Entries for a-widcha.o and a-zchara.o
28142 Add entry for a-chacon.o
28143
28144 * a-ztenau.adb: Add with of Ada.Characters.Conversions
28145
28146 * a-chacon.ads, a-chacon.adb: New files.
28147
28148 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
28149 categorization violations.
28150
28151 * a-strmap.ads: Add pragma Pure_05 for AI-362
28152 * a-strmap.ads: Add note on implicit categorization for AI-362
28153
28154 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
28155
28156 * par-prag.adb: Dummy entry for pragma Persistent_BSS
28157 Set Ada_Version_Explicit, for implementation of AI-362
28158 Add processing for pragma Pure_05 and Preelaborate_05
28159 Add entry for Assertion_Policy pragma
28160
28161 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
28162 when needed for proper processing of categorization stuff
28163
28164 * sem_cat.adb:
28165 For several cases, make errors in preealborate units warnings,
28166 instead of errors, if GNAT_Mode is set. For AI-362.
28167
28168 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
28169 preelaborate unit is now warning if in GNAT mode
28170
28171 * s-stoele.ads: Document AI-362 for pragma preelaborate
28172
28173 2005-06-14 Doug Rupp <rupp@adacore.com>
28174
28175 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
28176 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
28177 Default_Exception_Msg_Max_Length: new parameter.
28178
28179 * a-except.ads: (Exception_Msg_Max_Length): Set to
28180 System.Parameters.Default_Exception_Msg_Max_Length
28181 Add pragma Preelaborate_05 for AI-362
28182 Add warnings off to allow categorization violations for AI-362
28183
28184 2005-06-14 Vincent Celier <celier@adacore.com>
28185
28186 * gnatsym.adb: Adapt to modification of package Symbols: procedure
28187 Process is now in package Processing.
28188
28189 * symbols.ads, symbols.adb:
28190 (Processing): New package, containing procedure Process
28191
28192 * symbols-vms-alpha.adb:
28193 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
28194
28195 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
28196 symbols-processing-vms-ia64.adb: New files.
28197
28198 2005-06-14 Pascal Obry <obry@adacore.com>
28199
28200 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
28201 implementation. This new version generates the proper DllMain routine
28202 to initialize the SAL. The DllMain is generated in Ada and compiled
28203 before being added as option to the library build command.
28204
28205 2005-06-14 Doug Rupp <rupp@adacore.com>
28206 Pascal Obry <obry@adacore.com>
28207
28208 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
28209 call to decc$translate_vms.
28210 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
28211 need to remove those quotes before catenating the filename.
28212 (__gnat_locate_exec_on_path): improvements to the Win32 section:
28213 * avoid allocating the memory twice for better efficiency;
28214 * allocate 32K buffer for environment expansion as suggested by MSDN;
28215 * prepend ".;" to the path so that current directory is searched too.
28216
28217 2005-06-14 Robert Dewar <dewar@adacore.com>
28218
28219 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
28220 instead of raising CE (AI-241)
28221 Add warnings off to allow categorization violations for AI-362
28222
28223 2005-06-14 Robert Dewar <dewar@adacore.com>
28224
28225 * ali-util.adb, gnatbind.adb: Remove references to
28226 Force_RM_Elaboration_Order.
28227
28228 * switch-b.adb: Remove recognition of -f switch
28229
28230 2005-06-14 Pascal Obry <obry@adacore.com>
28231
28232 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
28233 implementation which is slightly more efficient.
28234
28235 2005-06-14 Gary Dismukes <dismukes@adacore.com>
28236 Javier Miranda <miranda@adacore.com>
28237 Ed Schonberg <schonberg@adacore.com>
28238 Hristian Kirtchev <kirtchev@adacore.com>
28239
28240 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
28241 allocator's designated type is a class-wide type, and compiling for
28242 Ada 2005, emit a run-time check that the accessibility level of the
28243 type given in the allocator's expression is not deeper than the level
28244 of the allocator's access type.
28245
28246 (Tagged_Membership): Modified to gives support to abstract interface
28247 types.
28248
28249 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
28250 Access_Level.
28251 (Descendant_Tag): New predefined function
28252 (Is_Descendant_At_Same_Level): New predefined function
28253 (Get_Access_Level): New private function
28254 (Set_Access_Level): New private procedure
28255 (IW_Membership): New function. Given the tag of an object and the tag
28256 associated with an interface, evaluate if the object implements the
28257 interface.
28258 (Register_Interface_Tag): New procedure used to initialize the table of
28259 interfaces used by the IW_Membership function.
28260 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
28261 of the dispatch table.
28262 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
28263 table of interfaces of the parent.
28264 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
28265 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
28266 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
28267 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
28268 Ada 2005 semantics for the new predefined function.
28269
28270 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
28271 call to Descendant_Tag rather than Internal_Tag.
28272 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
28273 the accessibility level of the attribute's Item parameter is not deeper
28274 than the level of the attribute's prefix type. Tag_Error is raised if
28275 the check fails. The check is only emitted for Ada_05.
28276 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
28277 requested stream attribute, use it.
28278 (Expand_N_Attribute_Reference): If the designated type is an interface
28279 then rewrite the referenced object as a conversion to force the
28280 displacement of the pointer to the secondary dispatch table.
28281 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
28282 is a dereference of an object with a constrained partial view.
28283
28284 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
28285 type is a class-wide type, emit a run-time check that the accessibility
28286 level of the returned object is not deeper than the level of the
28287 function's master (only when compiling for Ada 2005).
28288
28289 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
28290 Action_Nb_Arg): Add entries for new Get_Access_Level and
28291 Set_Access_Level routines in these tables.
28292 (Make_DT): Generate a call to set the accessibility level of the
28293 tagged type in its TSD.
28294 (Make_DT): Code cleanup. The functionality of generating all the
28295 secondary dispatch tables has been moved to freeze_record_type.
28296 (Make_Abstract_Interface_DT): Minor code cleanup.
28297 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
28298 this subprogram implements a new algorithm that provides the
28299 same functionality and it is more clear in case of primitives
28300 associated with abstract interfaces.
28301 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
28302 clean up, the functionality of this subprogram is now provided
28303 by Set_All_DT_Position.
28304 (Write_DT): New subprogram: a debugging procedure designed to be called
28305 within gdb to display the dispatch tables associated with a tagged
28306 type.
28307 (Collect_All_Interfaces): New subprogram that collects the whole list
28308 of interfaces that are directly or indirectly implemented by a tagged
28309 type.
28310 (Default_Prim_Op_Position): New subprogram that returns the fixed
28311 position in the dispatch table of the default primitive operations.
28312 (Expand_Interface_Actuals): New subprogram to generate code that
28313 displaces all the actuals corresponding to class-wide interfaces to
28314 reference the interface tag of the actual object.
28315 (Expand_Interface_Conversion): New subprogram. Reference the base of
28316 the object to give access to the interface tag associated with the
28317 secondary dispatch table.
28318 (Expand_Interface_Thunk): New subprogram that generates the code of the
28319 thunk. This is required for compatibility with the C+ ABI.
28320 (Make_Abstract_Interface_DT): New subprogram that generate the
28321 declarations for the secondary dispatch tables associated with an
28322 abstract interface.
28323 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
28324 attribute for each primitive operation covering interface subprograms
28325 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
28326 These subprograms were upgraded to give support to abstract interfaces
28327
28328 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
28329 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
28330 RE_Set_Access_Level.
28331 (RE_Unit_Table): Add entries for new Ada.Tags operations.
28332 Add support to call the followig new run-time subprograms:
28333 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
28334
28335 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
28336 match its full declaration when both have an access definition with
28337 statically matching designated subtypes.
28338 (Analyze_Component_Declaration): Delete commented out code that was
28339 incorrectly setting the scope of an anonymous access component's type.
28340 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
28341 an access discriminant when the containing type is nonlimited.
28342 (Make_Incomplete_Type_Declaration): Create an incomplete type
28343 declaration for a record type that includes self-referential access
28344 components.
28345 (Check_Anonymous_Access_Types): Before full analysis of a record type
28346 declaration, create anonymous access types for each self-referential
28347 access component.
28348 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
28349 an access component in this context is a Local_Anonymous_Access, for
28350 proper accessibility checks.
28351 (Access_Definition): Set properly the scope of the anonymous access type
28352 created for a stand-alone access object.
28353 (Find_Type_Of_Object): An object declaration may be given with an access
28354 definition.
28355 (Complete_Subprograms_Derivation): New subprogram used to complete
28356 type derivation of private tagged types implementing interfaces.
28357 In this case some interface primitives may have been overriden
28358 with the partial-view and, instead of re-calculating them, they
28359 are included in the list of primitive operations of the full-view.
28360 (Build_Derived_Record_Type): Modified to give support to private
28361 types implemening interfaces.
28362 (Access_Definition): Reject ALL on anonymous access types.
28363 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
28364 type derivation to occur at a deeper accessibility level than the
28365 parent type.
28366 For the case of derivation within a generic body however, disallow the
28367 derivation if the derived type has an ancestor that is a formal type
28368 declared in the formal part of an enclosing generic.
28369 (Analyze_Object_Declaration): For protected objects, remove the check
28370 that they cannot contain interrupt handlers if not declared at library
28371 level.
28372 (Add_Interface_Tag_Components): New subprogram to add the tag components
28373 corresponding to all the abstract interface types implemented by a
28374 record type or a derived record type.
28375 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28376 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28377 Process_Full_View, Record_Type_Declaration): Modified to give
28378 support to abstract interface types
28379 (Collect_Interfaces): New subprogram that collects the list of
28380 interfaces that are not already implemented by the ancestors
28381 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
28382 when partial view has no discriminants and full view has defaults.
28383 (Constrain_Access): Reject a constraint on a general access type
28384 if the discriminants of the designated type have defaults.
28385 (Access_Subprogram_Declaration): Associate the Itype node with the inner
28386 full-type declaration or subprogram spec. This is required to handle
28387 nested anonymous declarations.
28388 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28389 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28390 Process_Full_View, Record_Type_Declaration): Modified to give
28391 support to abstract interface types
28392 (Derive_Subprograms): Addition of a new formal to indicate if
28393 we are in the case of an abstact-interface derivation
28394 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
28395 to the specification because it is requied to analyze all the
28396 identifiers found in a list of interfaces
28397
28398 * debug.adb: Complete documentation of flag "-gnatdZ"
28399
28400 * exp_ch3.adb: Implement config version of persistent_bss pragma
28401 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
28402 testing for TSS presence to properly enforce visibility rules.
28403 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
28404 Make_Abstract_Interfaces_DT to generate the secondary tables
28405 associated with abstract interfaces.
28406 (Build_Init_Procedure): Modified to initialize all the tags
28407 corresponding.
28408 (Component_Needs_Simple_Initialization): Similar to other tags,
28409 interface tags do not need initialization.
28410 (Freeze_Record_Type): Modified to give support to abstract interface
28411 types.
28412 (Expand_N_Object_Declaration): Do not generate an initialization for
28413 a scalar temporary marked as internal.
28414
28415 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
28416 in-out parameter that is a component in an initialization procedure,
28417 whose constraint might depend on discriminants, and that may be
28418 misaligned because of packing or representation clauses.
28419 (Is_Legal_Copy): New predicate to determine whether a possibly
28420 misaligned in-out actual can actually be passed by copy/return. This
28421 is an error in case the type is by_reference, and a warning if this is
28422 the consequence of a DEC import pragma on the subprogram.
28423 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
28424 interface types
28425 (Expand_Inlined_Call): Mark temporary generated for the return value as
28426 internal, so that no useless scalar normalization is generated for it.
28427 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
28428 null procedure can always be inlined.
28429 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
28430 procedure, generate an explicit empty body for it.
28431
28432 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
28433 Given a type implementing an interface, returns the corresponding
28434 access_disp_table value.
28435 (Find_Interface_Tag): New subprogram. Given a type implementing an
28436 interface, returns the record component containing the tag of the
28437 interface.
28438 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
28439 previous ones that return the corresponding tag and access_disp_table
28440 entities.
28441 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
28442 is a predefined primitive operation.
28443 (Expand_Subtype_From_Expr): If the expression is a selected component
28444 within an initialization procedure, compute its actual subtype, because
28445 the component may depend on the discriminants of the enclosing record.
28446
28447 * i-cpp.ads, i-cpp.adb:
28448 This package has been left available for compatibility with previous
28449 versions of the frontend. As part of the new layout this is now a
28450 dummy package that uses declarations available at a-tags.ads
28451
28452 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
28453 "constant access" and "aliased [constant] access" when not compiling
28454 with -gnat05.
28455 Suppress Ada 2005 keyword warning if -gnatwY used
28456 (P_Identifier_Declarations): Add support for object declarations with
28457 access definitions.
28458 (Private_Extension_Declaration): Complete the documentation
28459 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
28460 attribute in case of private extension declaration
28461 (P_Type_Declaration): Mark as "abstract" the type declarations
28462 corresponding with protected, synchronized and task interfaces
28463 (P_Declarative_Items): "not" and "overriding" are overriding indicators
28464 for a subprogram or instance declaration.
28465
28466 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
28467 instantiation that is a dispatching operation has controlling access
28468 parameters that are null excluding.
28469 Save and restore Ada_Version_Explicit, for implementation of AI-362
28470 (Validate_Derived_Type_Instance): Add check for abstract interface
28471 types.
28472 (Analyze_Formal_Package): Establish Instantiation source for the copy of
28473 the generic that is created to represent the formal package.
28474 (Analyze_Package_Instantiation): Instantiate body immediately if the
28475 package is a predefined unit that contains inlined subprograms, and
28476 we are compiling for a Configurable_Run_Time.
28477 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
28478 If the program has a null default, generate an empty body for it.
28479
28480 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
28481 error message condition, null procedures are correctly detected now.
28482 (New_Overloaded_Entity): Bypass trivial overriding indicator check
28483 for subprograms in the context of protected types. Instead, the
28484 indicator is examined in Sem_Ch9 while analysing the subprogram
28485 declaration.
28486 (Check_Overriding_Indicator): Check consistency of overriding indicator
28487 on subprogram stubs as well.
28488 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
28489 the library level.
28490 (Analize_Subprogram_Specification): When analyzing a subprogram in which
28491 the type of the first formal is a concurrent type, replace this type
28492 by the corresponding record type.
28493 (Analyze_Subprogram_Body): Undo the previous work.
28494 (Analyze_Procedure_Call): If the call has the form Object.Op, the
28495 analysis of the prefix ends up analyzing the call itself, after which
28496 we are done.
28497 (Has_Interface_Formals): New subprogram subsidiary to analyze
28498 subprogram_specification that returns true if some non
28499 class-wide interface subprogram is found
28500 (New_Overloaded_Entity): Modified to give support to abstract
28501 interface types
28502 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
28503 access to subprograms must be recursive.
28504 (Is_Unchecked_Conversion): Improve the test that recognizes
28505 instantiations of Unchecked_Conversion, and allows them in bodies that
28506 are to be inlined by the front-end. When the body comes from an
28507 instantiation, a reference to Unchecked_Conversion will be an
28508 Expanded_Name, even though the body has not been analyzed yet.
28509 Replace Is_Overriding and Not_Overriding in subprogram_indication with
28510 Must_Override and Must_Not_Override, to better express intent of AI.
28511 (Analyze_Subprogram_Body): If an overriding indicator is given, check
28512 that it is consistent with the overrinding status of the subprogram
28513 at this point.
28514 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
28515 always inlined.
28516 If the subprogram is a null procedure, indicate that it does not need
28517 a completion.
28518
28519 * sem_disp.adb (Check_Controlling_Type): Give support to entities
28520 available through limited-with clauses.
28521 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
28522 allowed as the last primitive of a tagged type if it has no previous
28523 spec.
28524 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
28525 to give support to abstract interface types
28526
28527 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
28528 in the case where the target type is an anonymous access type of an
28529 object or component (that is, when Is_Local_Anonymous_Access is true).
28530 Prevent the special checks for conversions of access discriminants in
28531 the case where the discriminant belongs to a nonlimited type, since
28532 such discriminants have their accessibility level defined in the same
28533 way as a normal component of an anonymous access type.
28534 (Resolve_Allocator): When an allocator's designated type is a class-wide
28535 type, check that the accessibility level of type given in the
28536 allocator's expression or subtype indication is not statically deeper
28537 than the level of the allocator's access type.
28538 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
28539 name in a discriminant constraint of a record component.
28540 (Resolve_Explicit_Dereference): Do not check whether the type is
28541 incomplete when the dereference is a use of an access discriminant in
28542 an initialization procedure.
28543 (Resolve_Type_Conversion): Handle conversions to abstract interface
28544 types.
28545 (Valid_Tagged_Conversion): The conversion of a tagged type to an
28546 abstract interface type is always valid.
28547 (Valid_Conversion): Modified to give support to abstract interface types
28548 (Resolve_Actuals): Enable full error reporting on view conversions
28549 between unrelated by_reference array types.
28550 The rule for view conversions of arrays with aliased components is
28551 weakened in Ada 2005.
28552 Call to obsolescent subprogram is now considered to be a violation of
28553 pragma Restrictions (No_Obsolescent_Features).
28554 (Check_Direct_Boolean_Operator): If the boolean operation has been
28555 constant-folded, there is nothing to check.
28556 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
28557 check on possible violation of restriction No_Direct_Boolean_Operators
28558 until after expansion of operands, to prevent spurious errors when
28559 operation is constant-folded.
28560
28561 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
28562 Has_Compatible_Type): Modified to give support to abstract interface
28563 types.
28564 (Interface_Present_In_Ancestor): New function to theck if some ancestor
28565 of a given type implements a given interface
28566
28567 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
28568 prefix is a parameterless function that returns an access_to_procedure.
28569 (Transform_Object_Operation): Handle properly function calls of the
28570 form Obj.Op (X), which prior to analysis appear as indexed components.
28571 (Analyze_One_Call): Complete the error notification to help new Ada
28572 2005 users.
28573 (Analyze_Allocator): For an allocator without an initial value, where
28574 the designated type has a constrained partial view, a discriminant
28575 constraint is illegal.
28576
28577 2005-06-14 Robert Dewar <dewar@adacore.com>
28578
28579 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
28580 do with treatment of Set_Col when positioned at end of line character.
28581
28582 2005-06-14 Robert Dewar <dewar@adacore.com>
28583
28584 * atree.adb: (Elist*): Protect against uninitialized field
28585
28586 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28587
28588 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
28589 for an attribute reference that returns an access type.
28590 (Apply_Discriminant_Check): No need for check if (designated) type has
28591 constrained partial view.
28592
28593 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
28594 both bound checks, rather than a conjunction.
28595 (Insert_Valid_Check): If the expression is an actual that is an indexed
28596 component of a bit-packed array, force expansion of the packed element
28597 reference, because it is specifically inhibited elsewhere.
28598
28599 2005-06-14 Vincent Celier <celier@adacore.com>
28600
28601 * clean.adb (Clean_Project): Correctly delete executable specified as
28602 absolute path names.
28603
28604 * make.adb (Gnatmake): Allow relative executable path names with
28605 directory information even when project files are used.
28606 (Change_To_Object_Directory): Fail gracefully when unable to change
28607 current working directory to object directory of a project.
28608 (Gnatmake): Remove exception handler that could no longer be exercized
28609 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
28610 may be deallocated by Normalize_Arguments.
28611 (Collect_Arguments): Eliminate empty arguments
28612
28613 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
28614 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
28615 (Check_Project): Return False when Project is No_Project. Return True
28616 when All_Projects is True.
28617 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
28618 All_Projects to True.
28619 Minor reformatting
28620
28621 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28622 Javier Miranda <miranda@adacore.com>
28623 Thomas Quinot <quinot@adacore.com>
28624 Robert Dewar <dewar@adacore.com>
28625 Hristian Kirtchev <kirtchev@adacore.com>
28626 Gary Dismukes <dismukes@adacore.com>
28627
28628 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
28629 anonymous access types, to indicate that the accessibility level of
28630 the type is determined by that of the enclosing declaration.
28631 (Has_Persistent_BSS): New flag
28632 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
28633 of this attribute with functions.
28634 (Is_Primitive_Wrapper): Remove the barrier.
28635 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
28636 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
28637 New subprograms.
28638 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
28639 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
28640 New subprograms.
28641 (Is_Pure_Unit_Access_Type): New flag
28642 (Abstract_Interfaces): Complete the assertion to cover all usages.
28643 (Set_Is_Interface): Complete the assertion to cover all usages.
28644 (Is_Primitive_Wrapper): New attribute.
28645 (Is_Obsolescent): Now applies to all entities (though it is only set
28646 for subprograms currently)
28647 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
28648 which solves various problems concerning access subtypes.
28649 (Has_Persistent_BSS): New flag
28650 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
28651 Remove these subprograms because this attribute is currently
28652 not used.
28653 New entity flags:
28654 Has_Specified_Stream_Input (Flag190)
28655 Has_Specified_Stream_Output (Flag191)
28656 Has_Specified_Stream_Read (Flag192)
28657 Has_Specified_Stream_Write (Flag193)
28658 Present in all type and subtype entities. Set for a given view if the
28659 corresponding stream-oriented attribute has been defined by an
28660 attribute definition clause. When such a clause occurs, a TSS is set
28661 on the underlying full view; the flags are used to track visibility of
28662 the attribute definition clause for partial or incomplete views.
28663 (Is_Pure_Unit_Access_Type): New flag
28664 Clarify use of Is_Internal.
28665 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
28666 internally generated to wrap the invocation of tasks and protected
28667 types that implement interfaces.
28668 (Implementation_Base_Type): Documentation correction
28669 (Is_Obsolescent): Now applies to all entities (though it is only set
28670 for subprograms currently)
28671 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
28672 which solves various problems concerning access subtypes.
28673
28674 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
28675 for examined parameters. Identify unequal parameter list lengths as
28676 non-conformant parameters.
28677 (Overriding_Possible): Do not check for "All" qualifier in declaration
28678 of controlling access parameter, following prescription of AI-404.
28679 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
28680 that build the procedure body that wraps an entry invocation
28681 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
28682 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
28683 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
28684 give support to abstract interface types
28685
28686 * freeze.adb (Freeze_Entity): Issue error message if
28687 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
28688 type has no storage pool (Ada 2005) AI-366.
28689 Also modified to give support to abstract interface types
28690 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
28691 Inline_Always pragma.
28692
28693 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
28694 now begin an entry declaration.
28695 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
28696 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
28697 a subprogram declaration preceded by an overriding indicator.
28698 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
28699 declarations or subprogram declarations preceded by reserved words
28700 "not" or "overriding".
28701 (P_Entry_Declaration): Update comment. Parse and check overriding
28702 indicator, set semantic flags of entry declarations.
28703 (P_Task): New error message in case of private applied
28704 to a task type declaration.
28705 (P_Protected): New error message in case of private applied
28706 to a task type declaration.
28707
28708 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
28709 in which the full view of a type implementing an interface is a
28710 concurrent type.
28711 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
28712 Declare_Inherited_Private_Subprograms): If an explicit operation
28713 overrides an operation that is inherited in the private part, mark the
28714 explicit one as overriding, to enable overriding indicator checks.
28715 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
28716 full view to partial view, to simplify handling in back-end.
28717
28718 * sprint.adb: Print interface lists where needed: derived types,
28719 protected types, task types.
28720 output "is null" for null procedures. Part of implementation of
28721
28722 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
28723 relaxation of rules for access types in pure, shared passive partitions.
28724
28725 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
28726 first read discriminants into temporary objects, performing checks on
28727 the read values, then possibly performing discriminant checks on the
28728 actual (if it is constrained), and only finally reading the components
28729 into a constrained temporary object.
28730 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
28731 case of reading discriminants of a mutable record type to recognize
28732 the new form of the code generated by
28733 Build_Mutable_Record_Read_Procedure.
28734
28735 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
28736 of a simple call to Make_TSS_Name.
28737 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
28738 buffer, in order for Is_TSS to work correctly on local TSS names.
28739
28740 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
28741 Is_Local_Anonymous_Access to check legaliy of attributes in the
28742 context of access components and stand-alone access objects.
28743 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
28744 treated as available for a limited private type if there is an
28745 attribute_definition_clause that applies to its full view, but not in
28746 other cases where the attribute is available for the full view
28747 (specifically, the sole fact that the full view is non-limited does not
28748 make the attribute available for the partial view).
28749 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
28750 non-overloaded intrinsic subprogram.
28751 (Check_Stream_Attribute): Reject an attribute reference for an
28752 unavailable stream attribute even if the prefix is not a limited type
28753 (case of a 'Input attribute reference for an abstract, non-classwide
28754 type)
28755 (Stream_Attribute_Available): New function to determine whether a stream
28756 attribute is available at a place.
28757 (Check_Attribute): Use Stream_Attribute_Available instead of just
28758 testing for TSS presence on the implementation base type.
28759 (Analyze_Attribute): Modified to give support to task interfaces.
28760 (Analyze_Access_Attribute): Add error check for use of an Access (or
28761 Unrestricted_Access) attribute with a subprogram marked as
28762 Inline_Always.
28763 (Analyze_Attribute, case Attribute_Address): Add error check for use of
28764 an Address attribute with a subprogram marked as Inline_Always.
28765 Update Eval_Attribute to handle new value of Width from AI-395
28766
28767 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
28768 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
28769 Factor common code across the stream-oriented attribute circcuits into
28770 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
28771 processing is functionally identical to the previous duplicated one,
28772 except that an expression that denotes an abstract subprogram will now
28773 be rejected, as mandated by AI-195 item 5.
28774
28775 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
28776 Is_Local_Anonymous_Access to apply accessibility checks to access
28777 components and stand-alone access objects.
28778 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
28779 elsewhere.
28780 (Is_Potentially_Persistent_Type): New function
28781 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
28782 a heap-object whose type has a constrained partial view, the object is
28783 unconstrained and the component may depend on a discriminant, making its
28784 renaming illegal.
28785
28786 * sinfo.ads, sinfo.adb
28787 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
28788 (Must_Override): Flag applicable to N_Entry_Declaration.
28789 Indicate that interface_list can appear in single task and single
28790 protected declarations.
28791 Replace Is_Overriding and Not_Overriding with Must_Override and
28792 Must_Not_Override, to better express intent of AI.
28793 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
28794 of an overriding indicator in a subprogram or instance.
28795 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
28796 Add the overriding indicator [[not] overriding] construct to the
28797 following grammar productions:
28798 ENTRY_DECLARATION
28799 GENERIC_INSTANTIATION
28800 SUBPROGRAM_SPECIFICATION
28801
28802 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
28803 can start with an overriding indicator.
28804
28805 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
28806 flags accordingly on subrogram specifications or instances.
28807
28808 * sem_ch8.adb:
28809 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
28810 overriding_indicator, if present, is consistent with status of spec.
28811 Improve error message for null-excluding checks on controlling access
28812 parameters.
28813 (Check_In_Previous_With_Clause): Protect the frontend against
28814 previously reported critical errors in the context clauses.
28815 Save and restore Ada_Version_Explicit, for implementation of AI-362
28816 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
28817 operation verify that controlling formals of the renamed entity that
28818 are access parameters are explicitly non-null.
28819 (Find_Expanded_Name): Improve error message when prefix is an illegal
28820 reference to a private child unit.
28821
28822 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
28823 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
28824 Rewrite to correspond to new wide character names in AI-395
28825
28826 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
28827 default procedures.
28828
28829 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28830 Robert Dewar <dewar@adacore.com>
28831
28832 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
28833 code, not on the bodies of predefined operations, to cut down on
28834 spurious noise.
28835
28836 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28837
28838 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
28839 be expanded in place. The size computation does not require a
28840 subtraction, which would raise an exception on a compiler built with
28841 assertions when the upper bound is Integer'first.
28842 (Flatten): For an array of composite components, take into account the
28843 size of the components to determine whether it is safe to expand the
28844 array into a purely positional representation.
28845
28846 2005-06-14 Thomas Quinot <quinot@adacore.com>
28847
28848 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
28849 denoting a formal parameter into account.
28850
28851 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28852
28853 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
28854 the entry_call alternative of a conditional entry call, wrap the
28855 conditional entry call itself.
28856
28857 2005-06-14 Nicolas Setton <setton@adacore.com>
28858 Ed Schonberg <schonberg@adacore.com>
28859
28860 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
28861 the "simple_choice" member in a variant record, in accordance with the
28862 description in the package spec: the information output for a constant
28863 should be "S number", not "SS number".
28864 (Get_Encoded_Name): Return at once if not generating code. Avoids name
28865 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
28866
28867 2005-06-14 Thomas Quinot <quinot@adacore.com>
28868
28869 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
28870 RACW without any primitives, do not generate the if statement for
28871 dispatching by name in the PolyORB/DSA case, as it would be malformed
28872 (it would have an Elsif_Parts list that is not No_List, but with a
28873 length of 0).
28874
28875 2005-06-14 Robert Dewar <dewar@adacore.com>
28876
28877 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
28878
28879 2005-06-14 Jose Ruiz <ruiz@adacore.com>
28880
28881 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
28882 can determine whether pragma Suppress_Exception_Locations is in effect.
28883
28884 * utils2.c (build_call_raise): Do not pass the file name to the
28885 exception handler if pragma Suppress_Exception_Locations is in effect.
28886 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
28887
28888 2005-06-14 Emmanuel Briot <briot@adacore.com>
28889
28890 * g-debpoo.adb (Deallocate, Dereference): Improve output.
28891
28892 2005-06-14 Nicolas Roche <roche@adacore.com>
28893
28894 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
28895 to ""
28896 (Next_Level): Fix minor bug in handling of ../dir case
28897 (Read): Add dir separator to Directory name so that "" is understood as
28898 "/"
28899
28900 2005-06-14 Pascal Obry <obry@adacore.com>
28901
28902 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
28903 releasing the items.
28904
28905 2005-06-14 Vincent Celier <celier@adacore.com>
28906 Cyrille Comar <comar@adacore.com>
28907
28908 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
28909 with output file descriptor and with output file name.
28910 (Dup, Dup2): Now global procedures as they are used by two subprograms
28911 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
28912
28913 2005-06-14 Thomas Quinot <quinot@adacore.com>
28914
28915 PR ada/6717
28916 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
28917 broadcast address.
28918 (Create_Selector): Bind listening socket used to create the signalling
28919 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
28920 Set listen backlog to 1 to ensure that we detect socket theft by a
28921 failure of our own connect(2) call.
28922 (Check_Selector): Improve documentation of the selector mechanism.
28923 (Broadcast_Inet_Addr): New constant.
28924
28925 2005-06-14 Gary Dismukes <dismukes@adacore.com>
28926
28927 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
28928 type which turns out to be an incomplete and incorrect fix.
28929 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
28930 of the type is declared in a record (for determination of insertion
28931 type).
28932 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
28933 a private type and ensure that the primary entity is used for the type
28934 of the newly created function's V formal by taking the Etype of the
28935 view.
28936
28937 2005-06-14 Javier Miranda <miranda@adacore.com>
28938 Jose Ruiz <ruiz@adacore.com>
28939 Robert Dewar <dewar@adacore.com>
28940 Ed Schonberg <schonberg@adacore.com>
28941
28942 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
28943 that indicates if we are parsing a compilation unit found in a
28944 limited-with clause.
28945 It is use to avoid the circularity check.
28946
28947 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
28948 we are parsing a compilation unit found in a limited-with clause. This
28949 is use to avoid the circularity check.
28950
28951 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
28952 unit as a consequence of parsing a limited-with clause. This is used
28953 to avoid the circularity check.
28954
28955 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
28956 (Analyze_Context): Limited-with clauses are now allowed
28957 in more compilation units.
28958 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
28959 againts previously reported critical errors in context clauses
28960 (Install_Limited_Withed_Unit): Code cleanup plus static detection
28961 of two further errors: renamed subprograms and renamed packages
28962 are not allowed in limited with clauses.
28963 (Install_Siblings): Do not install private_with_clauses on the package
28964 declaration for a non-private child unit.
28965 (Re_Install_Parents): When a parent of the subunit is reinstalled,
28966 reset visibility of child units properly.
28967 (Install_Withed_Unit): When a child unit appears in a with_clause of its
28968 parent, it is immediately visible.
28969
28970 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28971 Emmanuel Briot <briot@adacore.com>
28972
28973 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
28974 declared within an inlined body as referenced, to prevent spurious
28975 warnings.
28976 (Output_One_Ref): If an entity renames an array component, indicate in
28977 the ALI file that this aliases (renames) the array. Capture as well
28978 function renamings that rename predefined operations.
28979 Add information about generic parent for package and subprogram
28980 instances.
28981 (Get_Type_Reference): For a subtype that is the renaming of an actual in
28982 an instantiation, use the first_subtype to ensure that we don't generate
28983 cross-reference information for internal types.
28984 For objects and parameters of a generic private type, retain the '*'
28985 indicator to distinguish such an entity from its type.
28986
28987 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
28988 to store information about instantiated entities.
28989
28990 * ali.adb (Scan_ALI): Add support for parsing the reference to the
28991 generic parent
28992
28993 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
28994 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
28995 information.
28996
28997 2005-06-10 Doug Rupp <rupp@adacore.com>
28998 Arnaud Charlet <charlet@adacore.com>
28999 Olivier Hainque <hainque@adacore.com>
29000 Jose Ruiz <ruiz@adacore.com>
29001
29002 * Make-lang.in: Add initialize.o when needed.
29003 Remove obsolete references to RT_FLAGS.
29004 Add missing dependencies for sdefault.o
29005
29006 * initialize.c: New file.
29007
29008 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
29009 [VMS] cond_signal_table: Fix problem in declaration.
29010 [VMS] __gnat_error_handler: rewrite.
29011 Move all __gnat_initialize() routines to initialize.c
29012 Specialize the former "hpux" section to "hppa hpux", as this is what the
29013 section really is here for and we now have other hpux ports that need
29014 different contents.
29015 (__gnat_adjust_context_for_raise) i386-linux: First version of this
29016 function for this target. Adjust PC by one in the machine context. This
29017 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
29018 it is more reliable to do that in the signal handler itself.
29019 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
29020 flags, so that the handler is passed the context structure to adjust
29021 prior to the raise.
29022 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
29023 SA_SIGINFO sigaction should look like. Call
29024 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
29025 Machine_State_Operations stuff.
29026 Add conditional code so that the x86_64 is also supported.
29027
29028 2005-06-14 Pascal Obry <obry@adacore.com>
29029
29030 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
29031 the library name.
29032
29033 2005-06-14 Robert Dewar <dewar@adacore.com>
29034
29035 * opt.ads, opt.adb: New flags for persistent_bss mode
29036 Add Ada_Version_Explicit, for implementation of AI-362
29037 Add Assertions_Enabled_Config and associated handling
29038 Needed since setting can be changed with Assertion_Policy pragma
29039 Add new flag Warn_On_Ada_2005_Compatibility
29040
29041 * switch-c.adb: Recognize -gnatwy/Y
29042 Set Ada_Version_Explicit, for implementation of AI-362
29043 The -gnatg switch now includes -gnatyu
29044
29045 * usage.adb: Add -gnatwy/Y
29046 Remove wrong asterisk on -gnatwX line
29047 Add line for -gnatyu switch
29048
29049 2005-06-14 Vincent Celier <celier@adacore.com>
29050
29051 * osint.adb (Add_Default_Search_Dirs): Put source and object
29052 directories of project files before directories coming from
29053 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
29054
29055 2005-06-14 Robert Dewar <dewar@adacore.com>
29056
29057 PR ada/15613
29058 * par-ch2.adb (Scan_Pragma_Argument): New procedure
29059 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
29060
29061 2005-06-14 Vincent Celier <celier@adacore.com>
29062
29063 * prep.adb (Preprocess): Ignore error when scanning the first token of
29064 a line.
29065
29066 2005-06-14 Vincent Celier <celier@adacore.com>
29067
29068 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
29069 (Check_Stand_Alone_Library): If the specified reference symbol file does
29070 not exist, only issue a warning when the symbol policy is not
29071 Controlled. And, when symbol policy is Compliant, set the symbol
29072 policy to Autonomous.
29073
29074 2005-06-14 Vincent Celier <celier@adacore.com>
29075
29076 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
29077 when the project file in a with clause is not the last one, that is the
29078 project file name is followed by a comma.
29079 * prj-pp.adb: (First_With_In_List): New Boolean global variable
29080 (Print): Issue list of project files separated by commas in with clauses
29081 according to the values returned by Is_Not_Last_In_List.
29082 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
29083 (Set_Is_Not_Last_In_List): New procedure
29084
29085 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
29086
29087 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
29088
29089 2005-06-14 Robert Dewar <dewar@adacore.com>
29090
29091 * scng.adb: Add call to new Check_EOF routine
29092 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
29093 Add some comments regarding wide character handling
29094
29095 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
29096
29097 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
29098
29099 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
29100 characters are now considered graphic characters and hence yield false
29101 in this call.
29102
29103 * nmake.adt: Modify header so that xnmake does not generate output
29104 files with multiple blank lines.
29105
29106 * treeprs.adt: Remove a blank line so that output from xtreeprs does
29107 not have an extra blank line
29108
29109 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29110
29111 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
29112 expression when the component type is an anonymous access type to
29113 ensure that appropriate accessibility checks are done.
29114
29115 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
29116 expression of an assignment when the target object is of an anonymous
29117 access type. This ensures that required accessibility checks are done.
29118 (One_Bound): Move the check for type Universal_Integer to
29119 Process_Bounds.
29120 (Process_Bounds): Check whether the type of the preanalyzed range is
29121 Universal_Integer, and in that case set Typ to Integer_Type prior
29122 to setting the type of the original range and the calls to One_Bound.
29123
29124 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29125
29126 * sem_case.adb (Expand_Others_Choice): Improve warning.
29127
29128 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29129
29130 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
29131 constraint of full view if present, when other type is discriminated.
29132 (Eval_Relational_Op): Recognize tests of pointer values against Null,
29133 when the pointer is known to be non-null, and emit appropriate warning.
29134
29135 2005-06-14 Robert Dewar <dewar@adacore.com>
29136 Ed Schonberg <schonberg@adacore.com>
29137
29138 PR ada/10671
29139 * sem_prag.adb: Implement pragma Persistent_BSS
29140 Remove obsolete pragma Persistent_Data, Persistent_Object
29141 Set Ada_Version_Explicit, for implementation of AI-362
29142 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
29143 Add processing for pragma Pure_05 and Preelaborate_05
29144 Add processing for Assertion_Policy pragma
29145 Add pragma identifiers for Assert
29146 (Analyze_Pragma, case Assert): Check number of arguments
29147 (Process_Inline): Additional guard against an illegal program, where the
29148 argument of the pragma is undefined, and warnings on redundant
29149 constructs are enabled.
29150 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
29151 Ada_05 to this pragma, specifying that the pragma is only active in
29152 Ada_05 mode.
29153 (Check_Arg_Order): New procedure
29154 Add appropriate calls to this procedure throughout
29155 Also throughout, check entity name before doing any other checks
29156
29157 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
29158 Remove obsolete pragma Persistent_Data, Persistent_Object
29159 Add entries for pragma Pure_05 and Preelaborate_05
29160 Add entries for Assertion_Policy pragma and associated names
29161 Add some names for pragma argument processing
29162
29163 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
29164
29165 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29166
29167 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
29168 appears within a negation (either from source or as a rewriting of
29169 inequality) adjust text of warning accordingly.
29170
29171 2005-06-14 Thomas Quinot <quinot@adacore.com>
29172
29173 * s-strxdr.adb: Follow AI95-00132
29174
29175 2005-06-14 Arnaud Charlet <charlet@adacore.com>
29176
29177 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
29178
29179 2005-06-14 Arnaud Charlet <charlet@adacore.com>
29180 Jose Ruiz <ruiz@adacore.com>
29181
29182 * s-tposen.adb, s-tpobop.adb
29183 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
29184 the exception id.
29185 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
29186 there is no violation of the Max_Entry_Queue_Length restriction (if it
29187 has been set); Program_Error is raised otherwise.
29188 (Requeue_Call): Before requeuing the task on the target entry queue we
29189 check that there is no violation of the Max_Entry_Queue_Length
29190 restriction (if it has been set); Program_Error is raised otherwise.
29191
29192 2005-06-14 Robert Dewar <dewar@adacore.com>
29193
29194 * styleg.adb: Fix several remaining problems in -gnatyu switch
29195 Blank line count not reset at start
29196 Scanning outside source buffer in some cases
29197 Confusing message for blanks at end of file
29198 Non-empty blank lines not recognized
29199
29200 * nmake.adt: Modify header so that xnmake does not generate output
29201 files with multiple blank lines.
29202
29203 * treeprs.adt: Remove a blank line so that output from xtreeprs does
29204 not have an extra blank line
29205
29206 2005-06-14 Sergey Rybin <rybin@adacore.com>
29207
29208 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
29209
29210 2005-06-14 Doug Rupp <rupp@adacore.com>
29211 Vincent Celier <celier@adacore.com>
29212
29213 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
29214 Update copyright.
29215
29216 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29217 Remove "Library" command.
29218 Change keyword for style check -gnatyd from NOCRLF to
29219 DOS_LINE_ENDINGS.
29220 Remove useless second style check keyword NONE
29221 Remove help documentation for inexistent style check keyword
29222 RM_COLUMN_LAYOUT.
29223 Add help documentation for style check keywords DOS_LINE_ENDINGS,
29224 UNNECESSARY_BLANK_LINES and XTRA_PARENS
29225 Add UNNECESSARY_BLANK_LINES for -gnatyu
29226 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
29227
29228 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29229
29230 2005-06-14 Vincent Celier <celier@adacore.com>
29231
29232 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
29233 gprmake was invoked with -d.
29234 (Compile_Sources): If -d was used, output the "completed ..." message
29235 for each compilation.
29236 (Scan_Arg): Recognize new switch -d
29237 When -c and at least one main is specified, set
29238 Unique_Compile to True to guarantee that no other sources will be
29239 compiled.
29240
29241 2005-06-14 Matthew Heaney <heaney@adacore.com>
29242
29243 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
29244 * a-swuwha.ads, a-swuwha.adb: New files
29245
29246 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
29247 * a-szuzha.ads, a-szuzha.adb: New files.
29248
29249 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
29250 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
29251 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
29252 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
29253 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
29254 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
29255 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
29256 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
29257 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
29258 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
29259 Ada 2005 RM.
29260
29261 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
29262 Olivier Hainque <hainque@adacore.com>
29263 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29264 Pascal Obry <obry@adacore.com>
29265
29266 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
29267
29268 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
29269 making a temporary around a procedure call because of non-addressable
29270 actual parameter.
29271 (process_freeze_entity): If entity is a private type, capture size
29272 information that may have been computed for the full view.
29273 (tree_transform, case N_Allocator): If have initializing expression,
29274 check type for Has_Constrained_Partial_View and pass that to
29275 build_allocator.
29276 (tree_transform, case N_Return_Statement): Pass extra arg to
29277 build_allocator.
29278
29279 * decl.c (annotate_value): Remove early return if -gnatR is not
29280 specified.
29281 (gnat_to_gnu_field): Don't make a packable type for a component clause
29282 if the position is byte aligned, the field is aliased, and the clause
29283 size isn't a multiple of the packable alignment. It serves no useful
29284 purpose packing-wise and would be rejected later on.
29285 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
29286
29287 PR ada/20515
29288 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
29289 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
29290 instead.
29291 (create_concat_name): Idem.
29292
29293 2005-06-10 Robert Dewar <dewar@adacore.com>
29294 Eric Botcazou <ebotcazou@adacore.com>
29295 Ben Brosgol <brosgol@adacore.com>
29296 Cyrille Comar <comar@adacore.com>
29297 Sergey Rybin <rybin@adacore.com>
29298 Pascal Obry <obry@adacore.com>
29299
29300 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
29301 Document second argument (Ada_05) of pragma Obsolescent
29302 Add note that call to subprogram marked with pragma Obsolescent
29303 is now considered to be a violation of program Restrictions
29304 (No_Obsolescent_Features).
29305 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
29306 that only machine-dependent attributes are supported.
29307
29308 * gnat_ugn.texi:
29309 Commented out menu lines and empty section for gnatclean examples
29310 Document -gnatwy/Y
29311 Fix some over long lines
29312 Clarify and enhance documentation of ADA_PROJECT_PATH.
29313 Rework section 2.11.2(3) about linking with a non-GNU compiler.
29314 Mention new switch -fcallgraph-info.
29315 Mention new switch -fstack-usage.
29316 For gnatpp, replace '-notab' with '-N' and add this option to Index
29317 Corrected VMS example.
29318 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
29319 Minor reformatting
29320 Add documentation for -gnatyu switch (unnecessary blank lines)
29321 Document new switch -U for GNAT PRETTY and GNAT METRIC
29322 Add note about Stdcall being handled as C convention on non Windows OS.
29323 Remove some junk typo in description of gnatbind -S switch
29324 Remove reference to Extensions_Allowed pragma
29325 Document the new order of the directories to be searched (source and
29326 object directories of project files before directories in ADA_*_PATH
29327 environment variables.
29328
29329 * g-trasym.ads: Document that IRIX is supported
29330
29331 2005-06-10 Arnaud Charlet <charlet@adacore.com>
29332
29333 * Makefile.in: Add initialize.o when needed.
29334 Adapt to new VMS package body Symbols and subunits
29335 No specialized version of a-sytaco is needed for VxWorks.
29336
29337 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
29338 * a-zchara.ads, a-widcha.ads: New files.
29339
29340 * system-hpux-ia64.ads: New file.
29341
29342 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
29343 is imported from the VxWorks kernel.
29344
29345 2005-06-14 Robert Dewar <dewar@adacore.com>
29346
29347 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
29348 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
29349 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
29350 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
29351 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
29352 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
29353 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
29354 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
29355 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
29356 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
29357 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
29358 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
29359
29360 2005-06-14 Thomas Quinot <quinot@adacore.com>
29361
29362 * xeinfo.adb: Fix typo in comment
29363
29364 2005-06-14 Javier Miranda <miranda@adacore.com>
29365
29366 * repinfo.ads: Fix typo in comment
29367
29368 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29369
29370 * s-finimp.adb (Parent_Tag): Delete this imported function (function
29371 Parent_Tag is now in the visible part of Ada.Tags).
29372 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
29373 using imported function.
29374
29375 2005-06-14 Bernard Banner <banner@adacore.com>
29376
29377 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
29378 also apply for handling support for VxSim 653.
29379
29380 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
29381
29382 * xsnames.adb: Add automatic generation of snames.h.
29383
29384 2005-06-14 Thomas Quinot <quinot@adacore.com>
29385
29386 * gen-soccon.c: Add IP_MULTICAST_IF constant
29387 Minor reformatting and adjustments to prevent warnings.
29388
29389 2005-06-14 Pascal Obry <obry@adacore.com>
29390
29391 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
29392
29393 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
29394
29395 * trans.c (gnat_gimplify_expr): Call
29396 recompute_tree_invarant_for_addr_expr when we change
29397 the operand of the ADDR_EXPR.
29398
29399 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29400
29401 * misc.c: Don't include errors.h.
29402
29403 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29404
29405 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
29406
29407 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
29408
29409 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
29410 comment typos.
29411 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
29412
29413 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
29414
29415 PR ada/20270
29416 * Makefile.in: Make TGT_LIB behave correctly.
29417
29418 2005-04-23 DJ Delorie <dj@redhat.com>
29419
29420 * misc.c: Adjust warning() callers.
29421
29422 2005-04-16 Laurent Guerby <laurent@guerby.net>
29423
29424 PR ada/18847
29425 * a-nudira.adb (Value): Check for valid string.
29426 * a-nuflra.adb (Value): Likewise.
29427
29428 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
29429
29430 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
29431
29432 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
29433
29434 * adaint.c, init.c, tracebak.c: Fix comment typos.
29435 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
29436
29437 2005-04-07 Laurent Guerby <laurent@guerby.net>
29438 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29439
29440 * Makefile.in: Add make ifeq define for hppa linux tasking support.
29441 * system-hpux.ads: Define Signed_Zeros to be True.
29442 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
29443
29444 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
29445
29446 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
29447 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
29448 typos.
29449
29450 2005-03-30 Tom Tromey <tromey@redhat.com>
29451
29452 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
29453
29454 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
29455
29456 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
29457
29458 2005-03-29 Robert Dewar <dewar@adacore.com>
29459
29460 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
29461 fixed-point expression has value that is not a multiple of the Small
29462 value.
29463
29464 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
29465
29466 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
29467 nanoseconds.
29468
29469 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
29470
29471 2005-03-29 Vincent Celier <celier@adacore.com>
29472
29473 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
29474 (Build_Dynamic_Library.Version_String): Return the empty string when
29475 Lib_Version is empty or when the symbol policy is not Autonomous.
29476
29477 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
29478 a symbol is not in the reference symbol file, increase the Major ID
29479 and set the Minor ID to 0.
29480 Use gsmatch=lequal instead of gsmatch=equal
29481
29482 2005-03-29 Doug Rupp <rupp@adacore.com>
29483
29484 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
29485 name and translate.
29486
29487 2005-03-29 Javier Miranda <miranda@adacore.com>
29488
29489 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
29490 (Inherit_DT): The first formal has been redefined as a Tag.
29491 This allows us the removal of the subprogram Get_TSD.
29492 (TSD): Replace the call to Get_TSD by the actual code.
29493
29494 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
29495 (Make_DT): Upgrade the call to Inherit_TSD according to the
29496 new interface: the first formal is now a Tag.
29497
29498 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
29499 redefined as a Tag.
29500 This change allows us to remove the subprogram Get_TSD.
29501 (CPP_Get_TSD): Subprogram removed.
29502 (TSD): Replace the call to CPP_Get_TSD by the actual code.
29503
29504 * rtsfind.ads: Remove support to call the run-time
29505 subprogram Get_TSD
29506
29507 2005-03-29 Robert Dewar <dewar@adacore.com>
29508
29509 * errutil.adb, errout.adb:
29510 Minor comment updates on Line_Terminator references
29511
29512 * par-ch10.adb: Add ??? comment about line terminator
29513
29514 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
29515 (check dos line terminator).
29516 (Check_Line_Max_Length): New procedure, split off from the existing
29517 Check_Line_Terminator routine. Separating this out allows -gnatyf to
29518 be properly recognized.
29519
29520 * styleg.adb: Add ??? comment for line terminator reference
29521
29522 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
29523 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
29524
29525 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
29526 (check dos line terminator).
29527 (Check_Line_Max_Length): New procedure, split off from the existing
29528 Check_Line_Terminator routine. Separating this out allows -gnatyf to
29529 be properly recognized.
29530
29531 * stylesw.ads, stylesw.adb:
29532 Add handling for new -gnatyd switch (check dos line terminator)
29533
29534 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
29535 Recognize -gnatwb/-gnatwB switches
29536 Include Warn_On_Bad_Fixed_Value for -gnatg
29537
29538 * usage.adb:
29539 Add line for new -gnatyd switch (check dos line terminator)
29540
29541 * usage.adb: Add lines for -gnatwb/-gnatwB
29542
29543 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
29544
29545 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
29546
29547 * gnat_ugn.texi: Fix overlong lines
29548 Document new -gnatyd switch
29549 Document new -gnatwb/-gnatwB switches
29550
29551 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29552
29553 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
29554 order to retrieve the component list of the type, before examining
29555 individual components.
29556
29557 * sem_type.adb (Covers): Types are compatible if one is the base type
29558 of the other, even though their base types might differ when private
29559 views are involved.
29560
29561 2005-03-29 Thomas Quinot <quinot@adacore.com>
29562
29563 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
29564 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
29565 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
29566 analyzed if expansion is disabled (which could otherwise cause spurious
29567 error messages if expansion has been disabled due to previous
29568 (unrelated) errors).
29569
29570 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
29571 is disabled, the entity denoted by the argument is the access type
29572 itself, not an underlying record type, so there is no need to go back
29573 to the Corresponding_Remote_Type.
29574
29575 2005-03-29 Gary Dismukes <dismukes@adacore.com>
29576 Robert Dewar <dewar@adacore.com>
29577
29578 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
29579 expand a call to an instance of
29580 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
29581 Constructor actual of the instance. A class-wide membership
29582 check is also generated, to ensure that the tag passed to the instance
29583 denotes a type in the class.
29584 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
29585 of Name_Generic_Dispatching_Constructor.
29586
29587 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
29588 05 unit for AI-260-02).
29589
29590 * a-tgdico.ads: New file.
29591
29592 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
29593 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
29594
29595 * snames.ads, snames.adb (Preset_Names): Add entry for
29596 Generic_Dispatching_Constructor.
29597
29598 PR ada/20300
29599 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
29600 character type cases.
29601 (Analyze_Subprogram_Renaming): Add special handling for
29602 the case of renaming of stream attributes when the renaming denotes a
29603 generic formal subprogram association for an abstract formal subprogram.
29604 Check that the attribute is a primitive stream attribute (and not
29605 a class-wide stream attribute) and then rewrite the attribute name
29606 as the name of the appropriate compiler-generated stream primitive.
29607
29608 2005-03-29 Robert Dewar <dewar@adacore.com>
29609
29610 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
29611 recursive calls.
29612 (Is_Possibly_Unaligned_Object): Correct typo that
29613 resulted in inaccurate result for unaligned scalars within records.
29614
29615 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29616
29617 * freeze.adb (Freeze_Record_Type): If the type of the component is an
29618 itype whose parent is controlled and not yet frozen, do not create a
29619 freeze node for the itype if expansion is disabled.
29620
29621 2005-03-29 Vincent Celier <celier@adacore.com>
29622
29623 * make.adb (Gnatmake): Don't fail if the main project file is declared
29624 as having no Ada sources. Do not display message "no sources to
29625 compile" in quiet output.
29626
29627 2005-03-29 Doug Rupp <rupp@adacore.com>
29628
29629 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
29630 extra tools.
29631
29632 2005-03-29 Robert Dewar <dewar@adacore.com>
29633
29634 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
29635 child.
29636
29637 2005-03-29 Robert Dewar <dewar@adacore.com>
29638
29639 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
29640 missing TYPE Improve the error message generated when compiling a
29641 limited interface in Ada83 or Ada95 mode.
29642
29643 2005-03-29 Robert Dewar <dewar@adacore.com>
29644
29645 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
29646 rather than proceed ahead using a junk attribute name.
29647
29648 2005-03-29 Vincent Celier <celier@adacore.com>
29649
29650 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
29651
29652 * prj-part.adb (Parse_Single_Project): Set the location of a project
29653 on its defining identifier, rather than on the reserved word "project".
29654
29655 * prj-proc.adb (Expression): Adapt to the fact that default of external
29656 references may be string expressions, not always literal strings.
29657 (Recursive_Process): Set Display_Name equal to Name
29658 when Location is No_Location, that is when there is no actual file.
29659 Get the Display_Name of the project from the source, when it is not a
29660 virtual project.
29661 (Process): Use the Display_Name in error messages
29662
29663 * prj-strt.adb (External_Reference): Allow default to be string
29664 expressions, not only literal strings.
29665
29666 2005-03-29 Vincent Celier <celier@adacore.com>
29667
29668 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
29669 file and the reference symbol file to be the same file.
29670
29671 2005-03-29 Thomas Quinot <quinot@adacore.com>
29672
29673 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
29674 forbid conversion of a local access-to-subprogram type to a remote one.
29675
29676 * sem_util.adb (Wrong_Type): For a record type that is the expanded
29677 equivalent type for a remote access-to-subprogram type, go back to the
29678 original RAS entity when displaying an error message, so the casing is
29679 the original source casing.
29680
29681 2005-03-29 Robert Dewar <dewar@adacore.com>
29682
29683 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
29684 on param update.
29685
29686 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29687
29688 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
29689 subtype if code is being pre-analyzed, to prevent un-expanded
29690 references to protected formals, among others.
29691 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
29692 interpretation that can be a call, include the result of the call as a
29693 possible interpretation of the dereference.
29694
29695 * sem_ch5.adb (Process_Bounds): Determine type of range by
29696 pre-analyzing a copy of the original range, and then analyze the range
29697 with the expected type.
29698
29699 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
29700 with an overloaded prefix where not all interpretations yield an
29701 access to subprogram, do not rewrite node as a call.
29702 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
29703 the node as a call once the context identifies the interpretation of
29704 the prefix whose call yields the context type.
29705 (Valid_Conversion): For the case of a conversion between
29706 local access-to-subprogram types, check subtype conformance using
29707 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
29708 detailed error message.
29709
29710 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29711
29712 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
29713 indicator, indicate that the formal can never be null.
29714 (Process_Formals): If a formal has a non_null indicator, insert the
29715 resulting subtype immediately before the enclosing subprogram decl,
29716 and not at the beginning of the corresponding declarative part, to
29717 prevent access before elaboration (Ada2005).
29718
29719 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29720
29721 PR ada/19956
29722 * utils.c (finish_record_type): Use variable_size when setting sizes.
29723
29724 2005-03-29 Robert Dewar <dewar@adacore.com>
29725
29726 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
29727 guarantee Unix style line terminators for the output files, even when
29728 running on windows.
29729
29730 2005-03-29 Robert Dewar <dewar@adacore.com>
29731
29732 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
29733 buffer if an exception is raised.
29734
29735 2005-03-29 Ed Falis <falis@adacore.com>
29736
29737 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
29738 VxWorks 653 1.4
29739
29740 2005-03-29 Robert Dewar <dewar@adacore.com>
29741
29742 * sem_util.ads: Minor reformatting
29743 * gnat_rm.texi: Minor editing.
29744
29745 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
29746
29747 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
29748 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
29749
29750 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
29751
29752 * adaint.c (__gnat_portable_spawn): Adjust cast.
29753
29754 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
29755
29756 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
29757
29758 2005-03-17 Pascal Obry <obry@adacore.com>
29759
29760 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
29761 used.
29762
29763 * expect.c (__gnat_waitpid): Moved here from adaint.c.
29764 Reimplement under Win32 using Win32 API.
29765
29766 (__gnat_kill) [Win32]: Properly close the process handle before leaving
29767 this routine.
29768
29769 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
29770
29771 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
29772 (DECL_RENAMED_OBJECT): New accessor macro.
29773 (SET_DECL_RENAMED_OBJECT): New setter macro.
29774
29775 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
29776 object in all cases. Attach the renamed object to the VAR_DECL.
29777 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
29778 field is not prescribed.
29779
29780 * misc.c (gnat_handle_option): Handle -gnatO separately.
29781 (gnat_print_decl) <VAR_DECL>: New case.
29782 Print the DECL_RENAMED_OBJECT node.
29783
29784 * lang.opt: Declare separate -gnatO option.
29785
29786 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
29787 pointer, replace it with the renamed object.
29788 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
29789 pointer type if the source is not a fat pointer type whose underlying
29790 array has the same non-zero alias set as that of the destination array.
29791
29792 2005-03-17 Javier Miranda <miranda@adacore.com>
29793
29794 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
29795 (Get_Inheritance_Depth): Removed.
29796 (Set_Inheritance_Depth): Removed.
29797
29798 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
29799 subprogram Get_Expanded_Name because it is not referenced by the
29800 frontend.
29801
29802 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
29803 (CPP_Get_Inheritance_Depth): Removed.
29804 (CPP_Set_Inheritance_Depth): Removed.
29805
29806 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
29807
29808 2005-03-17 Robert Dewar <dewar@adacore.com>
29809
29810 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
29811 3, since we now expect GCC 3 to do all the work.
29812
29813 2005-03-17 Javier Miranda <miranda@adacore.com>
29814
29815 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
29816 of one barrier to avoid wrong usage of this attribute.
29817
29818 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
29819 First_Private_Entity.
29820
29821 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
29822 the subprogram against wrong usage.
29823 Adapt the code to traverse the entities in the
29824 scope of a record_type because in addition to its usage regarding
29825 packages, this subprogram is also called by Expand_N_Freeze_Entity
29826 to install the visible declarations of the enclosing scope of a
29827 record_type_with_private to establish the proper visibility before
29828 freezing the entity and related subprograms.
29829
29830 2005-03-17 Ed Schonberg <schonberg@adacore.com>
29831
29832 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
29833 entry formals.
29834
29835 2005-03-17 Thomas Quinot <quinot@adacore.com>
29836
29837 * exp_ch3.adb (Check_Attr): New subprogram.
29838 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
29839 into a new Check_Attr subprogram, in order to provide a more
29840 explanatory error message (including the name of the missing attribute).
29841 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
29842 subprogram determines whether a default implementation exists for a
29843 given stream attribute.
29844 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
29845 Determine whether to generate a default implementation for each stream
29846 attribute separately, as this depends on the specific attribute.
29847
29848 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
29849 limited extension where a stream attribute is missing for a limited
29850 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
29851 generate a bogus reference to the missing attribute to prevent
29852 cascaded errors. Instead, generate a null statement.
29853
29854 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
29855 available for a limited type if it has been specified for an ancestor
29856 of the type.
29857
29858 2005-03-17 Ed Schonberg <schonberg@adacore.com>
29859
29860 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
29861 entity is an operator.
29862
29863 2005-03-17 Thomas Quinot <quinot@adacore.com>
29864
29865 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
29866 spec, to make this predicate available to other units.
29867
29868 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
29869 reimplementing it.
29870
29871 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
29872 when no distribution runtime library is available.
29873
29874 * sem_res.adb, sem_dist.adb: Disable expansion of remote
29875 access-to-subprogram types when no distribution runtime library is
29876 available.
29877 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
29878 predicate available to other units.
29879
29880 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
29881 spec, to make this predicate available to other units.
29882
29883 2005-03-17 Vincent Celier <celier@adacore.com>
29884
29885 * make.adb (Insert_Project_Sources): Make sure the Q is always
29886 initialized.
29887
29888 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
29889 the default for the tree, not the global default naming.
29890
29891 * prj-proc.adb (Recursive_Process): No need to put the default naming
29892 in the project data, it's already there.
29893
29894 2005-03-17 Doug Rupp <rupp@adacore.com>
29895
29896 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
29897
29898 * 5xcrtl.ads: Renamed to...
29899 * s-crtl-vms64.ads: ...this new file
29900
29901 2005-03-17 Robert Dewar <dewar@adacore.com>
29902
29903 PR ada/19519
29904 * namet.adb (Copy_One_Character): Set proper wide character encoding
29905 for upper half character if we have upper half encoding.
29906
29907 2005-03-17 Robert Dewar <dewar@adacore.com>
29908
29909 * par.adb (Par): Improved msg for attempt to recompile predefined unit
29910
29911 2005-03-17 Thomas Quinot <quinot@adacore.com>
29912
29913 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
29914 tagged limited type, the TSS is a newly built renaming declaration:
29915 insert it using Set_TSS, not Copy_TSS.
29916
29917 2005-03-17 Javier Miranda <miranda@adacore.com>
29918
29919 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
29920 Try_Object_Operation): Analyze the object that is accessible
29921 through the prefix of the subprogram call before we apply
29922 the transformation of the object-operation notation.
29923
29924 2005-03-17 Jose Ruiz <ruiz@adacore.com>
29925
29926 * s-taprob.adb (Initialize_Protection): Initialize the protected
29927 object's owner to Null_Task.
29928 (Lock): If pragma Detect_Blocking is in effect and the caller of this
29929 procedure is already the protected object's owner then Program_Error
29930 is raised. In addition the protected object's owner is updated.
29931 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
29932 of this procedure is already the protected object's owner then
29933 Program_Error is raised.
29934 In addition the protected object's owner is updated.
29935 (Unlock): Remove the ownership of the protected object.
29936
29937 * s-taprob.ads (Protection): Add the field Owner, used to store the
29938 protected object's owner.
29939 This component is needed for detecting one type of potentially blocking
29940 operations (external calls on a protected subprogram with the same
29941 target object as that of the protected action). Document the rest of
29942 the components.
29943
29944 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
29945 Initialize the protected object's owner to Null_Task.
29946 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
29947 caller of this procedure is already the protected object's owner then
29948 Program_Error is raised.
29949 Do not raise Program_Error when this procedure is called from a
29950 protected action.
29951 (Unlock_Entries): Remove the ownership of the protected object.
29952 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
29953 of this procedure is already the protected object's owner then
29954 Program_Error is raised.
29955 Do not raise Program_Error when this procedure is called from
29956 a protected action.
29957
29958 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
29959 used to store the protected object's owner.
29960
29961 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
29962 effect and this procedure (a potentially blocking operation) is called
29963 from whithin a protected action, Program_Error is raised.
29964 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
29965 and this procedure (a potentially blocking operation) is called from
29966 whithin a protected action, Program_Error is raised.
29967
29968 2005-03-17 Vincent Celier <celier@adacore.com>
29969 Nicolas Setton <setton@adacore.com>
29970
29971 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
29972 switch, not supported by the linker on Darwin. Add '_' before
29973 <library>init, as this character is added unconditionally by the
29974 compiler.
29975 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
29976 correct one ".dylib". This fixes detection of the archive files when
29977 building library projects.
29978
29979 2005-03-17 Vincent Celier <celier@adacore.com>
29980
29981 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
29982 -gnat83, -gnat95 and -gnat05.
29983
29984 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
29985
29986 * gnat_ugn.texi: Document gnatmem restriction
29987
29988 2005-03-17 Thomas Quinot <quinot@adacore.com>
29989
29990 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
29991 cleanup
29992
29993 2005-03-17 Robert Dewar <dewar@adacore.com>
29994
29995 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
29996 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
29997 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
29998
29999 * casing.adb: Comment improvements
30000
30001 2005-03-17 Pascal Obry <obry@adacore.com>
30002
30003 * g-expect.adb: Minor reformatting.
30004
30005 2005-03-15 Zack Weinberg <zack@codesourcery.com>
30006
30007 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
30008 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
30009 to dependencies.
30010
30011 2005-03-15 Vincent Celier <celier@adacore.com>
30012
30013 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
30014 Add new parameter In_Tree to specify the project tree: needed
30015 by the project manager. Adapt to changes in project manager
30016 using new parameter In_Tree.
30017
30018 2005-03-15 Jakub Jelinek <jakub@redhat.com>
30019
30020 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
30021 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
30022 ada/bldtools to avoid make -jN failures.
30023
30024 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30025
30026 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
30027 to NULL_TREE on entry.
30028
30029 2005-03-15 Robert Dewar <dewar@adacore.com>
30030
30031 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
30032 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
30033 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
30034 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
30035 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
30036 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
30037 system-interix.ads, system-solaris-sparc.ads,
30038 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
30039 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
30040 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
30041 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
30042 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
30043 Compiler_System_Version to be False.
30044
30045 * opt.ads: Add new flag Opt.Address_Is_Private
30046
30047 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
30048 Add new parameter Compiler_System_Version to avoid checking for
30049 completeness of parameters when compiler is compiling itself.
30050 Allows old versions of GNAT to be compiled with new compiler.
30051
30052 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30053
30054 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
30055 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
30056 calling thread.
30057 (Stack_Base_Available): New flag.
30058 (Get_Page_Size): New overloaded functions imported from C.
30059 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
30060 PROT_ON, PROT_OFF): New constants.
30061 (mprotect): New function imported from C.
30062 (pthread_teb_t): New record type.
30063
30064 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
30065 (Create_Task): Account for the Yellow Zone and the guard page.
30066
30067 2005-03-15 Vincent Celier <celier@adacore.com>
30068
30069 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30070 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30071 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30072 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
30073 Library_File_Name_For): Add new parameter In_Tree
30074 to specify the project tree: needed by the project manager.
30075 Adapt to changes in project manager using new parameter In_Tree.
30076 Remove local imports, use functions in System.CRTL.
30077
30078 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
30079 to use the project manager.
30080
30081 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
30082 In_Tree to designate the project tree. Adapt to changes in the project
30083 manager, using In_Tree.
30084
30085 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
30086 Copy_Interface_Sources): Add new parameter In_Tree to specify the
30087 project tree: needed by the project manager.
30088 (Build_Library): Check that Arg'Length >= 6 before checking if it
30089 contains "--RTS=...".
30090
30091 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
30092 Library_File_Name_For): Add new parameter In_Tree to specify the
30093 project tree: needed by the project manager.
30094
30095 * prj.ads, prj.adb: Major modifications to allow several project trees
30096 in memory at the same time.
30097 Change tables to dynamic tables and hash tables to dynamic hash
30098 tables. Move tables and hash tables from Prj.Com (in the visible part)
30099 and Prj.Env (in the private part). Move some constants from the visible
30100 part to the private part. Make other constants deferred.
30101 (Project_Empty): Make it a variable, not a function
30102 (Empty_Project): Add parameter Tree. Returns the data with the default
30103 naming data of the project tree Tree.
30104 (Initialize): After updating Std_Naming_Data, copy its value to the
30105 component Naming of Project Empty.
30106 (Register_Default_Naming_Scheme): Use and update the default naming
30107 component of the project tree, instead of the global variable
30108 Std_Naming_Data.
30109 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
30110 Tree is not defaulted, return the default naming data of the Tree.
30111 (Initial_Buffer_Size): Constant moved from private part
30112 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
30113 variables initialized in procedure Initialize.
30114 (Add_To_Buffer): Add two in out parameters to replace global variables
30115 Buffer and Buffer_Last.
30116 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
30117 functions.
30118 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
30119 hash tables.
30120 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30121 for the project tree.
30122 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
30123 constant at the beginning of the package spec, so that they cane be used
30124 in subprograms before their full declarations.
30125 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
30126 (Empty_Project): Add parameter of type Project_Node_Ref
30127 (Private_Project_Tree_Data): Add component Default_Naming of type
30128 Naming_Data.
30129 (Buffer, Buffer_Last): remove global variables
30130 (Add_To_Buffer): Add two in out parameters to replace global variables
30131 Buffer and Buffer_Last.
30132 (Current_Packages_To_Check): Remove global variable
30133 (Empty_Name): Move to private part
30134 (No-Symbols): Make it a constant
30135 (Private_Project_Tree_Data): New type for the private part of the
30136 project tree data.
30137 (Project_Tree_Data): New type for the data of a project tree
30138 (Project_Tree_Ref): New type to designate a project tree
30139 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30140 for the project tree.
30141
30142 * prj-attr.ads: Add with Table; needed, as package Prj no longer
30143 imports package Table.
30144
30145 * prj-com.adb: Remove empty, no longer needed body
30146
30147 * prj-com.ads: Move most of the content of this package to package Prj.
30148
30149 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
30150 designate the project node tree and Packages_To_Check to replace
30151 global variable Current_Packages_To_Check.
30152 Add new parameters In_Tree and Packages_To_Check to local subprograms,
30153 when needed. Adapt to changes in project manager with project node tree
30154 In_Tree.
30155
30156 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
30157 project tree to most subprograms. Move tables and hash tables to
30158 private part of package Prj.
30159 Adapt to changes in project manager using project tree In_Tree.
30160
30161 * prj-makr.adb (Tree): New constant to designate the project node tree
30162 Adapt to change in project manager using project node tree Tree
30163
30164 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
30165 display the Library_Src_Dir and the Library_Dir.
30166 Add new parameter In_Tree to designate the project node tree to most
30167 subprograms. Adapt to changes in the project manager, using project tree
30168 In_Tree.
30169 (Check_Naming_Scheme): Do not alter the casing on platforms where
30170 the casing of file names is not significant.
30171 (Check): Add new parameter In_Tree to designate the
30172
30173 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
30174 designate the project tree.
30175 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
30176
30177 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
30178 to replace those that were in the private part of package Prj.
30179 Add new parameter In__Tree to designate the project node tree to most
30180 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30181 (Post_Parse_Context_Clause): When specifying the project node of a with
30182 clause, indicate that it is a limited with only if there is "limited"
30183 in the with clause, not necessarily when In_Limited is True.
30184 (Parse): Add new parameter In_Tree to designate the project node tree
30185
30186 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
30187 designate the project node tree. Adapt to change in Prj.Tree with
30188 project node tree In_Tree.
30189
30190 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
30191 tree In_Tree in the call to function Empty_Process to give its initial
30192 value to the project data Processed_Data.
30193 Add new parameters In_Tree to designate the project tree and
30194 From_Project_Node_Tree to designate the project node tree to several
30195 subprograms. Adapt to change in project manager with project tree
30196 In_Tree and project node tree From_Project_Node_Tree.
30197
30198 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
30199 to replace those that were in the private part of package Prj.
30200 Add new parameter In_Tree to designate the project node tree to most
30201 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30202
30203 * prj-tree.ads, prj-tree.adb: Add new parameter of type
30204 Project_Node_Tree_Ref to most subprograms.
30205 Use this new parameter to store project nodes in the designated project
30206 node tree.
30207 (Project_Node_Tree_Ref): New type to designate a project node tree
30208 (Tree_Private_Part): Change table to dynamic table and hash tables to
30209 dynamic hash tables.
30210
30211 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
30212 the project tree to most subprograms. Adapt to changes in project
30213 manager using project tree In_Tree.
30214
30215 * makegpr.adb (Project_Tree): New constant needed to use project
30216 manager.
30217
30218 2005-03-15 Olivier Hainque <hainque@adacore.com>
30219
30220 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
30221 for sigactions with SA_SIGINFO set. Call
30222 __gnat_adjust_context_for_raise before raising, to perform the
30223 potentially required adjustments to the machine context for the GCC
30224 unwinder.
30225
30226 * raise.h (__gnat_adjust_context_for_raise): New prototype.
30227
30228 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
30229 Adjust PC by one in the provided machine context.
30230 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
30231 so that the handler is passed the context structure to adjust prior to
30232 the raise.
30233 (__gnat_error_handler) HPUX: Adjust the signature to match what an
30234 SA_SIGINFO sigaction should look like. Call
30235 __gnat_adjust_context_for_raise before actually raising.
30236 (__gnat_adjust_context_for_raise): Default noop to help PC
30237 adjustments before raise from signal handlers.
30238 (__gnat_error_handler): Indirectly call a predicate function to
30239 determine if a condition should be resignaled or not.
30240 (__gnat_set_resignal_predicate): User interface to modify the predicate.
30241 (__gnat_default_resignal_p): Default GNAT predicate.
30242
30243 2005-03-15 Doug Rupp <rupp@adacore.com>
30244
30245 * adaint.c: Prefix #include of VMS system header files with vms/
30246 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
30247 Do not define a dummy function "convert_addresses" under Darwin,
30248 not needed.
30249
30250 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
30251 with vms/
30252
30253 2005-03-15 Nicolas Setton <setton@adacore.com>
30254
30255 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
30256 PPC/AIX.
30257
30258 2005-03-15 Robert Dewar <dewar@adacore.com>
30259
30260 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
30261 AI-386.
30262
30263 * a-retide.ads: Minor comment changes
30264
30265 2005-03-15 Robert Dewar <dewar@adacore.com>
30266
30267 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
30268 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
30269 Realloc_For_Chunk to private part of package.
30270 New subprograms for AI-301
30271
30272 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
30273 Get_Line procedure.
30274 Avoid unnecessary use of Get/Set_Wide_String
30275
30276 2005-03-15 Robert Dewar <dewar@adacore.com>
30277
30278 PR ada/13470
30279 * a-stunau.ads, a-stunau.adb:
30280 Change interface to allow efficient (and correct) implementation
30281 The previous changes to allow extra space in unbounded strings had
30282 left this interface a bit broken.
30283
30284 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
30285
30286 * g-spipat.ads, g-spipat.adb: New interface for Get_String
30287 Minor reformatting (function specs)
30288
30289 * g-spitbo.adb: New interface for Get_String
30290
30291 * g-spitbo.ads: Minor reformatting
30292
30293 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
30294
30295 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
30296
30297 2005-03-15 Javier Miranda <miranda@adacore.com>
30298 Robert Dewar <dewar@adacore.com>
30299 Thomas Quinot <quinot@adacore.com>
30300 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30301
30302 * atree.ads, atree.adb: Add support for Elist24 field
30303
30304 * atree.h: Fix wrong definition of Field27
30305 Add support for Elist16 field
30306 Add support for Elist24 field
30307
30308 * einfo.ads, einfo.adb (Abstract_Interfaces,
30309 Set_Abstract_Interfaces): New subprograms.
30310 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
30311 subprograms.
30312 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
30313 entities rather than a single node.
30314 (Is_Interface, Set_Is_Interface): New subprogram
30315 (First_Tag_Component): New syntesized attribute
30316 (Next_Tag_Component): New synthesized attribute
30317 (Write_Entity_Flags): Upgraded to write Is_Interface
30318 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
30319 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
30320 (Task_Body_Procedure): New subprogram to read this attribute.
30321 (Set_Task_Body_Procedure): New subprogram to set this attribute.
30322 (Has_Controlled_Component): Now applies to all entities.
30323 This is only a documentation change, since it always worked to apply
30324 this to other than composite types (yielding false), but now this is
30325 official.
30326 Update documentation on Must_Be_Byte_Aligned for new spec
30327
30328 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
30329 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
30330 uses of the Access_Disp_Table attribute to reference the first dispatch
30331 table associated with a tagged type. As
30332 part of the implementation of abstract interface types,
30333 Access_Disp_Table has been redefined to contain a list of dispatch
30334 tables (rather than a single dispatch table).
30335 Similarly, upgrade all the references to Tag_Component by the
30336 new attribute First_Tag_Component.
30337 (Find_Inherited_TSS): Moved to exp_tss.
30338 Clean up test in Expand_N_Object_Declaration for cases
30339 where we need to do a separate assignment of the initial value.
30340 (Expand_N_Object_Declaration): If the expression in the
30341 declaration of a tagged type is an aggregate, no need to generate an
30342 additional tag assignment.
30343 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
30344 is to be deleted.
30345 Bit packed array ops are only called if operands are known to be
30346 aligned.
30347 (Component_Equality): When returning an N_Raise_Program_Error statement,
30348 ensure that its Etype is set to Empty to avoid confusing GIGI (which
30349 expects that only expressions have a bona fide type).
30350 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
30351 determine the amount of data to be copied.
30352
30353 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
30354 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
30355 INTERFACE_TYPE_DEFINITION ::=
30356 [limited | task | protected | synchronized] interface
30357 [AND interface_list]
30358
30359 * par-ch3.adb (P_Type_Declaration): Modified to give support to
30360 interfaces.
30361 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
30362 interfaces.
30363 (P_Interface_Type_Definition): New subprogram that parses the new
30364 syntax rule of Ada 2005 interfaces
30365 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
30366 messages by the correct RENAMES (quotes removed).
30367
30368 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
30369 attribute First_Tag_Component.
30370
30371 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
30372 (Interface_List, Set_Interface_List): New subprograms.
30373 (Interface_Present, Set_Interface_Present): New subprograms.
30374 (Limited_Present, Set_Limited_Present): Available also in derived
30375 type definition nodes.
30376 (Protected_Present, Set_Protected_Present): Available also in
30377 record type definition and
30378 derived type definition nodes.
30379 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
30380 (Task_Present, Set_Task_Present): New subprogram.
30381 (Task_Body_Procedure): Removed.
30382 (Set_Task_Body_Procedure): Removed.
30383 These subprogram have been removed because the attribute
30384 Task_Body_Procedure has been moved to the corresponding task type
30385 or task subtype entity to leave a field free to store the list
30386 of interfaces implemented by a task (for AI-345)
30387 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
30388 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
30389 expression flag Do_Range_Check
30390 (Exception_Junk): Change to Flag7 to accomodate above change
30391 (Box_Present, Default_Name, Specification, Set_Box_Present,
30392 Set_Default_Name, Set_Specification): Expand the expression
30393 "X in N_Formal_Subprogram_Declaration" into the corresponding
30394 two comparisons. Required to use the csinfo tool.
30395
30396 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
30397 "with string" given.
30398
30399 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
30400 expression given.
30401
30402 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
30403 in 2005 mode
30404
30405 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
30406 attribute Task_Body_Procedure rather than the old semantic field that
30407 was available in the task_type_declaration node.
30408
30409 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
30410 interface type definitions.
30411 (P_Formal_Derived_Type_Definition): Modified to handle the list of
30412 interfaces.
30413
30414 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
30415 task type declaration.
30416 (P_Protected): Modified to handle the list of interfaces in a
30417 protected type declaration.
30418
30419 2005-03-15 Doug Rupp <rupp@adacore.com>
30420 Vincent Celier <celier@adacore.com>
30421
30422 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
30423 (Gen_Output_File_C): Likewise.
30424 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
30425
30426 2005-03-15 Thomas Quinot <quinot@adacore.com>
30427
30428 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
30429 is an N_Raise_Constraint_Error node, create a new copy of it without
30430 going through a call to Duplicate_Subexpr.
30431
30432 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30433 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30434 Nicolas Setton <setton@adacore.com>
30435 Ed Schonberg <schonberg@adacore.com>
30436
30437 PR ada/19900
30438 PR ada/19408
30439 PR ada/19140
30440 PR ada/20255
30441 * decl.c (gnat_to_gnu_field): Reject aliased components with a
30442 representation clause that prescribes a size not equal to the rounded
30443 size of their types.
30444 (gnat_to_gnu_entity, case E_Component): Always look at
30445 Original_Record_Component if Present and not the entity.
30446 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
30447 of tagged extension types by not making field for components that are
30448 inside the parent.
30449 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
30450 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
30451 expression to the type of the object when the object is constant.
30452 Reverse defer_debug_incomplete_list before traversing it, so that trees
30453 are processed in the order at which they were added to the list. This
30454 order is important when using the stabs debug format.
30455 If we are deferring the output of debug information, also defer this
30456 output for a function return type.
30457 When adding fields to a record, prevent emitting debug information
30458 for incomplete records, emit the information only when the record is
30459 complete.
30460 (components_to_record): New parameter defer_debug.
30461 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
30462 (gnat_to_gnu_field_decl): New function.
30463 (substitution_list, annotate_rep): Call it.
30464 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
30465 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
30466 No longer update discriminants to not be a COMPONENT_REF.
30467 (copy_alias_set): Strip padding from input type; also handle
30468 unconstrained arrays properly.
30469
30470 * gigi.h (write_record_type_debug_info): New function.
30471 Convert to use ANSI-style prototypes. Remove unused
30472 declarations for emit_stack_check, elab_all_gnat and
30473 set_second_error_entity.
30474 (gnat_to_gnu_field_decl): New decl.
30475
30476 * utils.c (write_record_type_debug_info): New function.
30477 (finish_record_type): Delegate generation of debug information to
30478 write_record_type_debug_info.
30479 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
30480 (update_pointer_to): Fix pasto.
30481 (convert) <UNION_TYPE>: Accept slight type variations when
30482 converting to an unchecked union type.
30483
30484 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
30485 replace the N_Freeze_Entity with a null statement.
30486
30487 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
30488 within a constrained subcomponent of an enclosing record, place the
30489 freeze nodes in the scope stack entry for the enclosing record.
30490 (Undelay_Type): New Subprogram.
30491 (Set_Small_Size): Pass T, the type to modify; all callers changed.
30492 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
30493 within records; allow them to have freeze nodes if their base types
30494 aren't frozen yet.
30495
30496 * exp_util.adb (Remove_Side_Effects): Properly test for
30497 Expansion_Delayed and handle case when it's inside an
30498 N_Qualified_Expression.
30499
30500 * sem_ch3.adb (Derived_Type_Declaration): New predicate
30501 Comes_From_Generic, to recognize accurately that the parent type in a
30502 derived type declaration can be traced back to a formal type, because
30503 it is one or is derived from one, or because its completion is derived
30504 from one.
30505 (Constrain_Component_Type): If component comes from source and has no
30506 explicit constraint, no need to constrain in in a subtype of the
30507 enclosing record.
30508 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
30509 Minor change to propagate Is_Ada_2005 flag
30510
30511 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
30512 Expansion_Delayed is False.
30513 (assoc_to_constructor): Ignore fields that have a
30514 Corresponding_Discriminant.
30515 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
30516 function returns "by target", dereference the target pointer using the
30517 type of the actual return value.
30518 <all>: Be prepared for a null gnu_result.
30519 (processed_inline_subprograms): Check flag_really_no_inline
30520 instead of flag_no_inline.
30521 (set_second_error_entity): Remove unused function.
30522 (gnat_to_gnu, case N_Selected_Component): Call
30523 gnat_to_gnu_field_decl.
30524 (assoc_to_constructor): Likewise.
30525
30526 2005-03-15 Robert Dewar <dewar@adacore.com>
30527 Ed Schonberg <schonberg@adacore.com>
30528 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30529
30530 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
30531 Must_Be_Byte_Aligned for cases where we do not need to use a
30532 System.Pack_nn unit.
30533
30534 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
30535 as procedures.
30536 Needed now that we do some processing for IN parameters as well. This
30537 may well fix some unrelated errors.
30538 (Expand_Call): Handle case of unaligned objects (in particular those
30539 that come from packed arrays).
30540 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
30541 renamed entity is an inherited operation, re-expand the call using the
30542 original operation, which is the one to call.
30543 Detect attempt to inline parameterless recursive subprogram.
30544 (Represented_As_Scalar): Fix to work properly with private types
30545 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
30546 accurate estimate. Yields True in far fewer cases than before,
30547 improving the quality of code that depends on this test.
30548
30549 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
30550 over both visible and private declarations to remove them from tree,
30551 and mark subprograms declared in package as eliminated, to prevent
30552 spurious use in subsequent compilation of generic units in the context.
30553
30554 * exp_util.ads: Minor cleanup in variable names
30555
30556 * sem_eval.ads, sem_eval.adb: Minor reformatting
30557 (Compile_Time_Known_Bounds): New function
30558
30559 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30560
30561 * exp_ch7.adb (Convert_View): Use base types of underlying types when
30562 determining whether an unchecked conversion is needed for the argument
30563 of an initialization call.
30564
30565 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30566
30567 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
30568 that appears in the instantiation rather than the internal subtype
30569 generated in the wrapper package, to avoid anomalies in gigi when the
30570 target is derived from a private type whose full view is an access type.
30571
30572 2005-03-15 Robert Dewar <dewar@adacore.com>
30573
30574 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
30575 not needed.
30576 Add documentation to replace the use of this flag
30577 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
30578 the x86_64.
30579
30580 2005-03-15 Thomas Quinot <quinot@adacore.com>
30581
30582 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
30583 here from exp_attr so it can be shared between exp_attr and exp_dist.
30584 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
30585 all TSS names, not a subset thereof, and the previous name introduced
30586 an unnecessarily confusion that a distinction might exist between
30587 "OK" TSS names and some "not OK" TSS names.
30588
30589 2005-03-15 Doug Rupp <rupp@adacore.com>
30590
30591 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
30592 Command_Name.
30593
30594 2005-03-15 Pascal Obry <obry@adacore.com>
30595 Eric Botcazou <ebotcazou@adacore.com>
30596
30597 PR ada/20226
30598 PR ada/20344
30599 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
30600 when IN_RTS. This is to work around a bootstrap path problem.
30601
30602 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
30603 table and pass it to __gnat_install_SEH_handler().
30604 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
30605
30606 * lang.opt: Fix specification of -fRTS=.
30607
30608 2005-03-15 Doug Rupp <rupp@adacore.com>
30609 Bernard Banner <banner@adacore.com>
30610 Vincent Celier <celier@adacore.com>
30611 Arnaud Charlet <charlet@adacore.com>
30612
30613 PR ada/6852
30614 This change works fine when gnatlib is built from the gcc directory,
30615 but does not work when using the libada Makefile, since GCC_FOR_TARGET
30616 is not passed to ada/Makefile.in, so more work is needed by a
30617 Makefile/configure expert.
30618
30619 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
30620 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
30621 Setup gnatlink switch -M for x86_64 linux, as it is already setup
30622 for Linux x86.
30623 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
30624 Run ranlib on libgccprefix.a
30625 Define PREFIX_OBJS for Darwin, to build libgccprefix.
30626 (ADA_INCLUDE_SRCS): Split Ada packages.
30627
30628 2005-03-15 Robert Dewar <dewar@adacore.com>
30629
30630 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
30631
30632 * impunit.adb: Add GNAT.UTF_32
30633
30634 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
30635
30636 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
30637 now uses GNAT.UTF_32).
30638
30639 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
30640 capabilities for categorizing characters using Unicode categories
30641
30642 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30643
30644 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
30645 instantiation that has been rewritten as a package body, retrieve spec
30646 to generate proper name for implicit_with_clause.
30647 (Install_Parents): Recognize a parent that is an instantiation but has
30648 been rewritten as a package declaration during analysis.
30649
30650 2005-03-15 Javier Miranda <miranda@adacore.com>
30651 Ed Schonberg <schonberg@adacore.com>
30652
30653 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
30654 parameter reported some error we immediately return. This improves the
30655 behaviour of the frontend in case of errors.
30656 (Install_Parent, Remove_Parent): Introduce new flag
30657 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
30658 ancestor of a generic child unit, when the child is being instantiated.
30659 (Inline_Instance_Body): If we are compiling the private
30660 part or the body of a child unit, restore the proper visibility of the
30661 parents after compiling the instance body.
30662
30663 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30664 Javier Miranda <miranda@adacore.com>
30665
30666 PR ada/15608
30667 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
30668 of a private type, in which case it is underlying_type that denotes
30669 the proper task. Also modified to use the new entity attribute
30670 that is directly available in the task type and task subtype entities
30671 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
30672 arrays when other dimensions than the first are constrained by
30673 discriminants of an enclosing record.
30674 (Insert_Explicit_Dereference): If the prefix is an indexed component or
30675 a combination of indexed and selected components, find ultimate entity
30676 and generate the appropriate reference for it, to suppress spurious
30677 warnings.
30678 (Note_Possible_Modification): If an entity name has no entity, return.
30679 (Is_Variable): A function call never denotes a variable.
30680 (Requires_Transient_Scope): For record types, recurse only on
30681 components, not on internal subtypes that may have been generated for
30682 constrained components.
30683
30684 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30685
30686 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
30687 Eliminated as candidates for resolution. Both efficient, and avoids
30688 anomalies with operators declared in deleted code.
30689 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
30690 expansion is disabled (as when compiling a generic) to prevent spurious
30691 warnings on prefixes of selected components.
30692
30693 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30694
30695 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
30696 attached to a list before checking whether it appears in the private
30697 declarations of the current package.
30698 (Make_Inequality_Operator): Insert declaration in proper declarative
30699 list rather than just setting the Parent field, so that
30700 Is_Private_Declaration can handle it properly.
30701
30702 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30703
30704 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
30705 a renaming a body, check that the renamed subprogram in not intrinsic.
30706 (Find_Direct_Name): If several use_visible entities hide
30707 each other, and the context is a predefined file compiled through
30708 rtsfind, keep only the entity that comes from a predefined file.
30709
30710 2005-03-15 Geert Bosch <bosch@adacore.com>
30711
30712 * s-fatgen.adb (Valid): Extend special exceptions to account for long
30713 long float padding to also cover AMD64 and IA64.
30714
30715 2005-03-15 Gary Dismukes <dismukes@adacore.com>
30716
30717 * s-imgwch.adb: Add with and use of Interfaces.
30718 (Img_Wide_Character): Change type of Val to Unsigned_16.
30719 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
30720
30721 2005-03-15 Matthew Gingell <gingell@adacore.com>
30722
30723 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
30724
30725 2005-03-15 Robert Dewar <dewar@adacore.com>
30726
30727 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
30728
30729 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
30730
30731 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
30732
30733 2005-03-15 Robert Dewar <dewar@adacore.com>
30734
30735 * s-bitops.adb, s-bitops.ads,
30736 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
30737 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
30738 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
30739 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
30740 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
30741 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
30742 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
30743 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
30744 reformatting.
30745
30746 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30747
30748 * utils2.c (build_binary_op): Fix typo.
30749
30750 2005-03-15 Doug Rupp <rupp@adacore.com>
30751
30752 * s-crtl.ads (popen,pclose): New imports.
30753
30754 2005-03-15 Cyrille Comar <comar@adacore.com>
30755
30756 * comperr.adb (Compiler_Abort): remove references to obsolete
30757 procedures in the bug boxes for various GNAT builds.
30758
30759 2005-03-15 Vincent Celier <celier@adacore.com>
30760
30761 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
30762
30763 2005-03-15 Geert Bosch <bosch@adacore.com>
30764 Arnaud Charlet <charlet@adacore.com>
30765 Robert Dewar <dewar@adacore.com>
30766 Cyrille Comar <comar@adacore.com>
30767 Sergey Rybin <rybin@adacore.com>
30768
30769 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
30770 too specific and long-winded to be appropriate for the GNAT User's
30771 Guide.
30772 Warn about use of GCC switches not documented in the GNAT User's Guide,
30773 as these may cause generated code to not conform to Ada semantics.
30774 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
30775 Add documentation for -gnat95 and -gnat05 switches
30776 Remove paragraph documenting obsolete way to refer to third party
30777 libraries.
30778 Add a few references to Ada_05 that were missing.
30779 Update documentation on -gnatZ/-gnatL.
30780 Document limitation when using -m64 under Solaris.
30781 Change the "Name Casing" subsection of the pretty-printer section
30782 according to the changes in the dictionary processing.
30783
30784 * gnat_rm.texi: Document the Ada_05 pragma.
30785 Section on record representation clauses describes the new more
30786 relaxed rules about placement of large packed bit array components.
30787 Add documentation of GNAT.UTF_32
30788
30789 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
30790
30791 * misc.c (gnat_post_options): Turn off structural
30792 aliasing for now.
30793
30794 2005-03-08 Laurent Guerby <laurent@guerby.net>
30795
30796 * system-linux-sparc.ads: Fix typo in previous commit.
30797
30798 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
30799 Laurent Guerby <laurent@guerby.net>
30800
30801 PR ada/20035
30802 * system-linux-sparc.ads: New.
30803 * Makefile.in: Add sparc linux entry.
30804
30805 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
30806
30807 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
30808 parameters as unused.
30809
30810 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
30811 Partial merge from libada-gnattools-branch:
30812
30813 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
30814 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
30815 into code in gnattools/Makefile.in. Remove direct dependencies on
30816 stamp-tools by tools clauses.
30817 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
30818 * config-lang.in: Add gnattools to $lang_dirs.
30819
30820 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
30821
30822 PR ada/19942
30823 * utils.c (gnat_type_for_mode): Return null instead of ICE because
30824 we asked for an unknown mode.
30825
30826 2005-02-12 Richard Henderson <rth@redhat.com>
30827
30828 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
30829 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
30830
30831 2005-02-10 Andreas Jaeger <aj@suse.de>
30832
30833 * init.c (__gnat_initialize): Mark parameter as unused.
30834
30835 2005-02-09 Doug Rupp <rupp@adacore.com>
30836
30837 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
30838 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
30839
30840 2005-02-09 Doug Rupp <rupp@adacore.com>
30841
30842 * gnatchop.adb (dup, dup2),
30843 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
30844
30845 * gnatlbr.adb (mkdir),
30846 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
30847
30848 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
30849
30850 2005-02-09 Doug Rupp <rupp@adacore.com>
30851
30852 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
30853
30854 2005-02-09 Robert Dewar <dewar@adacore.com>
30855 Thomas Quinot <quinot@adacore.com>
30856 Javier Miranda <miranda@adacore.com>
30857 Pascal Obry <obry@adacore.com>
30858 Ed Schonberg <schonberg@adacore.com>
30859 Doug Rupp <rupp@adacore.com>
30860 Gary Dismukes <dismukes@adacore.com>
30861 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30862
30863 * g-zstspl.ads: New file.
30864
30865 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
30866
30867 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
30868 Ada 95 mode
30869 Add definition of Wide_Wide_Space for AI-285
30870
30871 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
30872 interface (to support Ada 95 and Ada 2005 units).
30873 Add Unbounded_IO files
30874 Add entries for Wide_Wide packages for AI-285
30875 Add list of containers packages to Ada 2005 unit list
30876
30877 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
30878 support new Unbounded_IO package cleanly.
30879
30880 * g-utf_32.ads, g-utf_32.adb: New files.
30881
30882 * Makefile.rtl: Add entry for g-utf_32
30883 Add new files for Unbounded_IO
30884 Adjust make file for new AI-285 wide wide packages
30885 Add AI-302 containers to the run time.
30886
30887 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
30888 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
30889 subprograms for AI-301.
30890
30891 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
30892
30893 * a-stunau.ads: Minor comment correction
30894
30895 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
30896 etc.
30897 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
30898 (Check_RPC): Update to match changes in expanded code.
30899 Clean up unused entity.
30900
30901 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
30902 was not taken into account.
30903 This includes proper initialization with Normalize_Scalars.
30904 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
30905 normalize scalars cases (particularly the latter) to do a better job
30906 of finding invalid representations.
30907
30908 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
30909
30910 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
30911 used
30912
30913 * exp_dist.adb: Add support for wide wide character type
30914 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
30915 private part, generate stub bodies at the end of the private part,
30916 not the visible part.
30917 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
30918 PolyORB support.
30919 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
30920 generic wrapper to execute final processing after completing the
30921 expansion of the RPC receiver for an RACW.
30922
30923 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
30924 packages and attributes.
30925 (Preset_Names): Addition of the new reserved words of Ada 2005,
30926 that is interface, overriding and synchronized.
30927 (Get_Pragma_Id): Give support to the use of the new reserved word
30928 "interface" as a pragma name.
30929 (Is_Pragma_Name): Give support to the use of the new reserved word
30930 "interface" as a pragma name.
30931 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
30932 attribute implementation.
30933
30934 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
30935 checks to entities that are output parameters of Asm operations.
30936 Handle the Stream_Size attribute.
30937 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
30938
30939 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
30940
30941 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
30942 for second parameter being 0.0.
30943 Add support for wide wide character type.
30944 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
30945
30946 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
30947 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
30948 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
30949 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
30950 for wide wide character cases.
30951
30952 * cstand.adb: Create entities for Wide_Wide_Character and
30953 Wide_Wide_String.
30954
30955 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
30956 accordance with AI-258.
30957 Add new declarations for 16/32 bit C character types (Part of AI285)
30958
30959 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
30960 (Obsolescent_Warning): New field
30961 (Rep_Clause): New local subprogram used to share code. Returns the rep
30962 clause for which the name is given in parameter.
30963 (Has_Stream_Size_Clause): New routine.
30964 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
30965 (Address_Clause): Implementation is now using Rep_Clause.
30966 (Alignment_Clause): Idem.
30967 (Size_Clause): Idem.
30968
30969 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
30970 entity in non-Ada 2005 mode and generate warning.
30971
30972 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
30973 (Prag): Code cleanup. Remove old gnat pragma "overriding"
30974
30975 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
30976 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
30977 on the named unit if the pragma is not in the current compilation unit,
30978 so that elaboration calls in the current unit can set up an elaboration
30979 dependency on the named unit, as needed.
30980 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
30981 subprogram as well as for subprograms declared within a package.
30982 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
30983 pragma overriding.
30984
30985 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
30986 to z) to avoid some instances of duplication for Wide_Wide packages.
30987
30988 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
30989 characters.
30990
30991 * scn.adb: Char_Literal_Value field is now a Uint
30992
30993 * scng.adb: Significant rewrite to handle new Ada 2005 features
30994 allowing wide and wide wide characters in program text, e.g. for
30995 identifiers, as described in AI-285.
30996 (Set_Reserved): New procedure, makes setting up keywords cleaner.
30997 (Initialize_Scanner): Register the new reserved words of Ada 2005.
30998 (Scan): Give support to the new reserved words.
30999
31000 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
31001 warning notifying that interface, overriding, and synchronized are
31002 new reserved words.
31003 (P_Pragma): Allow the use of the new reserved word "interface" as
31004 a pragma name.
31005
31006 * gnatls.adb, gnatbind.adb,
31007 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
31008 identifiers named "interface" to "SAL_Interface".
31009
31010 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
31011 (Structured Exception handling).
31012 (Gen_Main_C): Idem.
31013
31014 * bindgen.adb:
31015 (Gen_Main_Ada): Set the default exit code if specified.
31016 (Gen_Main_C): Likewise.
31017 Part of *DC20-006.
31018 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
31019 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
31020
31021 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
31022 new -Xnnn switch.
31023
31024 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
31025 has a collision with the new Ada 2005 "interface" reserved word.
31026
31027 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
31028 generate a warning notifying that interface, overriding, and
31029 synchronized are new reserved words.
31030
31031 * scans.ads (Token_Type): Addition of the tokens corresponding to the
31032 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
31033 and Tok_Synchronized.
31034
31035 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
31036 "dispatching" rather than "primitive" operations, since dispatching
31037 calls are now allowed to abstract formal subprograms (which are not
31038 primitive).
31039 Char_Literal_Value field is now a Uint
31040 (Resolve_Slice): If the prefix is an access to an unconstrained array,
31041 compute the actual subtype of the designated object to impose the proper
31042 index constraints.
31043 (Resolve_Selected_Component): Do not insert an access check if the
31044 prefix is an access type: such a node is expanded into an explicit
31045 dereference, on which the access check is performed anyway. Removes
31046 expensive duplicate checks.
31047 (Resolve_Call): Use new flag Is_Obsolescent and field
31048 Obsolescent_Warning so that pragma Obsolescent works on library
31049 subprograms.
31050 Add support for wide wide character type
31051 (Resolve_Allocator): Replace the error message on wrong null-exclusion
31052 value by a warning message.
31053 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
31054 as fixed-point, and one of the operands is non-static and universal, it
31055 can only be an illegal exponentiation operation, in which case there is
31056 no real value to retrieve.
31057
31058 * exp_strm.adb: Add support for wide wide character type
31059 (Build_Elementary_Input_Call): Compute the size of the stream element by
31060 querying the rep chain to find the Stream_Attribute attribute value.
31061 (Build_Elementary_Write_Call): Ditto.
31062
31063 * sem_aggr.adb: Char_Literal_Value field is now a Uint
31064 Add support for wide wide character type
31065 Replace the error messages on wrong null-exclusion value by warnings
31066 as described in Ada 2005.
31067 (Resolve_Extension_Aggregate): Document the fact that the error
31068 message on class-wide expressions in extensions aggregates.
31069
31070 * sem_case.adb: Add support for wide wide character type
31071
31072 * sem_ch13.adb: Add support for wide wide character type
31073 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
31074
31075 * sem_ch3.adb: Add support for wide wide character type
31076 (Process_Subtype): If constraint is illegal for the type, set Ekind of
31077 now-useless Itype, to prevent cascaded errors on a compiler built
31078 without -gnatp.
31079
31080 * sem_ch8.adb: Add with and use of Sem_Disp.
31081 (Analyze_Subprogram_Renaming): Replace unclean uses of
31082 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
31083 of Corresponding_Spec to Empty).
31084 (Attribute_Renaming): Replace use of Corresponding_Spec with
31085 Corresponding_ Formal_Spec and simplify condition.
31086 (Use_One_Package): Check that scope of homonym of identifier is defined,
31087 before checking whether it is a wrapper package.
31088 Add support for wide wide character type
31089
31090 * sem_eval.adb: Add support for wide wide character type.
31091 (Eval_Arithmetic_Op): Check for compile time known signed integer
31092 overflow in the non-static case.
31093 (Subtypes_Statically_Match): A formal scalar type and its base type do
31094 not statically match.
31095
31096 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
31097 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
31098 subtype).
31099 (Unit_Declaration_Node): Ditto.
31100 (Is_Variable_Prefix): For the case of an indexed component whose prefix
31101 has a packed array type, the prefix has been rewritten into a type
31102 conversion. Determine variable-ness from the converted expression.
31103 Handle wide wide character cases.
31104
31105 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
31106
31107 * stringt.ads, stringt.adb: Handle full UTF-32 range.
31108 Remove ["0A"] from comment, since it can look like a line terminator.
31109 Currently we don't permit this, but this is under discussion by the
31110 ARG, and it is easy enough to use a different example.
31111
31112 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
31113 handling UTF-32 encoding for wide wide character.
31114 Implement new brackets coding ["hhhhhhhh"]
31115 Add UTF-8 encodings for full UTF-32 range
31116
31117 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
31118
31119 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
31120 bit range Add full UTF-32 support.
31121 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
31122 notify that constraint error will be raised at run-time
31123 because a null value is assigned to a null-excluding object.
31124 Remove some obsolete declarations and make Char_Code
31125 unsigned.
31126
31127 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
31128 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
31129 Rcheck subprograms.
31130
31131 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
31132 wrong null-exclusion value by a warning message.
31133 (Enable_Range_Check): Do range check if the prefix is an
31134 explicit dereference whose designated object is an unconstrained array.
31135 Current algorithm for removing duplicate checks is over-eager in this
31136 case.
31137
31138 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
31139 null-exclusion value by a warning message
31140
31141 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
31142 completely. Add support for Uint2 field
31143
31144 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
31145 exp_prag.adb: Char_Literal_Value field is now a Uint.
31146
31147 * exp_util.adb (Insert_Actions): Replace
31148 N_Formal_Subprogram_Declaration by
31149 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
31150 Char_Literal_Value field is now a Uint.
31151
31152 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
31153 defined for subprogram renaming declarations. When set, the field
31154 indicates the defining entity of a corresponding formal subprogram
31155 when the renaming corresponds to a formal subprogram association in an
31156 instantiation.
31157 (Set_Corresponding_Formal_Spec): New procedure to return
31158 Corresponding_Formal_Spec field.
31159 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
31160 (which is now a subtype).
31161 Char_Literal_Value field is now a Uint
31162
31163 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
31164 pointer to the base of the dispatch table.
31165 Minor changes to comments.
31166 (Controlling_Type): New function for determining the tagged type
31167 associated with a tagged primitive subprogram.
31168 (Expand_Dispatching_Call): Add support for a controlling actual that is
31169 directly a value of type Ada.Tag rather than a tagged object.
31170
31171 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
31172 describing the new layout.
31173 (Dispatch_Table): The expander computes the actual array size, allocates
31174 the Dispatch_Table record accordingly, and generates code that displaces
31175 the base of the record after the Typeinfo_Ptr component. The access to
31176 these components is done by means of local functions.
31177 (Offset_To_Top): New function.
31178 (Typeinfo_Ptr): New function.
31179 (Get_TSD): Modified to access the new position of the TSD.
31180 (Set_TSD): Modified to save the TSD in its new position.
31181
31182 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
31183 case of formal abstract subprograms. Add check and message for -gnat05.
31184 Update comments.
31185
31186 * sem_ch12.adb: Add with and use for Sem_Disp.
31187 (Analyze_Associations): Minor change from "=" to "in" for use of
31188 N_Formal_Subtype_Declaration (which is now a subtype).
31189 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
31190 N_Formal_Subtype_Declaration (which is now a subtype).
31191 (Analyze_Formal_Subprogram): Add handling for
31192 N_Formal_Abstract_Subprogram, marking the formal as abstract and
31193 dispatching, setting the controlling status of the formal parameters
31194 and result, and issuing an error if there is no controlling type for
31195 the formal subprogram.
31196 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
31197 which is an unclean use of that field, we set the new field
31198 Corresponding_Formal_Spec to make the formal subprogram available to
31199 processing in Analyze_Subprogram_Declaration.
31200 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
31201 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
31202 Constrained, so that it is is does not statically match its anonymous
31203 base type.
31204
31205 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
31206 abstract formal subprograms in error check for functions returning
31207 abstract types. Set scope of new designator for
31208 a parameterless subprogram, so that it is available when checking the
31209 body for nested subprograms, before full analysis of said body.
31210 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
31211 subprogram only if inner one comes from source.
31212 (Analyze_Function_Call): If the call is given in object notation, the
31213 analysis of the name rewrites the node and analyzes it with the proper
31214 argument list. After analyzing the name, if the call has been rewritten
31215 and the result type is set, no further analysis is needed.
31216 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
31217 mark in function specification, in a context where the formals are
31218 visible and hide outer homographs.
31219
31220 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
31221 as the tagged type for the cases of abstract formal subprograms and
31222 renamings of those. Clean up spec comments.
31223 (Check_Dispatching_Context): Add error message to indicate "abstract
31224 procedure", covering the case of a call to a formal abstract procedure
31225 that has statically tagged operands.
31226 (Check_Dispatching_Call): Check for the case of an actual given by
31227 a tag-indeterminate function call whose type is an ancestor of the
31228 containing call's associated tagged type. This situation can occur
31229 for inherited primitives with function defaults. In this case we
31230 use the tagged type's tag directly as the controlling argument for
31231 the calls.
31232 (Expand_Call): Name change on call to Expand_Dispatch_Call.
31233
31234 * sprint.adb (Sprint_Node_Actual): Split
31235 N_Formal_Subprogram_Declaration into two alternatives for the new
31236 cases N_Formal_Abstract_Subprogram_Declaration and
31237 N_Formal_Concrete_Subprogram_Declaration.
31238 Char_Literal_Value field is now a Uint.
31239
31240 * trans.c: Get rid of junk Uint2 reference.
31241 Char_Literal_Value field is now a Uint.
31242 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
31243 (gigi): Correct third arg to gimplify_body.
31244
31245 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
31246 (TYPE_LANG_FLAG_0): Check for record or union.
31247
31248 * treepr.adb: Char_Literal_Value field is now a Uint
31249
31250 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
31251 UI_From_CC.
31252
31253 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
31254 Add full UTF-32 support
31255 Char_Code is now 32 bits
31256
31257 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
31258 wide character UTF_32 line terminators.
31259 Initialize Main_Source_File to avoid error when no main
31260 source is loaded.
31261
31262 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
31263 (Main_Source_File) when no main source has been loaded, to avoid
31264 potential crash.
31265
31266 2005-02-09 Robert Dewar <dewar@adacore.com>
31267
31268 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
31269 Fix name of Set routine
31270
31271 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
31272 fixed packages.
31273
31274 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
31275 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
31276 fixed packages
31277
31278 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
31279 forms of Get_Line subprograms for AI-301.
31280
31281 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
31282 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
31283 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
31284 a-stwima.ads: Minor reformatting.
31285
31286 2005-02-09 Doug Rupp <rupp@adacore.com>
31287 Thomas Quinot <quinot@adacore.com>
31288
31289 * adaint.c, adaint.h
31290 [VMS] (to_ptr32): New function.
31291 (MAYBE_TO_PTR32): New macro.
31292 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
31293 for pointer size.
31294 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
31295 [VMS] (#define fork()): Remove since unneccessary.
31296 (__gnat_set_close_on_exec): New routine to support
31297 GNAT.OS_Lib.Set_Close_On_Exec.
31298
31299 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
31300 the parent side as close-on-exec so that they are not inherited by the
31301 child.
31302
31303 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
31304 set or clear the FD_CLOEXEC flag on a file descriptor.
31305
31306 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
31307 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31308
31309 PR ada/19386
31310 * decl.c:
31311 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
31312 on the field if Pragma Component_Alignment (Storage_Unit).
31313 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
31314 side-effects as if it were a constant; also make SAVE_EXPR to protect
31315 side-effects.
31316 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
31317 UNION_TYPE.
31318 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
31319 (components_to_record): Test it.
31320 Fix improper usage of REFERENCE_CLASS_P.
31321
31322 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
31323 RECORD_TYPE.
31324
31325 * utils2.c: Minor reformatting.
31326
31327 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
31328 handle other cases like RECORD_TYPE.
31329
31330 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
31331
31332 2005-02-09 Ed Schonberg <schonberg@adacore.com>
31333
31334 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
31335 component of an array of arrays in an assignment context, and the
31336 aggregate has component associations that require sliding on
31337 assignment, force reanalysis of the aggregate to generate a temporary
31338 before the assignment.
31339 (Must_Slide): Make global to the package, for use in Gen_Assign.
31340
31341 2005-02-09 Ed Schonberg <schonberg@adacore.com>
31342
31343 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
31344 unchecked union with no inferable discriminants, return a
31345 Raise_Program_Error node, rather than inserting it at the point the
31346 type is frozen.
31347 (Expand_Record_Equality, Component_Equality): Handle properly the case
31348 where some subcomponent is an unchecked union whose generated equality
31349 code raises program error.
31350
31351 2005-02-09 Doug Rupp <rupp@adacore.com>
31352
31353 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
31354 [VMS] (#define exit hack): Remove.
31355
31356 2005-02-09 Pascal Obry <obry@adacore.com>
31357 Arnaud Charlet <charlet@adacore.com>
31358
31359 * init.c (__gnat_initialize): Add a new parameter eh which contains the
31360 address of the exception registration. The Win32 version of this
31361 routine calls __gnat_install_SEH_handler() to initialize the SEH
31362 (Structured Exception Handling) handler.
31363 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
31364 SEH (Structured Exception Handling) now.
31365 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
31366 (__gnat_initialize for ppc-vxworks): Adjust comments and the
31367 preprocessor condition protecting the call to the extra eh setup
31368 subprogram, which is only available for the ppc target.
31369 (__gnat_clear_exception_count): replaced reference to
31370 variable taskIdCurrent by call to taskIdSelf(), cleaner.
31371
31372 * seh_init.c: New file.
31373
31374 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
31375 (GNATBIND_OBJS): Idem.
31376
31377 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
31378 routine takes a new parameter (a pointer to the exception registration
31379 for the SEH (Structured Exception Handling) support.
31380
31381 * raise.h: (__gnat_install_SEH_handler): New prototype.
31382 Update copyright notice.
31383
31384 * s-tassta.adb (Task_Wrapper): Declare the exception registration
31385 record and initialize it by calling __gnat_install_SEH_handler.
31386
31387 2005-02-09 Vincent Celier <celier@adacore.com>
31388
31389 * make.adb (Gnatmake): Do not fail when the main project has no object
31390 directory.
31391
31392 2005-02-09 Doug Rupp <rupp@adacore.com>
31393
31394 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
31395 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
31396 [VMS]: Add translations for g-enblsp.adb.
31397
31398 * s-asthan-vms.adb: Removed.
31399 * s-asthan-vms-alpha.adb: Added.
31400
31401 2005-02-09 Pascal Obry <obry@adacore.com>
31402
31403 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
31404 (LIBGNAT_OBJS): Add seh_init.o.
31405
31406 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31407
31408 PR ada/16592
31409 * Makefile.in: Link all gnat tools with -static-libgcc, since
31410 -shared-libgcc is now used by default on some systems (e.g. linux with
31411 recent binutils).
31412 Remove references to Makefile.prolog/generic, no longer used.
31413
31414 2005-02-09 Vincent Celier <celier@adacore.com>
31415
31416 * prj-makr.adb (Process_Directory): Put file name in canonical case
31417 before matching against the patterns.
31418 If gnatname has been invoked as <prefix>-gnatname
31419 then invoke the compiler as <prefix>-gcc, not just "gcc".
31420
31421 2005-02-09 Ed Schonberg <schonberg@adacore.com>
31422
31423 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
31424 with expansion disabled. The actual subtype is needed among other
31425 places when the selected component appears in the context of a loop
31426 bound, and denotes a packed array.
31427 (Operator_Check): Always use the first subtype in the
31428 error message, to avoid the appearance of internal base types.
31429 (Transform_Object_Operation): Copy each actual in full
31430 to the parameter associations of the constructed call, rather than
31431 using the shallow copy mechanism of New_Copy_List. This ensures that
31432 the chaining of named associations is done properly.
31433 (Complete_Object_Operation): Rewrite node, rather than
31434 replacing it, so that we can trace back to the original selected
31435 component.
31436
31437 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
31438 and calls that use object notation, if the called function is not
31439 declared in a withed unit, place the elaboration constraint on the
31440 unit in the context that makes the function accessible.
31441 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
31442 imposes an elaboration constraint between two packages.
31443
31444 2005-02-09 Ed Schonberg <schonberg@adacore.com>
31445
31446 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
31447 views of a private type after handling its private dependents, to
31448 maintain proper stack discipline between entry and exit from the
31449 package.
31450
31451 2005-02-09 Cyrille Comar <comar@adacore.com>
31452
31453 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
31454 Minor reformatting.
31455
31456 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31457
31458 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
31459 fields for foreign threads.
31460
31461 2005-02-09 Doug Rupp <rupp@adacore.com>
31462
31463 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
31464 recursion warnings when compiled with -gnatdm.
31465
31466 2005-02-09 Robert Dewar <dewar@adacore.com>
31467
31468 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
31469 Slight fix to documentation of -gnaty with no parameters
31470
31471 * xr_tabls.ads: Add ??? comment for missing overall comment
31472
31473 * xsinfo.adb: Make default file name be sinfo.h, since this is what
31474 we now use by default.
31475
31476 * xsnames.adb: Adjust end of file test to look for five space followed
31477 by '#' instead of six spaces. The format of xsnames.adb was modified
31478 in the last update.
31479
31480 * a-numeri.ads: Add reference to AI-388 for greek letter pi
31481 identifier.
31482
31483 * clean.adb: Minor reformatting.
31484
31485 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
31486 gnatname.adb: Minor reformatting
31487 Add 2005 to copyright output when utility is run
31488
31489 * csets.adb: Eliminate obsolete comment
31490
31491 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
31492 Update comments.
31493
31494 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
31495
31496 2005-02-09 Sergey Rybin <rybin@adacore.com>
31497
31498 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
31499 the difference between compact and incompact layout and add the record
31500 representation clause to the example illustrating different layouts.
31501 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
31502 component clauses").
31503
31504 2005-02-09 Florian Villoing <villoing@adacore.com>
31505
31506 * gnat_ugn.texi: Fix typos.
31507 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
31508 @file.
31509 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
31510 in the generated documentation.
31511
31512 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31513
31514 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
31515 longer supported.
31516 Update linker wrapper when linking with non GNU C++.
31517
31518 2005-02-09 Pascal Obry <obry@adacore.com>
31519
31520 * gnat_ugn.texi:
31521 Document the procedure to debug the DllMain routine on Windows.
31522 Add note about -funwind-tables and mixed Ada and C/C++ programming in
31523 ZCX mode.
31524 Document new BIND qualifer /RETURN_CODES=VMS.
31525
31526 2005-02-09 Ben Brosgol <brosgol@adacore.com>
31527
31528 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31529 Edited gnatmetric chapter
31530
31531 2005-02-09 Robert Dewar <dewar@adacore.com>
31532
31533 * gnat_rm.texi:
31534 Changes to document new wide wide character support
31535 For AI-285
31536 Update documentation on Normalize_Scalars and Initialize_Scalars
31537
31538 2005-02-09 Pascal Obry <obry@adacore.com>
31539
31540 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
31541
31542 2005-02-09 Jose Ruiz <ruiz@adacore.com>
31543
31544 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
31545 from the VxWorks kernel) that is needed for getting the active
31546 priority of the different tasks.
31547
31548 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
31549 Use a pragma Elaborate_Body in the spec file instead.
31550 Noticed by code reading.
31551
31552 2005-02-09 Thomas Quinot <quinot@adacore.com>
31553
31554 * exp_util.ads: Minor correction in comment.
31555
31556 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31557
31558 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
31559 since this procedure is now too complex to be worth inlining.
31560
31561 2005-02-09 Richard Henderson <rth@redhat.com>
31562
31563 * utils.c (gnat_define_builtin): Remove.
31564 (gnat_install_builtins): Use build_common_builtin_nodes.
31565
31566 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31567
31568 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
31569 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
31570 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
31571 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
31572 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
31573 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
31574 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
31575 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
31576 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
31577 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
31578 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
31579 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
31580 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
31581 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
31582 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
31583 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
31584 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
31585 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
31586 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
31587 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
31588 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
31589 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
31590 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
31591 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
31592 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
31593 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
31594 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
31595 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
31596 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
31597 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
31598 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
31599 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
31600 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
31601 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
31602 library.
31603
31604 2005-01-27 Laurent Guerby <laurent@guerby.net>
31605
31606 * Makefile.in: Fix a-intnam.ads from previous commit,
31607 add 2005 to copyright.
31608 * a-intman-rtems.ads: Renamed to...
31609 * a-intnam-rtems.ads:
31610
31611 2005-01-27 Laurent Guerby <laurent@guerby.net>
31612
31613 * Makefile.in: Rename GNAT RTEMS specific files.
31614 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
31615 5rosinte.ads, 5rparame.adb: Replaced by files below.
31616 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
31617 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
31618
31619 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
31620 Laurent Guerby <laurent@guerby.net>
31621
31622 PR ada/19488
31623 * 5rosinte.ads: Add No_Key constant.
31624 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
31625 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
31626
31627 2005-01-26 Laurent Guerby <laurent@guerby.net>
31628
31629 PR ada/19414
31630 * i-cobol.adb (Valid_Numeric): Handle zero length case.
31631
31632 2005-01-20 Richard Henderson <rth@redhat.com>
31633
31634 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
31635 a-intnam-linux.ads and system-linux-alpha.ads.
31636 * a-intnam-linux-alpha.ads: Remove file.
31637 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
31638 * system-linux-alpha.ads: New file.
31639
31640 2005-01-18 Jakub Jelinek <jakub@redhat.com>
31641
31642 PR ada/13470
31643 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
31644 set to the new string.
31645
31646 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
31647
31648 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
31649 to True.
31650
31651 2005-01-18 Richard Henderson <rth@redhat.com>
31652
31653 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
31654 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
31655 for alpha-linux.
31656 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
31657
31658 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
31659
31660 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
31661 (GCC_ZCX_Support): Likewise.
31662
31663 2005-01-11 Bastian Blank <waldi@debian.org>
31664
31665 * system-linux-s390.ads: Define Preallocated_Stacks.
31666 * system-linux-s390x.ads: Likewise.
31667
31668 2005-01-04 Arnaud Charlet <charlet@adacore.com>
31669
31670 * gnat_ugn.texi: Fix texi errors with null variables.
31671
31672 2005-01-03 Thomas Quinot <quinot@adacore.com>
31673
31674 * gen-soccon.c: New utility program to generate g-soccon.ads
31675 automatically.
31676
31677 * socket.c, gsocket.h: Split inclusion of system header files into a
31678 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
31679
31680 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
31681 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
31682 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
31683 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
31684 should not be edited by hand anymore, but should be regenerated using
31685 gen-soccon.
31686
31687 2005-01-03 Robert Dewar <dewar@adacore.com>
31688 Ed Schonberg <schonberg@adacore.com>
31689 Vincent Celier <celier@adacore.com>
31690
31691 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
31692 on/off, since this is an obsolescent feature, for which we now generate
31693 a warning.
31694
31695 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
31696 warning mode is set and obsolescent usage of this attribute occurs.
31697 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
31698 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
31699 predates, and partly motivates, the adoption of the AI.
31700 Implement new Ada 2005 attribute Mod
31701
31702 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
31703 attribute Mod.
31704
31705 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
31706
31707 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
31708 pragma restrictions.
31709 New entry for Ada 2005 attribute Mod.
31710
31711 * par-prag.adb:
31712 Add recognition of new pragma Restrictions No_Dependence
31713 Recognize restriction No_Obsolescent_Features at parse time
31714
31715 * bcheck.adb: Add circuitry for checking for consistency of
31716 No_Dependence restrictions.
31717
31718 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
31719 restrictions.
31720
31721 * restrict.ads, restrict.adb: Add subprograms to deal with
31722 No_Dependence restrictions.
31723
31724 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
31725 restrictions.
31726
31727 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
31728 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
31729
31730 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
31731 dummy parameter to scng instantiation.
31732 Needed for new restriction No_Obsolescent_Features
31733
31734 * scn.adb: (Obsolescent_Check): New procedure
31735 Needed for new restriction No_Obsolescent_Features
31736
31737 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
31738 specified by AI-285, needed for implementation of AI-388 (adding greek
31739 pi to Ada.Numerics).
31740 Add new generic formal to scng, needed for new restriction
31741 No_Obsolescent_Features.
31742
31743 * s-rident.ads: Add new restriction No_Obsolescent_Features.
31744
31745 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
31746 restrictions lines.
31747 (Scan_ALI): When finding an unexpected character on an R line, raise
31748 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
31749 Ignore_Errors is True, default restrictions are set and scanning of the
31750 ALI file continues with the next line. Also, when Bad_R_Line is raised
31751 and Ignore_Errors is True, skip to the end of le line.
31752
31753 * sem_ch10.adb: Check that explicit with's do not violate
31754 No_Dependence restrictions.
31755 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
31756 illegal context clauses containing child units of instance.
31757
31758 * sem_prag.adb: Processing and checking for new No_Dependence
31759 restrictions.
31760 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
31761 analyze and check the External argument.
31762
31763 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
31764
31765 2005-01-03 Robert Dewar <dewar@adacore.com>
31766
31767 * atree.adb: Add a fifth component to entities
31768 This allows us to add 32 flags and four new fields
31769
31770 * atree.ads: Add a fifth component to entities
31771 This allows us to add 32 flags and four new fields
31772
31773 * einfo.ads, einfo.adb: Document new fields and new flags now available
31774 Add routines for printing new fields
31775
31776 * treepr.adb: Call routines to print out additional fields if present
31777
31778 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31779
31780 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
31781 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
31782
31783 * Makefile.in: Add support to build shared Ada libraries on solaris x86
31784 Remove gpr2make, replaced by gprmake.
31785 Remove references to gnatmem and libaddr2line.
31786 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
31787 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
31788 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
31789 a-numaux-darwin.ads and a-numaux-darwin.adb
31790 Enable mlib-tgt-lynxos.adb on lynxos.
31791
31792 * Make-lang.in: Remove rules for gpr2make.
31793 When generating sdefault.adb, do not call Relocate_Path
31794 on S3 for function Target_Name, as it is not a path.
31795 Remove references to gnatmem and libaddr2line.
31796
31797 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
31798 files.
31799
31800 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
31801
31802 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
31803 address is incompatible with its base type alignment constraints when
31804 this can be decided statically.
31805
31806 2005-01-03 Olivier Hainque <hainque@adacore.com>
31807
31808 * decl.c (compatible_signatures_p): New function. The intended purpose
31809 is to check if two function signatures for a call-site and a callee are
31810 compatible enough for the call to be valid. The underlying purpose is
31811 to check if a call to a mapped builtin is using the right interface.
31812 The current code actually does not check antyhing - this a placeholder
31813 for future refinements.
31814 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
31815 builtin calls for convention Intrinsic.
31816
31817 * gigi.h (builtin_decl_for): Declare (new function).
31818
31819 * utils.c (gnat_install_builtins): Install the target specific builtins.
31820 (builtin_decl_for): New function, provide a dummy body for now.
31821
31822 2005-01-03 Geert Bosch <bosch@adacore.com>
31823
31824 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
31825 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
31826 (Pred): Implement in terms of Succ.
31827
31828 * trans.c (convert_with_check): Reimplement conversion of float to
31829 integer.
31830
31831 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31832 Vincent Celier <celier@adacore.com>
31833
31834 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
31835 bounds can be negative, and must be declared Int, not Nat.
31836
31837 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
31838 array is checked after using the index in the array.
31839
31840 * makegpr.adb (Add_Switches): Check if there is a package for the
31841 processor. If there is no package, do not look for switches.
31842
31843 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31844
31845 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
31846 generation of predefined stream operations (specs and bodies) should
31847 proceed. Under various restrictions these subprograms must not be
31848 generated.
31849
31850 2005-01-03 Thomas Quinot <quinot@adacore.com>
31851
31852 * exp_dist.adb:
31853 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
31854 amount of PCS-specific code in RACW stubs generation.
31855 (Copy_Specification): Set Etype on copied formal parameter entities, as
31856 this information is needed for PolyORB stubs generation.
31857 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
31858 variable Dynamic_Async.
31859 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
31860 (Build_RPC_Receiver_Specification): Make generic again, as recent
31861 changes have allowed RPC receivers to have the same profile for both
31862 variants of the PCS.
31863 Reorganise RPC receiver generation to reduce differences between the
31864 structure of GARLIC and PolyORB RPC receivers.
31865 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
31866 PCS-specific.
31867 Simplify elaboration code for RCI packages.
31868
31869 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
31870 generation to reduce differences between the structure of GARLIC and
31871 PolyORB RPC receivers.
31872
31873 * s-stratt.adb: Fix typo in comment.
31874
31875 2005-01-03 Thomas Quinot <quinot@adacore.com>
31876
31877 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
31878 copied from Make_Init_Call).
31879
31880 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
31881 reads and assignments on a temporary variable declared with appropriate
31882 discriminants.
31883
31884 2005-01-03 Robert Dewar <dewar@adacore.com>
31885
31886 * i-c.adb (To_C): Raise CE if string is null and Append_Null
31887
31888 2005-01-03 Robert Dewar <dewar@adacore.com>
31889
31890 * i-cstrin.adb (Update): Do not append a null in form called with a
31891 String. This avoids unintended behavior.
31892
31893 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31894
31895 PR ada/17527
31896 * init.c: Fix warnings on Free BSD section.
31897
31898 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31899
31900 PR ada/16949
31901 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
31902 xsinfo.adb).
31903
31904 2005-01-03 Vincent Celier <celier@adacore.com>
31905
31906 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
31907 libraries when Unique_Compile is True (-u switch).
31908 (Gnatmake): ditto.
31909
31910 2005-01-03 Robert Dewar <dewar@adacore.com>
31911
31912 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
31913 upper case letter or underscore after W, as allowed by spec.
31914
31915 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31916
31917 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
31918 darwin port by using proper type definitions from header files.
31919 Use SIGTERM instead of SIGABRT for SIGADAABORT.
31920
31921 2005-01-03 Robert Dewar <dewar@adacore.com>
31922
31923 * par.adb: Enhance error message handling for configuration file
31924 pragmas.
31925
31926 2005-01-03 Robert Dewar <dewar@adacore.com>
31927
31928 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
31929 removed during the previous update (test properly for case of dividing
31930 largest negative number by -1, which generates overflow).
31931
31932 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31933 Sergey Rybin <rybin@adacore.com>
31934
31935 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
31936 to use as the defining identifier for a formal package.
31937 (Remove_Parent): If the instance takes place within (an instance of)
31938 a sibling, preserve private declarations of common parent.
31939
31940 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31941
31942 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
31943 to determine whether one of the operands is a fixed-point type for
31944 which a user-defined multiplication or division operation might be
31945 defined.
31946
31947 * sem_res.adb (Valid_Conversion): The legality rules for conversions
31948 of access types are symmetric in Ada 2005: either designated type can
31949 be unconstrained.
31950
31951 2005-01-03 Vincent Celier <celier@adacore.com>
31952
31953 * s-fileio.adb (Temp_File_Record): Change length of string component
31954 Name from L_tmpnam + 1 to max_path_len + 1.
31955
31956 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31957
31958 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
31959 Self_Id.Deferral_Level = 0.
31960 (Do_Pending_Action): Move this function to the spec.
31961
31962 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
31963 Do_Pending_Action explicitely when needed, in case we're using
31964 No_Abort restrictions.
31965
31966 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
31967 deferral level since it will not get changed by the generated code.
31968 Keeping a default value of 1 would prevent some operations (e.g.
31969 select or delay) to proceed successfully.
31970
31971 2005-01-03 Ben Brosgol <brosgol@adacore.com>
31972 Robert Dewar <dewar@adacore.com>
31973 Cyrille Comar <comar@adacore.com>
31974
31975 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
31976 porting guide chapter (vms version).
31977 Revised doc title (removed "for native platforms") and subtitle.
31978 Add discussion on warning flag for obsolescent features. First we
31979 note that it applies to obsolete GNAT features, which was previously
31980 omitted. Second we contrast the behavior with that of the new
31981 Ada 2005 AI-368 restriction No_Obsolescent_Features.
31982 Preliminary rewriting of GNAT & libraries chapter in order to take
31983 into account default project locations & new project manager
31984 capabilities.
31985
31986 2005-01-03 Robert Dewar <dewar@adacore.com>
31987
31988 * cstand.adb (Create_Operators): Clean up format and documentation of
31989 unary and binary operator result tables. No change in code, just
31990 reformatting and addition of comments.
31991
31992 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
31993 sem_ch2.adb: Minor reformatting
31994
31995 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
31996 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
31997 comments for Tree_Read and Tree_Write.
31998
31999 2005-01-03 Pascal Obry <obry@adacore.com>
32000
32001 * exp_attr.ads: Minor reformatting.
32002
32003 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
32004
32005 * comperr.adb (Compiler_Abort): Add specialized message for GAP
32006 versions.
32007
32008 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32009
32010 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
32011 whether the ancestor type is private, as may be the case with nested
32012 instantiations.
32013
32014 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
32015
32016 PR ada/19128
32017 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
32018
32019 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
32020
32021 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
32022 * utils2.c (build_unary_op): Likewise.
32023
32024 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32025
32026 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
32027
32028 2004-12-19 Richard Henderson <rth@redhat.com>
32029
32030 * trans.c (gigi): Update gimplify_body call.
32031
32032 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
32033
32034 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
32035
32036 2004-12-07 Ed Falis <falis@adacore.com>
32037
32038 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
32039 current task being suspended.
32040
32041 * init.c (__gnat_clear_exception): added to reset VxWorks exception
32042 count.
32043 (__gnat_map_signal): removed test for current task being suspended.
32044
32045 2004-12-07 Gary Dismukes <dismukes@adacore.com>
32046
32047 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
32048 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
32049 targets (such as AAMP).
32050
32051 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32052
32053 * atree.adb (Visit_Itype): Create a new name for the generated itype,
32054 because the back-end may otherwise treat it as a redefinition of the
32055 old symbol.
32056
32057 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
32058
32059 * back_end.adb (Scan_Back_End_Switches): Accept --param.
32060
32061 * lang-specs.h: Accept --param.
32062
32063 2004-12-07 Vincent Celier <celier@adacore.com>
32064
32065 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
32066 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
32067 Current_Body_Suffix => Ada_Body_Suffix).
32068 Take into account Externally_Built attribute.
32069
32070 * clean.adb (In_Extension_Chain): Always return False when one of the
32071 parameter is No_Project.
32072 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
32073 Ada_Language_Index).
32074 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
32075 Process_Languages for procedure Parse).
32076
32077 * gnatcmd.adb (Carg_Switches): New table.
32078 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
32079 Adapt to name changes in package Prj (Current_Spec_Suffix =>
32080 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
32081
32082 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
32083 Header_Num and function Hash are now declared in package Prj,
32084 not Prj.Com.
32085
32086 * prj.adb (Suffix_Of): New function.
32087 (Set (Suffix)): New procedure.
32088 (Hash): One function moved from Prj.Com
32089 (Is_Present, Language_Processing_Data_Of): New functions
32090 (Set): Two new procedures
32091 (Add_Language_Name, Display_Language_Name): New procedures
32092
32093 * prj.ads: (Suffix_Of): New function
32094 (Set (Suffix)): New procedure
32095 Add several types and tables for multi-language support.
32096 (Header_Num): Type moved from Prj.Com
32097 (Hash): Two functions moved from Prj.Com
32098 (Is_Present, Language_Processing_Data_Of): New functions
32099 (Set): Two new procedures
32100 (Add_Language_Name, Display_Language_Name): New procedures
32101 (Naming): Component name changes:
32102 Current_Spec_Suffix => Ada_Spec_Suffix,
32103 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
32104 Impl_Suffixes, Supp_Suffixes.
32105 (Project_Data): New components: Externally_Built, Supp_Languages,
32106 First_Language_Processing, Supp_Language_Processing, Default_Linker,
32107 Default_Linker_Path.
32108
32109 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
32110 new package Language_Processing with its attributes (Compiler_Driver,
32111 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
32112 Binder_Driver, Default_Linker).
32113
32114 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
32115 (Header_Num): Type moved to package Prj
32116
32117 * prj-env.adb: Adapt to name changes in package Prj
32118 (Current_Spec_Suffix => Ada_Spec_Suffix,
32119 Current_Body_Suffix => Ada_Body_Suffix).
32120
32121 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
32122 default to the project path, except the "-" is one of the directories
32123 in env var ADA_PROJECT_PATH.
32124 (Current_Project_Path): Global variable, replacing Project_Path
32125 that was in the body of Prj.Part.
32126 (Project_Path): New function
32127 (Set_Project_Path): New procedure
32128 Initialize Current_Project_Path during elaboration of the package
32129 Remove dependency on Prj.Com, no longer needed
32130
32131 * prj-ext.ads (Project_Path): New function
32132 (Set_Project_Path): New procedure
32133
32134 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
32135 suffix is defined for language <lang>.
32136 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
32137 accessing directly the components of Naming.
32138 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
32139 Reorganise of this package.
32140 Break procedure Check in several procedures.
32141
32142 * prj-nmsc.ads: Replace all procedures (Ada_Check,
32143 Other_Languages_Check and Language_Independent_Check) with a single
32144 procedure Check.
32145
32146 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
32147 Process_Languages, no longer needed.
32148
32149 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
32150 Current_Project_Path.
32151 Remove elaboration code, moved to the body of Prj.Ext
32152 Use new function Prj.Ext.Project_Path instead of old variable
32153 Project_Path.
32154 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
32155 When comparing with project paths on the stack, first put the resolved
32156 path in canonical case.
32157 (Parse_Single_Project): Set the path name of the project file in the
32158 tree to the normalized path.
32159
32160 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
32161 parameter Process_Languages, no longer needed.
32162 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
32163 Other_Languages_Check.
32164
32165 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
32166 to store the resolved canonical path of the project file.
32167 Remove dependency to Prj.Com, no longer needed
32168
32169 * prj-util.adb: Adapt to name changes in package Prj
32170 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
32171 Ada_Body_Suffix).
32172
32173 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
32174 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
32175 Externally_Built, Include_Option, Language_Processing.
32176
32177 * makegpr.adb: Numerous changes due to changes in packages
32178 Prj and Prj.Nmsc.
32179
32180 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
32181 default to the project path, except whe "-" is one of the directories
32182 in env var ADA_PROJECT_PATH.
32183 (Gnatls): In verbose mode, add the new section "Project Search Path:"
32184
32185 2004-12-07 Robert Dewar <dewar@adacore.com>
32186
32187 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
32188
32189 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
32190 set -gnatR3m mode.
32191
32192 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
32193 flag. No longer needed now that we handle this in gnat1drv.adb.
32194
32195 * repinfo.ads: Minor reformatting
32196
32197 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32198 Olivier Hainque <hainque@adacore.com>
32199 Eric Botcazou <ebotcazou@adacore.com>
32200
32201 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
32202 TYPE_SIZE_UNIT of result type if SIZE is not specified.
32203 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
32204 of a bitfield, which we know is useless and causes trouble because of
32205 alignment implications.
32206
32207 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
32208 BSS sections.
32209 (process_attributes): Clear DECL_COMMON again when a section attribute
32210 is present.
32211 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
32212 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
32213 (create_field_decl): Special case ADDRESSABLE negative to mean
32214 "no bitfield creation", to be used by make_aligning_type. Don't
32215 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
32216 fields claimed addressable still have to be bitfields. Use
32217 value_factor_p instead of a raw binop construction to check for the
32218 position's alignment.
32219
32220 2004-12-07 Geert Bosch <bosch@adacore.com>
32221
32222 * eval_fat.adb: Revert previous change.
32223
32224 2004-12-07 Thomas Quinot <quinot@adacore.com>
32225 Ed Schonberg <schonberg@adacore.com>
32226
32227 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
32228 with an implicit dereference as its prefix, use
32229 Insert_Explicit_Dereference instead of merely rewriting the prefix into
32230 an explicit dereference. This ensures that a reference to the original
32231 prefix is generated, if appropriate.
32232
32233 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
32234 dereference is rewritten to an explicit one, generate a reference to
32235 the entity denoted by its prefix using the original prefix node, so
32236 the dereference can be properly recorded as a read of the denoted
32237 access value, if appropriate.
32238
32239 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
32240 emitting 'assigned but never read' warning on a variable on the basis
32241 that it has an access type.
32242 (Check_References): Emit unreferenced warning when the scope is a
32243 subprogram body.
32244
32245 2004-12-07 Robert Dewar <dewar@adacore.com>
32246 Ed Schonberg <schonberg@adacore.com>
32247
32248 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
32249 intrinsic
32250
32251 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
32252 leaving call unchanged.
32253 This deals with the case where the pragma Import specified
32254 an external name, to be handled by the back end.
32255
32256 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
32257 subprogram which is Imported with convention Intrinsic if an
32258 External_Name argument is specified.
32259 (Process_Import_Or_Interface): Properly diagnose link name argument.
32260 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
32261 with Sem_Ch6.Cannot_Inline.
32262 (Process_Inline): Provide separate warning for inapplicable inline
32263 pragma.
32264 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
32265 treatment is uniform on different targets.
32266
32267 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32268
32269 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
32270 construct is rewritten, preserve end label to permit source navigation.
32271
32272 2004-12-07 Thomas Quinot <quinot@adacore.com>
32273
32274 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
32275 Specific_Build_Stub_Target): New subprograms.
32276 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
32277 the PCS implementation used, using the above PCS-customized subprograms.
32278 Minor reformatting.
32279 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
32280 for generation of DSA code targeted to the PolyORB PCS.
32281 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
32282 implementation of the partition communication subsystem in ancillary
32283 subprograms.
32284 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
32285 PolyORB_Support.Build_Stub_Type): New subrograms containing the
32286 PCS-specific part of Add_Stub_Type.
32287 (Insert_Partition_Check): Use runtime library function to perform
32288 E.4(19) check.
32289
32290 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
32291 (RE_Same_Partition): New entity, from s-parint.
32292
32293 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
32294
32295 2004-12-07 Gary Dismukes <dismukes@adacore.com>
32296
32297 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
32298 Output the copyright message on a separate line from the version
32299 message.
32300
32301 2004-12-07 Joel Brobecker <brobecker@adacore.com>
32302
32303 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
32304 compile-time warning.
32305
32306 2004-12-07 Robert Dewar <dewar@adacore.com>
32307
32308 * g-regpat.adb: (Match): Change a misuse of or to or else
32309
32310 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32311
32312 * lib-xref.adb:
32313 (Generate_Reference): Handle properly a reference to an entry formal,
32314 when an accept statement has a pragma Unreferenced for it.
32315
32316 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
32317 and the Has_Pragma_Unreferenced flag for each formal before analyzing
32318 the body, to ensure that warnings are properly emitted for each accept
32319 statement of a given task entry.
32320
32321 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
32322
32323 * Makefile.in: Add support for foreign threads on VMS.
32324
32325 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32326
32327 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
32328 Remove.
32329 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
32330
32331 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
32332
32333 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
32334 exception.
32335 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
32336
32337 2004-12-07 Robert Dewar <dewar@adacore.com>
32338
32339 * nlists.adb (Prepend_Debug): Remove parameters and nest within
32340 Prepend.
32341 (Remove_Next_Debug): Same fix
32342
32343 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
32344 maintain back pointers now, though we did not used to, and comments
32345 were out of date).
32346 (Prepend): Remove pragma Inline.
32347 (Remove_Next): Same cleanup
32348
32349 2004-12-07 Thomas Quinot <quinot@adacore.com>
32350
32351 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
32352 used to record an implicit dereference as a read operation on its
32353 prefix when operating under -gnatc. Necessary to avoid spurious
32354 'variable assigned but never read' warnings in that mode.
32355 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
32356 is a non-overloaded implicit dereference, call the above subprogram to
32357 ensure proper recording of references.
32358
32359 2004-12-07 Gary Dismukes <dismukes@adacore.com>
32360
32361 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
32362 to be resolved later as part of Analyze_Iteration_Scheme's call to
32363 Make_Index.
32364
32365 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32366
32367 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
32368 prefix is not a scalar type, place error message on prefix, not on
32369 type entity.
32370
32371 2004-12-07 Bernard Banner <banner@adacore.com>
32372
32373 * vxaddr2line.adb: Add support for x86 vxworks
32374
32375 2004-12-07 Thomas Quinot <quinot@adacore.com>
32376
32377 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
32378 documentation of the behaviour of these functions when passed an IP
32379 address that has no record in the system hosts database and no reverse
32380 record in the DNS.
32381
32382 * cstand.adb, a-tags.ads: Fix typos in comment.
32383
32384 2004-12-07 Robert Dewar <dewar@adacore.com>
32385
32386 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
32387 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
32388 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
32389 s-poosiz.ads: Minor reformatting
32390
32391 * make.adb: Minor reformatting
32392 Add some ??? comments asking for more comments
32393
32394 * s-poosiz.adb: Minor reformatting
32395 Add comments on alignment requirement
32396
32397 * sinfo.ads: Remove obsolete comment and fix typo.
32398
32399 2004-12-07 Vincent Celier <celier@adacore.com>
32400 Sergey Rybin <rybin@adacore.com>
32401
32402 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
32403 Files" with the new tool and package names.
32404 Reformatting to suppress most of the warnings for line too long
32405 Document the new section "Project Search Path:" in the output of
32406 gnatls -v.
32407 Add gnatmetric section
32408
32409 2004-12-07 Vincent Celier <celier@adacore.com>
32410
32411 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
32412 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
32413 and -eit to -ept. Added qualifier
32414 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
32415
32416 2004-11-27 Andreas Schwab <schwab@suse.de>
32417
32418 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
32419
32420 2004-11-25 Arnaud Charlet <charlet@adacore.com>
32421
32422 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
32423 internal implementation unit GNAT.Sockets.Thin,
32424 as their usage for sockets is non-portable (using the read and write
32425 functions from the system runtime library is fine on UNIX but won't
32426 work under Windows).
32427
32428 * mingw32.h: Update copyright notice.
32429
32430 2004-11-25 Arnaud Charlet <charlet@adacore.com>
32431
32432 * ada-tree.h: Minor reformatting of previous change to avoid lines
32433 longer than 79 characters.
32434
32435 2004-11-25 Olivier Hainque <hainque@adacore.com>
32436
32437 * tb-gcc.c: GCC infrastructure based implementation of
32438 __gnat_backtrace.
32439
32440 2004-11-24 Steven Bosscher <stevenb@suse.de>
32441
32442 * misc.c (gnat_post_options): Don't clear
32443 flag_inline_functions.
32444
32445 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
32446
32447 PR ada/17986
32448 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
32449 tree.
32450
32451 2004-11-21 Andreas Jaeger <aj@suse.de>
32452
32453 * stylesw.adb: Change Style_Check_Subprogram_Order to
32454 Style_Check_Order_Subprograms.
32455
32456 2004-11-18 Arnaud Charlet <charlet@adacore.com>
32457
32458 * adaint.h, adaint.c
32459 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
32460 to avoid warnings.
32461 Add also a cast to kill another warning.
32462 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
32463 parameter with the priority class of the parent process instead of
32464 always using the NORMAL_PRIORITY_CLASS.
32465 (__gnat_dup): New function.
32466 (__gnat_dup2): New function.
32467 (__gnat_is_symbolic_link): Enable the effective body of this
32468 function when __APPLE__ is defined.
32469
32470 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
32471 Update comments.
32472
32473 2004-11-18 Olivier Hainque <hainque@adacore.com>
32474
32475 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
32476 address of which may be used to represent "others" and "all others"
32477 choices in exception tables, instead of the current harcoded
32478 (void *)0 and (void *)1.
32479 (Setup_Exception): Do nothing in the GNAT SJLJ case.
32480
32481 * gigi.h (others_decl, all_others_decl): New decls representing the
32482 new Others_Value and All_Others_Value objects.
32483 (struct attrib): Rename "arg" component as "args", since GCC expects a
32484 list of arguments in there.
32485
32486 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
32487 corresponding objects exported by a-exexpr, instead of hardcoded dummy
32488 addresses.
32489
32490 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
32491 others_decl and all_others_decl instead of hardcoded dummy addresses
32492 to represent "others" and "all others" choices, which is cleaner and
32493 more flexible with respect to the possible eh pointer encoding policies.
32494
32495 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
32496 (process_attributes): Account for the naming change of the "args"
32497 attribute list entry component.
32498
32499 * decl.c (build_attr_list): Rename into prepend_attributes to allow
32500 cumulating attributes for different entities into a single list.
32501 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
32502 attributes for the current entity and propagate first subtype
32503 attributes to other subtypes.
32504 <E_Procedure>: Attribute arguments are attr->args and not
32505 attr->arg any more.
32506 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
32507 argument provided, as this is what GCC expects. Use NULL_TREE instead
32508 of 0 for trees.
32509
32510 2004-11-18 Robert Dewar <dewar@adacore.com>
32511
32512 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
32513 Minor reformatting througout (including new function specs)
32514 Add ??? comments asking for clarification.
32515
32516 2004-11-18 Thomas Quinot <quinot@adacore.com>
32517
32518 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
32519 incomplete duplicate implementation of this subprogram from butil.
32520
32521 2004-11-18 Thomas Quinot <quinot@adacore.com>
32522
32523 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
32524 procedures factors the common processing for building an RPC receiver
32525 for an RCI package or an RACW type.
32526 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
32527 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
32528 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
32529 in use.
32530 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
32531 Add_RACW_Features.
32532 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
32533 Add_RAST_Features.
32534 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
32535 distribution subprogram identifiers that are either subprogram numbers
32536 or strings.
32537 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
32538 string distribution identifiers assigned to a given subprogram.
32539 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
32540 (Add_RAS_Dereference_TSS): Add comments.
32541 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
32542 is not referenced yet because it will be used by the PolyORB DSA
32543 implementation.
32544 (Insert_Partition_Check): Remove fossile code.
32545 (First_RCI_Subprogram_Id): Document this constant.
32546 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
32547 RAS_Access TSS.
32548 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
32549 replaced with calls to Get_Library_Unit_Name_String. Previously there
32550 were several instances of the same code in different locations in the
32551 compiler; this checkin completes the replacement of all of these
32552 instances with calls to a common subprogram.
32553 Minor reformatting.
32554
32555 * sem_dist.adb: Remove comment noting that RPC receiver generation
32556 should be disabled for RACWs that implement RASs.
32557 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
32558
32559 * sem_util.ads, sem_util.adb (Has_Stream): New function
32560 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
32561 qualified name of a library unit into the name buffer.
32562 (Note_Possible_Modification): Generate a reference only
32563 if the context comes from source.
32564
32565 * snames.ads (PCS_Names): New subtype corresponding to names of
32566 supported implementations of the Partition Communication Subsystem
32567 (PCS) (i.e. the runtime library support modules for the distributed
32568 systems annex).
32569
32570 2004-11-18 Robert Dewar <dewar@adacore.com>
32571 Ed Schonberg <schonberg@adacore.com>
32572
32573 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
32574 (Has_Rep_Pragma): New function
32575 (Has_Attribute_Definition_Clause): New function
32576 (Record_Rep_Pragma): Moved here from sem_ch13.adb
32577 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
32578
32579 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
32580
32581 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
32582 (Expand_Pragma_Psect_Object): New procedure
32583 These procedures contain the revised and cleaned up processing for
32584 these two pragmas. This processing was formerly in Sem_Prag, but
32585 is more appropriately moved here. The cleanup involves making sure
32586 that the pragmas are properly attached to the tree, and that no
32587 nodes are improperly shared.
32588
32589 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
32590 pragmas to Exp_Prag, which is more appropriate.
32591 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
32592 check for duplicates Remove use of Is_Psected flag, no longer needed.
32593 Use new Make_String_Literal function with string.
32594
32595 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
32596 that are functions return universal values, that have to be converted
32597 to the context type.
32598 Use new Make_String_Literal function with string.
32599 (Get_Stream_Convert_Pragma): New function, replaces the use of
32600 Get_Rep_Pragma, which had to be kludged to work in this case.
32601
32602 * freeze.adb: Use new Has_Rep_Pragma function
32603
32604 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
32605 function with string.
32606 Use new Has_Rep_Pragma function.
32607
32608 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
32609 string argument.
32610
32611 2004-11-18 Robert Dewar <dewar@adacore.com>
32612
32613 * errout.ads, errout.adb: (First_Sloc): New function
32614
32615 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
32616 check (-gnatyx) instead of being included as a redundant construct
32617 warning.
32618
32619 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
32620 Style_Check_Order_Subprograms.
32621
32622 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
32623 stylesw.adb: Add Style_Check_Xtra_Parens
32624
32625 * usage.adb: Add line for -gnatyx (check extra parens)
32626
32627 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
32628
32629 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32630 Robert Dewar <dewar@adacore.com>
32631
32632 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
32633 discriminant of a constrained subtype, analyze the copy of the
32634 corresponding constraint, because in some cases it may be only
32635 partially analyzed.
32636 Removes long-lived ??? comments.
32637
32638 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
32639 handled controlled or secondary-stack expressions within the
32640 iteration_scheme of a loop.
32641
32642 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
32643 bounds that may contain functions calls, to prevent memory leaks when
32644 the bound contains a call to a function that uses the secondary stack.
32645 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
32646 generate temporaries for loop bounds that might contain function calls
32647 that require secondary stack and/or finalization actions.
32648
32649 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
32650 selected component and the selector is overloadable (not just a
32651 function) treat as function call, Analyze_Call will disambiguate if
32652 necessary.
32653 (Analyze_Selected_Component): Do not generate an actual subtype for the
32654 selected component if expansion is disabled. The actual subtype is only
32655 needed for constraint checks.
32656 (Analyze_Allocator): If restriction No_Streams is set, then do
32657 not permit objects to be declared of a stream type, or of a
32658 composite type containing a stream.
32659
32660 * restrict.ads: Remove the a-stream entry from Unit_Array, since
32661 No_Streams no longer prohibits with'ing this package.
32662
32663 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
32664 discriminants, but the parent base has unknown discriminants, there is
32665 no discriminant constraint to inherit. Such a discrepancy can arise
32666 when the actual for a formal type with unknown discriminants is a
32667 similar private type whose full view has discriminants.
32668 (Analyze_Object_Declaration): If restriction No_Streams is set, then
32669 do not permit objects to be declared of a stream type, or of a
32670 composite type containing a stream.
32671
32672 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32673
32674 * exp_dbug.ads: Update documentation to reflect simpler encoding for
32675 protected operations.
32676
32677 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
32678 generated name, it complicates decoding in gdb and hinders debugging
32679 of protected operations.
32680 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
32681 flag for the protected entry barrier function.
32682 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
32683 flag for the protected entry function.
32684
32685 2004-11-18 Nicolas Setton <setton@adacore.com>
32686
32687 * expect.c: Define __unix__ when __APPLE__ is defined.
32688
32689 * Makefile.in: Inform the value of the variable GMEM_LIB in the
32690 Darwin-specific section.
32691
32692 * lang-specs.h: Change the placement of the %1 marker.
32693 Works around the fact that gcc adds -fPIC by default under Darwin.
32694
32695 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32696
32697 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
32698 type of the object with the packed array type, set the Analyzed flag
32699 on the object if it is an entity or simple indexed component, to avoid
32700 spurious type errors.
32701
32702 2004-11-18 Gary Dismukes <dismukes@adacore.com>
32703
32704 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
32705 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
32706 separate line from the version message.
32707
32708 2004-11-18 Ed Falis <falis@adacore.com>
32709
32710 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
32711 vthreads.
32712 (init_float): Eliminate initialization of floating point status for
32713 AE653. The instructions have no effect for vThreads.
32714
32715 2004-11-18 Vincent Celier <celier@adacore.com>
32716
32717 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
32718 gnatbind is invoked with -shared.
32719
32720 2004-11-18 Jose Ruiz <ruiz@adacore.com>
32721
32722 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
32723 for Detect_Blocking which is redundant with the check done within the
32724 procedure Protected_Single_Entry_Call.
32725 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
32726 Detect_Blocking which is redundant with the check done within the
32727 procedure Protected_Single_Entry_Call.
32728
32729 2004-11-18 Vincent Celier <celier@adacore.com>
32730
32731 * makegpr.adb (Compile): Put the compiling switches (in package
32732 Compiler and on the command line) immediately after "-c", instead of
32733 at the end of the command line invocation of the compiler, when
32734 compiling a non-Ada file.
32735 (Build_Global_Archive): When there is no need to rebuild the archive,
32736 set Global_Archive_Exists, so that the archive is passed to the linker
32737 if one is needed.
32738
32739 2004-11-18 Robert Dewar <dewar@adacore.com>
32740 Sergey Rybin <rybin@adacore.com>
32741
32742 * gnat_ugn.texi:
32743 Remove extra paren check from list of checks for redundant constructs
32744 Add documentation of new -gnatyx style check (check extra parens)
32745 Remove paragraph about gnatelim debug options.
32746
32747 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
32748 objects rather than forbidding dependencies on the package Ada.Streams.
32749
32750 * sinfo.ads: Add ??? note that we should document pragmas passed to
32751 back end.
32752
32753 * g-expect.ads: Fix a few typos in the comments.
32754
32755 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
32756
32757 * misc.c (gnat_handle_option): Use %< and %> for quoting in
32758 warning message.
32759
32760 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32761
32762 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
32763
32764 2004-11-07 Andreas Schwab <schwab@suse.de>
32765
32766 * Makefile.in (install-gnatlib): Remove spurious hyphen.
32767
32768 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
32769
32770 PR ada/18228
32771 * Makefile.in (darwin): Set soext to .dylib.
32772
32773 2004-10-26 Vincent Celier <celier@gnat.com>
32774 Thomas Quinot <quinot@act-europe.fr>
32775
32776 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
32777 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
32778 there is no use of GNAT.Sockets.Constants.
32779 Remove remaining pragma Import for C_Write
32780 Remove C_Read and C_Write from internal implementation unit
32781 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
32782 the read and write functions from the system runtime library is fine
32783 on UNIX but won't work under Windows).
32784
32785 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
32786 (Check_Selector): Use C_Recv instead of C_Read.
32787 Selectors are the GNAT.Sockets abstraction to perform a select()
32788 call on a set of descriptors. To allow abortion of an ongoing
32789 select operation, some data is written to a dedicated socket that
32790 is always monitored.
32791 Under Windows, the write and read library functions cannot operate
32792 on sockets, so we need to use send and recv instead, which is portable
32793 across all supported platforms.
32794
32795 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
32796 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
32797 (using the read and write functions from the system runtime library is
32798 fine on UNIX but won't work under Windows).
32799
32800 2004-10-26 Nicolas Setton <setton@act-europe.fr>
32801
32802 * mlib-tgt-darwin.adb: New file.
32803
32804 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32805 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32806 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32807 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
32808 subprogram body.
32809
32810 * Makefile.in: Add support for building shared libraries under Darwin.
32811 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
32812 the low level EH init subprogram to be called from __gnat_initialize.
32813
32814 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
32815 indicates which options to pass to the archive indexer.
32816
32817 * mlib-utl.adb: Add support for calling ranlib with additional
32818 options. This is needed for instance under Mac OS X.
32819 (Ranlib_Options): New global variable, used to store the potential
32820 options to pass to ranlib.
32821 (Ar): Use Ranlib_Options when spawning ranlib.
32822 (Initialize): Set the value of ranlib option.
32823
32824 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
32825
32826 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
32827 instead of 8K, to reflect the real potential needs for stack-checking
32828 in the ZCX case.
32829
32830 2004-10-26 Pascal Obry <obry@gnat.com>
32831
32832 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
32833
32834 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
32835 Windows only the initial thread stack size can be set so it is good to
32836 start we a low stack size.
32837 The OS will adjust the size as needed.
32838
32839 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
32840 Nicolas Setton <setton@act-europe.fr>
32841
32842 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
32843 "__unix__" instead of "unix".
32844 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
32845 sections were just mistakenly ignored. The former is
32846 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
32847 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
32848 of hpux. This prevents an unwanted definition of the symbol
32849 convert_addresses in adaint.o.
32850
32851 2004-10-26 Gary Dismukes <dismukes@gnat.com>
32852
32853 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
32854 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
32855
32856 2004-10-26 Cyrille Comar <comar@act-europe.fr>
32857
32858 * a-filico.ads, a-filico.adb: fix incorrect header.
32859
32860 2004-10-26 Javier Miranda <miranda@gnat.com>
32861
32862 * a-ststio.ads: Fix typo in identifier
32863
32864 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
32865
32866 * sem_ch4.adb: Minor reformatting.
32867
32868 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32869
32870 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
32871 enabled, check the result of unary and binary operations when the
32872 expression is the right-hand side of an assignment.
32873
32874 2004-10-26 Vincent Celier <celier@gnat.com>
32875
32876 * clean.adb (Delete): Do not output warnings when in quiet output and
32877 not in verbose mode.
32878 (Force_Deletions): New Boolean flag, defaulted to False
32879 (Delete): Only delete a file if it is writable, and when
32880 Force_Deletions is True.
32881 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
32882 (Usage): Line for new switch -f
32883 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
32884 own.
32885
32886 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
32887
32888 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
32889 JM type only if its size matches that of the wrapper. When a size is
32890 prescribed and the field is not aliased, remove the wrapper of a JM
32891 type only if the size is not greater than that of the packed array.
32892 (gnat_to_gnu_entity): Change the extension of packed array wrappers
32893 from LJM to JM.
32894
32895 2004-10-26 Geert Bosch <bosch@gnat.com>
32896
32897 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
32898 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
32899 (Pred): Implement in terms of Succ.
32900
32901 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32902
32903 * exp_aggr.adb (Safe_Component): An aggregate component that is an
32904 unchecked conversion is safe for in-place use if the expression of the
32905 conversion is safe.
32906 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
32907 be expandable in place even if the aggregate does not come from source.
32908 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
32909 designated object of an allocator in place, rather than building it
32910 first on the stack. The previous scheme forces a full copy of the array,
32911 and may be altogether unsusable if the size of the array is too large
32912 for stack allocation.
32913
32914 2004-10-26 Robert Dewar <dewar@gnat.com>
32915
32916 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
32917 compares if the component is atomic.
32918
32919 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
32920 array assignment if the component type is atomic.
32921
32922 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32923 Eric Botcazou <ebotcazou@act-europe.fr>
32924
32925 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
32926 is aliased and is a by_reference type, do not pass by copy.
32927 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
32928 detect whether the call is in the right side of an assignment or
32929 the expression of an object declaration. Recurse on component
32930 association within aggregates.
32931 Call it in the condition that determines whether the temporary is
32932 necessary for correct stack-checking.
32933
32934 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
32935
32936 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
32937 RACW_Type, used in the PolyORB version.
32938 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
32939 version and the GARLIC version.
32940
32941 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
32942 Rename RCI_Info to RCI_Locator for better consistency between the
32943 GARLIC and PolyORB versions of the distributed systems annex.
32944 (DSA_Implementation_Name): This enumeration lists the possible
32945 implementations of the Partition Communication Subsystem for the
32946 Distributed Systems Annex (DSA). The three available implementations
32947 are the dummy stub implementation (No_DSA), and two versions based on
32948 two different distribution runtime libraries: GARLIC and PolyORB. Both
32949 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
32950 technology.
32951 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
32952 that organization.
32953
32954 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
32955 between the GARLIC and PolyORB versions of the distributed systems
32956 annex.
32957 Remove RE_Unbounded_Reclaim_Pool since it is unused.
32958
32959 2004-10-26 Gary Dismukes <dismukes@gnat.com>
32960
32961 * gnat1drv.adb: Suppress calling the back end when
32962 Frontend_Layout_On_Target is true.
32963
32964 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
32965
32966 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
32967 Set_Read_Only): New subprograms.
32968 These new routines allow the user to set or unset the Owner execute
32969 and Owner write permission flags on a file.
32970
32971 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
32972 GNAT.OS_Lib.Set_Executable instead of rolling our own.
32973
32974 2004-10-26 Matthew Gingell <gingell@gnat.com>
32975
32976 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
32977
32978 2004-10-26 Pascal Obry <obry@gnat.com>
32979
32980 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
32981 memory before the faulting page we properly test the process read
32982 access for this address using appropriate Win32 routine.
32983 (HPUX sections): guard with "__hpux__" instead of "hpux".
32984
32985 2004-10-26 Robert Dewar <dewar@gnat.com>
32986
32987 * lib-xref.adb (Generate_Reference): Don't complain about reference to
32988 entry parameter if pragma Unreferenced set, since we do not properly
32989 handle the case of multiple parameters.
32990
32991 2004-10-26 Vincent Celier <celier@gnat.com>
32992
32993 * prj-env.adb: (Contains_ALI_Files): New Boolean function
32994 (Ada_Objects_Path.Add): For a library project, add to the object path
32995 the library directory only if there is no object directory or if the
32996 library directory contains ALI files.
32997 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32998
32999 2004-10-26 Vincent Celier <celier@gnat.com>
33000
33001 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
33002 extension of library projects.
33003
33004 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
33005 path defaults to ".:<prefix>/lib/gnat".
33006 (Parse): For an extending all project, allow direct import of a project
33007 that is virtually extended.
33008
33009 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
33010 the specified name is directly imported, return its ID. Otherwise, if
33011 an extension of this project is imported, return the ID of the
33012 extension.
33013
33014 2004-10-26 Robert Dewar <dewar@gnat.com>
33015
33016 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
33017 (Sub3): New procedure, used by Scaled_Divide
33018 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
33019 correct more than one instance of failure to propagate carries
33020 correctly.
33021 (Double_Divide): Handle overflow case of largest negative number
33022 divided by minus one.
33023
33024 * s-arit64.ads (Double_Divide): Document that overflow can occur in
33025 the case of a quotient value out of range.
33026 Fix comments.
33027
33028 2004-10-26 Robert Dewar <dewar@gnat.com>
33029
33030 * s-bitops.adb (Bit_Eq): Remove redundant check.
33031
33032 * s-bitops.ads: Minor comment updates
33033 Change some occurrences of Address to System.Address
33034
33035 * s-carsi8.ads: Fix minor cut-and-paste error in comments
33036
33037 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33038
33039 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
33040 accessibility check to prefix that is a protected operation.
33041
33042 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33043
33044 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
33045 empty, post message on stub.
33046
33047 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33048 Javier Miranda <miranda@gnat.com>
33049
33050 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
33051 current instance appears within a unit that is directly in the context
33052 of the main unit.
33053 Used to determine whether the body of the instance should be analyzed
33054 immediately after its spec, to make its subprogram bodies available
33055 for front-end inlining.
33056 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
33057 constraint is not allowed on the component type (AARM 12.5.3(3))
33058
33059 2004-10-26 Cyrille Comar <comar@act-europe.fr>
33060
33061 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
33062 'Storage_Pool): enhance, document & limit detection of non-sharable
33063 internal pools.
33064
33065 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
33066
33067 * s-pooglo.ads: Add more documentation now that this pool is properly
33068 documented.
33069
33070 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33071
33072 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
33073 or protected type with discriminants, do not constrain the
33074 corresponding record type if the subtype declaration has no
33075 discriminant constraints. This can be the case in source code, or in
33076 the subtype declaration created to rename an actual type within an
33077 instantiation.
33078
33079 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33080
33081 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
33082 different kind of stub (possibly wrong name for file), do not check
33083 for conformance.
33084 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
33085 includes call to some function that returns an unconstrained type, do
33086 not inline.
33087
33088 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33089
33090 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
33091 appear in the code for the main unit. Dependencies among units in the
33092 context of the main unit are established when those other units are
33093 compiled. Otherwise spurious elaboration constraints can generate
33094 incorrect elaboration circularities.
33095
33096 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33097 Ed Schonberg <schonberg@gnat.com>
33098
33099 * sem_util.adb (Is_Aliased_View): Defend against the case where this
33100 subprogram is called with a parameter that is not an object name. This
33101 situation arises for some cases of illegal code, which is diagnosed
33102 later, and in this case it is wrong to call Is_Aliased, as that might
33103 cause a compiler crash.
33104 (Explain_Limited_Type): Refine previous fix to include
33105 inherited components of derived types, to provide complete information.
33106
33107 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
33108 is the prival for a protected object.
33109 It is necessary to mark this entity as a variable, in addition to
33110 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
33111 modified to avoid checking the Aliased flag on entities that are not
33112 objects. (Checking that flag for non-objects is erroneous and could
33113 lead to a compiler crash).
33114
33115 2004-10-26 Robert Dewar <dewar@gnat.com>
33116
33117 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
33118 X_Frac = 0.5, then we know that the number X must be positive.
33119 (Succ): Remove the same redundant test, and also fix the primary test
33120 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
33121 Minor reformatting
33122 (Decompose): Add fuller comments to spec
33123
33124 2004-10-26 Pascal Obry <obry@gnat.com>
33125
33126 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
33127 validity (process must have read access). Set to 0 in all other cases.
33128 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
33129 violation on Win32.
33130 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
33131 segmentation violation.
33132
33133 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
33134
33135 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
33136 whose type is a constructed subtype of an aliased object with an
33137 unconstrained nominal subtype, convert the actual to the constructed
33138 subtype before taking its address.
33139
33140 2004-10-26 Vincent Celier <celier@gnat.com>
33141
33142 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
33143 (Is_Path_Name_Case_Sensitive): New function
33144
33145 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
33146 (Base_Name, Simple_Name, Current_Directory, Compose,
33147 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
33148 the result.
33149
33150 2004-10-26 Cyrille Comar <comar@act-europe.fr>
33151 Vasiliy Fofanov <fofanov@act-europe.fr>
33152 Vincent Celier <celier@gnat.com>
33153
33154 * gnat_ugn.texi: Generalize "finding memory problems" section into a
33155 "memory management issues" section and document some of the useful
33156 memory pools provided as part of the GNAT library.
33157 Remove "virtual" from declaration of A::method2 in
33158 the simple example of Ada/C++ mixed system.
33159 Library Projects may be virtually extended: their virtual extensions
33160 are not Library Projects.
33161 Added section on extending project hierarchies.
33162
33163 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
33164
33165 * adaint.c (__gnat_get_libraries_from_registry): Cast value
33166 to LPBYTE.
33167 (__gnat_portable_spawn): Remove const.
33168
33169 * mingw32.h (MAXPATHLEN): Check for previous definition.
33170
33171 2004-10-17 Matthias Klose <doko@debian.org>
33172
33173 * gnatvsn.ads: Set gnat library version to 4.0.
33174
33175 2004-10-05 Vincent Celier <celier@gnat.com>
33176
33177 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
33178
33179 2004-10-04 Laurent Guerby <laurent@guerby.net>
33180
33181 PR ada/15156
33182 * Makefile.in: Define and use RANLIB_FLAGS.
33183
33184 2004-10-04 Pascal Obry <obry@gnat.com>
33185
33186 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
33187 other x86 platforms).
33188
33189 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
33190
33191 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
33192 in general and triggers stack alignment adjustment for thread entry
33193 points on targets where this is necessary.
33194
33195 2004-10-04 Bernard Banner <banner@gnat.com>
33196
33197 PR ada/13897
33198 * Makefile.in: Add section for powerpc linux
33199 Add variant i-vxwork-x86.ads
33200
33201 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
33202
33203 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
33204
33205 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
33206 table registration calls when need be. Ensures no reference to the crt
33207 ctors symbol are issued in the SJLJ case, which avoids possible
33208 undefined symbol errors in the case of modules to be statically linked
33209 with the kernel.
33210
33211 2004-10-04 Javier Miranda <miranda@gnat.com>
33212
33213 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
33214 in-line the code corresponding to subprogram Analyze_Actuals. In
33215 addition, analyze the actuals only in case of subprogram call.
33216
33217 2004-10-04 Ed Falis <falis@gnat.com>
33218
33219 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
33220
33221 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
33222
33223 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
33224 in the documentation.
33225
33226 2004-10-04 Robert Dewar <dewar@gnat.com>
33227
33228 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
33229 IF and CASE.
33230 (Analyze_Block_Statement): Add circuitry to detect following dead code
33231 (Check_Unreachable_Code): Handle case of block exit
33232
33233 2004-10-04 Robert Dewar <dewar@gnat.com>
33234
33235 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
33236 (XMatchD): Avoid warning for Logic_Error call
33237
33238 2004-10-04 Robert Dewar <dewar@gnat.com>
33239
33240 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
33241 consider expressions buried within a procedure actual to be an actual.
33242 This caused some blowups with uses of packed slices within a procedure
33243 actual.
33244
33245 2004-10-04 Robert Dewar <dewar@gnat.com>
33246
33247 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
33248 longer need to be initialized to zero.
33249 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
33250 initialized to zero.
33251
33252 * checks.adb (Expr_Known_Valid): Packed arrays are now always
33253 considered valid, even if the representation is modular. That's correct
33254 now that we no longer initialize packed modular arrays to zero.
33255
33256 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
33257 suffixes. These are now documented as the only cases in which the
33258 debugger ignores outer records.
33259 Previously, the spec allowed arbitrary suffixes for this purpose.
33260 Change name of LJM to JM for packed array pad records
33261 Create separate section on packed array handling, and add a whole new
33262 set of comments to this section describing the situation with packed
33263 modular types and justification requirements depending on endianness.
33264
33265 2004-10-04 Robert Dewar <dewar@gnat.com>
33266
33267 * a-except.adb: Add a comment for last change
33268
33269 * einfo.ads: Minor spelling correction in comment
33270
33271 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
33272
33273 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
33274 messages.
33275
33276 * sem_util.ads: Minor comment update
33277
33278 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33279
33280 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
33281 Inline_Always when in Configurable_Run_Time mode.
33282
33283 * sem_prag.adb (Process_Convention): If entity is an inherited
33284 subprogram, apply convention to parent subprogram if in same scope.
33285 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
33286 when in Configurable_Run_Time mode.
33287
33288 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33289
33290 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
33291 class_wide type after component list has been inherited.
33292
33293 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33294
33295 * sem_ch12.adb (Check_Generic_Actuals): New predicate
33296 Denotes_Previous_Actual, to handle properly the case of a private
33297 actual that is also the component type of a subsequent array actual.
33298 The visibility status of the first actual is not affected when the
33299 second is installed.
33300 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
33301 make fully recursive the treatment of formals of packages declared
33302 with a box.
33303 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
33304 the above on exit from an instantiation.
33305 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
33306 current instantiation which is now complete.
33307 (Analyze_Package_Instantiation): No instantiated body is needed if the
33308 main unit is generic. Efficient, and avoid anomalies when a instance
33309 appears in a package accessed through rtsfind.
33310
33311 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33312
33313 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
33314 do not generate a declaration for a temporary if the call is part of a
33315 library-level instantiation.
33316
33317 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33318
33319 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
33320 searching for a limited component to flag.
33321
33322 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
33323 expansion of Input, to account for the fact that the implicit call
33324 generated by the attribute reference must freeze the user-defined
33325 stream subprogram. This is only relevant to 'Input, because it can
33326 appear in an object declaration, prior to the body of the subprogram.
33327
33328 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
33329 expansion can proceed and further errors uncovered.
33330 (Minor clean up): Fix cases of using | instead of \ for continuation
33331 messages.
33332
33333 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33334
33335 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
33336
33337 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
33338 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
33339 Use gcc_assert and gcc_unreachable.
33340
33341 * decl.c (gnat_to_gnu_entity, case object): Check and process a
33342 specified alignment before validating size.
33343 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
33344 stripped-down declaration for the type of the inner field when making
33345 a JM type.
33346
33347 * utils.c (finish_record_type): Do not compute the size in units
33348 incrementally. Instead compute it once for the rep clause case.
33349 Use gcc_assert and gcc_unreachable.
33350
33351 2004-10-04 Vincent Celier <celier@gnat.com>
33352
33353 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
33354 in file name.
33355 (Is_Valid_Path_Name): Take '/' as a directory separator.
33356
33357 2004-10-04 Vincent Celier <celier@gnat.com>
33358
33359 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
33360 (Extended_Project) only if Extended_Project is defined, to avoid
33361 assertion error.
33362 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
33363 resolved path.
33364 (Parse_Single_Project): Ditto.
33365
33366 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
33367 Add_To_Project_Path for virtual projects.
33368
33369 2004-10-04 Vincent Celier <celier@gnat.com>
33370
33371 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33372 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33373 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
33374 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
33375 parameter Options_2.
33376
33377 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
33378 Build_Dynamic_Library with an empty Options_2.
33379
33380 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
33381 default anymore.
33382
33383 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
33384 directory separator, if any.
33385 (Gprmake): Do not allow mains on the command line for library projects.
33386 Do not attempt to link when the project is a library project.
33387 (Library_Opts): New table to store Library_Options.
33388 (Build_Library): If Library_Options is specified, pass these options
33389 when building a shared library.
33390
33391 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
33392
33393 * s-tposen.adb (Service_Entry): The object must be always unlocked at
33394 the end of this procedure now that the unlock operation was inserted
33395 by the expander.
33396
33397 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
33398
33399 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
33400 corresponding to the Preallocated_Stacks flags in System.
33401 (Get_Target_Parameters): Including the processing for
33402 Preallocated_Stacks.
33403
33404 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
33405 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
33406 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33407 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
33408 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
33409 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
33410 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
33411 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
33412 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
33413 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
33414 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
33415 used to signal whether the compiler creates the required stacks and
33416 descriptors for the different tasks (when True) or it is done by the
33417 underlying operating system at run time (when False).
33418 It is initially set to False in all targets.
33419
33420 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
33421 if it is supported by the target.
33422 (Make_Task_Create_Call): Pass the stack address if it has been
33423 previously created. Otherwise pass a Null_Address.
33424
33425 * snames.adb: Add _stack.
33426
33427 * snames.ads: Add Name_uStack. Required to allow the expander to
33428 statically allocated task stacks.
33429
33430 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
33431 Stack_Address argument.
33432 Check that its value is equal to Null_Address because this target does
33433 not support the static stack allocation.
33434
33435 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
33436
33437 * usage.adb: Change "pragma inline" to "pragma Inline" in information
33438 and error messages
33439
33440 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
33441
33442 * exp_dist.adb: Split declaration of asynchronous flag out of
33443 Add_RACW_Read_Attribute.
33444 Minor reformatting for better alignment with PolyORB version.
33445 Store the entity for the asynchronous flag of an RACW, rather than the
33446 expression, in the asynchronous flags table. This will allow this flag
33447 to be used in other subprograms beside Add_RACW_Read_Attribute.
33448
33449 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
33450
33451 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
33452 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
33453 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
33454 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
33455 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
33456 sockets constant MSG_NOSIGNAL (Linux-specific).
33457 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
33458 all Send operations.
33459 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
33460 from trigerring SIGPIPE.
33461 Rename components to avoid clash with Ada 2005 possible reserved
33462 word 'interface'.
33463 (Check_Selector): When the select system call returns with an error
33464 condition, propagate Socket_Error to the caller.
33465
33466 2004-10-01 Jan Hubicka <jh@suse.cz>
33467
33468 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
33469
33470 2004-09-23 Robert Dewar <dewar@gnat.com>
33471
33472 PR ada/17540
33473 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
33474 instead do this at freeze time (we won't do it if there is an address
33475 clause).
33476 Change "pragma inline" to "pragma Inline" in information and error
33477 messages.
33478 Minor reformatting.
33479
33480 * freeze.adb (Check_Address_Clause): Remove previous change, not the
33481 right way of doing things after all.
33482 (Freeze_Entity): For object, set Is_Public for imported entities
33483 unless there is an address clause present.
33484
33485 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
33486
33487 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
33488 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
33489 ensures proper handling of types with rep clauses, which might have
33490 their TYPE_SIZE set already.
33491
33492 2004-09-21 Robert Dewar <dewar@gnat.com>
33493
33494 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
33495 packed array types in both little- and big-endian cases. This change
33496 ensures that we no longer count on the unused bits being initialized
33497 for such types (and in particular ensures that equality testing will
33498 only read the relevant bits).
33499 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33500 These changes mean that we no longer need to initialize small packed
33501 arrays.
33502 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
33503 optimization to an LJM field as to its parent field.
33504
33505 * ada-tree.h, trans.c, utils.c, utils2.c:
33506 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33507
33508 2004-09-20 Jan Hubicka <jh@suse.cz>
33509
33510 * utils.c (gnat_finalize): Remove.
33511 (end_subprog_body): Directly call cgraph_finalize_function;
33512 do not lower the nested functions.
33513
33514 2004-09-20 Robert Dewar <dewar@gnat.com>
33515
33516 PR ada/17540
33517 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
33518 if an address clause is present, since that means that the Import
33519 should be ignored.
33520
33521 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
33522
33523 * 5tsystem.ads: Removed, no longer used.
33524
33525 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
33526 Zack Weinberg <zack@codesourcery.com>
33527
33528 * ada-tree.def: Use tree_code_class enumeration constants
33529 instead of code letters.
33530 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
33531 Update for new tree-class enumeration constants.
33532
33533 2004-09-17 Vincent Celier <celier@gnat.com>
33534
33535 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
33536 capabilities of the general project manager.
33537
33538 2004-09-09 Vincent Celier <celier@gnat.com>
33539
33540 * a-direct.ads: Add pragma Ada_05
33541 (Directory_Entry_Type): Give default value to component Kind to avoid
33542 not initialized warnings.
33543
33544 * a-direct.adb (Current_Directory): Remove directory separator at the
33545 end.
33546 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
33547 an existing directory.
33548 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
33549 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
33550 Convert the result to File_Size.
33551
33552 * prj.ads: (Project_Error): New exception
33553
33554 * prj-attr.adb: Except in procedure Initialize, Fail comes from
33555 Prj.Com, not from Osint.
33556 (Attrs, Package_Attributes): Tables moved to private part of spec
33557 (Add_Attribute, Add_Unknown_Package): Moved to new child package
33558 Prj.Attr.PM.
33559 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
33560 Prj.Project_Error after call to Fail.
33561 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
33562 Fail. Check that package name is not already in use.
33563
33564 * prj-attr.ads: Comment updates to indicate that all subprograms may be
33565 used by tools, not only by the project manager, and to indicate that
33566 exception Prj.Prj_Error may be raised in case of problem.
33567 (Add_Unknown_Package, Add_Attribute): Moved to new child package
33568 Prj.Attr.PM.
33569 (Attrs, Package_Attributes): Table instantiations moved from the body to
33570 the private part to be accessible from Prj.Attr.PM body.
33571
33572 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
33573 from new package Prj.Attr.PM.
33574 (Parse_Attribute_Declaration): Call Add_Attribute from new package
33575 Prj.Attr.PM.
33576
33577 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
33578
33579 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
33580 instead of Elaboration_Checks).
33581
33582 * a-calend.adb: Minor reformatting
33583
33584 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33585
33586 * gigi.h (maybe_pad_type): New declaration.
33587 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
33588
33589 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
33590
33591 * cuintp.c: Convert to use buildN.
33592
33593 * decl.c (maybe_pad_type): No longer static.
33594 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
33595 target pointer.
33596 Convert to use buildN.
33597
33598 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
33599 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
33600 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
33601 RHS.
33602 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
33603 (gnat_gimplify_expr, case ADDR_EXPR): New case.
33604 Convert to use buildN.
33605
33606 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
33607 TREE_READONLY for const.
33608 Convert to use buildN.
33609
33610 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
33611 (create_var_decl): Refine when TREE_STATIC is set.
33612 Convert to use buildN.
33613
33614 2004-09-09 Gary Dismukes <dismukes@gnat.com>
33615
33616 * gnat_ugn.texi: Delete text relating to checking of ali and object
33617 consistency.
33618
33619 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
33620 routines.
33621
33622 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
33623
33624 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
33625 pragmas recognized by GNAT.
33626
33627 * gnat_rm.texi: Document pragma Detect_Blocking.
33628
33629 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
33630 raise Program_Error if called from a protected operation.
33631
33632 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
33633 the protected action nesting level.
33634 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
33635 protected action nesting level.
33636 (Unlock): When pragma Detect_Blocking is active decrease the protected
33637 action nesting level.
33638
33639 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
33640 Protected_Action_Nesting.
33641
33642 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
33643 Common_ATCB record. It contains the dynamic level of protected action
33644 nesting for each task. It is needed for checking whether potentially
33645 blocking operations are called from protected operations.
33646 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
33647 Detect_Blocking is active or not in the partition.
33648
33649 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
33650 raise Program_Error if called from a protected operation.
33651 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
33652 Program_Error if called from a protected operation.
33653 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
33654 Program_Error if called from a protected operation.
33655
33656 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
33657 raise Program_Error if called from a protected operation.
33658
33659 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
33660 raise Program_Error if called from a protected operation, and increase
33661 the protected action nesting level.
33662 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
33663 Program_Error if called from a protected operation, and increase the
33664 protected action nesting level.
33665 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
33666 protected action nesting level.
33667
33668 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
33669 raise Program_Error if called from a protected operation, and increase
33670 the protected action nesting level.
33671 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
33672 Program_Error if called from a protected operation, and increase the
33673 protected action nesting level.
33674 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
33675 raise Program_Error if called from a protected operation.
33676 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
33677 active, raise Program_Error if called from a protected operation.
33678 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
33679 protected action nesting level.
33680
33681 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
33682 insertion of the statement raising Program_Error. The run time
33683 contains the required machinery for handling that.
33684
33685 * sem_util.ads: Change comment associated to procedure
33686 Check_Potentially_Blocking_Operation.
33687 This procedure does not insert a call for raising the exception because
33688 that is currently done by the run time.
33689
33690 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
33691
33692 * init.c: Add the global variable __gl_detect_blocking that indicates
33693 whether pragma Detect_Blocking is active (1) or not (0). Needed for
33694 making the pragma available at run time.
33695 (__gnat_set_globals): Pass and update the detect_blocking parameter.
33696
33697 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
33698 pragma Detect_Blocking is active.
33699
33700 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
33701
33702 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
33703 DB is found in the ali file. Any unit compiled with pragma
33704 Detect_Blocking active forces its effect in the whole partition.
33705
33706 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
33707 Detect_Blocking is active and delay is called from a protected
33708 operation.
33709
33710 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
33711 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
33712 Detect_Blocking is active (0 otherwise).
33713 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
33714 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
33715 otherwise).
33716
33717 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
33718
33719 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
33720 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
33721 package.
33722
33723 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
33724 (Register_Receiving_Stub): Add Subp_Info formal parameter.
33725 Update API in placeholder implemetation of s-parint to reflect changes
33726 in distribution runtime library.
33727
33728 * sem_ch3.adb (Expand_Derived_Record): Rename to
33729 Expand_Record_Extension.
33730
33731 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
33732 primitive operations of potentially distributed object types that have
33733 non-controlling anonymous access formals.
33734
33735 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
33736 subprogram.
33737 New implementation of expansion for remote access-to-subprogram types,
33738 based on the RACW infrastructure.
33739 This version of sem_dist is compatible with PolyORB/DSA as well as
33740 GLADE.
33741
33742 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
33743 Asynchrronous that applies to a remote access-to-subprogram type, mark
33744 the underlying RACW type as asynchronous.
33745
33746 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
33747 __gnat_using_gnu_linker to 1.
33748
33749 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
33750 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
33751 GNAT.Perfect_Hash_Generators, and remove the empty
33752 GNAT.Perfect_Hash package.
33753
33754 * atree.adb: Minor reformatting
33755
33756 * exp_ch3.adb (Expand_Derived_Record): Rename to
33757 Expand_Record_Extension.
33758 (Build_Record_Init_Proc.Build_Assignment): The default expression in
33759 a component declaration must remain attached at that point in the
33760 tree so New_Copy_Tree copies it if the enclosing record type is derived.
33761 It is therefore necessary to take a copy of the expression when building
33762 the corresponding assignment statement in the init proc.
33763 As a side effect, in the case of a derived record type, we now see the
33764 original expression, without any rewriting that could have occurred
33765 during expansion of the ancestor type's init proc, and we do not need
33766 to go back to Original_Node.
33767
33768 * exp_ch3.ads (Expand_Derived_Record): Rename to
33769 Expand_Record_Extension.
33770
33771 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
33772 Returns the RACW type used to implement a remote access-to-subprogram
33773 type.
33774 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
33775 New subprograms. Used to create a proxy tagged object for a remote
33776 subprogram. The proxy object is used as the designated object
33777 for RAS values on the same partition (unless All_Calls_Remote applies).
33778 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
33779 System.Partition_Interface.Get_Unique_Remote_Pointer.
33780 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
33781 Renamed from Add_RAS_*_Attribute.
33782 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
33783 subprograms.
33784 New implementation of expansion for remote access-to-subprogram types,
33785 based on the RACW infrastructure.
33786
33787 * exp_dist.ads (Copy_Specification): Update comment to note that this
33788 function can copy the specification from either a subprogram
33789 specification or an access-to-subprogram type definition.
33790
33791 2004-09-09 Ed Schonberg <schonberg@gnat.com>
33792
33793 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
33794 in an instance, between an explicit subprogram an one inherited from a
33795 type derived from an actual.
33796
33797 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
33798 add a polling call if the subprogram is to be inlined by the back-end,
33799 to avoid repeated calls with multiple inlinings.
33800
33801 * checks.adb (Apply_Alignment_Check): If the expression in the address
33802 clause is a call whose name is not a static entity (e.g. a dispatching
33803 call), treat as dynamic.
33804
33805 2004-09-09 Robert Dewar <dewar@gnat.com>
33806
33807 * g-trasym.ads: Minor reformatting
33808
33809 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
33810 packed arrays, since unused bits are expected to be zero for a
33811 comparison.
33812
33813 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
33814
33815 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
33816 comment.
33817
33818 2004-09-09 Pascal Obry <obry@gnat.com>
33819
33820 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
33821 enable map file generation. Add the right option to generate the map
33822 file if Map_File is set to True.
33823
33824 * gnatdll.adb (Gen_Map_File): New variable.
33825 (Syntax): Add info about new -m (Map_File) option.
33826 (Parse_Command_Line): Add support for -m option.
33827 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
33828 Minor reformatting.
33829
33830 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
33831
33832 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
33833 new gnatdist implementation.
33834 Define a subpackage isolating the output routines specific to this
33835 verbose mode.
33836
33837 2004-09-09 Joel Brobecker <brobecker@gnat.com>
33838
33839 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
33840
33841 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
33842
33843 2004-09-09 Cyrille Comar <comar@act-europe.fr>
33844
33845 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
33846 internal unit.
33847
33848 * opt.ads: Add Ada_Version_Runtime constant used to decide which
33849 version of the language is used to compile the run time.
33850
33851 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
33852
33853 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
33854 of variable length temporaries for function return now that the
33855 back-end and gigi support it.
33856
33857 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33858
33859 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
33860
33861 * trans.c (struct stmt_group): Delete field GLOBAL.
33862 (gnat_init_stmt_group): Do not initialize it.
33863 (call_to_gnu): Use save_expr, not protect_multiple_eval.
33864 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
33865 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
33866 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
33867 (start_stmt_group): Likewise.
33868 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
33869
33870 * utils2.c (ggc.h): Include.
33871 (build_call_raise): Call build_int_cst, not build_int_2.
33872
33873 * utils.c (gnat_init_decl_processing): Fix arg to
33874 build_common_tree_nodes.
33875 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
33876 (gnat_define_builtin): Set built_in_decls.
33877 (init_gigi_decls): Call build_int_cst, not build_int_2.
33878
33879 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
33880 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
33881 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
33882 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
33883 SET_TYPE_MODULE): Use them.
33884 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
33885 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
33886 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
33887 SET_TYPE_ADA_SIZE): Likewise.
33888 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
33889 (DECL_CONST_CORRESPONDING_VAR,
33890 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
33891 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
33892 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
33893 (TYPE_RM_SIZE_NUM): New macro.
33894 (TYPE_RM_SIZE): Modified to use above.
33895
33896 * cuintp.c: (build_cst_from_int): New function.
33897 (UI_To_gnu): Use it.
33898
33899 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
33900 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
33901 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
33902 MIN_EXPR for the size, copy it into new.
33903
33904 2004-09-01 Robert Dewar <dewar@gnat.com>
33905
33906 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
33907 packed indexed component where array is an IN OUT formal. This
33908 generated garbage code previously.
33909
33910 * gnat_ugn.texi: Document -fverbose-asm
33911
33912 * gnat-style.texi: Minor updates (note that boolean constants and
33913 variables are joined with AND/OR rather than short circuit forms).
33914
33915 2004-09-01 Ed Schonberg <schonberg@gnat.com>
33916
33917 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
33918 it is an upward conversion of an untagged type with no representation
33919 change.
33920
33921 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
33922
33923 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
33924 System.Partition_Interface.
33925
33926 * checks.adb (Apply_Access_Checks): Do not generate checks when
33927 expander is not active (but check for unset reference to prefix of
33928 dereference).
33929
33930 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
33931 pragma Debug as an if statement with a constant condition, for
33932 consistent treatment of entity references contained within the
33933 enclosed procedure call.
33934
33935 2004-09-01 Vincent Celier <celier@gnat.com>
33936
33937 * bindgen.adb: (Set_EA_Last): New procedure
33938 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
33939 Set_EA_Last.
33940 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
33941 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
33942 linked without errors.
33943 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
33944 ST and EA.
33945 (Gen_Exception_Table_C): Correct same bugs
33946
33947 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
33948
33949 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
33950 on Windows, make sure that the drive letter is in upper case.
33951
33952 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
33953 Windows, when the drive letter is added and Case_Sensitive is True, the
33954 drive letter is forced to upper case.
33955
33956 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
33957 to Options_2 for the call to MLib.Utl.Gcc.
33958
33959 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
33960 directory separator when defining BASE_DIR.
33961
33962 2004-09-01 Pascal Obry <obry@gnat.com>
33963
33964 * gprcmd.adb (Extend): Do not output trailing directory separator. This
33965 is not needed and it confuses Windows GNU/make which does not report
33966 directory terminated by a slash as a directory.
33967 (gprcmd): Idem for "pwd" internal command.
33968
33969 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
33970 target names rewrite to fix regressions with recent version of
33971 GNU/make. Starting with GNU/make 3.80 the pipe character was not
33972 handled properly anymore.
33973
33974 2004-09-01 Andreas Schwab <schwab@suse.de>
33975
33976 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
33977 * raise.c [!IN_RTS]: Undef abort.
33978
33979 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
33980
33981 * utils2.c (build_allocator): Use ssize_int.
33982
33983 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
33984
33985 2004-08-27 Andreas Schwab <schwab@suse.de>
33986
33987 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
33988
33989 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
33990 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33991
33992 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
33993
33994 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
33995
33996 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
33997 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
33998 * utils.c (init_gigi_decls): Likewise.
33999 * utils2.c (build_call_raise, build_allocator): Likewise.
34000
34001 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
34002
34003 * utils.c (gnat_init_decl_processing): Adjust
34004 build_common_tree_nodes call.
34005
34006 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
34007
34008 * utils2.c (build_allocator): Use build_int_cst for negative
34009 size types.
34010
34011 2004-08-18 Richard Henderson <rth@redhat.com>
34012
34013 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
34014
34015 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
34016
34017 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
34018 call.s
34019 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
34020 (gnat_to_gnu): Likewise.
34021
34022 2004-08-16 Pascal Obry <obry@gnat.com>
34023
34024 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
34025 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
34026 option and not mdll anymore. Update comment.
34027
34028 2004-08-16 Pascal Obry <obry@gnat.com>
34029
34030 * bld.adb (Put_Include_Project): Properly handle directory separators
34031 on Windows.
34032
34033 2004-08-16 Ed Schonberg <schonberg@gnat.com>
34034
34035 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
34036 decreasing the number of allocated junk nodes while searching for the
34037 appropriate subprogram.
34038
34039 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
34040
34041 * cuintp.c (UI_To_gnu): Use build_int_cst..
34042 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34043 * utils.c (init_gigi_decls): Likewise.
34044 * utils2.c (build_call_raise): Likewise.
34045
34046 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
34047
34048 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
34049 for a global aliased object with a variable size and an unconstrained
34050 nominal subtype, pretend there is no initializer if the one we have is
34051 incomplete, and avoid referencing an inexistant component in there. The
34052 part we have will be rebuilt anyway and the reference may confuse
34053 further operations.
34054
34055 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
34056
34057 * einfo.ads: Minor reformatting
34058
34059 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
34060 restrictions in the ALI if we only want to warn about violations.
34061
34062 2004-08-13 Vincent Celier <celier@gnat.com>
34063
34064 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
34065 when creating a new Unit_Record in table Units.
34066
34067 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
34068 that are violated, if any.
34069
34070 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
34071 add directory separator if path already ends with a directory separator.
34072
34073 2004-08-13 Ed Schonberg <schonberg@gnat.com>
34074
34075 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
34076 unit, this is an attempt to inline a construct that is not available in
34077 the current restricted mode, so abort rather than trying to continue.
34078
34079 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
34080 discriminants that rename those of the parent, recover names of
34081 original discriminants for the constraint on the full view of the
34082 parent.
34083 (Complete_Private_Subtype): Do not create a subtype declaration if the
34084 subtype is an itype.
34085
34086 * gnat_rm.texi: Added section on implementation of discriminated
34087 records with default values for discriminants.
34088
34089 2004-08-13 Ed Schonberg <schonberg@gnat.com>
34090
34091 PR ada/15601
34092 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
34093 the second operand is overloaded.
34094
34095 2004-08-10 Richard Henderson <rth@redhat.com>
34096
34097 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
34098 add __builtin_alloca.
34099
34100 2004-08-10 Richard Henderson <rth@redhat.com>
34101
34102 * config-lang.in (boot_language): Yes.
34103
34104 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
34105
34106 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
34107 from complaining on potential uninitialized reference.
34108 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
34109 new specification and test explicitly for non-zero return value.
34110
34111 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
34112 returning C.int, to avoid using a derived boolean type.
34113
34114 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
34115 Duplicate_Subexpr_No_Checks in preference to direct use of
34116 Remove_Side_Effects and New_Copy_Tree.
34117 Clear Comes_From_Source on prefix of 'Size attribute reference.
34118
34119 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
34120 g-socthi-vxworks.adb: Change calls to
34121 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
34122 and test explicitly for non-zero return value.
34123
34124 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
34125 (Is_Socket_In_Set): Declare imported function as returning C.int, to
34126 avoid using a derived boolean type.
34127
34128 2004-08-09 Albert Lee <lee@gnat.com>
34129
34130 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
34131
34132 2004-08-09 Pascal Obry <obry@gnat.com>
34133
34134 * gnat_ugn.texi: Document new way to build DLLs on Windows using
34135 GCC's -shared option.
34136
34137 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
34138 Options_2 parameter (options put after object files).
34139
34140 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
34141
34142 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
34143 ignore overflows on low and high bounds of an index to also account for
34144 differences in signedness between sizetype and gnu_index_subtype.
34145 These are as legitimate as the ones caused by a lower TYPE_PRECISION
34146 on sizetype.
34147
34148 2004-08-09 Robert Dewar <dewar@gnat.com>
34149
34150 * s-solita.ads, s-solita.adb: Minor reformatting
34151
34152 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
34153 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
34154 obsolescent section
34155 Add note that No_Implicit_Conditionals does not suppress
34156 run time constraint checks.
34157
34158 * vms_conv.ads: Minor reformatting
34159
34160 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
34161 and necessary for following change).
34162 (Mark): Return new format Mark_Id containing sec stack address
34163 (Release): Use sec stack address from Mark_Id avoiding Self call
34164
34165 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
34166 pointer (cleanup and necessary for following change).
34167 Define Mark_Id as record containing address of secondary stack, that way
34168 Release does not need to find the stack again, decreasing the number of
34169 calls to Self and improving efficiency.
34170
34171 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
34172
34173 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
34174 case variable into the individual case branches when possible.
34175
34176 * sem_ch11.adb: Minor reformatting
34177
34178 * prj.ads: Correct spelling of suffixs
34179
34180 * prj-nmsc.adb: Minor reformatting
34181 Correct spelling suffixs throughout (also in identifiers)
34182
34183 * freeze.adb: Minor spelling correction
34184
34185 * exp_ch2.adb: Cleanups to handling of Current_Value
34186 (no functional effect).
34187
34188 * bld.adb: Correct spelling of suffixs
34189
34190 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
34191
34192 2004-08-09 Ed Schonberg <schonberg@gnat.com>
34193
34194 PR ada/15408
34195 * sem_ch7.adb (Install_Private_Declarations): In the body of the
34196 package or of a child, private entities are both immediately_visible
34197 and not hidden.
34198
34199 2004-08-09 Ed Schonberg <schonberg@gnat.com>
34200
34201 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
34202 there are no range checks on the value of the literal.
34203
34204 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
34205 wrapped is the triggering alternative of an asynchronous select, action
34206 statements mustbe inserted before the select itself.
34207
34208 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
34209 case where the prefix is a protected function call.
34210 (Resolve_Attribute, case 'Access): The attribute reference on a
34211 subprogram is legal in a generic body if the subprogram is declared
34212 elsewhere.
34213
34214 2004-08-09 Vincent Celier <celier@gnat.com>
34215
34216 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
34217 languages, otherwise building the library may fail with unresolved
34218 symbols.
34219 (Compile_Sources): Do not build libraries if -c switch is used
34220
34221 * gnatlink.adb (Process_Args): New switches -M and -Mmap
34222 (Write_Usage): If map file creation is supported, output new switches
34223 -M and -Mmap.
34224 (Gnatlink): When -M is specified, add the necessary switch(es) to the
34225 gcc call, when supported.
34226
34227 * Makefile.in: Added indepsw.o to the object list for gnatlink
34228 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
34229
34230 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
34231 indepsw.adb, indepsw.ads: New files.
34232
34233 2004-08-09 Bernard Banner <banner@gnat.com>
34234
34235 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
34236
34237 * Makefile.in: add section for vxworks x86
34238
34239 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
34240
34241 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
34242 per-object constrained components where the discriminant is of an
34243 Access type.
34244 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
34245 the parent initialization procedure for derived Unchecked_Unions.
34246 Instead, derived Unchecked_Unions build their own initialization
34247 procedure.
34248 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
34249 Check the body of the subprogram for details.
34250 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
34251 functions for derived Unchecked_Union types by introducing a condition.
34252 Allow the creation of TSS equality functions for Unchecked_Unions.
34253 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
34254 Add formal parameter Discr to function signature. Discr is used to
34255 control the generated case statement for Unchecked_Union types.
34256 (Make_Eq_If): Rename formal parameter Node to E in function signature.
34257
34258 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
34259 Unchecked_Unions.
34260 Check the body of the subprogram for details.
34261 (Expand_Composite_Equality): Augment composite type equality to include
34262 correct handling of Unchecked_Union components.
34263 (Expand_N_In): Add condition to detect illegal membership tests when the
34264 subtype mark is a constrained Unchecked_Union and the expression lacks
34265 inferable discriminants, and build a Raise_Program_Error node.
34266 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
34267 to detect types that contain components of unconstrained Unchecked_Union
34268 subtype. Add condition to detect equality between types that have an
34269 unconstrained Unchecked_Union component, and build a Raise_Program_Error
34270 node. Add condition to detect equality between Unchecked_Union types
34271 that lack inferable discriminants, and build a Raise_Program_Error node.
34272 Otherwise build a TSS equality function call.
34273 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
34274 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
34275 with the operand lacking inferable discriminants, and build a Raise_
34276 Program_Error node.
34277 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
34278 composite equality.
34279 (Has_Inferable_Discriminants): Implement new predicate for objects and
34280 expressions of Unchecked_Union type. Check the body of subprogram for
34281 details.
34282 (Has_Unconstrained_UU_Components): Add function
34283 Component_Is_Unconstrained_UU. It is used to detect whether a single
34284 component is of an unconstrained Unchecked_Union subtype. Add function
34285 Variant_Is_Unconstrained_UU. It is used to detect whether a single
34286 component inside a variant is of an unconstrained Unchecked_Union type.
34287
34288 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
34289 inferred discriminant values. Add condition to generate a case
34290 statement with an inferred discriminant as the switch.
34291 (Make_Component_List_Assign): Introduce a Boolean flag that determines
34292 the behaviour of the subprogram in the presence of an Unchecked_Union.
34293 Add condition to trigger the usage of the inferred discriminant value
34294 as the generated case statement switch.
34295 (Make_Field_Assign): Introduce a Boolean flag that determines the
34296 behaviour of the subprogram in the presence of an Unchecked_Union. Add
34297 condition to trigger the usage of the inferred discriminant value as
34298 the right-hand side of the generated assignment.
34299
34300 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
34301 parameter generation when dealing with Unchecked_Unions.
34302
34303 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
34304 checks for Unchecked_Unions.
34305
34306 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
34307
34308 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
34309 Raise_Program_Error nodes for the execution of Read and Write
34310 attributes of Unchecked_Union types and the execution of Input and
34311 Output attributes of Unchecked_Union types that lack default
34312 discriminant values.
34313
34314 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
34315 Unchecked_Union. Add procedure Check_Component. It is used to inspect
34316 per-object constrained components of Unchecked_Unions for being
34317 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
34318 check individual components withing a variant.
34319
34320 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
34321 comparison of Unchecked_Unions.
34322 (Resolve_Equality_OP): Remove guard that prevents equality between
34323 Unchecked_Unions.
34324
34325 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
34326 of component subtypes for Unchecked_Union components.
34327 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
34328 since it is the actual subtype.
34329
34330 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
34331 pass of Unchecked_Union subtypes as generic actuals to formal types
34332 that lack known_discriminant_parts or that are derived Unchecked_Union
34333 types, and do nothing. In any other case, produce an error message.
34334
34335 * sem_ch3.adb (Analyze_Component_Declaration): Add function
34336 Contains_POC. It determines whether a constraint uses the discriminant
34337 of an enclosing record type.
34338 Add condition to detect per-object constrained component and set the
34339 appropriate flag.
34340 (Derived_Type_Declaration): Remove guard that prevents derivation from
34341 Unchecked_Union types.
34342 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
34343 Union subtypes.
34344
34345 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
34346 references to Unchecked_Union discriminants.
34347
34348 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
34349 formal generation when dealing with Unchecked_Unions.
34350 (Set_Actual_Subtypes): Add condition to prevent generation of actual
34351 subtypes for Unchecked_Unions.
34352
34353 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
34354 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
34355 completions of discriminated partial views by Unchecked_Unions and
34356 produce an error message.
34357
34358 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34359
34360 * trans.c (struct stmt_group): New field, GLOBAL.
34361 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
34362 (struct elab_info): New struct.
34363 (elab_info_list, gnu_elab_proc_stack): New variables.
34364 (Compilation_Unit_to_gnu): New procedure.
34365 (gigi): Call it and also handle elaboration procs we've saved.
34366 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
34367 global field from parent.
34368 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
34369 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
34370 (start_stmt_group): Initialize global field from parent.
34371 (add_decl_expr): Set to global for current statement group.
34372 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
34373 post.
34374
34375 * utils.c (global_bindings_p): True when no current_function_decl; no
34376 longer check current_binding_level.
34377
34378 2004-08-09 Ben Brosgol <brosgol@gnat.com>
34379
34380 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
34381 choice.
34382
34383 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
34384
34385 2004-08-06 Andreas Schwab <schwab@suse.de>
34386
34387 * utils.c (gnat_define_builtin): Remove second parameter of
34388 make_decl_rtl.
34389 (begin_subprog_body): Likewise.
34390
34391 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
34392
34393 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
34394 optimization, not supported by the tree-ssa back-end.
34395
34396 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
34397
34398 * s-mastop-irix.adb: Update comments.
34399
34400 * a-except.adb (Exception_Information): Raise Constraint_Error if
34401 exception Id is Null_Id.
34402 This is required behavior, which is more reliably and clearly checked
34403 at the top level interface level.
34404
34405 2004-07-26 Javier Miranda <miranda@gnat.com>
34406
34407 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
34408 call if a component has no default_expression and the box is used.
34409
34410 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
34411 default_expression and you use box, it behaves as if you had declared a
34412 stand-alone object.
34413 (Resolve_Record_Aggregate): If a component has no default_expression and
34414 you use box, it behaves as if you had declared a stand-alone object.
34415
34416 * sem_ch10.adb (Install_Siblings): Do not make visible the private
34417 entities of private-with siblings.
34418
34419 2004-07-26 Ed Schonberg <schonberg@gnat.com>
34420
34421 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
34422 for a component of an itype, set the parent pointer for analysis,
34423 there is no list in which to insert it.
34424
34425 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
34426 bona-fide renamings, not for inherited operations.
34427
34428 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
34429 actual for a formal that is an access parameter, create local
34430 finalization list even if the expression is not an aggregate.
34431
34432 2004-07-26 Ed Schonberg <schonberg@gnat.com>
34433
34434 PR ada/16213
34435 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
34436 Diagnose properly illegal subprogram renamings that are library units.
34437
34438 2004-07-26 Ed Schonberg <schonberg@gnat.com>
34439
34440 PR ada/15588
34441 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
34442 conversion rewritten as an unchecked conversion, check that original
34443 expression is a variable.
34444
34445 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
34446 unchecked_conversion, create new node rather than rewriting in place,
34447 to preserve original construct.
34448
34449 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34450
34451 * gigi.h (gnat_expand_body): Deleted.
34452
34453 * Make-lang.in: (trans.o): Depends on function.h.
34454
34455 * misc.c: (gnat_expand_body): Moved to here.
34456
34457 * trans.c (gnat_expand_body_1): Deleted.
34458 (gnat_expand_body): Moved from here.
34459 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
34460 (add_stmt): Check for marked visited with global_bindings_p.
34461 (gnat_gimplify_expr, case COMPONENT_REF): New case.
34462 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
34463
34464 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
34465 VIEW_CONVERT_EXPR if not operation type.
34466
34467 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
34468 fat pointer.
34469
34470 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
34471 changes: reformatting of negation operators, removing unneeded
34472 inequality comparison with zero, converting equality comparisons with
34473 zero to negations, changing int/0/1 to bool/false/true, replace calls
34474 to gigi_abort with abort, and various other similar changes.
34475
34476 2004-07-26 Vincent Celier <celier@gnat.com>
34477
34478 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
34479 "setup".
34480
34481 * make.adb (Gnatmake): Fail when a library is not present and there is
34482 no object directory.
34483
34484 * mlib-prj.adb (Check_Library): No need to check if the library needs
34485 to be rebuilt if there is no object directory, hence no object files
34486 to build the library.
34487
34488 * opt.ads (Setup_Projects): New Boolean flag.
34489
34490 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
34491 Location.
34492 Create directory when Kind /= "" and in "gnat setup". Report error if
34493 directory cannot be created.
34494 (Ada_Check): Create library interface copy dir if it does not exist
34495 and we are in "gnat setup".
34496 (Find_Sources): No error if in "gnat setup" and no Ada sources were
34497 found.
34498 (Language_Independent_Check): Create object directory, exec directory
34499 and/or library directory if they do not exist and we are in
34500 "gnat setup".
34501
34502 * vms_conv.ads: (Command_Type): New command Setup.
34503
34504 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
34505
34506 * vms_data.ads: Add qualifiers/switches for new built-in command
34507 "setup".
34508
34509 2004-07-25 Richard Henderson <rth@redhat.com>
34510
34511 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
34512 DECL_IGNORED_P on RESULT_DECL.
34513
34514 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
34515
34516 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
34517 allocation and potentially overflowing update with
34518 Tailored_Exception_Information. Use the sec-stack free procedural
34519 interface to output Exception_Information instead.
34520
34521 * a-except.adb (To_Stderr): New subprogram for character, and string
34522 version moved from a-exextr to be visible from other separate units.
34523 (Tailored_Exception_Information): Remove the procedural version,
34524 previously used by the default Last_Chance_Handler and not any more.
34525 Adjust various comments.
34526
34527 * a-exexda.adb: Generalize the exception information procedural
34528 interface, to minimize the use of secondary stack and the need for
34529 local buffers when the info is to be output to stderr:
34530 (Address_Image): Removed.
34531 (Append_Info_Character): New subprogram, checking for overflows and
34532 outputing to stderr if buffer to fill is of length 0.
34533 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
34534 (Append_Info_Address, Append_Info_Exception_Name,
34535 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
34536 Append_Info_Basic_Exception_Traceback,
34537 Append_Info_Exception_Information): New subprograms.
34538 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
34539 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
34540 Exception_Info_Maxlength, Exception_Name_Length,
34541 Exception_Message_Length): New subprograms.
34542 (Exception_Information): Use Append_Info_Exception_Information.
34543 (Tailored_Exception_Information): Use
34544 Append_Info_Basic_Exception_Information.
34545 Export services for the default Last_Chance_Handler.
34546
34547 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
34548 other separate units.
34549
34550 2004-07-20 Vincent Celier <celier@gnat.com>
34551
34552 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
34553
34554 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34555
34556 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
34557 emit itype references for the designated types of component types that
34558 are declared outside of the full record declaration, and that may
34559 denote a partial view of that record type.
34560
34561 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34562
34563 PR ada/15607
34564 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
34565 which is the designated type in an access component declaration, to the
34566 list of incomplete dependents of the parent type, to avoid elaboration
34567 issues with out-of-scope subtypes.
34568 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
34569 full view of the parent.
34570
34571 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34572
34573 PR ada/15610
34574 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
34575 entities that are hidden, such as references to generic actuals
34576 outside an instance.
34577
34578 2004-07-20 Javier Miranda <miranda@gnat.com>
34579
34580 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
34581 support to the new notation.
34582 (Analyze_Selected_Component): Add call to Try_Object_Operation.
34583
34584 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
34585
34586 * s-taprob.adb: Adding the elaboration code required for initializing
34587 the tasking soft links that are common to the full and the restricted
34588 run times.
34589
34590 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
34591 restricted run time has been moved to the package
34592 System.Soft_Links.Tasking.
34593
34594 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
34595 restricted run time has been moved to the package
34596 System.Soft_Links.Tasking.
34597
34598 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
34599
34600 * s-solita.ads, s-solita.adb: New files.
34601
34602 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34603
34604 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
34605 Case_Statement_to_gnu): Split off from gnat_to_gnu.
34606 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
34607 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
34608 Exception_Handler_to_gnu_zcx): Likewise.
34609
34610 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
34611
34612 * gigi.h (builtin_function): Declare.
34613
34614 2004-07-15 Robert Dewar <dewar@gnat.com>
34615
34616 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
34617 reformatting
34618
34619 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
34620 access values as an example of a warning.
34621
34622 * gnat_rm.texi: Document new attribute Has_Access_Values
34623
34624 * gnat-style.texi: Document that box comments belong on nested
34625 subprograms
34626
34627 * sem_util.ads (Has_Access_Values): Improved documentation
34628
34629 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
34630
34631 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
34632 (Process_Interface_Name): Call to this new procedure
34633 (Set_Extended_Import_Export_External_Name): Call to this new procedure
34634
34635 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
34636
34637 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
34638
34639 * einfo.ads: Minor comment typo fixed
34640
34641 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
34642
34643 * snames.adb: Add _atcb.
34644
34645 * snames.ads: Add Name_uATCB.
34646
34647 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
34648 (in the expanded code) when using the restricted run time.
34649
34650 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
34651 a in parameter in order to allow ATCBs to be preallocated (in the
34652 expanded code).
34653
34654 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
34655 order to allow ATCBs to be preallocated. In case of error, the ATCB is
34656 deallocated in System.Tasking.Stages.
34657
34658 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
34659 order to allow ATCBs to be preallocated.
34660
34661 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
34662 here. It was previously done in Initialize_ATCB.
34663
34664 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
34665
34666 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
34667 Restricted run time.
34668
34669 * exp_ch3.adb: When using the Restricted run time, pass the
34670 preallocated Ada_Task_Control_Block when creating a task.
34671
34672 2004-07-15 Ed Schonberg <schonberg@gnat.com>
34673
34674 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
34675 function call that is itself an actual in an enclosing call, diagnose
34676 problem here rather than assuming that resolution will catch it.
34677
34678 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
34679 the local copy of a generic unit for a formal package, and the generic
34680 is a child unit, install private part of ancestors before compiling
34681 private part of spec.
34682
34683 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
34684 use scope entities rather than tree structures, to handle properly
34685 parent units that are instances rewritten as bodies for inlining
34686 purposes.
34687
34688 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
34689 Remove_Parents): Handle properly a parent unit that is an
34690 instantiation, when the unit has been rewritten as a body for inlining
34691 purposes.
34692
34693 * par.adb (Goto_List): Global variable to collect goto statements in a
34694 given unit, for use in detecting natural loops.
34695
34696 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
34697 use in detecting natural loops.
34698
34699 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
34700 backwards goto's, and rewrite as a infinite loop, to improve locality
34701 of temporaries.
34702
34703 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
34704 subcomponent that includes an indexed reference, to prevent the
34705 generation of copies that would miscompile the desired assignment
34706 statement.
34707 (Build_Task_Image_Decls): Add a numeric suffix to
34708 generated name for string variable, to avoid spurious conflicts with
34709 the name of the type of a single protected object.
34710
34711 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
34712 loop with an explicit exit statement, to avoid generating an
34713 out-of-range value with 'Succ leading to spurious constraint_errors
34714 when compiling with -gnatVo.
34715
34716 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
34717
34718 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
34719 might not be analyzed yet, even if its Etype is already set (case of an
34720 unchecked conversion built using Unchecked_Convert_To, for example).
34721 If the prefix has already been analyzed, this will be a nop anyway.
34722
34723 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
34724 controller type, or an assignment of a record type with controlled
34725 components, copy only user data, and leave the finalization chain
34726 pointers untouched.
34727
34728 2004-07-15 Vincent Celier <celier@gnat.com>
34729
34730 * make.adb (Collect_Arguments): Improve error message when attempting
34731 to compile a source not part of any project, when -x is not used.
34732
34733 * prj.ads: (Defined_Variable_Kind): New subtype
34734
34735 * prj-attr.adb (Register_New_Package): Two new procedures to register
34736 a package with or without its attributes.
34737 (Register_New_Attribute): Mew procedure to register a new attribute in a
34738 package.
34739 New attribute oriented subprograms: Attribute_Node_Id_Of,
34740 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
34741 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
34742 Next_Attribute.
34743 New package oriented subprograms: Package_Node_Id_Of,
34744 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
34745
34746 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
34747 type.
34748 (Package_Node_Id): Now a private, self initialized type
34749 (Register_New_Package): New procedure to register a package with its
34750 attributes.
34751 New attribute oriented subprograms: Attribute_Node_Id_Of,
34752 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
34753 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
34754 Next_Attribute.
34755 New package oriented subprograms: Package_Node_Id_Of,
34756 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
34757
34758 * prj-dect.adb (Parse_Attribute_Declaration,
34759 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
34760
34761 * prj-makr.adb (Make): Parse existing project file before creating
34762 other files. Fail if there was an error during parsing.
34763
34764 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
34765 new spec of Prj.Attr.
34766
34767 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
34768 to new spec of Prj.Attr.
34769
34770 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34771
34772 * utils2.c: Fix typo in comment.
34773
34774 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34775
34776 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
34777 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
34778
34779 2004-07-14 Andreas Schwab <schwab@suse.de>
34780
34781 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
34782
34783 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34784
34785 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
34786 object type.
34787 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
34788 TYPE_STUB_DECL.
34789
34790 * misc.c (gnat_types_compatible_p): New function.
34791 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
34792 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
34793
34794 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
34795 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
34796 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
34797 (mark_visited): Don't mark dummy type.
34798 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
34799 parameter, we must remove any LJM building from GNU_NAME.
34800 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
34801 (pos_to_constructor): Use int_const_binop.
34802 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
34803 PARM_DECL.
34804
34805 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
34806 (gnat_pushlevel): Set TREE_USE on BLOCK node.
34807 (gnat_install_builtins): Add __builtin_memset.
34808
34809 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
34810
34811 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
34812 for a renaming, stabilize the initialization expression if we are at a
34813 local level. At the local level, uses of the renaming may be performed
34814 by a direct dereference of the initializing expression, and we don't
34815 want possible variables there to be evaluated for every use.
34816
34817 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
34818 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
34819 them on the way. Account for the fact that we may introduce side
34820 effects in the process.
34821
34822 2004-07-13 Richard Henderson <rth@redhat.com>
34823
34824 * misc.c (default_pass_by_ref): Use pass_by_reference.
34825
34826 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
34827
34828 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
34829 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
34830
34831 2004-07-08 Richard Henderson <rth@redhat.com>
34832
34833 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
34834 commentary.
34835
34836 2004-07-06 Vincent Celier <celier@gnat.com>
34837
34838 * vms_conv.ads: Minor reformatting.
34839 Alphabetical order for enumerated values of type Command_Type, to have
34840 the command in alphabetical order for the usage.
34841
34842 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
34843 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
34844
34845 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
34846
34847 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
34848 (Add_Archive_Path): Only add the global archive if there is one.
34849 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
34850 or not any object file to put in the global archive, and don't build
34851 a global archive if there is none.
34852 (X_Switches): New table
34853 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
34854 in the X_Switches table, if any.
34855 (Initialize): Make sure the X_Switches table is empty
34856 (Scan_Arg): Record -X switches in table X_Switches
34857
34858 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
34859
34860 * make.adb: Minor comment fix
34861
34862 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
34863 invoked with directory information, add the directory in front of the
34864 path.
34865
34866 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
34867 invoked with directory information, add the directory in front of the
34868 path.
34869
34870 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
34871 when Keep_Temporary_Files is False.
34872 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
34873 directory information, add the directory in front of the path.
34874 When not on VMS, handle new switch -dn before the command to set
34875 Keep_Temporary_Files to True.
34876 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
34877 everywhere.
34878
34879 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
34880 invoked with directory information, add the directory in front of the
34881 path.
34882
34883 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
34884
34885 * snames.ads, snames.adb (Name_Stub): New name for the distributed
34886 systems annex.
34887
34888 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
34889 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
34890
34891 * g-socket.adb (To_Timeval): Fix incorrect conversion of
34892 Selector_Duration to Timeval for the case of 0.0.
34893
34894 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
34895 documentation from Evolve_And_Then.
34896
34897 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
34898
34899 * s-taprop-tru64.adb, s-taprop-os2.adb,
34900 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
34901
34902 2004-07-06 Robert Dewar <dewar@gnat.com>
34903
34904 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
34905 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
34906 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
34907 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
34908 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
34909 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
34910 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
34911 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
34912 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
34913 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
34914 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
34915 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
34916 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
34917 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
34918 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
34919 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
34920 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
34921 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
34922 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
34923 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
34924 vms_data.ads: Minor reformatting,
34925 Fix bad box comment format.
34926
34927 * gnat_rm.texi: Fix minor grammatical error
34928
34929 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
34930
34931 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
34932 more cases of discriminated records to be recognized as not needing a
34933 secondary stack.
34934 (Has_Access_Values): New function.
34935
34936 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
34937
34938 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
34939 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
34940 with LRM terminology).
34941 Change terminology in comments primitive type => elementary type.
34942
34943 2004-07-06 Ed Schonberg <schonberg@gnat.com>
34944
34945 PR ada/15602
34946 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
34947 parameters do not impose any requirements on the presence of a body.
34948
34949 2004-07-06 Ed Schonberg <schonberg@gnat.com>
34950
34951 PR ada/15593
34952 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
34953 compilation unit and is in an open scope at the point of instantiation,
34954 assume that a body may be present later.
34955
34956 2004-07-06 Ed Schonberg <schonberg@gnat.com>
34957
34958 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
34959 Improve error message when specified size is not supported.
34960
34961 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
34962 is never a primitive operation.
34963
34964 2004-07-05 Andreas Schwab <schwab@suse.de>
34965
34966 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
34967 RECORD_OR_UNION_CHECK.
34968 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
34969
34970 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
34971
34972 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
34973 dependency on xgnatugn, instead build it via a submake.
34974 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
34975
34976 2004-07-04 Richard Henderson <rth@redhat.com>
34977
34978 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
34979
34980 2004-07-01 Richard Henderson <rth@redhat.com>
34981
34982 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
34983 * utils.c (max_size): Likewise.
34984
34985 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34986
34987 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
34988 and rest_of_type_compilation; add arg to create_*_decl.
34989 (annotate_decl_with_node): Deleted.
34990 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
34991 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
34992 (get_current_block_context, gnat_pushdecl): New declarations.
34993 (gnat_init_stmt_group): Likewise.
34994 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
34995 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
34996 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
34997 (gnat_init): Call gnat_init_stmt_group.
34998 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
34999 (gnu_pending_elaboration_list): Deleted.
35000 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
35001 (gigi): Rearrange initialization calls and move some to last above.
35002 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
35003 Delete calls to add_decl_expr; add arg to create_*_decl.
35004 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
35005 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
35006 begin_subprog_body and call it.
35007 Don't push and pop ggc context.
35008 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
35009 (add_stmt): Remove handling of DECL_EXPR from here.
35010 If not in function, mark visited.
35011 (add_decl_expr): Put global at top level.
35012 Check for cases of DECL_INITIAL we have to handle here.
35013 (process_type): Add extra arg to create_type_decl.
35014 (build_unit_elab): Rework to just gimplify.
35015 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
35016 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
35017 (get_pending_elaborations, pending_elaborations_p): Likewise.
35018 (push_pending_elaborations, pop_pending_elaborations): Likewise.
35019 (get_elaboration_location, insert_elaboration_list): Likewise.
35020 (gnat_binding_level): Renamed from ada_binding_level.
35021 (init_gnat_to_gnu): Don't clear pending_elaborations.
35022 (global_bindings_p): Treat as global if no current_binding_level.
35023 (set_current_block_context): New function.
35024 (gnat_pushdecl): Renamed from pushdecl; major rework.
35025 All callers changed.
35026 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
35027 (finish_record_type): Call call pushdecl for stub decl.
35028 (function_nesting_depth): Deleted.
35029 (begin_subprog_body): Delete obsolete code.
35030 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
35031
35032 2004-06-28 Robert Dewar <dewar@gnat.com>
35033
35034 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35035 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
35036 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
35037 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
35038 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
35039
35040 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
35041 deal with problem of inefficient slices on machines with strict
35042 alignment, when the slice is a component of a composite.
35043
35044 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
35045 machines, we need the check there as well.
35046
35047 2004-06-28 Ed Schonberg <schonberg@gnat.com>
35048
35049 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
35050 determine safe copying direction for overlapping slice assignments
35051 when component is controlled.
35052
35053 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
35054 formal derived type in the actual for a formal package are visible in
35055 the enclosing instance.
35056
35057 2004-06-28 Ed Schonberg <schonberg@gnat.com>
35058
35059 PR ada/15600
35060 * sem_util.adb (Trace_Components): Diagnose properly an illegal
35061 circularity involving a private type whose completion includes a
35062 self-referential component.
35063 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
35064 renaming or an instantiation from an implicit derived operation.
35065
35066 2004-06-28 Pascal Obry <obry@gnat.com>
35067
35068 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
35069 DLL.
35070 (Library_File_Name_For): Idem.
35071
35072 2004-06-28 Matthew Gingell <gingell@gnat.com>
35073
35074 * g-traceb.ads: Add explanatory note on the format of addresses
35075 expected by addr2line.
35076
35077 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
35078
35079 * Makefile.in: Force debugging information on s-tasdeb.adb,
35080 a-except.adb and s-assert.adb needed by the debugger.
35081
35082 2004-06-28 Vincent Celier <celier@gnat.com>
35083
35084 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
35085 Need_To_Build_Lib.
35086 (Gnatmake): Ditto.
35087
35088 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
35089
35090 * prj.adb: Minor reformatting
35091 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
35092
35093 * prj.ads: Comment updates
35094 Minor reformatting
35095 (Project_Data): Change Flag1 to Need_To_Build_Lib.
35096 Remove Flag2: not used.
35097
35098 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
35099 declaration.
35100
35101 * gnat_ugn.texi: Put a "null;" declaration in one project file example
35102
35103 * gnat_rm.texi: Document Empty declarations "null;".
35104
35105 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
35106 front of the linker options.
35107 (Link_Foreign): Put the global archives and the libraries in front of
35108 the linker options.
35109
35110 2004-06-28 Javier Miranda <miranda@gnat.com>
35111
35112 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
35113 (RTU_Loaded): Code cleanup
35114 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
35115 withed predefined units.
35116
35117 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
35118 explicitly withed predefined units.
35119 Fix typo in comment
35120
35121 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
35122 explicitly withed predefined units.
35123
35124 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35125
35126 * ada-tree.def (DECL_STMT): Deleted.
35127 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
35128 (DECL_STMT_VAR): Deleted.
35129 * decl.c: add_decl_stmt now add_decl_expr.
35130 * gigi.h: Likewise.
35131 * trans.c: Likewise.
35132 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35133 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
35134 (add_stmt): Only handle padded type here.
35135 (add_stmt_with_node): Allow gnat_node to not be present.
35136 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
35137 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
35138 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
35139 make a SAVE_EXPR for the entire fat pointer.
35140 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
35141 (create_index_type): Make a DECL_EXPR.
35142 (end_subprog_body): Don't call allocate_struct_function here but
35143 do clear cfun.
35144
35145 2004-06-25 Pascal Obry <obry@gnat.com>
35146
35147 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
35148 Relocatable from Build_Dynamic_Library call.
35149
35150 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
35151 Relocatable are now synonym.
35152
35153 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
35154
35155 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
35156 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
35157 call.
35158
35159 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
35160 Lib_Address and Relocatable.
35161 (Default_DLL_Address): Removed.
35162
35163 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35164 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
35165 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
35166 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
35167 (Default_DLL_Address): Removed.
35168
35169 * mlib-tgt-mingw.adb: Ditto.
35170 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
35171
35172 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
35173 the initial thread stack size.
35174
35175 * a-strmap.ads: Move package L to private part as it is not used in
35176 the spec. Found while reading code.
35177
35178 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
35179
35180 * tracebak.c: Introduce support for a GCC infrastructure based
35181 implementation of __gnat_backtrace.
35182
35183 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
35184 any more. Use accessors instead. This eases maintenance and relaxes
35185 some alignment constraints.
35186 (_GNAT_Exception structure): Remove the Ada specific fields
35187 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
35188 a-exexpr.adb.
35189 (is_handled_by, __gnat_eh_personality): Replace component references to
35190 exception structure by use of the new accessors.
35191
35192 * init.c (__gnat_initialize): Adjust comments to match the just
35193 reverted meaning of the -static link-time option.
35194
35195 * adaint.c (convert_addresses): Arrange not to define a stub for
35196 mips-irix any more, as we now want to rely on a real version from a
35197 recent libaddr2line.
35198
35199 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
35200 the personality routine can use them and not have to rely on a C
35201 counterpart of the record anymore. This simplifies maintenance and
35202 relaxes the constraint of having Standard'Maximum_Alignment match
35203 BIGGEST_ALIGNMENT.
35204 Update comments, and add a section on the common header alignment issue.
35205
35206 2004-06-25 Geert Bosch <bosch@gnat.com>
35207
35208 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
35209 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
35210
35211 2004-06-25 Robert Dewar <dewar@gnat.com>
35212
35213 * gnat_rm.texi: Fix section on component clauses to indicate that the
35214 restriction on byte boundary placement still applies for bit packed
35215 arrays.
35216 Add comment on stack usage from Initialize_Scalars
35217
35218 * gnat_ugn.texi: Add documentation for -gnatyLnnn
35219
35220 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
35221 limiting nesting level.
35222
35223 * usage.adb: Add line for -gnatyLnnn switch
35224
35225 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
35226 sem_ch13.adb, exp_aggr.adb: Minor reformatting
35227
35228 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
35229 type as well as on the subtype. This corrects a problem in freeze in
35230 setting alignments of atomic types.
35231
35232 * sem_eval.ads: Minor comment typo fixed
35233
35234 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
35235 level. Minor reformatting.
35236
35237 * fname.adb (Is_Predefined_File_Name): Require a letter after the
35238 minus sign. This means that file names like a--b.adb will not be
35239 considered predefined.
35240
35241 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
35242 record Test new flag and give diagnostic for bad component clause.
35243 (Freeze_Entity): Set alignment of array from component alignment in
35244 cases where this is safe to do.
35245
35246 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
35247 arrays.
35248
35249 * cstand.adb: (Create_Standard): Set alignment of String to 1
35250
35251 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
35252
35253 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
35254 code in the common constrained array cases.
35255
35256 * a-storio.adb: Change implementation to avoid possible alignment
35257 problems on machines requiring strict alignment (data should be moved
35258 as type Buffer, not type Elmt).
35259
35260 * checks.adb (Apply_Array_Size_Check): Improve these checks by
35261 killing the overflow checks which we really do not need (64-bits is
35262 enough).
35263
35264 2004-06-25 Vincent Celier <celier@gnat.com>
35265
35266 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
35267 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
35268 inconditionally for the main project.
35269 (Recursive_Add_Archives.Add_Archive_Path): New procedure
35270 (Link_Executables.Check_Time_Stamps): New procedure
35271 (Link_Executables.Link_Foreign): New procedure
35272 Changes made to reduce nesting level of this package
35273 (Check): New procedure
35274 (Add_Switches): When not in quiet output, check that a switch is not
35275 the concatenation of several valid switches. If it is, issue a warning.
35276 (Build_Global_Archive): If the global archive is rebuilt, linking need
35277 to be done.
35278 (Compile_Sources): Rebuilding a library archive does not imply
35279 rebuilding the global archive.
35280 (Build_Global_Archive): New procedure
35281 (Build_Library): New name for Build_Archive, now only for library
35282 project
35283 (Check_Archive_Builder): New procedure
35284 (Create_Global_Archive_Dependency_File): New procedure
35285 (Gprmake): Call Build_Global_Archive before linking
35286 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
35287 throughout.
35288 (Scan_Arg): Display the Copyright notice when -v is used
35289
35290 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
35291 for gnatls.
35292
35293 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
35294 COMPILE.
35295 Add new GNAT LIST qualifier /FILES=
35296 Added qualifier /DIRECTORY= to GNAT METRIC
35297 Added qualifier /FILES= to GNAT METRIC
35298 Added qualifier /FILES to GNAT PRETTY
35299
35300 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
35301 to take into account both versions of the switch.
35302
35303 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
35304 always be the last switch to the gcc driver. Disable switch storing so
35305 that switches automatically added by the gcc driver are not put in the
35306 ALI file.
35307
35308 * prj.adb (Project_Empty): Take into account changes in components of
35309 Project_Data.
35310
35311 * prj.ads (Languages_Processed): New enumaration value All_Languages.
35312
35313 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
35314 used. Split Boolean component Ada_Sources_Present in two Boolean
35315 components Ada_Sources_Present and Other_Sources_Present.
35316 Minor reformatting
35317
35318 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
35319 instead of Sources_Present.
35320 (Set_Ada_Paths.Add.Recursive_Add): Ditto
35321
35322 * prj-nmsc.adb: Minor reformatting
35323 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
35324 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
35325 Check_Ada_Naming_Scheme.
35326 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
35327 throughout.
35328
35329 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
35330 In_Limited.
35331 Make sure that all cycles where there is at least one "limited with"
35332 are detected.
35333 (Parse_Single_Project): New Boolean parameter In_Limited
35334
35335 * prj-proc.adb (Recursive_Check): When Process_Languages is
35336 All_Languages, call first Prj.Nmsc.Ada_Check, then
35337 Prj.Nmsc.Other_Languages_Check.
35338
35339 * prj-proc.adb (Process): Use Ada_Sources_Present or
35340 Other_Sources_Present (instead of Sources_Present) depending on
35341 Process_Languages.
35342
35343 * lang-specs.h: Keep -g and -m switches in the same order, and as the
35344 last switches.
35345
35346 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
35347 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
35348 False.
35349 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
35350 False.
35351
35352 * lib.ads (Disable_Switch_Storing): New procedure.
35353
35354 * make.adb: Modifications to reduce nesting level of this package.
35355 (Check_Standard_Library): New procedure
35356 (Gnatmake.Check_Mains): New procedure
35357 (Gnatmake.Create_Binder_Mapping_File): New procedure
35358 (Compile_Sources.Compile): Add switch -gnatez as the last option
35359 (Display): Never display -gnatez
35360
35361 * Makefile.generic:
35362 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
35363
35364 * gnatcmd.adb (Check_Project): New function
35365 (Process_Link): New procedure to reduce nesting depth
35366 (Check_Files): New procedure to reduce the nesting depth.
35367 For GNAT METRIC, include the inherited sources in extending projects.
35368 (GNATCmd): When GNAT LS is invoked with a project file and no files,
35369 add the list of files from the sources of the project file. If this list
35370 is too long, put it in a temp text files and use switch -files=
35371 (Delete_Temp_Config_Files): Delete the temp text file that contains
35372 a list of source for gnatpp or gnatmetric, if one has been created.
35373 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
35374 in the project file is too large, create a temporary text file that
35375 list them and pass it to the tool with "-files=<temp text file>".
35376 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
35377
35378 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
35379 generated file is in not in Ada.
35380
35381 * gnatls.adb: Remove all parameters And_Save that are no longer used.
35382 (Scan_Ls_Arg): Add processing for -files=
35383 (Usage): Add line for -files=
35384
35385 * g-os_lib.adb (On_Windows): New global constant Boolean flag
35386 (Normalize_Pathname): When on Windows and the path starts with a
35387 directory separator, make sure that the resulting path will start with
35388 a drive letter.
35389
35390 * clean.adb (Clean_Archive): New procedure
35391 (Clean_Project): When there is non-Ada code, delete the global archive,
35392 the archive dependency files, the object files and their dependency
35393 files, if they exist.
35394 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
35395
35396 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
35397
35398 * sinfo.ads: Fix typo in comment.
35399
35400 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
35401 the TSS for remote access-to-subprogram types, since these TSS are
35402 always present once the type has been analyzed.
35403 (RAS_E_Dereference): Same.
35404
35405 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
35406 reference raises Bad_Attribute, mark the reference as analyzed so the
35407 node (and any children resulting from rewrites that could have occurred
35408 during the analysis that ultimately failed) is not analyzed again.
35409
35410 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
35411
35412 * exp_dist.adb: Minor comment fix.
35413
35414 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
35415 type is an anonymous access type, no unchecked deallocation of the
35416 allocated object can occur. If the object is controlled, attach it with
35417 a count of 1. This allows attachment to the Global_Final_List, if
35418 no other relevant list is available.
35419 (Get_Allocator_Final_List): For an anonymous access type that is
35420 the type of a discriminant or record component, the corresponding
35421 finalisation list is the one of the scope of the type.
35422
35423 2004-06-25 Ed Schonberg <schonberg@gnat.com>
35424
35425 * sem_ch3.adb (Replace_Type): When computing the signature of an
35426 inherited subprogram, use the first subtype if the derived type
35427 declaration has no constraint.
35428
35429 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
35430 before applying previous optimization. Minor code cleanup.
35431
35432 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
35433 placed at the beginning of an unpacked record without explicit
35434 alignment, a slice of it will be aligned and does not need a copy when
35435 used as an actual.
35436
35437 2004-06-25 Ed Schonberg <schonberg@gnat.com>
35438
35439 PR ada/15591
35440 PR ada/15592
35441 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
35442 reference is written with expressions mimicking parameters.
35443
35444 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
35445
35446 PR ada/15589
35447 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
35448 STEP 2a. The constraints of a full type declaration of a derived record
35449 type are checked for conformance with those declared in the
35450 corresponding private extension declaration. The message
35451 "not conformant with previous declaration" is emitted if an error is
35452 detected.
35453
35454 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35455
35456 * g-traceb.ads: Document the need for -E binder switch in the spec.
35457
35458 * g-trasym.ads: Document the need for -E binder switch in the spec.
35459
35460 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
35461
35462 * sem_prag.adb: Add handling of pragma Detect_Blocking.
35463
35464 * snames.h, snames.ads, snames.adb: Add entry for pragma
35465 Detect_Blocking.
35466
35467 * s-rident.ads: Change reference to pragma Detect_Blocking.
35468
35469 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
35470 system.ads.
35471
35472 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
35473 to indicate whether pragma Detect_Blocking is active.
35474
35475 * par-prag.adb: Add entry for pragma Detect_Blocking.
35476
35477 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
35478 of not handling WITH.
35479 Note that this replaces the previous update which was incorrect.
35480
35481 2004-06-25 Javier Miranda <miranda@gnat.com>
35482
35483 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
35484 use-clauses to have a clean environment.
35485
35486 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
35487 the installation of the use-clauses to stablish a clean environment in
35488 case of compilation of a separate unit; otherwise the call to
35489 use_one_package is protected by the barrier Applicable_Use.
35490
35491 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
35492 the installation of the use-clauses to stablish a clean environment in
35493 case of compilation of a separate unit.
35494 (End_Use_Clauses): Minor comment cleanup.
35495
35496 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
35497
35498 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
35499
35500 2004-06-23 Richard Henderson <rth@redhat.com>
35501
35502 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
35503
35504 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35505
35506 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
35507 now bool instead of int.
35508 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
35509 * trans.c (gnu_switch_label_stack): New function.
35510 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
35511 elaboration of renamed entity returns.
35512 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
35513 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
35514 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
35515 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
35516 DECL_SIZE_UNIT and simplify variable-sized case.
35517 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35518 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
35519 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
35520 (build_unit_elab): Disable for now.
35521 * utils.c (mark_visited): New function.
35522 (pushdecl): Walk tree to call it for global decl.
35523 (update_pointer_to): Update all variants of pointer and ref types.
35524 Add arg to COMPONENT_REF.
35525 (convert): Likewise.
35526 Move check for converting between variants lower down.
35527 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
35528 (build_allocator): Don't force type of MODIFY_EXPR.
35529 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
35530 put_var_into_stack.
35531
35532 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35533
35534 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
35535 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
35536 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
35537 subprograms.
35538 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
35539 all callers changed.
35540 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
35541 the way that EXIT_STMT finds the loop label.
35542 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
35543 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
35544 (add_stmt): Use annotate_with_locus insted of setting directly.
35545 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
35546 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
35547 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
35548 (build_vms_descriptor): Add extra args to ARRAY_REF.
35549 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
35550 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
35551 New cases.
35552 (build_binary_op): Don't make explicit CONVERT_EXPR.
35553 Add extra rgs to ARRAY_REF.
35554
35555 2004-06-14 Pascal Obry <obry@gnat.com>
35556
35557 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
35558 Windows. Fix minor typo.
35559
35560 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
35561 which is now supported on Windows. With this implementation using the
35562 Library Project feature is no different on Windows than on UNIX.
35563
35564 2004-06-14 Vincent Celier <celier@gnat.com>
35565
35566 * makegpr.adb (Compile_Sources): Nothing to do when there are no
35567 non-Ada sources.
35568
35569 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
35570
35571 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
35572 found, show the project name and the path of the previously parsed
35573 project file.
35574
35575 2004-06-14 Ed Schonberg <schonberg@gnat.com>
35576
35577 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
35578 array, avoid copying the actual before the call.
35579
35580 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
35581
35582 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
35583 Instead, allocate memory on worst-case alignment assumptions, and then
35584 return an aligned address within the allocated zone.
35585
35586 2004-06-14 Robert Dewar <dewar@gnat.com>
35587
35588 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
35589 elab entities in predefined units in No_Run_Time_Mode.
35590 (Gen_Adainit_C): Same fix
35591 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
35592 units in No_Run_Time_Mode
35593 (Gen_Elab_Calls_C): Same fix
35594
35595 * symbols-vms-alpha.adb: Minor reformatting
35596
35597 * g-debpoo.ads: Minor reformatting
35598
35599 * lib.adb (In_Same_Extended_Unit): Version working on node id's
35600
35601 * lib.ads (In_Same_Extended_Unit): Version working on node id's
35602
35603 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
35604 working on nodes.
35605
35606 * make.adb: Minor reformatting
35607
35608 * par-ch12.adb: Minor reformatting
35609
35610 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
35611
35612 * prj-strt.adb: Minor reformatting
35613
35614 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
35615 be more general.
35616
35617 * sem_attr.adb: Minor reformatting
35618
35619 * sem_ch7.adb: Minor reformatting
35620
35621 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
35622 for type in the same unit as the object declaration.
35623
35624 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
35625 static string expressions and not just string literals.
35626 Minor reformatting
35627 (Set_Warning): Reset restriction warning flag for restriction pragma
35628 Implement pragma Profile_Warnings
35629 Implement pragma Profile (Restricted)
35630 Give obolescent messages for old restrictions and pragmas
35631
35632 * snames.h, snames.ads, snames.adb: Add new entry for pragma
35633 Profile_Warnings.
35634
35635 * s-rident.ads: Add declarations for restrictions required by profile
35636 Restricted and profile Ravenscar.
35637
35638 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
35639
35640 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
35641 configuration pragmas.
35642
35643 2004-06-11 Vincent Celier <celier@gnat.com>
35644
35645 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
35646 gnatsym, when symbol policy is Restricted.
35647
35648 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
35649 gnatsym, when symbol policy is Restricted.
35650
35651 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
35652 read the symbol file.
35653 (Finalize): Fail in symbol policy Restricted if a symbol in the original
35654 symbol file is not in the object files. Do not create a new symbol file
35655 when symbol policy is Restricted.
35656
35657 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
35658 in Scng.
35659
35660 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
35661 Restricted.
35662 (Usage): Line for new switch -R
35663
35664 * make.adb (Initialize): When the platform is not VMS, add the
35665 directory where gnatmake is invoked in the front of the path, if
35666 gnatmake is invoked with directory information. Change the Scan_Args
35667 while loop to a for loop.
35668 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
35669 if Depth is equal or greater than the proposed depth, there is nothing
35670 to do.
35671 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
35672 instead of 0.
35673
35674 * prj.ads: Add new symbol policy Restricted.
35675
35676 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
35677 with the new parameters Check_All_Labels and Case_Location.
35678
35679 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
35680 (Library_Symbol_File needs to be defined).
35681
35682 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
35683 and Case_Location If Check_All_Labels is True, check that all values of
35684 the string type are used, and output warning(s) if they are not.
35685
35686 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
35687 and Case_Location.
35688
35689 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
35690
35691 * gnat_ugn.texi: Update documentation about the library directory in
35692 Library Projects.
35693
35694 * makegpr.adb (Display_Command): In verbose mode, also display the
35695 value of the CPATH env var, when the compiler is gcc.
35696 (Initialize): Change the Scan_Args while loop to a for loop
35697 (Compile_Individual_Sources): Change directory to object directory
35698 before compilations.
35699
35700 * symbols.ads: New symbol policy Restricted.
35701
35702 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
35703
35704 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
35705 is now taken care of internally in the Exception_Propagation package
35706 and does not require clients assistance any more.
35707
35708 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
35709 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
35710 functions. Helpers to maintain a predicate required in the handling of
35711 occurrence transfer between tasks.
35712 This is now handled internally and does not require clients assistance
35713 for the setup/propagate separation anymore.
35714 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
35715 allocation strategy, handle the Setup_And_Not_Propagated predicate and
35716 document.
35717
35718 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
35719 raise_after_setup, now that everything is handled internally within the
35720 setup/propagation engine.
35721
35722 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
35723
35724 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
35725 Add additional conditions for the case of an actual being a simple
35726 name or literal. Improve inlining by preventing the generation
35727 of temporaries with a short lifetime (one use).
35728
35729 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
35730
35731 PR ada/15587
35732 * einfo.ads: Minor comment updates for Has_Completion and
35733 E_Constant list of flags.
35734
35735 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
35736 and constant redeclarations now set the Has_Completion flag of their
35737 defining identifiers.
35738
35739 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
35740 Inspect_Deferred_Constant_Completion.
35741 Used to detect private deferred constants that have not been completed
35742 either by a constant redeclaration or pragma Import. Emits error message
35743 "constant declaration requires initialization expression".
35744
35745 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
35746 completes a deferred constant.
35747
35748 2004-06-11 Geert Bosch <bosch@gnat.com>
35749
35750 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
35751
35752 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
35753 calculating exponent for scaling denormal numbers.
35754 (Leading_Part): Properly raise Constraint_Error for zero or negative
35755 Adjustment.
35756 (Remainder): Properly raise Constraint_Error for zero divisor.
35757
35758 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
35759
35760 * sem_util.adb: Minor reformatting.
35761
35762 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
35763 dereference when accessing the entry parameter record.
35764 (Check_Array_Type): Always check for possible implicit dereference.
35765 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
35766 Abort if a pointer is still present (denoting that an implicit
35767 dereference was left in the tree by the front-end).
35768
35769 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
35770 dereference when accessing the entry parameter record.
35771 (Check_Array_Type): Always check for possible implicit dereference.
35772 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
35773 Abort if a pointer is still present (denoting that an implicit
35774 dereference was left in the tree by the front-end).
35775
35776 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
35777
35778 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
35779 message, like the compiler itself does. Easier to parse the output.
35780
35781 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
35782
35783 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
35784 be base names, and not includes directories.
35785
35786 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
35787
35788 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
35789 so that dependencies are properly taken into account by make.
35790
35791 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
35792
35793 PR ada/15622
35794 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
35795 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
35796
35797 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
35798
35799 * Makefile.in (install-gnatlib): install target-specific run-time files.
35800
35801 * Make-lang.in: Remove obsolete targets.
35802
35803 2004-06-11 Ed Schonberg <schonberg@gnat.com>
35804
35805 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
35806 specification, to catch misuses of program unit names.
35807
35808 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
35809 superfluous conversions in an instance.
35810
35811 2004-06-11 Ed Schonberg <schonberg@gnat.com>
35812
35813 PR ada/15403
35814 * sem_ch12.adb (Save_References): If operator node has been folded to
35815 enumeration literal, associated_node must be discarded.
35816
35817 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
35818
35819 * s-stchop-vxworks.adb: Add required pragma Convention to
35820 Task_Descriptor because it is updated by a C function.
35821
35822 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
35823
35824 PR ada/15568
35825 * Makefile.in: Remove target specific SO_OPT on IRIX
35826
35827 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35828
35829 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
35830 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
35831 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
35832 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
35833 (STMT_STMT, USE_STMT): New statement codes.
35834 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
35835 * ada-tree.h: Reflect above changes.
35836 (struct tree_loop_id): Deleted.
35837 (union lang_tree_node, struct lang_decl, struct lang_type):
35838 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
35839 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
35840 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
35841 (IS_ADA_STMT): New macro.
35842 * decl.c (annotate_decl_with_node): New function.
35843 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
35844 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
35845 Call add_stmt_with_node to do needed assignments.
35846 Add call to update setjmp buffer directly, not via EXPR_STMT.
35847 (maybe_variable): Argment GNAT_NODE deleted.
35848 * gigi.h (maybe_variable): Likewise.
35849 (make_transform, add_stmt_with_node, set_block_for_group): New.
35850 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
35851 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
35852 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
35853 (set_lineno, set_lineno_from_sloc): Likewise.
35854 (record_code_position, insert_code_for): Likewise.
35855 (gnat_poplevel): Now returns void.
35856 (end_subprog_body): Now takes argument.
35857 * misc.c (cgraph.h, tree-inline.h): New includes.
35858 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
35859 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
35860 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
35861 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
35862 (gnat_parse_file): Don't set immediate_size_expand.
35863 Call cgraph functions.
35864 (gnat_expand_expr): Remove most cases.
35865 (record_code_position, insert_code_for): Remove from here.
35866 * trans.c (toplev.h, tree-gimple.h): Now included.
35867 (discard_file_names): Deleted.
35868 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
35869 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
35870 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
35871 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
35872 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
35873 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
35874 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
35875 (set_block_for_group, add_stmt_list): Likewise.
35876 (start_stmt_group): Renamed from start_block_stmt.
35877 (end_stmt_group): Likewise, from end_block_stmt.
35878 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
35879 (gigi): Don't set discard_file_names or call set_lineno.
35880 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
35881 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
35882 Numerous changes throughout to reflect new names and complete
35883 function-at-a-time implementation.
35884 (gnat_expand_stmt): Delete or comment out all cases.
35885 (process_inlined_subprograms): Use add_stmt.
35886 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
35887 call set_lineno; also remove unneeded block handling.
35888 (process_type): Remove unneeded block handling.
35889 (build_unit_elab): Remove calls to deleted functions.
35890 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
35891 (tree-dump.h): Likewise.
35892 (struct ada_binding_level): Add field jmpbuf_decl.
35893 (gnat_define_builtin, gnat_install_builtins): New.
35894 (gnat_gimplify_function, gnat_finalize): Likewise.
35895 (gnat_poplevel): No longer return BLOCK, set it instead.
35896 Remove code dealing with nested functions.
35897 (gnat_init_decl_processing): Also set size_type_node.
35898 Call gnat_install_builtins.
35899 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
35900 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
35901 Remove special-case for "main".
35902 (end_subprog_body): Add arg and rework for tree-ssa.
35903 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
35904 Add case for BOOLEAN_TYPE.
35905 * utils2.c (rtl.h): Now include.
35906 (build_call_raise): Test Debug_Flag_NN directly.
35907 (build_call_alloc_dealloc): Don't use local stack allocation for now.
35908 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
35909 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
35910
35911 2004-06-07 Robert Dewar <dewar@gnat.com>
35912
35913 * a-direct.ads, einfo.ads: Minor comment updates
35914
35915 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
35916 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
35917 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
35918 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
35919 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
35920
35921 * s-interr-sigaction.adb: Remove unreferenced variable
35922 (Attached_Interrupts). Minor reformatting.
35923 Avoid use of variable I (replace by J).
35924
35925 * par-ch10.adb: Fix text of one error message
35926
35927 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
35928 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
35929 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
35930 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
35931 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
35932 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
35933 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
35934 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
35935 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
35936 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
35937 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
35938 2005 support.
35939
35940 2004-06-07 Doug Rupp <rupp@gnat.com>
35941
35942 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
35943
35944 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
35945
35946 * mlib-tgt-vms-ia64.adb: New file.
35947
35948 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
35949 Add mlib-tgt-vms-ia64.adb
35950 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
35951 Move to alpha specific ifeq section.
35952 Add VMS specific versions of symbols.adb
35953 Renaming of 5q vms files.
35954
35955 * 5qsystem.ads renamed to system-vms_64.ads.
35956
35957 2004-06-07 Vincent Celier <celier@gnat.com>
35958
35959 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
35960 explain that when a time of day corresponding to the non existing hour
35961 on the day switching to DST is specified, Split may return a different
35962 value for Seconds.
35963
35964 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
35965 to GNAT PRETTY.
35966
35967 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
35968 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
35969
35970 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
35971 to False.
35972 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
35973 the linking options.
35974 (Build_Library.Check_Libs): On VMS, if there is a dependency on
35975 g-trasym.ads, set Gtrasymobj_Needed to True.
35976
35977 * prj-attr.adb: Add new package Metrics for gnatmetric
35978
35979 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
35980 canonical case to take into account files with upper case characters on
35981 Windows.
35982 (Ada_Check): Load the reference symbol file name in the name buffer to
35983 check it, not the symbol file name.
35984
35985 * snames.ads, snames.adb: Add standard name Metrics (name of project
35986 file package for gnatmetric).
35987
35988 * vms_conv.ads: Add Metric to Comment_Type
35989
35990 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
35991
35992 * vms_data.ads: Add qualifiers for GNAT METRIC
35993
35994 * makegpr.adb (Link_Executables): Take into account the switches
35995 specified in package Linker of the main project.
35996
35997 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
35998
35999 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
36000 the index of the last element is Units.Last, not Units.Table'Last
36001 (which is usually not a valid index within the actually allocated
36002 storage for the table).
36003
36004 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
36005 determines whether to generate a call to a checked storage pool
36006 Dereference action.
36007 Generate such a call only for a dereference that either comes from
36008 source, or is the result of rewriting a dereference that comes from
36009 source.
36010
36011 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
36012
36013 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
36014
36015 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
36016
36017 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
36018 file level, elaborate the stride for inner dimensions in alignment
36019 units, not bytes.
36020
36021 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
36022 in a comment.
36023
36024 2004-06-07 Javier Miranda <miranda@gnat.com>
36025
36026 * exp_ch6.adb: Correct wrong modification in previous patch
36027
36028 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
36029
36030 * g-trasym.ads: Corrected comment to properly reflect level of support
36031 on VMS.
36032
36033 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
36034
36035 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
36036 includes case of a variable referenced on the left hand side of an
36037 assignment, therefore remove redundant code. Variables and prefixes of
36038 indexed or selected components are now marked as referenced on left
36039 hand side. Warnings are now properly emitted when variables or prefixes
36040 are assigned but not read.
36041
36042 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
36043 left hand side referenced variables. Private access types do not
36044 produce the warning "variable ... is assigned but never read".
36045 Add also additional checks to left hand side referenced variables.
36046 Aliased, renamed objects and access types do not produce the warning
36047 "variable ... is assigned but never read" since other entities may read
36048 the memory location.
36049
36050 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
36051
36052 * Makefile.in: In the powerpc/vxworks-specific section, restore
36053 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
36054 by mistake).
36055
36056 2004-06-07 Ed Schonberg <schonberg@gnat.com>
36057
36058 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
36059 predefined operators.
36060 Removes spurious type errors from g-trasym-vms.adb.
36061
36062 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
36063 distinct from the operator appearing in the source, call appropriate
36064 routine to insert conversions when needed, and complete resolution of
36065 node.
36066 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
36067 interpretations for rewritten right operand.
36068 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
36069 the other operand is overloaded and the context is a type conversion.
36070
36071 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36072
36073 * ada-tree.def (BLOCK_STMT): Now has two operands.
36074 (BREAK_STMT): New.
36075
36076 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
36077
36078 * gigi.h: (gnat_poplevel): Now returns a tree.
36079
36080 * trans.c (end_block_stmt): Add arg; all callers changed.
36081 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
36082 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
36083 (add_stmt): Set TREE_TYPE.
36084 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
36085 (gnat_expand_stmt, case BREAK_STMT): New case.
36086
36087 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
36088
36089 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
36090
36091 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
36092 procedure Set_Stack_Size that is not needed.
36093
36094 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
36095
36096 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
36097 used for gnatpp input file and for the files upon which it depends
36098
36099 2004-06-07 Ben Brosgol <brosgol@gnat.com>
36100
36101 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
36102
36103 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
36104
36105 * gnatvsn.ads: Bump version numbers appropriately.
36106 Add new build type.
36107
36108 2004-06-07 Pascal Obry <obry@gnat.com>
36109
36110 * gnat_ugn.texi: Improve comments about imported names and link names
36111 on Windows. Add a note about the requirement to use -k gnatdll's option
36112 when working with a DLL which has stripped stdcall symbols (no @nn
36113 suffix).
36114
36115 2004-05-27 Vincent Celier <celier@gnat.com>
36116
36117 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
36118 COMMENTS_LAYOUT=UNTOUCHED
36119
36120 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
36121 symbols-vms-alpha.adb
36122
36123 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
36124
36125 * sem.ads: Clarify documentation on checks suppression.
36126
36127 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
36128
36129 2004-05-27 Ed Schonberg <schonberg@gnat.com>
36130
36131 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
36132 the case of multiple derivations.
36133 (Is_Object_Reference): For a selected component, verify that the prefix
36134 is itself an object and not a value.
36135
36136 * sem_ch12.adb (Same_Instantiated_Constant): New name for
36137 Same_Instantiated_Entity.
36138 (Same_Instantiated_Variable): Subsidiary to
36139 Check_Formal_Package_Instance, to recognize actuals for in-out generic
36140 formals that are obtained from a previous formal package.
36141 (Instantiate_Subprogram_Body): Emit proper error when
36142 generating code and the proper body of a stub is missing.
36143
36144 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
36145 has a universal interpretation, do the disambiguation here.
36146
36147 * exp_ch4.adb (Expand_N_Type_Conversion,
36148 Expand_N_Unchecked_Type_Conversion): Special handling when target type
36149 is Address, to avoid typing anomalies when Address is a visible integer
36150 type.
36151
36152 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
36153 to determine whether a subprogram should not be marked Pure, even when
36154 declared in a pure package.
36155
36156 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
36157
36158 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
36159
36160 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
36161 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
36162 Update the documentation about the Ravenscar profile, following the
36163 definition found in AI-249.
36164
36165 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
36166 setting the Profile (Ravenscar). This must be done in addition to
36167 setting the required restrictions.
36168
36169 * rtsfind.ads: Add the set of operations defined in package
36170 Ada.Interrupts.
36171
36172 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
36173 restriction.
36174
36175 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
36176
36177 lang-specs.h: Always require -c or -S and always redirect to /dev/null
36178 if -gnatc or -gnats is passed.
36179
36180 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
36181
36182 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
36183 a significant reference. Warnings are now properly emitted when a
36184 discriminated type is not referenced.
36185
36186 * lib-xref.adb (Generate_Reference): A deferred constant completion,
36187 record representation clause or record type discriminant does not
36188 produce a reference to its corresponding entity. Warnings are now
36189 properly emitted when deferred constants and record types are not
36190 referenced.
36191
36192 2004-05-27 Geert Bosch <bosch@gnat.com>
36193
36194 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
36195 Fixes ACATS Annex G tests.
36196
36197 2004-05-27 Robert Dewar <dewar@gnat.com>
36198
36199 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
36200 handling WITH
36201
36202 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
36203
36204 * s-interr.adb (Server_Task): Take into account case of early return
36205 from sigwait under e.g. linux.
36206
36207 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
36208
36209 * gnat_ugn.texi: Add description for the new gnatpp options:
36210 -rnb - replace the original source without creating its backup copy
36211 -c0 - do not format comments
36212
36213 2004-05-24 Geert Bosch <bosch@gnat.com>
36214
36215 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
36216 with 192 bits of precision, sufficient to reduce a double-extended
36217 arguments X with a maximum relative error of T'Machine_Epsilon, for X
36218 in -2.0**32 .. 2.0**32.
36219 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
36220 reduction by the processor, which only uses a 68-bit approximation of
36221 Pi.
36222 (Tan): Always reduce arguments and compute function either using
36223 the processor's fptan instruction, or by dividing sin and cos as needed.
36224
36225 2004-05-24 Doug Rupp <rupp@gnat.com>
36226
36227 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
36228 gcc error on 32/64 bit VMS.
36229
36230 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
36231
36232 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
36233 since this is what we get for stack overflows although not documented
36234 as such.
36235 Document the issues which may require adjustments to our signal
36236 handlers.
36237
36238 2004-05-24 Ed Schonberg <schonberg@gnat.com>
36239
36240 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
36241 enclosing dynamic scope if the instantiation is within a generic unit.
36242
36243 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
36244
36245 * exp_dbug.ads: Fix typo.
36246
36247 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
36248 Rename it to its proper name: system-linux-ia64.ads
36249 (stamp-gnatlib1): Remove extra target specific run time files when
36250 setting up the rts directory.
36251
36252 2004-05-24 Javier Miranda <miranda@gnat.com>
36253
36254 * einfo.ads, einfo.adb (Limited_Views): Removed.
36255 (Limited_View): New attribute that replaces the previous one. It is
36256 now a bona fide package with the limited-view list through the
36257 first_entity and first_private attributes.
36258
36259 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
36260 limited-private-with clause.
36261 (Install_Limited_Withed_Unit): Install the private declarations of a
36262 limited-private-withed package. Update the installation of the shadow
36263 entities according to the new structure (see Build_Limited_Views)
36264 (Build_Limited_Views): Replace the previous implementation of the
36265 limited view by a package entity that references the first shadow
36266 entity plus the first shadow private entity (required for limited-
36267 private-with clause)
36268 (New_Internal_Shadow_Entity): Code cleanup.
36269 (Remove_Limited_With_Clause): Update the implementation to undo the
36270 new work carried out by Build_Limited_Views.
36271 (Build_Chain): Complete documentation.
36272 Replace Ada0Y by Ada 0Y in comments
36273 Minor reformating
36274
36275 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
36276 types the level of accessibility depends on the enclosing type
36277 declaration.
36278
36279 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
36280 entities. Complete documentation of previous change.
36281
36282 2004-05-24 Robert Dewar <dewar@gnat.com>
36283
36284 * namet.adb: Minor reformatting
36285 Avoid use of name I (replace by J)
36286 Minor code restructuring
36287
36288 * sem_ch6.adb: Minor reformatting
36289
36290 * lib-writ.adb: Do not set restriction as active if this is a
36291 Restriction_Warning case.
36292
36293 * sem_prag.adb: Reset restriction warning flag if real pragma
36294 restriction encountered.
36295
36296 * s-htable.adb: Minor reformatting
36297 Change rotate count to 3 in Hash (improves hash for small strings)
36298
36299 * 5qsystem.ads: Add comments for type Address (no literals allowed).
36300
36301 * gnat_ugn.texi: Add new section of documentation "Code Generation
36302 Control", which describes the use of -m switches.
36303
36304 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
36305
36306 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
36307 through the DECL_INITIAL for renamed variables.
36308
36309 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
36310
36311 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
36312
36313 2004-05-19 Joel Brobecker <brobecker@gnat.com>
36314
36315 * exp_dbug.ads: Correct comments concerning handling of overloading,
36316 since we no longer use $ anymore.
36317
36318 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
36319
36320 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
36321 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
36322 with illegal subunits.
36323
36324 2004-05-19 Ed Schonberg <schonberg@gnat.com>
36325
36326 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
36327 body with front-end inlining enabled, check whether an inline pragma
36328 appears immediately after the body and applies to it.
36329
36330 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
36331 enabled and the pragma appears after the body of the subprogram.
36332
36333 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36334
36335 Part of function-at-a-time conversion
36336
36337 * misc.c (adjust_decl_rtl): Deleted.
36338 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
36339 Define.
36340
36341 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
36342 (add_decl_stmt, add_stmt, block_has_vars): New functions.
36343 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
36344
36345 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
36346 when making a decl.
36347 (gnat_to_gnu_entity): Likewise.
36348 Use add_stmt to update setjmp buffer.
36349 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
36350 flush_addressof.
36351 No longer call adjust_decl_rtl.
36352 (DECL_INIT_BY_ASSIGN_P): New macro.
36353 (DECL_STMT_VAR): Likewise.
36354
36355 * trans.c (gigi): Call start_block_stmt to make the outermost
36356 BLOCK_STMT.
36357 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
36358 Call start_block_stmt and end_block_stmt temporarily.
36359 Use gnat_expand_stmt instead of expand_expr_stmt.
36360 (add_decl_stmt): New function.
36361 (tree_transform): Call it.
36362 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
36363 (end_block_stmt): Set type and NULL_STMT.
36364 (gnat_expand_stmt): Make recursize call instead of calling
36365 expand_expr_stmt.
36366 (gnat_expand_stmt, case DECL_STMT): New case.
36367 (set_lineno_from_sloc): Do nothing if global.
36368 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
36369 (start_block_stmt, add_stmt, end_block_stmt): New functions.
36370 (build_block_stmt): Call them.
36371 (gnat_to_code): Don't expand NULL_STMT.
36372 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
36373 args.
36374 (tree_transform): Likewise.
36375 (tree_transform, case N_Null_Statement): Return NULL_STMT.
36376 (gnat_expand_stmt, case NULL_STMT): New case.
36377 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
36378 IF_STMT_TRUE.
36379
36380 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
36381 TREE_ADDRESSABLE.
36382
36383 * utils.c (create_var_decl): Do not call expand_decl or
36384 expand_decl_init.
36385 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
36386 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
36387 here.
36388 (struct e_stack): Add chain_next to GTY.
36389 (struct binding_level): Deleted.
36390 (struct ada_binding_level): New struct.
36391 (free_block_chain): New.
36392 (global_binding_level, clear_binding_level): Deleted.
36393 (global_bindings_p): Rework to see if no chain.
36394 (kept_level_p, set_block): Deleted.
36395 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
36396 new data structure and work directly on BLOCK node.
36397 (gnat_poplevel): Similarly.
36398 (get_decls): Look at BLOCK_VARS.
36399 (insert_block): Work directly on BLOCK node.
36400 (block_has_var): New function.
36401 (pushdecl): Rework for new binding structures.
36402 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
36403 poplevel.
36404 (build_subprog_body): Likewise.
36405 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
36406
36407 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
36408
36409 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
36410 (DECL_STMT_VAR): Likewise.
36411
36412 2004-05-17 Robert Dewar <dewar@gnat.com>
36413
36414 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
36415 procedure
36416
36417 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
36418 of restriction synonyums by using
36419 Restrict.Process_Restriction_Synonyms.
36420
36421 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
36422
36423 * s-restri.ads (Tasking_Allowed): Correct missing comment
36424
36425 * s-rident.ads: Add entries for restriction synonyms
36426
36427 * ali.adb: Fix some problems with badly formatted ALI files that can
36428 result in infinite loops.
36429
36430 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
36431 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
36432 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36433 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
36434 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
36435 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
36436 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
36437 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
36438 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
36439 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
36440 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
36441 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
36442 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
36443 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
36444 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36445 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36446 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36447 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36448 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
36449 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
36450 to Task_Id (minor cleanup).
36451
36452 2004-05-17 Vincent Celier <celier@gnat.com>
36453
36454 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
36455 directory separator.
36456
36457 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
36458 project being extended, if Languages is not declared in extending
36459 project.
36460
36461 2004-05-17 Javier Miranda <miranda@gnat.com>
36462
36463 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
36464 limited view of a visible sibling.
36465
36466 2004-05-14 Robert Dewar <dewar@gnat.com>
36467
36468 * gnat_ugn.texi: Minor change to -gnatS documentation
36469
36470 * sprint.adb: Remove some instances of Assert (False) and for this
36471 purpose replace them by output of a ??? string.
36472
36473 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
36474 Assert (False).
36475
36476 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
36477 flag processing. This was suppressing required dependencies in
36478 No_Run_Time mode and is not needed since the binder does not generate
36479 references for things in libgnat anyway.
36480
36481 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
36482 warning.
36483
36484 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
36485
36486 * gnat_ugn.texi: Document AIX-specific issue with initialization of
36487 resolver library.
36488
36489 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
36490 action for the case of an actual parameter in an init proc call.
36491
36492 2004-05-14 Ed Schonberg <schonberg@gnat.com>
36493
36494 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
36495 subtype, check visible entities in base type.
36496
36497 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
36498 actions if the object is a renaming.
36499
36500 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
36501 Check_Formal_Package_Instance, to determine more precisely when the
36502 formal and the actual denote the same entity.
36503
36504 2004-05-14 Javier Miranda <miranda@gnat.com>
36505
36506 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
36507
36508 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
36509 corresponding to a private_with must be removed from visibility; it
36510 will be made visible later, just before we analyze the private part of
36511 the package.
36512 (Check_Private_Child_Unit): Allow private_with clauses in public
36513 siblings.
36514 (Install_Siblings): Make visible the private entities of private-withed
36515 siblings.
36516 (Install_Withed_Unit): Do not install the private withed unit if we
36517 are compiling a package declaration and the Private_With_OK flag was
36518 not set by the caller. These declarations will be installed later,
36519 just before we analyze the private part of the package.
36520
36521 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
36522 during the evaluation of the expression that initializes the object,
36523 decorate it with the expected type to avoid cascade errors.
36524 Code cleanup.
36525
36526 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
36527 subprogram we have to install the private_with clauses after its
36528 specification has been analyzed (as documented in AI-262.TXT).
36529
36530 * sem_ch8.adb (Has_Private_With): New function. Determines if the
36531 current compilation unit has a private with on a given entity.
36532 (Find_Direct_Name): Detect the Beaujolais problem described in
36533 AI-262.TXT
36534
36535 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
36536 provides the functionality of the function Is_Ancestor that was
36537 previously available in sem_ch10. It has been renamed to avoid
36538 overloading.
36539
36540 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
36541
36542 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36543
36544 * utils.c (build_vms_descriptor): Use SImode pointers.
36545
36546 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
36547
36548 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
36549
36550 2004-05-14 GNAT Script <nobody@gnat.com>
36551
36552 * Make-lang.in: Makefile automatically updated
36553
36554 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
36555
36556 Renaming of target specific files for clarity
36557
36558 * Makefile.in: Rename GNAT target specific files.
36559
36560 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
36561 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
36562 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
36563 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
36564 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
36565 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
36566 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
36567 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
36568 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
36569 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
36570 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
36571 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
36572 51osinte.adb, 51osinte.ads, 51system.ads,
36573 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36574 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
36575 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
36576 56tpopsp.adb, 57system.ads, 58system.ads,
36577 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
36578 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36579 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
36580 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
36581 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
36582 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36583 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
36584 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
36585 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
36586 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
36587 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
36588 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
36589 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
36590 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
36591 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
36592 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36593 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36594 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36595 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
36596 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
36597 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
36598 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
36599 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
36600 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36601 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
36602 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
36603 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36604 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
36605 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36606 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
36607 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
36608 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
36609 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
36610 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
36611 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
36612 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
36613 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
36614 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
36615 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
36616 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
36617
36618 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
36619 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
36620 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
36621 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
36622 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
36623 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
36624 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
36625 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
36626 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
36627 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
36628 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
36629 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
36630 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
36631 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
36632 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
36633 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
36634 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
36635 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
36636 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
36637 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
36638 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
36639 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
36640 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
36641 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
36642 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
36643 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
36644 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
36645 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
36646 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
36647 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
36648 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
36649 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
36650 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
36651 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
36652 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
36653 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
36654 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
36655 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
36656 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
36657 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
36658 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
36659 s-osinte-vms.ads, s-osinte-vxworks.adb,
36660 s-osinte-vxworks.ads, s-osprim-mingw.adb,
36661 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
36662 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
36663 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
36664 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
36665 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
36666 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
36667 s-stchop-vxworks.adb, s-taprop-dummy.adb,
36668 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
36669 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
36670 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
36671 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
36672 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
36673 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
36674 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
36675 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
36676 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
36677 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
36678 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
36679 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
36680 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
36681 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
36682 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
36683 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
36684 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
36685 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
36686 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
36687 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
36688 system-irix-o32.ads, system-linux-x86_64.ads,
36689 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
36690 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
36691 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
36692 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
36693 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
36694 system-vxworks-mips.ads, system-vxworks-ppc.ads,
36695 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
36696 above.
36697
36698 2004-05-13 Zack Weinberg <zack@codesourcery.com>
36699
36700 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
36701
36702 2004-05-13 Diego Novillo <dnovillo@redhat.com>
36703
36704 Merge from tree-ssa-20020619-branch.
36705
36706 * config-lang.in (boot_language, build_by_default): Set
36707 to no.
36708 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
36709 (max_size): Add static chain op for call_expr.
36710
36711 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
36712
36713 PR target/15331
36714 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
36715
36716 2004-05-11 Roger Sayle <roger@eyesopen.com>
36717
36718 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
36719 COND_EXPR.
36720
36721 2004-05-10 Doug Rupp <rupp@gnat.com>
36722
36723 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
36724 system.aux_dec.
36725
36726 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
36727
36728 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
36729
36730 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
36731 Fixes undefined symbols in IA64 gnatlib.
36732
36733 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
36734
36735 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
36736 Short_Address). This will be moved to system.auxdec.
36737
36738 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
36739
36740 * sem_util.adb: Replace test for presence of a node that is always
36741 present with a call to Discard_Node.
36742
36743 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
36744 Analyze on the library unit node after generation of distribution stub
36745 constructs. The call was a no-op because Unit_Node has already been
36746 Analyzed, and the tree fragments for the distribution stubs are
36747 analyzed as they are inserted in Exp_Dist.
36748 Update comment regarding to distribution stubs to reflect that we
36749 do not generate stub in separate files anymore.
36750
36751 * einfo.ads: Clarify the fact that a tagged private type has the
36752 E_Record_Type_With_Private Ekind.
36753
36754 * erroutc.adb: Minor reformatting
36755
36756 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
36757 values if line length is increased using -gnatyM (noticed during code
36758 reading).
36759
36760 * eval_fat.adb: Minor reformatting
36761 Put spaces around exponentiation operator
36762
36763 2004-05-10 Ed Schonberg <schonberg@gnat.com>
36764
36765 PR ada/15005
36766 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
36767 has been rewritten as an explicit dereference, retrieve type of
36768 original node to check for possibly unconstrained record type.
36769
36770 2004-05-10 Ed Schonberg <schonberg@gnat.com>
36771
36772 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
36773 overriding, use the operation of the parent unconditionally.
36774
36775 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
36776 operation when either operand is a literal, to avoid further
36777 ambiguities.
36778
36779 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
36780 overridden by a previous explicit declaration, mark the previous entity
36781 as overriding.
36782
36783 * sem_disp.adb (Check_Dispatching_Operation): New predicate
36784 Is_Visibly_Controlled, to determine whether a declaration of a
36785 primitive control operation for a derived type overrides an inherited
36786 one. Add warning if the explicit declaration does not override.
36787
36788 2004-05-10 Vincent Celier <celier@gnat.com>
36789
36790 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
36791 some cases when the sources are no longer present.
36792
36793 * make.adb (Collect_Arguments): Fail if an external source, not part
36794 of any project need to be compiled, when switch -x has not been
36795 specified.
36796
36797 * makeusg.adb: Document new switch -x
36798
36799 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
36800 defaulted to False.
36801
36802 * switch-m.adb (Scan_Make_Switches): New switch -x
36803
36804 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
36805 gnatmake switch -x.
36806
36807 * gnat_ugn.texi: Document new gnatmake switch -x
36808
36809 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
36810
36811 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
36812
36813 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
36814 (process_attributes): Likewise.
36815
36816 2004-05-10 Joel Brobecker <brobecker@gnat.com>
36817
36818 * s-inmaop.ads: Fix spelling mistake in one of the comments.
36819
36820 2004-05-10 Robert Dewar <dewar@gnat.com>
36821
36822 * gnat_ugn.texi: Document that for config pragma files, the maximum
36823 line length is always 32767.
36824
36825 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
36826 literals is now allowed.
36827
36828 * gnat-style.texi: Remove statement about splitting long lines before
36829 an operator rather than after, since we do not follow this rule at all.
36830 Clarify rule (really lack of rule) for spaces around exponentiation
36831
36832 * sem_elim.adb: Allow concatenation of string literals as well as a
36833 single string literal for pragma arguments.
36834
36835 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
36836
36837 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
36838 written for append case.
36839
36840 * frontend.adb: Changes to avoid checking max line length in config
36841 pragma files.
36842
36843 * g-os_lib.ads: Minor reformatting
36844
36845 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
36846 wrong in any case. Instead use standard value. Noticed during code
36847 reading.
36848
36849 * opt.ads (Max_Line_Length): New field, used to implement removal of
36850 limitation on length of lines when scanning config pragma files.
36851
36852 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
36853 makeutl.ads, makeutl.adb: Minor reformatting
36854
36855 * scn.adb: Do not check line length while scanning config pragma files
36856 Do not check line length while scanning out license information
36857
36858 * scng.adb: Changes to avoid line length checks while parsing config
36859 pragma files.
36860
36861 2004-05-10 GNAT Script <nobody@gnat.com>
36862
36863 * Make-lang.in: Makefile automatically updated
36864
36865 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
36866
36867 * osint.adb (Find_Program_Name): Fix handling of VMS version
36868 number.
36869
36870 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
36871
36872 * g-os_lib.ads (Invalid_Time): New constant
36873
36874 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
36875 return OS_Time instead of time_t to match what is imported by Ada.
36876 Now return -1 if the file doesn't exist, instead of a random value
36877
36878 2004-05-05 Robert Dewar <dewar@gnat.com>
36879
36880 * usage.adb: Add line for -gnatR?s switch
36881
36882 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
36883
36884 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
36885 and for Match (Data_First, Data_last)
36886
36887 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
36888 written when we are dealing with multi-unit files.
36889
36890 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
36891
36892 * Makefile.in: Remove unused targets and variables.
36893
36894 2004-05-05 Vincent Celier <celier@gnat.com>
36895
36896 * switch-m.adb: New gnatmake switch -eI
36897
36898 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
36899 of new gnatmake switch -eInnn.
36900
36901 * makegpr.adb: Take into account new parameters Index and Src_Index in
36902 Prj.Util.
36903
36904 * clean.adb: Implement support for multi-unit sources, including new
36905 switch -i.
36906
36907 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
36908 Src_Index.
36909
36910 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
36911 (Extract_From_Q): New out parameter Index
36912 (Mark, Is_Marked): Subprograms moved to Makeutl
36913 (Switches_Of): New parameter Source_Index
36914 (Add_Switch): New parameter Index
36915 (Check): New parameter Source_Index
36916 (Collect_Arguments): New parameter Source_Index
36917 (Collect_Arguments_And_Compile): New parameter Source_Index
36918 (Compile): New parameter Source_Index
36919 Put subprograms in alphabetical order
36920 Add support for multi-source sources, including in project files.
36921
36922 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
36923 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
36924 Make.
36925
36926 * makeusg.adb: New gnatmake switch -eInnn
36927
36928 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
36929 Prj.Util.Value_Of.
36930
36931 * opt.ads (Main_Index): New variable, defaulted to 0.
36932
36933 * osint.ads, osinte.adb (Add_File): New parameter Index
36934 (Current_Source_Index): New function
36935
36936 * prj.adb: Take into account new components Index and Src_Index
36937
36938 * prj.ads (String_Element): New component Index
36939 (Variable_Value): New component Index
36940 (Array_Element): New component Src_Index
36941
36942 * prj-attr.adb: Indicate that optional index may be specified for
36943 attributes Main, Executable, Spec, Body and some of Switches.
36944
36945 * prj-attr.ads (Attribute_Kind): New values for optional indexes
36946 (Attribute_Record): New component Optional_Index
36947
36948 * prj-com.ads (File_Name_Data): New component Index
36949
36950 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
36951
36952 * prj-env.adb (Put): Output optional index
36953
36954 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
36955 attributes Spec and Body.
36956
36957 * prj-nmsc.adb: Process optional indexes
36958
36959 * prj-pp.adb: Ouput "at" for optional indexes
36960
36961 * prj-proc.adb: Take into account optional indexes
36962
36963 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
36964 Optional_Index. For string literal,
36965 process optional index when Optional_Index is True.
36966 (Parse_Expresion): New Boolean parameter Optional_Index
36967
36968 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
36969 (Set_Source_Index_Of): New procedure
36970
36971 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
36972 index.
36973
36974 * prj-util.ads (Executable_Of): New parameter Index
36975 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
36976 New parameter Src_Index, defaulted to 0.
36977
36978 2004-05-05 Ed Schonberg <schonberg@gnat.com>
36979
36980 PR ada/15257
36981 * sem_ch3.adb (Access_Definition): If this is an access parameter
36982 whose designated type is imported through a limited_with clause, do
36983 not add the enclosing subprogram to the list of private dependents of
36984 the type.
36985
36986 2004-05-05 Ed Schonberg <schonberg@gnat.com>
36987
36988 PR ada/15258
36989 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
36990 a limited_with clause, and the other is its non-limited view.
36991
36992 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
36993
36994 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
36995
36996 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
36997 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
36998 Stand.Boolean_Literals to produce references to entities
36999 Standard_False and Standard_True from compile-time computed boolean
37000 values.
37001
37002 * stand.ads (Boolean_Literals): New variable, provides the entity
37003 values for False and True, for use by the expander.
37004
37005 2004-05-05 Doug Rupp <rupp@gnat.com>
37006
37007 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
37008 5vinmaop.adb: Unchecked convert Short_Address vice Address
37009
37010 * adaint.c, raise.c: Caste CRTL function return value
37011 to avoid gcc error on 32/64 bit IVMS.
37012
37013 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
37014 target = IA64/VMS.
37015
37016 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
37017
37018 * 5qsystem.ads (Address): Declare as Long_Integer
37019 (Short_Address): Declare as 32 bit subtype of Address
37020 Declare abstract address operations to avoid gratuitous ambiguities.
37021
37022 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
37023
37024 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
37025 instead of the old Boolean_Entry_Barriers.
37026 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
37027
37028 2004-05-05 GNAT Script <nobody@gnat.com>
37029
37030 * Make-lang.in: Makefile automatically updated
37031
37032 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
37033
37034 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
37035
37036 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
37037
37038 PR ada/15152
37039 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
37040 alone. Replacing object references by literals is inappropriate in a
37041 so low level context.
37042
37043 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
37044
37045 * a-exexpr.adb: Add comments
37046
37047 2004-05-03 Joel Brobecker <brobecker@gnat.com>
37048
37049 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
37050 declare the Ancestor_Tags array in Type_Specific_Data with a small size
37051 without risking a bounds check error when accessing one of its
37052 components.
37053 (Type_Specific_Data): Define Ancestor_Tags as a small array.
37054 This prevents us from hitting a limitation during the debug info
37055 generation when using stabs.
37056
37057 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
37058 small array.
37059 This prevents us from hitting a limitation during the debug info
37060 generation when using stabs.
37061
37062 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
37063
37064 lang-specs.h: Remove -gnatz* from specs.
37065
37066 2004-05-03 Vincent Celier <celier@gnat.com>
37067
37068 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
37069
37070 * Make-lang.in, Makefile.in: Add gprmake
37071
37072 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
37073
37074 * sem_aggr.adb: Fix typo in comment.
37075
37076 2004-05-03 Robert Dewar <dewar@gnat.com>
37077
37078 * make.adb: Minor reformatting
37079
37080 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
37081
37082 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
37083 so that it works when address is not a private type.
37084
37085 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
37086 properly with rewritten unchecked conversions. This prevents
37087 order-of-elaboration issues that can otherwise arise.
37088 (Minimum_Size): Don't check size of access types under VMS
37089
37090 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
37091 interpretations of integer literals as type System.Address.
37092
37093 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
37094 (Is_Descendent_Of): New function
37095
37096 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
37097
37098 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37099 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
37100 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
37101
37102 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
37103 of the old Max_Entry_Queue_Depth.
37104
37105 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37106 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
37107 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
37108
37109 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
37110 New entry for proper handling of Max_Entry_Queue_Depth.
37111 New entry for proper handling of No_Dynamic_Interrupts.
37112
37113 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
37114 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37115 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
37116 the GNAT specific restriction Max_Entry_Queue_Depth.
37117 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
37118 the GNAT specific restriction No_Dynamic_Interrupts.
37119
37120 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
37121 instead of the old Boolean_Entry_Barriers.
37122 Use the new restriction No_Dynamic_Attachment instead of the old
37123 No_Dynamic_Interrupts.
37124
37125 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
37126 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37127
37128 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
37129 of the old Max_Entry_Queue_Depth.
37130
37131 2004-05-03 GNAT Script <nobody@gnat.com>
37132
37133 * Make-lang.in: Makefile automatically updated
37134
37135 2004-04-29 Ed Schonberg <schonberg@gnat.com>
37136
37137 * checks.adb (Enable_Range_Check): If the prefix of an index component
37138 is an access to an unconstrained array, perform check unconditionally.
37139
37140 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37141
37142 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
37143 Component_Clause.
37144
37145 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
37146
37147 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
37148 alternate stack setting. There was no support for the tasking cases
37149 and the changes eventually caused a number of side-effect failures in
37150 the non-tasking case too.
37151
37152 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
37153
37154 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
37155 -gnats is passed.
37156
37157 2004-04-29 Vincent Celier <celier@gnat.com>
37158
37159 * make.adb (Gnatmake): Increase max size of argument array for
37160 gnatbind for the potential addition of -F.
37161 If there are Stand-Alone Library projects, invoke gnatbind with -F to
37162 be sure that elaboration flags will be checked.
37163
37164 * switch-c.adb: Correct call to Scan_Pos for -gnateI
37165
37166 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
37167
37168 * sem_warn.adb (Check_References): Move '<access-variable> may be
37169 null' warning out of under Warn_On_No_Value_Assigned.
37170
37171 2004-04-29 Ed Falis <falis@gnat.com>
37172
37173 * gnat_ugn.texi: Fixed texi error
37174
37175 2004-04-29 Robert Dewar <dewar@gnat.com>
37176
37177 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
37178 abstract operations if they come from predefined files.
37179
37180 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
37181 Dynamic, not RM).
37182
37183 * s-addope.adb: Correct obvious error in mod function
37184
37185 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
37186
37187 * Makefile.in: Add target pairs for powerpc darwin*
37188 tasking support.
37189
37190 * a-intnam-darwin.ads, s-osinte-darwin.adb,
37191 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
37192
37193 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
37194
37195 * Makefile.in: Add target macro definitions for s390*-linux*.
37196 * system-linux-s390.ads: New file.
37197 * system-linux-s390x.ads: New file.
37198
37199 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
37200
37201 * gnat_ugn.texi: Correct argument to @setfilename.
37202
37203 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
37204
37205 * a-exexpr.adb (Unwind_Word): New data type.
37206 (Unwind_Exception): Use it as type of Private1 and Private2.
37207
37208 * raise.c (db_action_for): Fix debug printf.
37209
37210 2004-04-27 Ed Schonberg <schonberg@gnat.com>
37211
37212 * a-wtmoio.ads: Formal type must be a modular type, not a signed
37213 integer type.
37214
37215 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37216
37217 * decl.c (gnat_to_gnu_entity, case object): Call
37218 __builtin_update_setjmp_buf.
37219
37220 * gigi.h (update_setjmp_buf): Deleted.
37221 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
37222
37223 * misc.c: (update_setjmp_buf): Deleted.
37224
37225 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
37226 around block of RTL.
37227
37228 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
37229
37230 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
37231
37232 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
37233 subprogram for which no pragma All_Calls_Remote applies, store the
37234 address of the real subprogram in the underlying record type, so local
37235 dereferences do not go through the PCS.
37236
37237 2004-04-26 Robert Dewar <dewar@gnat.com>
37238
37239 * i-c.ads: Add some type qualifications to avoid ambiguities when
37240 compiling with s-auxdec.ads and a non-private address type.
37241
37242 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
37243
37244 * Makefile.rtl: Fix error in previous check-in:
37245 Add s-addope.o to non tasking object list (rather than tasking object
37246 list).
37247
37248 2004-04-26 Javier Miranda <miranda@gnat.com>
37249
37250 * sem_aggr.adb: Fix typo in comments
37251 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
37252 Required to check the null-exclusion attribute.
37253
37254 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
37255 case of anonymous access types in record and array components. For a
37256 component definition the level is the same of the enclosing composite
37257 type.
37258
37259 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
37260 that are anonymous access types the level of accessibility depends on
37261 the enclosing type declaration. In order to have this information, set
37262 the scope of the anonymous access type to the enclosing record type
37263 declaration.
37264 (Array_Type_Declaration): In case of components that are anonymous
37265 access types the level of accessibility depends on the enclosing type
37266 declaration. In order to have this information, set the scope of the
37267 anonymous access type to the enclosing array type declaration.
37268
37269 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
37270 access type.
37271
37272 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
37273 renaming of anonymous access-to-constant types allowed if and only if
37274 the renamed object is access-to-constant.
37275
37276 * sem_util.adb (Type_Access_Level): In case of anonymous access types
37277 that are component_definition or discriminants of a nonlimited type,
37278 the level is the same as that of the enclosing component type.
37279
37280 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
37281
37282 * sem_elim.adb: Some minor code reorganization from code reading. Fix
37283 misprint in the function name (File_Name_Match).
37284
37285 2004-04-23 Laurent Guerby <laurent@guerby.net>
37286
37287 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
37288 install.
37289
37290 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37291
37292 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
37293
37294 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
37295
37296 * adaint.c (__gnat_try_lock): No longer requires that the parent
37297 directory be writable, the directory itself is enough.
37298 (gnat_is_absolute_path): Change profile, so that the call from
37299 GNAT.OS_Lib can be made more efficient.
37300
37301 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
37302 from GNAT.OS_Lib can be made more efficient.
37303
37304 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
37305 one copy of the file name. Found by code reading.
37306
37307 2004-04-23 Vincent Celier <celier@gnat.com>
37308
37309 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
37310 Correct documentation on gnatmake switches transmitted to the compiler
37311
37312 * ali.ads: Minor comment fix
37313
37314 2004-04-23 Javier Miranda <miranda@gnat.com>
37315
37316 * sem_ch6.adb: (Confirming Types): Code cleanup
37317
37318 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
37319 subprogram types: E_Anonymous_Access_Subprogram_Type and
37320 E_Anonymous_Access_Protected_Subprogram_Type.
37321
37322 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
37323
37324 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37325 whether a pragma All_Calls_Remote applies to the subprogram on which
37326 'Access is taken.
37327 No functional change is introduced by this revision; the new parameter
37328 will be used to allow calls to local RCI subprograms to be optimized
37329 to not use the PCS in the case where no pragma All_Calls_Remote applies,
37330 as is already done in the PolyORB implementation of the DSA.
37331
37332 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37333 whether a pragma All_Calls_Remote applies to the subprogram on which
37334 'Access is taken.
37335 No functional change is introduced by this revision; the new parameter
37336 will be used to allow calls to local RCI subprograms to be optimized
37337 to not use the PCS in the case where no pragma All_Calls_Remote applies,
37338 as is already done in the PolyORB implementation of the DSA.
37339
37340 2004-04-23 Robert Dewar <dewar@gnat.com>
37341
37342 * Makefile.rtl: Add entry for s-addope.o in run time library list
37343 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
37344 * s-addope.ads, s-addope.adb: New files.
37345
37346 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
37347 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
37348 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
37349 System.Address to be non-private and signed.
37350
37351 * sem_elim.adb: Minor reformatting (fairly extensive)
37352 Some minor code reorganization from code reading
37353 Add a couple of ??? comments
37354
37355 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37356
37357 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
37358 (tree_transform, case N_If_Statement): Remove non-determinism.
37359
37360 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
37361
37362 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
37363
37364 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
37365 Eliminate' section.
37366
37367 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
37368 no longer used as a parameter name for Eliminate pragma).
37369
37370 2004-04-22 Laurent Guerby <laurent@guerby.net>
37371
37372 PR optimization/14984
37373 PR optimization/14985
37374 * trans.c (gigi): Fix non determinism leading to bootstrap
37375 comparison failures.
37376
37377 2004-04-21 Pascal Obry <obry@gnat.com>
37378
37379 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
37380 passed to spawnvp() to properly handle program pathname with spaces on
37381 Win32.
37382
37383 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
37384
37385 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
37386 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
37387 unlocked in case of exceptions.
37388
37389 2004-04-21 Joel Brobecker <brobecker@gnat.com>
37390
37391 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
37392 This function does not exist anymore.
37393
37394 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
37395
37396 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
37397
37398 * link.c: Move variables to the __gnat name space.
37399
37400 * Makefile.in: list link.o explicitly when needed.
37401
37402 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
37403
37404 2004-04-21 Javier Miranda <miranda@gnat.com>
37405
37406 * einfo.adb (Original_Access_Type): New subprogram
37407 (Set_Original_Access_Type): New subprogram
37408 (Write_Field21_Name): Write the name of the new field
37409
37410 * einfo.ads (Original_Access_Type): New field present in access to
37411 subprogram types.
37412 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
37413 E_Anonymous_Access_Protected_Subprogram_Type.
37414
37415 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
37416 subprogram types.
37417
37418 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
37419 to anonymous access to subprogram types.
37420
37421 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
37422 to subprogram types.
37423
37424 * sem_ch3.adb (Access_Definition): Complete decoration of entities
37425 corresponding to anonymous access to subprogram types.
37426 (Analyze_Component_Declaration): Add new actual to the call to
37427 subprogram replace_anonymous_access_to_protected_subprogram.
37428 (Array_Type_Declaration): Add new actual to the call to subprogram
37429 replace_anonymous_access_to_protected_subprogram.
37430 (Process_Discriminants): Add new actual to the call to subprogram
37431 replace_anonymous_access_to_protected_subprogram.
37432 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
37433
37434 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37435 formal.
37436
37437 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
37438 access to subprogram types.
37439
37440 * sem_util.adb (Has_Declarations): Addition of package_specification
37441 nodes.
37442
37443 2004-04-21 Ed Schonberg <schonberg@gnat.com>
37444
37445 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
37446 inlined flags to renamed entity only if in current unit.
37447
37448 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
37449
37450 * s-parint.ads: Add DSA implementation marker.
37451
37452 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
37453 value of System.Partition_Interface.DSA_Implementation to determine
37454 what version of the distributed systems annex is available (no
37455 implementation, GLADE, or PolyORB).
37456
37457 2004-04-21 Joel Brobecker <brobecker@gnat.com>
37458
37459 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
37460
37461 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37462
37463 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
37464 with new type if alias sets differ.
37465 Fixes ACATS c41103b.
37466
37467 2004-04-21 Vincent Celier <celier@gnat.com>
37468
37469 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
37470 Add array Lang_Args for the language specific compiling argument
37471 switches.
37472
37473 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
37474
37475 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
37476
37477 * gnat_rm.texi: Update the descripton of the Eliminate pragma
37478 according to the recent changes in the format of the parameters of the
37479 pragma (replacing Homonym_Number with Source_Location).
37480
37481 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
37482
37483 * 5isystem.ads: Removed, unused.
37484
37485 * gnat_rm.texi: Redo 1.13 change.
37486
37487 2004-04-19 Robert Dewar <dewar@gnat.com>
37488
37489 * s-stoele.ads: Clean up definition of Storage_Offset (the new
37490 definition is cleaner, avoids the kludge of explicit Standard operator
37491 references, and also is consistent with a visible System.Address with
37492 no visible operations.
37493
37494 * s-geveop.adb: Add declarations to avoid assumption of visible
37495 operations on type System.Address (since these might not be available
37496 if Address is a non-private type for which the operations
37497 are made abstract).
37498
37499 * sem_eval.adb: Minor reformatting
37500
37501 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
37502 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
37503 reformatting (new function spec format).
37504
37505 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
37506 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
37507 s-caun64.adb: Add declarations to avoid assumption of visible
37508 operations on type System.Address (since these might not be available
37509 if Address is a non-private type for which the operations are made
37510 abstract).
37511
37512 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
37513
37514 * exp_intr.adb: Minor comment update
37515
37516 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
37517
37518 * 5omastop.adb: Add declarations to avoid assumption of visible
37519 operations on type System.Address (since these might not be available
37520 if Address is a non-private type for which the operations
37521 are made abstract).
37522
37523 2004-04-19 Vincent Celier <celier@gnat.com>
37524
37525 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
37526
37527 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
37528 defaulted to Ada.
37529
37530 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
37531 defaulted to Ada.
37532 Call Check with Process_Languages.
37533 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
37534 with Process_Languages.
37535 (Recursive_Check): New Boolean parameter Process_Languages. Call
37536 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
37537 Process_Languages.
37538
37539 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
37540
37541 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
37542 parameter Ada_Main, defaulted to True.
37543 Check for Ada specific characteristics only when Ada_Main is True.
37544
37545 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
37546
37547 * prj.adb: (Project_Empty): Add new Project_Data components.
37548
37549 * prj.ads: New types and tables for non Ada languages.
37550 (Project_Data): New components Languages, Impl_Suffixes,
37551 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
37552 Include_Path, Include_Data_Set.
37553
37554 * prj-env.ads, prj-env.adb: Minor reformatting
37555
37556 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
37557 Put subprograms in alphabetical order
37558
37559 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
37560 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
37561 Opt.Follow_Links.
37562
37563 * mlib-prj.adb: Back out modification in last version, as they are
37564 incorrect.
37565 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
37566
37567 * make.adb: (Mains): Moved to package Makeutl
37568 (Linker_Opts): Moved to package Makeutl
37569 (Is_External_Assignment): Moved to package Makeutl
37570 (Test_If_Relative_Path): Moved to package Makeutl
37571 (Gnatmake): Move sorting of linker options to function
37572 Makeutl.Linker_Options_Switches.
37573
37574 * makeutl.ads, makeutl.adb: New files.
37575
37576 * Makefile.in: Add makeutl.o to the object files for gnatmake
37577
37578 * makeusg.adb: Add line for new switch -eL.
37579
37580 * gnatls.adb (Image): New function.
37581 (Output_Unit): If in verbose mode, output the list of restrictions
37582 specified by pragmas Restrictions.
37583
37584 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
37585 Text_IO.
37586
37587 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
37588 needed, to put it in the range 1970 (included) - 2026 (excluded).
37589 (Time_Of): Do not shift Unix_Min_Year (1970).
37590 Shift the date by multiple of 56 years, if needed, to put it in the
37591 range 1970 (included) - 2026 (excluded).
37592
37593 * adaint.h, adaint.c (__gnat_set_executable): New function.
37594
37595 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37596
37597 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
37598 and pop GC context.
37599 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
37600 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
37601 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
37602 (tree_transform, case N_Code_Statement): Likewise.
37603 (gnat_expand_stmt, case LABEL_STMT): Don't look at
37604 LABEL_STMT_FIRST_IN_EH.
37605 (gnat_expand_stmt, case ASM_STMT): New case.
37606
37607 * utils2.c (build_unary_op): Properly set TREE_READONLY of
37608 UNCONSTRAINED_ARRAY_REF.
37609
37610 * utils.c (poplevel): Temporarily push/pop GC context around inline
37611 function expansion.
37612
37613 * decl.c (maybe_variable): Properly set TREE_READONLY of
37614 UNCONSTRAINED_ARRAY_REF.
37615 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
37616
37617 * ada-tree.def: (ASM_STMT): New.
37618
37619 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
37620 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
37621 ASM_STMT_INPUT): New.
37622 (ASM_STMT_CLOBBER): Likewise.
37623
37624 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
37625
37626 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
37627 general rcheck mechanism to raise Program_Error for E.4(18), instead
37628 of a custom raiser in System.Partition_Interface.
37629 Part of general cleanup work before PolyORB integration.
37630
37631 * snames.ads, snames.adb: Add new runtime library entities and names
37632 for PolyORB DSA.
37633
37634 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37635 exp_dist.
37636 (Build_Subprogram_Id): New subprogram provided by exp_dist
37637 Code reorganisation in preparation for PolyORB integration.
37638
37639 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37640 exp_dist.
37641 (Build_Subprogram_Id): New subprogram provided by exp_dist
37642
37643 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
37644 actual parameter types for call to dereference of an
37645 access-to-subprogram type.
37646
37647 * rtsfind.ads: Add new runtime library entities and names for PolyORB
37648 DSA.
37649
37650 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
37651 instead, which has the same behaviour here since we never pass it a
37652 NULL pointer.
37653
37654 * link.c (run_path_option, Solaris case): Use -Wl, as for other
37655 platforms.
37656
37657 * Makefile.in: adjust object file lists for gnatlink and gnatmake
37658 to account for new dependency upon Interfaces.C.Strings + link.o
37659 For x86 FreeBSD, use 86numaux.
37660
37661 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
37662 from Mlib.Tgt to Mlib.
37663
37664 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
37665 target-independent.
37666
37667 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
37668 target-specific versions of this subprogram, now implemented as a
37669 target-independent function in Mlib.
37670
37671 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
37672 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
37673 (Linker_Library_Path_Option): Remove target-specific versions of this
37674 subprogram, now implemented as a target-independent function in Mlib.
37675
37676 * atree.adb: (Allocate_Initialize_Node): New subprogram.
37677 Factors out node table slots allocation.
37678 (Fix_Parents): New subprogram.
37679 Encapsulate the pattern of fixing up parent pointers for syntactic
37680 children of a rewritten node.
37681 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
37682 (Rewrite): Use New_Copy when creating saved copy of original node.
37683 (Replace): Use Copy_Node to copy nodes.
37684
37685 2004-04-19 Javier Miranda <miranda@gnat.com>
37686
37687 * sprint.adb (Sprint_Node_Actual): Give support to the new
37688 Access_To_Subprogram node available in Access_Definition nodes. In
37689 addition, give support to the AI-231 node fields: null-exclusion,
37690 all-present, constant-present.
37691
37692 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
37693
37694 * sinfo.ads, sinfo.adb:
37695 New field Access_To_Subprogram_Definition in Access_Definition nodes
37696
37697 * sem_ch6.adb (Process_Formals): Move here the code that creates and
37698 decorates internal subtype declaration corresponding to the
37699 null-excluding formal. This code was previously in Set_Actual_Subtypes.
37700 In addition, carry out some code cleanup on this code. In case of
37701 access to protected subprogram call
37702 Replace_Anonymous_Access_To_Protected_Subprogram.
37703 (Set_Actual_Subtypes): Code cleanup.
37704
37705 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
37706 Find_Type in case of anonymous access renamings. Add warning in case of
37707 null-excluding attribute used in anonymous access renaming.
37708
37709 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37710 subprogram
37711
37712 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
37713 subprogram.
37714 (Access_Definition): In case of anonymous access to subprograms call
37715 the corresponding semantic routine to decorate the node.
37716 (Access_Subprogram_Declaration): Addition of some comments indicating
37717 some code that probably should be added here. Detected by comparison
37718 with the access_definition subprogram.
37719 (Analyze_Component_Declaration): In case of access to protected
37720 subprogram call Replace_Anonymous_Access_To_Protected.
37721 (Array_Type_Declaration): In case of access to protected subprogram call
37722 Replace_Anonymous_Access_To_Protected_Subprogram.
37723 (Process_Discriminants): In case of access to protected subprogram call
37724 Replace_Anonymous_Access_To_Protected_Subprogram.
37725
37726 * par.adb (P_Access_Definition): New formal that indicates if the
37727 null-exclusion part was present.
37728 (P_Access_Type_Definition): New formal that indicates if the caller has
37729 already parsed the null-excluding part.
37730
37731 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
37732 (P_Identifier_Declarations): Code cleanup and give support to renamings
37733 of anonymous access to subprogram types.
37734 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
37735 (P_Array_Type_Definition): Give support to AI-254.
37736 (P_Component_Items): Give support to AI-254.
37737 (P_Access_Definition): New formal that indicates if the header was
37738 already parsed by the caller.
37739 (P_Access_Type_Definition): New formal that indicates if the caller has
37740 already parsed the null-excluding part.
37741
37742 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
37743 call to P_Access_Definition.
37744
37745 2004-04-19 Geert Bosch <bosch@gnat.com>
37746
37747 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
37748 the delicate semantics of floating-point to integer conversion.
37749 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
37750
37751 * eval_fat.adb (Machine_Mantissa): Moved to spec.
37752 (Machine_Radix): New function.
37753
37754 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
37755 conversion checks.
37756 (Machine_Radix): New function also for use in conversion checks.
37757
37758 2004-04-19 Ed Schonberg <schonberg@gnat.com>
37759
37760 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
37761
37762 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
37763 to decorate the access-to-protected subprogram and the equivalent type.
37764
37765 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
37766 to anonymous access to subprogram types.
37767
37768 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
37769 constant-folding, for legality checks in contexts that require an RM
37770 static expression.
37771
37772 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
37773 temporary but stack checking is not enabled, increment serial number
37774 to so that symbol generation is consistent with and without stack
37775 checking.
37776
37777 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
37778 independent on whether stack checking is enabled, caller must check
37779 the corresponding flag.
37780
37781 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
37782 range checks.
37783 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
37784 parent if it has discriminants.
37785 (Build_Derived_Private_Type): Constructed full view does
37786 not come from source.
37787 (Process_Discriminants): Default discriminants on a tagged type are
37788 legal if this is the internal completion of a private untagged
37789 derivation.
37790
37791 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
37792 no constraint checks, because it corresponds to an existing object.
37793
37794 * sem_prag.adb (Process_Convention): Pragma applies
37795 only to subprograms in the same declarative part, i.e. the same unit,
37796 not the same scope.
37797
37798 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
37799 ignore type mismatch on a numeric conversion if expression comes from
37800 expansion.
37801
37802 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
37803
37804 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
37805 Homonym_Number parameter, add processing for Source_Location parameter
37806 corresponding.
37807 (Check_Eliminated): Remove the check for homonym numbers, add the check
37808 for source location traces.
37809
37810 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
37811 with Arg_Source_Location corresponding to the changes in the format of
37812 the pragma.
37813
37814 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
37815 Eliminate pragma corresponding to the changes in the format of the
37816 pragma: Homonym_Number is replaced with Source_Location, two ways of
37817 distinguishing homonyms are mutially-exclusive.
37818
37819 2004-04-19 Joel Brobecker <brobecker@gnat.com>
37820
37821 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
37822
37823 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
37824 No_Dollar_In_Label, no longer necessary, as it is always True.
37825 (Strip_Suffixes): Likewise.
37826
37827 2004-04-19 Gary Dismukes <dismukes@gnat.com>
37828
37829 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
37830 modulus for compatibility with size clause on targets with 16-bit
37831 Integer.
37832
37833 * layout.adb (Discrimify): In the case of private types, set Vtyp to
37834 full type to fix type mismatches on calls to size functions for
37835 discriminant-dependent array components.
37836
37837 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
37838
37839 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
37840 lib.
37841
37842 2004-04-19 Pascal Obry <obry@gnat.com>
37843
37844 * mdll-utl.adb (Locate): New version is idempotent.
37845
37846 2004-04-17 Laurent Guerby <laurent@guerby.net>
37847
37848 PR ada/14988 (partial)
37849 * impunit.adb: Fix typo.
37850
37851 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
37852
37853 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
37854 and install-rts-cert targets. Remove all gnatlib and gnattools
37855 targets and all other rts-* targets (moved to libada). Remove (now)
37856 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
37857 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
37858
37859 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37860
37861 * trans.c (tree_transform): Shortcut returning error_mark_node for
37862 statements in annotate_only_mode.
37863 (tree_transform, case N_Label, case N_Return_Statement,
37864 N_Goto_Statement): Make statement tree instead of generating code.
37865 (tree_transform, case N_Assignment_Statement): No longer check
37866 type_annotate_only.
37867 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
37868 RETURN_STMT): New.
37869 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
37870 New fcns.
37871 (gnat_to_gnu): Collect any RTL generated and deal with it.
37872 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
37873 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
37874 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
37875
37876 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
37877
37878 * ada-tree.def (EXPR_STMT): Fix typo in name.
37879 (BLOCK_STMT, IF_STMT): New nodes.
37880
37881 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
37882 LABEL_STMT_FIRST_IN_EH): New macros.
37883 (RETURN_STMT_EXPR): Likewise.
37884
37885 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
37886 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
37887
37888 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
37889
37890 * atree.ads: Correct documentation on extended nodes.
37891
37892 * link.c: Set run_path_option for FreeBSD.
37893
37894 2004-04-08 Vincent Celier <celier@gnat.com>
37895
37896 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
37897 one of the ALI file, do not link with DEC lib.
37898
37899 * par.adb Remove the last two characters ("%s" or "%b") when checking
37900 if a language defined unit may be recompiled.
37901
37902 2004-04-08 Ed Schonberg <schonberg@gnat.com>
37903
37904 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
37905 removal of abstract operation leaves no possible interpretation for
37906 expression.
37907
37908 * sem_eval.adb (Eval_Qualified_Expression): Use
37909 Set_Raises_Constraint_Error on node when needed, so that it does not
37910 get optimized away by subsequent optimizations.
37911
37912 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
37913 operands even when they are not wrapped in a type conversion.
37914
37915 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
37916
37917 * sem_prag.adb (Set_Exported): Warn about making static as result of
37918 export only when the export is coming from source. This may be not
37919 be true e.g. on VMS where we expand export pragmas for exception codes
37920 together with imported or exported exceptions, and we don't want the
37921 user to be warned about something he didn't write.
37922
37923 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
37924
37925 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
37926 duplication between normal entities and those declared as renamings.
37927 No functional change.
37928
37929 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
37930 inline functions returning an unconstrained result.
37931
37932 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
37933
37934 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
37935 conform to what other front-ends do.
37936
37937 2004-04-08 Doug Rupp <rupp@gnat.com>
37938
37939 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
37940 libraries.
37941
37942 2004-04-06 Pascal Obry <obry@gnat.com>
37943
37944 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
37945
37946 * osint.adb (Program_Name): Do not look past a directory separator.
37947
37948 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
37949
37950 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
37951
37952 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
37953 requirement for preserving a copy of the original assignment node.
37954
37955 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
37956
37957 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
37958
37959 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
37960 when supported.
37961
37962 2004-04-06 Ed Schonberg <schonberg@gnat.com>
37963
37964 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
37965 operator calls in functional notation, and apply
37966 Universal_Interpretation to operands, not to their type.
37967
37968 2004-04-06 Robert Dewar <dewar@gnat.com>
37969
37970 * 5wdirval.adb: Minor reformatting
37971
37972 2004-04-06 Ed Falis <falis@gnat.com>
37973
37974 * gnat_rm.texi: Improve a reference to the GCC manual
37975
37976 2004-04-05 Vincent Celier <celier@gnat.com>
37977
37978 * adaint.h, adaint.c: Add function __gnat_named_file_length
37979
37980 * impunit.adb: Add Ada.Directories to the list
37981
37982 * Makefile.in: Add VMS and Windows versions of
37983 Ada.Directories.Validity package body.
37984
37985 * Makefile.rtl: Add a-direct and a-dirval
37986
37987 * mlib-tgt.ads: Minor comment update.
37988
37989 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
37990 a-direct.ads, a-direct.adb: New files.
37991
37992 2004-04-05 Vincent Celier <celier@gnat.com>
37993
37994 PR ada/13620
37995 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
37996 just to the compiler.
37997
37998 2004-04-05 Robert Dewar <dewar@gnat.com>
37999
38000 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
38001 returned string is 1.
38002
38003 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
38004
38005 * eval_fat.ads: Minor reformatting
38006
38007 * g-curexc.ads: Document that lower bound of returned string values
38008 is always one.
38009
38010 * gnatlink.adb: Add ??? comment for previous change
38011 (need to document why this is VMS specific)
38012
38013 * s-stoele.ads: Minor reformatting
38014
38015 * tbuild.ads: Minor reformatting throughout (new function specs)
38016
38017 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
38018 after WITH.
38019
38020 * scng.adb: Minor reformatting
38021
38022 2004-04-05 Geert Bosch <bosch@gnat.com>
38023
38024 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
38025 (Leading_Part): Still perform truncation to machine number if the
38026 specified radix_digits is greater or equal to machine_mantissa.
38027
38028 2004-04-05 Javier Miranda <miranda@gnat.com>
38029
38030 * par-ch3.adb: Complete documentation of previous change
38031 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
38032 (aliased must appear before constant).
38033
38034 * par-ch4.adb: Complete documentation of previous change.
38035
38036 * par-ch6.adb: Complete documentation of previous change.
38037
38038 * sinfo.ads: Fix typo in commment.
38039
38040 2004-04-05 Ed Schonberg <schonberg@gnat.com>
38041
38042 * sem_ch3.adb (Inherit_Components): If derived type is private and has
38043 stored discriminants, use its discriminants to constrain parent type,
38044 as is done for non-private derived record types.
38045
38046 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
38047 Ada 2005 AI-310: an abstract non-dispatching operation is not a
38048 candidate interpretation in an overloaded call.
38049
38050 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
38051 expression is Null and target type is not an access type (e.g. a
38052 non-private address type).
38053
38054 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
38055
38056 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
38057 statement whose right-hand side is an inlined call, save a copy of the
38058 original assignment subtree to preserve enough consistency for
38059 Analyze_Assignment to proceed.
38060
38061 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
38062 complete assignment subtree which is now unnecessary, as the expansion
38063 of inlined call has been improved to preserve a consistent assignment
38064 tree. Note_Possible_Modification must be called only
38065 after checks have been applied, or else unnecessary checks will
38066 be generated.
38067
38068 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
38069 of explicit dereferences that do not Come_From_Source:
38070 - be selective on cases where we must go back to the dereferenced
38071 pointer (an assignment to an implicit dereference must not be
38072 recorded as modifying the pointer);
38073 - do not rely on Original_Node being present (Analyze_Assignment
38074 calls Note_Possible_Modification on a copied tree).
38075
38076 * sem_warn.adb (Check_References): When an unset reference to a pointer
38077 that is never assigned is encountered, prefer '<pointer> may be null'
38078 warning over '<pointer> is never assigned a value'.
38079
38080 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
38081
38082 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
38083 the ABI.
38084
38085 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
38086
38087 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
38088 libexc. We currently don't reference anything in this library and
38089 linking it in triggers linker warnings we don't want to see.
38090
38091 * init.c: Update comments.
38092
38093 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38094
38095 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
38096 * utils.c (create_field_decl): Likewise.
38097 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
38098
38099 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
38100
38101 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
38102 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
38103 Add info directory entry and category.
38104
38105 2004-04-02 Jan Hubicka <jh@suse.cz>
38106
38107 * utils.c: Include function.h
38108 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
38109
38110 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
38111
38112 PR ada/14150
38113 * Make-lang.in: Clean up generation of documentation
38114
38115 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
38116
38117 * xgnatug.adb: Removed, replaced by xgnatugn.adb
38118
38119 * xgnatugn.adb: Replaces xgnatug.adb
38120
38121 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
38122
38123 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
38124
38125 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38126 gnat_ug_wnt.texi: Removed.
38127
38128 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
38129
38130 * utils2.c: Update copyright notice.
38131
38132 2004-04-01 Robert Dewar <dewar@gnat.com>
38133
38134 * checks.adb: Minor reformatting throughout
38135 Note that prev checkin added RM reference to alignment warning
38136
38137 2004-04-01 Ed Schonberg <schonberg@gnat.com>
38138
38139 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
38140 non-static when building aggregate for bit-packed array.
38141
38142 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
38143 function call that is itself the actual in a procedure call, build
38144 temporary for it.
38145
38146 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
38147 a string literal, create a temporary for it, constant folding only
38148 handles scalars here.
38149
38150 2004-04-01 Vincent Celier <celier@gnat.com>
38151
38152 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
38153 Error_Msg_SP): New empty procedures to instantiate the Scanner.
38154 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
38155 tokens.
38156 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
38157 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
38158 and get the checksum.
38159
38160 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
38161 already in the Q.
38162 Increase the Marking_Label at the end of the Multiple_Main_Loop,
38163 instead of at the beginning.
38164
38165 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
38166 directly.
38167 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
38168 on VMS.
38169
38170 * osint.ads (Multi_Unit_Index_Character): New Character global variable
38171
38172 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
38173 not '~' directly.
38174
38175 * par.adb: Remove test on file name to detect language defined units.
38176 Add test on unit name, after parsing, to detect language defined units
38177 that are not compiled with -gnatg (except System.RPC and its children)
38178
38179 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
38180 following units without style checking.
38181
38182 * switch-c.adb: Change -gnatC to -gnateI
38183
38184 * usage.adb: Document new switch -gnateInnn
38185
38186 * scng.adb (Accumulate_Token_Checksum): New procedure
38187 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
38188 word or literal number.
38189 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
38190 numbers.
38191
38192 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
38193
38194 * a-tasatt.adb,
38195 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
38196 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
38197 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
38198 5vtpopde.adb: Add missing 'constant' keywords.
38199
38200 2004-04-01 Javier Miranda <miranda@gnat.com>
38201
38202 * par-ch4.adb: (P_Allocator): Code cleanup
38203
38204 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
38205 attribute.
38206
38207 * sinfo.ads: Complete documentation of previous change
38208
38209 2004-04-01 Pascal Obry <obry@gnat.com>
38210
38211 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
38212 only on VMS. This special handling was done because an old GNU/ld bug
38213 on Windows which has been fixed.
38214
38215 2004-04-01 GNAT Script <nobody@gnat.com>
38216
38217 * Make-lang.in: Makefile automatically updated
38218
38219 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38220
38221 * decl.c (gnat_to_gnu_entity, make_type_from_size):
38222 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
38223 * trans.c (tree_transform, convert_with_check): Likewise.
38224 * utils.c (gnat_signed_or_unsigned_type): Likewise.
38225 (build_vms_descriptor, unchecked_convert): Likewise.
38226 * utils2.c (nonbinary_modular_operation): Likewise.
38227
38228 2004-03-29 Javier Miranda <miranda@gnat.com>
38229
38230 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
38231 (Install_Null_Excluding_Check): Local subprogram that determines whether
38232 an access node requires a runtime access check and if so inserts the
38233 appropriate run-time check.
38234 (Apply_Access_Check): Call Install_Null_Excluding check if required
38235 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
38236
38237 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
38238
38239 * einfo.ads: Fix typo in comment
38240
38241 * exp_ch3.adb (Build_Assignment): Generate conversion to the
38242 null-excluding type to force the corresponding run-time check.
38243 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
38244 type to force the corresponding run-time check.
38245
38246 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
38247 the null-excluding type to force the corresponding run-time check.
38248
38249 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
38250 case of access types unless they have the null-excluding attribute.
38251
38252 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
38253 part.
38254
38255 * exp_util.ads: Fix typo in comment
38256
38257 * par.adb (P_Null_Exclusion): New subprogram
38258 (P_Subtype_Indication): New formal that indicates if the null-excluding
38259 part has been scanned-out and it was present
38260
38261 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
38262
38263 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
38264 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
38265 type to force the corresponding run-time check
38266 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
38267 components
38268 (Resolve_Array_Aggregate): Carry out some static checks
38269 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
38270
38271 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
38272 attribute must be set only if specified by means of the null-excluding
38273 part. In addition, we must also propagate the access-constant attribute
38274 if present.
38275 (Access_Subprogram_Declaration, Access_Type_Declaration,
38276 Analyze_Component_Declaration, Analyze_Object_Declaration,
38277 Array_Type_Declaration, Process_Discriminants,
38278 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
38279 and carry out some static checks.
38280 (Build_Derived_Access_Type): Set the null-excluding attribute
38281 (Derived_Type_Declaration, Process_Subtype): Carry out some static
38282 checks.
38283
38284 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
38285
38286 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
38287
38288 * sem_ch6.adb (Process_Formals): Carry out some static checks.
38289 (Set_Actual_Subtypes): Generate null-excluding subtype if the
38290 null-excluding part was present; it is not required to be done here in
38291 case of anonymous access types.
38292 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
38293 value.
38294
38295 * sem_res.adb (Resolve_Actuals): Carry out some static check
38296 (Resolve_Null): Allow null in anonymous access
38297
38298 * sinfo.adb: New subprogram Null_Exclusion_Present
38299 All_Present and Constant_Present available on access_definition nodes
38300
38301 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
38302 object_declaration, derived_type_definition, component_definition,
38303 discriminant_specification, access_to_object_definition,
38304 access_function_definition, allocator, access_procedure_definition,
38305 access_definition, parameter_specification, All_Present and
38306 Constant_Present flags available on access_definition nodes.
38307
38308 2004-03-29 Robert Dewar <dewar@gnat.com>
38309
38310 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
38311 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
38312 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
38313 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
38314 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
38315 sem_prag.adb: Updates to handle multiple units/file
38316
38317 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
38318
38319 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
38320 sem_util.adb: Minor reformatting
38321
38322 * sem_ch12.adb: Add comment for previous change
38323
38324 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
38325
38326 * osint.adb (Executable_Prefix): Set Exec_Name to the current
38327 executable name when not initialized. Otherwise, use its current value.
38328
38329 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
38330 initialize it to another executable name than the current one. This
38331 allows to configure paths for an executable name (gnatmake) different
38332 from the current one (gnatdist).
38333
38334 2004-03-29 Ed Schonberg <schonberg@gnat.com>
38335
38336 * exp_ch6.adb (Expand_Call): A call to a function declared in the
38337 current unit cannot be inlined if it appears in the body of a withed
38338 unit, to avoid order of elaboration problems in gigi.
38339
38340 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
38341 information for protected (wrapper) operation as well, to simplify gdb
38342 use.
38343
38344 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
38345 protected body, indicate that the entity for the generated spec comes
38346 from source, to ensure that references are properly generated for it.
38347 (Build_Body_To_Inline): Do not inline a function that returns a
38348 controlled type.
38349
38350 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
38351 apply convention to homonyms that are declared explicitly.
38352
38353 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
38354 that renames an equality operator and the operands are overloaded,
38355 resolve them with the declared formal types, before rewriting as an
38356 operator.
38357
38358 2004-03-29 GNAT Script <nobody@gnat.com>
38359
38360 * Make-lang.in: Makefile automatically updated
38361
38362 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
38363
38364 * memtrack.adb: Log realloc calls, which are treated as free followed
38365 by alloc.
38366
38367 2004-03-25 Vincent Celier <celier@gnat.com>
38368
38369 * prj-makr.adb (Process_Directories): Detect when a file contains
38370 several units. Do not include such files in the config pragmas or
38371 in the naming scheme.
38372
38373 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
38374 Resolve links only when not in Trusted_Mode.
38375 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
38376 Do not resolve links for the display names.
38377
38378 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
38379 resolve links when computing the display names.
38380
38381 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
38382
38383 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
38384 attribute reference does not denote a subtype, it can be any
38385 expression that has a classwide type, potentially after an implicit
38386 dereference. In particular, the prefix can be a view conversion for
38387 a classwide type (for which Is_Object_Reference holds), but it can
38388 also be a value conversion for an access-to-classwide type. In the
38389 latter case, there is an implicit dereference, and the original node
38390 for the prefix does not verify Is_Object_Reference.
38391
38392 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
38393 conversion of a discriminant-dependent component of a mutable object
38394 is one itself.
38395
38396 2004-03-25 Ed Schonberg <schonberg@gnat.com>
38397
38398 * freeze.adb (Freeze_Entity): When an inherited subprogram is
38399 inherited, has convention C, and has unconstrained array parameters,
38400 place the corresponding warning on the derived type declaration rather
38401 than the original subprogram.
38402
38403 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
38404 indication on renaming declaration, if formal has a box and actual
38405 is absent.
38406
38407 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
38408 determine whether to generate an implicit or explicit reference to
38409 the renamed entity.
38410
38411 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
38412 subprogram renaming comes from a defaulted formal subprogram in an
38413 instance.
38414
38415 2004-03-25 Gary Dismukes <dismukes@gnat.com>
38416
38417 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
38418 value expressions to ensure that calls within a component definition
38419 will be checked (since those are evaluated during the record type's
38420 elaboration).
38421
38422 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
38423
38424 * s-tpobop.adb: Code clean up:
38425 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
38426 code.
38427 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
38428
38429 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
38430
38431 * Makefile.in: Clean up in the ravenscar run time.
38432
38433 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38434
38435 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
38436 of No_Strict_Aliasing to build_pointer_type_for_mode.
38437 * utils.c (update_pointer_to): Walk pointer and ref chains.
38438
38439 2004-03-22 Cyrille Comar <comar@act-europe.fr>
38440
38441 * ali.ads: Fix Comment about Dynamic_Elab.
38442
38443 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
38444 Has_RACW, Is_Generic, etc.)
38445 (Output_Object, Gnatls): Take into account ALI files not attached to
38446 an object.
38447
38448 2004-03-22 Vincent Celier <celier@gnat.com>
38449
38450 * gprep.adb: Change all String_Access to Name_Id
38451 (Is_ASCII_Letter): new function
38452 (Double_File_Name_Buffer): New procedure
38453 (Preprocess_Infile_Name): New procedure
38454 (Process_Files): New procedure
38455 (Gnatprep): Check if output and input are existing directories.
38456 Call Process_Files to do the real job.
38457
38458 2004-03-22 Robert Dewar <dewar@gnat.com>
38459
38460 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
38461 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
38462
38463 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
38464
38465 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
38466 case when the source contains only comments.
38467
38468 2004-03-22 Ed Schonberg <schonberg@gnat.com>
38469
38470 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
38471 declaration for a child subprogram body that acts as a spec, indicate
38472 that the entity in the declaration needs debugging information.
38473
38474 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
38475 full view if the subtype is created for a constrained record component;
38476 gigi has enough information to construct the record, and there is no
38477 place in the tree for the declaration.
38478
38479 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
38480 serial number for the dummy body that is built for analysis, to avoid
38481 inconsistencies in the generation of internal names when compiling
38482 with -gnatN.
38483
38484 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
38485
38486 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
38487 object.
38488
38489 2004-03-22 GNAT Script <nobody@gnat.com>
38490
38491 * Make-lang.in: Makefile automatically updated
38492
38493 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38494
38495 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38496 * trans.c (tree_transform, emit_index_check): Likewise.
38497 * utils.c (build_template): Likewise.
38498 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
38499 (maybe_unconstrained_array, unchecked_convert): Likewise.
38500 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
38501 (build_unary_op): Likewise.
38502 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38503 (fill_vms_descriptor): Likewise.
38504 (build_call_alloc_dealloc): Likewise.
38505 ALIGN is unsigned.
38506 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
38507
38508 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
38509
38510 PR other/14630
38511 * gnat_ug.texi: Add info directory category and entry.
38512 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38513 gnat_ug_wnt.texi: Regenerate.
38514
38515 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
38516
38517 * ada-tree.h: Update copyright notice.
38518 Minor reformatting.
38519
38520 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
38521
38522 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
38523 as regular exception objects and not as mere integers representing the
38524 condition code. The latter approach required some dynamics to mask off
38525 severity bits, which did not fit well into the GCC table based model.
38526 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
38527 exception data objects. We don't it and it would conflict with the other
38528 external symbol we have to generate for such exceptions.
38529
38530 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
38531 the special code for VMS exceptions, since these are now represented
38532 as regular exceptions objects.
38533
38534 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38535
38536 * decl.c (debug_no_type_hash): Remove.
38537 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
38538 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
38539
38540 2004-03-19 Laurent Guerby <laurent@guerby.net>
38541
38542 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
38543 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
38544
38545 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38546
38547 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
38548 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
38549 (TYPE_RM_SIZE_INT): Directly use type.values.
38550 (TREE_LOOP_ID): Clean up check.
38551 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
38552 TYPE_VALUES, not TYPE_FIELDS.
38553 * trans.c (convert_with_check): Delay access of bounds of basetype
38554 until sure is numeric.
38555
38556 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
38557
38558 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
38559
38560 Code clean up:
38561 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
38562 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
38563 Specific.Set instead of direct call to e.g pthread_setspecific.
38564
38565 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
38566
38567 * adaint.c: Update comments.
38568
38569 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
38570 GNATLIB_SHARED for FreeBSD.
38571
38572 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
38573
38574 * init.c [VxWorks]: Do not fix the stack size for the environment task.
38575 When needed (stack checking) the stack size is retrieved
38576 from the VxWorks kernel.
38577
38578 * Makefile.in: Flag -nostdinc is required when building the run time
38579 for avoiding looking for files in the base compiler.
38580 Add the VxWorks specific version of the package body for
38581 System.Stack_checking.Operations (5zstchop.adb).
38582
38583 * Make-lang.in: Add the object file for
38584 System.Stack_Checking.Operations.
38585
38586 * Makefile.rtl: Add object file for the package
38587 System.Stack_Checking.Operations.
38588
38589 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
38590
38591 * s-stache.ads, s-stache.adb: Move the operations related to stack
38592 checking from this package to package System.Stack_Checking.Operations.
38593 This way, stack checking operations are only linked in the final
38594 executable when using the -fstack-check flag.
38595
38596 2004-03-18 Doug Rupp <rupp@gnat.com>
38597
38598 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
38599 Reorganize ifeq's.
38600
38601 * 5qsystem.ads, 5xcrtl.ads: New files.
38602
38603 2004-03-18 Vincent Celier <celier@gnat.com>
38604
38605 * prj.adb (Reset): Reset hash table Files_Htable
38606
38607 * prj-env.adb (Source_Paths, Object_Paths): New tables.
38608 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
38609 the procedures Add_To_Path_File.
38610 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
38611 making sure that each directory is present only once and, for object
38612 dirs, when a directory already present is added, the duplicate is
38613 removed and the directory is always put as the last in the table.
38614 Write the path files at the end of these accumulations.
38615
38616 * prj-nmsc.adb (Record_Source): Add source file name in hash table
38617 Files_Htable for all sources.
38618
38619 * prj-proc.adb (Process): Remove restrictions between not directly
38620 related extending projects.
38621
38622 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
38623
38624 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
38625 (Find_Sources): Minor speed optimization.
38626
38627 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
38628 parameter Trusted_Mode.
38629
38630 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
38631
38632 * scn.adb (Determine_License): Take into account a degenerated case
38633 when the source contains only comments.
38634
38635 2004-03-18 Ed Schonberg <schonberg@gnat.com>
38636
38637 * sem_warn.adb (Check_References): For a warning on a selected
38638 component that does not come from source, locate an uninitialized
38639 component of the record type to produce a more precise error message.
38640
38641 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
38642
38643 * 3zsoccon.ads: Fix multicast options.
38644
38645 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
38646 in the spec.
38647
38648 2004-03-15 Robert Dewar <dewar@gnat.com>
38649
38650 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
38651 pragma used for a private type.
38652
38653 * lib-xref.adb (Generate_Reference): Do not generate warning if
38654 reference is in a different unit from the pragma Unreferenced.
38655
38656 * 5vtpopde.adb: Minor reformatting
38657 Fix casing of To_Task_ID
38658
38659 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
38660 flag if we have an unchecked conversion to an access type in the same
38661 unit.
38662
38663 2004-03-15 Geert Bosch <bosch@gnat.com>
38664
38665 * a-ngcoty.adb (Modulus): In alternate formula for large real or
38666 imaginary parts, use Double precision throughout.
38667
38668 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
38669 we want to be able to compile run-time with -gnata for testing, but
38670 this may also be instantiated in user code that is compiled with -gnata.
38671
38672 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
38673
38674 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
38675 codes. Having a separate type for this is useful to enforce consistency
38676 throughout the various run-time units.
38677 (Exception_Data): Use Exception_Code for Import_Code.
38678
38679 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
38680 Natural and Integer in various places.
38681 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
38682 with the severity bits masked off.
38683 (Register_VMS_Exception): Handle the additional exception data pointer
38684 argument.
38685
38686 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
38687 component, now reflected by an exported accessor.
38688 (is_handled_by): New routine to compute whether the propagated
38689 occurrence matches some handler choice specification. Extracted out of
38690 get_action_description_for, and expanded to take care of the VMS
38691 specifities.
38692 (get_action_description_for): Use is_handled_by instead of an explicit
38693 complex condition to decide if the current choice at hand catches the
38694 propagated occurrence.
38695
38696 * raise.h (Exception_Code): New type for C.
38697
38698 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
38699 System.Standard_Library.Exception_Code, to allow references from the
38700 pragma import/export expander.
38701
38702 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
38703 New accessors to allow easy access to GNAT exception data
38704 characteristics.
38705 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
38706 redundant Handled_By_Others component, helper for the personality
38707 routine which will now be able to call the appropriate exception data
38708 accessor instead.
38709
38710 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
38711 component of Standard_Exception_Type to be the closest possible to
38712 Exception_Code in System.Standard_Library, that we cannot get at this
38713 point. Expand a ??? comment to notify that this type node should
38714 probably be rewritten later on.
38715
38716 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
38717 registration call to include a pointer to the exception object in the
38718 arguments.
38719
38720 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
38721 instead of int and explicit bitmasks.
38722
38723 2004-03-15 Vincent Celier <celier@gnat.com>
38724
38725 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
38726 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
38727
38728 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
38729 longer needed now that it is in the spec of
38730 System.Tasking.Task_Attributes.
38731
38732 * adaint.h, adaint.c: (__gnat_create_output_file): New function
38733
38734 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
38735
38736 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
38737
38738 * make.adb (Gnatmake): Do not check the executable suffix; it is being
38739 taken care of in Scan_Make_Arg.
38740 (Scan_Make_Arg): Add the executable suffix only if the argument
38741 following -o, in canonical case, does not end with the executable
38742 suffix. When in verbose mode and executable file name does not end
38743 with executable suffix, output the executable name, in canonical case.
38744
38745 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
38746 to avoid warnings when instantiating Ada.Task_Attributes.
38747 Minor reformating.
38748
38749 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
38750 in the correct order.
38751
38752 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
38753 redirect standard output and error to a file for the invocation of the
38754 compiler, then read the file.
38755
38756 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
38757 directory, instead of the Value.
38758 (Find_Source_Dirs): Remove useless code & comments.
38759
38760 2004-03-15 Ed Schonberg <schonberg@gnat.com>
38761
38762 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
38763 tagged type is inherited, and the parent operation is not frozen yet,
38764 force generation of a freeze node for the inherited operation, so the
38765 corresponding dispatch entry is properly initialized.
38766 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
38767 when looking for user-defined equality operation.
38768
38769 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
38770 boolean when locating primitive equality of tagged component.
38771
38772 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
38773 bit-aligned field and the right-hand side a string literal, introduce
38774 a temporary before expanding assignment into a loop.
38775
38776 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
38777 priority in full, to ensure that any expanded subepxressions of it are
38778 elaborated in the scope of the init_proc.
38779
38780 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
38781 after object declaration, skipping over code that may have been
38782 generated for validity checks.
38783
38784 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
38785 discriminants, ignore the known discriminants of its full view, if
38786 any, to check legality.
38787
38788 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
38789 component if type has unknown discriminants.
38790 (Analyze_Private_Extension_Declaration): Discriminant constraint is
38791 null if type has unknown discriminants.
38792
38793 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
38794 for end label when present.
38795
38796 * s-fileio.adb (Open): When called with a C_Stream, use given name for
38797 temporary file, rather than an empty string.
38798
38799 2004-03-15 Ed Falis <falis@gnat.com>
38800
38801 * s-thread.adb: Removed, no longer used.
38802
38803 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38804
38805 * decl.c (target.h): Now include.
38806 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
38807 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
38808 (validate_size): For POINTER_TYPE, get smallest size permitted on
38809 machine.
38810
38811 * fe.h: Sort Einfo decls and add Set_Mechanism.
38812
38813 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
38814 (ada/decl.o): Depends on target.h.
38815
38816 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
38817 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
38818
38819 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
38820
38821 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
38822
38823 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
38824 Insert_Dereference_Action when rewriting an implicit dereference into
38825 an explicit one, this will be taken care of during expansion of the
38826 explicit dereference.
38827 (Expand_N_Slice): Same. Always do the rewriting, even for the case
38828 of non-packed slices, since the dereference action generated by
38829 expansion of the explicit dereference is needed in any case.
38830 (Expand_N_Selected_Component): When rewriting an implicit dereference,
38831 analyze and resolve the rewritten explicit dereference so it is seen
38832 by the expander.
38833 (Insert_Dereference_Action): This procedure is now called only for the
38834 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
38835 dereferences that do not come from source (including explicit
38836 dereferences resulting from rewriting implicit ones), but do not
38837 recursively insert a check for the dereference nodes contained within
38838 the check.
38839 (Insert_Dereference_Action): Clarify and correct comment.
38840
38841 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
38842
38843 PR ada/14131
38844 Move language detection to the top level.
38845 * config-lang.in: Build by default.
38846
38847 2004-03-05 Robert Dewar <dewar@gnat.com>
38848
38849 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
38850
38851 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
38852 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
38853 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
38854 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
38855 unchecked conversion to spec to avoid warnings.
38856
38857 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
38858 to Task_ID
38859
38860 * 7stpopsp.adb: Correct casing in To_Task_ID call
38861
38862 * a-strsea.ads, a-strsea.adb: Minor reformatting
38863
38864 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
38865
38866 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
38867 Adjust Max_Msg_Length to be clearly large enough.
38868
38869 * fe.h: Define In_Same_Source_Unit
38870
38871 * osint.adb: Add pragma Warnings Off to suppress warnings
38872 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
38873 aliasing warnings.
38874
38875 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
38876
38877 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
38878
38879 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
38880
38881 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
38882
38883 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
38884
38885 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
38886 node. We now do generate them for gcc back end.
38887
38888 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
38889 warning.
38890
38891 * sinput-c.adb: Fix bad name in header.
38892 Add pragma Warnings Off to suppress aliasing warning.
38893
38894 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
38895
38896 * snames.h, snames.ads, snames.adb: Add entry for pragma
38897 No_Strict_Aliasing.
38898
38899 2004-03-05 Vincent Celier <celier@gnat.com>
38900
38901 * prj-com.ads: Add hash table Files_Htable to check when a file name
38902 is already a source of another project.
38903
38904 * prj-nmsc.adb (Record_Source): Before recording a new source, check
38905 if its file name is not already a source of another project. Report an
38906 error if it is.
38907
38908 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
38909 source file name, call gnatpp with all the sources of the main project.
38910
38911 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
38912 of file names.
38913
38914 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
38915 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
38916 /RUNTIME_SYSTEM=, converted to --RTS=
38917 /NOTABS, converted to -notabs
38918
38919 2004-03-05 Pascal Obry <obry@gnat.com>
38920
38921 * make.adb: Minor reformatting.
38922
38923 2004-03-05 Ed Schonberg <schonberg@gnat.com>
38924
38925 Part of implemention of AI-262.
38926 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
38927
38928 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
38929 procedure.
38930
38931 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
38932 when component type is a partially constrained class-wide subtype.
38933 (Constrain_Discriminated_Type): If parent type has unknown
38934 discriminants, a constraint is illegal, even if full view has
38935 discriminants.
38936 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
38937 with unknown discriminants whose full view is a discriminated record.
38938
38939 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
38940 flag, to handle properly derivations of tagged types with unknown
38941 discriminants.
38942 (Analyze_Package_Spec, Analyze_Package_Body): Install
38943 Private_With_Clauses before analyzing private part or body.
38944
38945 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
38946 Has_Discriminants can be true for a given type (documentation).
38947
38948 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
38949
38950 * s-restri.ads: Fix license (GPL->GMGPL).
38951
38952 * s-tassta.adb: Minor reformatting.
38953
38954 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
38955 by calls to Exit_One_ATC_Level, since additional clean up is performed
38956 by this function.
38957
38958 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
38959 by calls to Exit_One_ATC_Level, since additional clean up is performed
38960 by this function.
38961
38962 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38963
38964 * trans.c: Reflect GCC changes to fix bootstrap problem.
38965 Add warning for suspicious aliasing unchecked conversion.
38966
38967 2004-03-05 GNAT Script <nobody@gnat.com>
38968
38969 * Make-lang.in: Makefile automatically updated
38970
38971 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
38972
38973 * ali.adb (Read_Instantiation_Instance): Do not modify the
38974 current_file_num when reading information about instantiations, since
38975 this corrupts files in later references.
38976
38977 2004-03-02 Vincent Celier <celier@gnat.com>
38978
38979 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
38980 before checking if it is read-only.
38981
38982 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
38983 of SRC_DIRS and eliminate duplicates.
38984
38985 * gprcmd.adb: Replace command "path" with command "path_sep" to return
38986 the path separator.
38987 (Usage): Document path_sep
38988
38989 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
38990 C++ compiler. No need for a script.
38991 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
38992 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
38993 subst.
38994
38995 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
38996 where there are Ada sources.
38997 (Set_Ada_Paths): Only add to the include path the source dirs of project
38998 with Ada sources.
38999 (Add_To_Path): Add the Display_Values of the directories, not their
39000 Values.
39001
39002 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
39003 data.
39004
39005 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
39006 is not No_Name.
39007 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
39008 Value is canonicalized.
39009 (Language_Independent_Check): Do not copy Value to Display_Value when
39010 canonicalizing Value.
39011
39012 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
39013 path to find limited with cycles.
39014 (Parse_Single_Project): Use canonical cased path to find the end of a
39015 with cycle.
39016
39017 2004-03-02 Ed Schonberg <schonberg@gnat.com>
39018
39019 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
39020 and not a child unit.
39021
39022 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
39023 appear in a with_clause.
39024
39025 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
39026 only happen in type_annotate mode, do not try to elaborate it.
39027
39028 * exp_util.adb (Force_Evaluation): If expression is a selected
39029 component on the left of an assignment, use a renaming rather than a
39030 temporary to remove side effects.
39031
39032 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
39033 inlined instance body, which is analyzed before the end of the
39034 enclosing scope.
39035
39036 2004-03-02 Robert Dewar <dewar@gnat.com>
39037
39038 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
39039 sem_ch4.adb: Use new feature for substitution of keywords in VMS
39040
39041 * errout.ads, errout.adb: Implement new circuit for substitution of
39042 keywords in VMS.
39043
39044 * sem_case.adb (Analyze_Choices): Place message properly when case is
39045 a subtype reference rather than an explicit range.
39046
39047 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
39048
39049 2004-03-02 Doug Rupp <rupp@gnat.com>
39050
39051 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
39052
39053 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
39054
39055 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
39056
39057 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39058
39059 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
39060 BLKmode bitfield.
39061
39062 2004-02-25 Robert Dewar <dewar@gnat.com>
39063
39064 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
39065 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
39066 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
39067 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
39068 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
39069 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
39070 the defining instance of the type to avoid aliasing problems.
39071 Fix copyright header. Fix bad comments in package header.
39072
39073 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
39074
39075 2004-02-25 Ed Schonberg <schonberg@gnat.com>
39076
39077 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
39078 rewritten as references when aliased through an address clause.
39079
39080 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
39081 whether call can be interpreted as an indirect call to the result of a
39082 parameterless function call returning an access subprogram.
39083
39084 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
39085
39086 Code clean up:
39087 * exp_ch7.adb (Make_Clean): Remove generation of calls to
39088 Unlock[_Entries], since this is now done by Service_Entries directly.
39089
39090 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
39091
39092 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
39093 Requeue_Call for better code readability. Change spec and update calls:
39094 PO_Service_Entries now unlock the PO on exit.
39095 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
39096 PO_Service_Entries.
39097
39098 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
39099
39100 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
39101
39102 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
39103
39104 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
39105 protected subprogram call and analyzing the result of such expanding
39106 in case when the called protected subprogram is eliminated.
39107
39108 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
39109 names.
39110
39111 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
39112
39113 * Makefile.in: Clean ups.
39114
39115 2004-02-23 Ed Schonberg <schonberg@gnat.com>
39116
39117 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
39118 protected operations if original subprogram is flagged as eliminated.
39119 (Expand_N_Subprogram_Body): For a protected operation, create
39120 discriminals for next operation before checking whether the operation
39121 is eliminated.
39122
39123 * exp_ch9.adb (Expand_N_Protected_Body,
39124 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
39125 for internal protected operations if the original subprogram is
39126 eliminated.
39127
39128 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
39129 declared in a single protected object.
39130
39131 2004-02-23 Vincent Celier <celier@gnat.com>
39132
39133 * prj-attr.adb: Make attribute Builder'Executable an associative array,
39134 case insensitive if file names are case insensitive, instead of a
39135 standard associative array.
39136
39137 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
39138 them as case insensitive on platforms where the file names are case
39139 sensitive.
39140
39141 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
39142 project file has already been parsed that canonical path are compared.
39143
39144 2004-02-23 Robert Dewar <dewar@gnat.com>
39145
39146 * sinput-c.ads: Correct bad unit title in header
39147
39148 * freeze.adb: Minor reformatting
39149
39150 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39151
39152 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
39153 nonaddressable COMPONENT_REF that is removing padding that we are
39154 taking the address of, take the address of the padded record instead
39155 if item is variable size.
39156
39157 2004-02-20 Robert Dewar <dewar@gnat.com>
39158
39159 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
39160
39161 2004-02-20 Ed Schonberg <schonberg@gnat.com>
39162
39163 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
39164 itype references for the constrained designated type of a component
39165 whose base type is already frozen.
39166
39167 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
39168
39169 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
39170 avoid GCC warnings.
39171
39172 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
39173
39174 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
39175 identifier for a phantom package that rewrites the formal package
39176 declaration with a box. The Add semantic decorations for the defining
39177 identifier from the original node (that represents the formal package).
39178
39179 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
39180
39181 * Make-lang.in (ada/stamp-sdefault): Use the top level
39182 move-if-change.
39183
39184 2004-02-19 Richard Henderson <rth@redhat.com>
39185
39186 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
39187
39188 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
39189
39190 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
39191 Scan_ALI can be used for multiple ALI files without reinitializing
39192 between calls.
39193
39194 2004-02-18 Robert Dewar <dewar@gnat.com>
39195
39196 * debug.adb: Minor reformatting.
39197
39198 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39199
39200 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
39201 to zero if there is an address clause.
39202
39203 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
39204
39205 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
39206
39207 2004-02-18 Gary Dismukes <dismukes@gnat.com>
39208
39209 * layout.adb (Layout_Component_List): Revise generation of call to
39210 discriminant-checking function to pass selections of all of the type's
39211 discriminants rather than just the variant-controlling discriminant.
39212
39213 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
39214
39215 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
39216 fail in the current setup and triggers spurious system error messages.
39217 Pretend it occurred and failed instead.
39218
39219 2004-02-18 Vincent Celier <celier@gnat.com>
39220
39221 * bld.adb: Mark FLDFLAGS as saved
39222 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
39223 it is not the root project. Put each directory to be
39224 extended between double quotes to prevent it to be expanded on Windows.
39225 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
39226 the project file. Set them back to their initial values if they have not
39227 been set in the project file.
39228
39229 * gprcmd.adb: (Gprdebug, Debug): New global variables
39230 (Display_Command): New procedure
39231 (Usage): Document new command "linkopts"
39232 Call Display_Command when env var GPRDEBUG has the value "TRUE"
39233 Implement new command "linkopts"
39234 Remove quotes that may be around arguments for "extend"
39235 Always call Normalize_Pathname with arguments formatted for the platform
39236
39237 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
39238 Change @echo to @$(display) in target clean to be able to clean silently
39239
39240 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
39241
39242 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
39243 canonical case.
39244
39245 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
39246 = Extending_All when current project is an extending all project.
39247
39248 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
39249 set to True only for LINK command, after Unix switch -o.
39250 (Process_Arguments): Set Output_File_Expected to True for LINK command
39251 after Unix switch -o. When Output_File_Expected is True, never add an
39252 extension to a file name.
39253
39254 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
39255 option file name, only to the --for-linker= switch.
39256 (Option_File_Name): If option file name do not end with ".opt", append
39257 "/OPTIONS".
39258
39259 2004-02-18 GNAT Script <nobody@gnat.com>
39260
39261 * Make-lang.in: Makefile automatically updated
39262
39263 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
39264
39265 * Make-lang.in (stamp-sdefault): Do not depend on
39266 move-if-change.
39267
39268 2004-02-12 Zack Weinberg <zack@codesourcery.com>
39269
39270 * config-lang.in: Disable Ada by default until probe logic for
39271 a bootstrap Ada compiler can be moved to the top level configure
39272 script.
39273
39274 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
39275
39276 * decl.c (components_to_record): Don't claim that the internal fields
39277 we make to hold the variant parts are semantically addressable, because
39278 they are not.
39279
39280 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
39281 adjust the comment describing the modular type form when we can use it.
39282 (Install_PAT): Account for the Esiz renaming.
39283
39284 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
39285 sc_onstack context indication before raising the exception to which
39286 the signal is mapped. Allows better handling of later signals possibly
39287 triggered by the resumed user code if the exception is handled.
39288
39289 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
39290
39291 * 5zinit.adb: Removed, no longer used.
39292
39293 2004-02-12 Robert Dewar <dewar@gnat.com>
39294
39295 * ali.adb: Remove separating space between parameters on R line. Makes
39296 format consistent with format used by the binder for Set_Globals call.
39297
39298 * atree.ads, atree.adb: Minor reformatting (new function header format)
39299
39300 * bindgen.adb: Add Run-Time Globals documentation section containing
39301 detailed documentation of the globals passed from the binder file to
39302 the run time.
39303
39304 * gnatls.adb: Minor reformatting
39305
39306 * init.c (__gnat_set_globals): Add note pointing to documentation in
39307 bindgen.
39308
39309 * lib-writ.ads, lib-writ.adb: Remove separating space between
39310 parameters on R line.
39311 Makes format consistent with format used by the binder for Set_Globals
39312 call.
39313
39314 * osint.ads: Add 2004 to copyright notice
39315 Minor reformatting
39316
39317 * snames.ads: Correct capitalization of FIFO_Within_Priorities
39318 Noticed during code reading, documentation issue only
39319
39320 * usage.adb: Remove junk line for obsolete C switch
39321 Noticed during code reading
39322
39323 2004-02-12 Vincent Celier <celier@gnat.com>
39324
39325 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
39326 extend for each directory, so that multiple /** directories are
39327 extended individually.
39328 (Recursive_Process): Set the default for LANGUAGES to ada
39329
39330 * gprcmd.adb: Define new command "ignore", to do nothing.
39331 Implement new comment "path".
39332
39333 * Makefile.generic: Suppress output when SILENT is set
39334 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
39335 used, so that the correct compiler is invoked.
39336 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
39337 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
39338
39339 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
39340
39341 * Makefile.in: Clean ups and remove obsolete targets.
39342
39343 2004-02-12 Ed Schonberg <schonberg@gnat.com>
39344
39345 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
39346 predicate declared in exp_util.
39347
39348 * exp_util.adb: Add comments.
39349
39350 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
39351 visibility before compiling context of the subunit.
39352
39353 * sem_res.adb (Check_Parameterless_Call): If the context expects a
39354 value but the name is a procedure, do not attempt to analyze as a call,
39355 in order to obtain more telling diagnostics.
39356
39357 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
39358 'Access on parameterless function calls.
39359 (Normalize_Actuals): For a parameterless function call with missing
39360 actuals, defer diagnostic until resolution of enclosing call.
39361
39362 * sem_util.adb (Wrong_Type): If the context type is an access to
39363 subprogram and the expression is a procedure name, suggest a missing
39364 'attribute.
39365
39366 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
39367 Nathanael Nerode <neroden@gcc.gnu.org>
39368
39369 PR ada/6637
39370 PR ada/5911
39371 Merge with libada-branch:
39372 * config-lang.in: Build libada only when ada is built.
39373
39374 2004-02-09 Ed Schonberg <schonberg@gnat.com>
39375
39376 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
39377 for a tagged type, verify that both formals have the same type.
39378
39379 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
39380 temporary when the formal is an in-parameter and the actual a possibly
39381 unaligned slice.
39382
39383 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
39384 when expansion is disabled, to ensure proper name capture with
39385 overloaded literals. Condition can be of any boolean type, resolve
39386 accordingly.
39387
39388 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
39389 renaming is for a formal subprogram with a default operator name, and
39390 there is a usable operator that is visible at the point of
39391 instantiation.
39392
39393 2004-02-09 Robert Dewar <dewar@gnat.com>
39394
39395 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
39396 rewrite to ignore errors in ali files, intended to allow tools downward
39397 compatibility with new versions of ali files.
39398
39399 * ali.ads: Add new parameter Ignore_Errors
39400
39401 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
39402 duplicating the error message giving the file with restrictions.
39403
39404 * debug.adb: Add debug flag I for gnatbind
39405
39406 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
39407 operators for the case where the operator is a defining operator.
39408
39409 * exp_ch3.adb: Minor reformatting (new function spec format).
39410
39411 * exp_ch4.adb: Add comment for previous change, and make minor
39412 adjustment to loop to always check for improper loop termination.
39413 Minor reformatting throughout (new function spec format).
39414
39415 * gnatbind.adb: Implement -di debug flag for gnatbind
39416
39417 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
39418
39419 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
39420
39421 * lib-load.adb: Fix bad assertion.
39422 Found by testing and code reading.
39423 Minor reformatting.
39424
39425 * lib-load.ads: Minor reformatting.
39426
39427 * lib-writ.adb: There is only one R line now.
39428
39429 * lib-writ.ads: Add documentation on making downward compatible changes
39430 to ali files so old tools work with new ali files.
39431 There is only one R line now.
39432 Add documentation on format incompatibilities (with special GPS note)
39433
39434 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
39435
39436 * par-load.adb: Minor reformatting
39437
39438 * sem_ch8.adb: Fix to error message from last update
39439 Minor reformatting and restructuring of code from last update
39440
39441 * par-prag.adb, snames.adb, snames.ads, snames.h,
39442 sem_prag.adb: Implement pragma Profile.
39443
39444 * stylesw.adb: Implement -gnatyN switch to turn off all style check
39445 options.
39446
39447 * usage.adb: Add line for -gnatyN switch
39448
39449 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
39450
39451 2004-02-09 Albert Lee <lee@gnat.com>
39452
39453 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
39454
39455 2004-02-09 Ed Schonberg <schonberg@gnat.com>
39456
39457 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
39458 slices.
39459
39460 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
39461 is nested in an instance that is not frozen yet, to avoid
39462 order-of-elaboration problems in gigi.
39463
39464 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
39465 body the attribute is legal.
39466
39467 2004-02-09 Robert Dewar <dewar@gnat.com>
39468
39469 * s-rident.ads: Minor comment correction
39470
39471 * targparm.adb: Remove dependence on uintp completely. There was
39472 always a bug in Make in that it called Targparm before initializing
39473 the Uint package. The old code appeared to get away with this, but
39474 the new code did not! This caused an assertion error in gnatmake.
39475
39476 * targparm.ads: Fix bad comment, restriction pragmas with parameters
39477 are indeed fully supported.
39478
39479 2004-02-06 Alan Modra <amodra@bigpond.net.au>
39480
39481 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
39482
39483 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
39484
39485 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
39486 with targetm.calls.promote_prototypes.
39487
39488 2004-02-04 Robert Dewar <dewar@gnat.com>
39489
39490 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
39491 ali.ads, gprcmd.adb: Minor reformatting
39492
39493 * bindgen.adb: Output restrictions string for new style restrictions
39494 handling
39495
39496 * impunit.adb: Add s-rident.ads (System.Rident) and
39497 s-restri (System.Restrictions)
39498
39499 * lib-writ.adb: Fix bug in writing restrictions string (last few
39500 entries wrong)
39501
39502 * s-restri.ads, s-restri.adb: Change name Restrictions to
39503 Run_Time_Restrictions to avoid conflict with package name.
39504 Add circuit to read and acquire run time restrictions.
39505
39506 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
39507
39508 * restrict.ads, restrict.adb: Use the new restriction
39509 No_Task_Attributes_Package instead of the old No_Task_Attributes.
39510
39511 * sem_prag.adb: No_Task_Attributes is a synonym of
39512 No_Task_Attributes_Package.
39513
39514 * snames.ads, snames.adb: New entry for proper handling of
39515 No_Task_Attributes.
39516
39517 * s-rident.ads: Adding restriction No_Task_Attributes_Package
39518 (AI-00249) that supersedes the GNAT specific restriction
39519 No_Task_Attributes.
39520
39521 2004-02-04 Ed Schonberg <schonberg@gnat.com>
39522
39523 * sem_prag.adb:
39524 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
39525 body, an identifier may be wrapped in an unchecked conversion.
39526
39527 2004-02-04 Vincent Celier <celier@gnat.com>
39528
39529 * lib-writ.ads: Comment update for the W lines
39530
39531 * bld.adb: (Expression): An empty string list is static
39532
39533 * fname-uf.adb: Minor comment update
39534
39535 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
39536
39537 * gnatbind.adb: Initialize Cumulative_Restrictions with the
39538 restrictions on the target.
39539
39540 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
39541
39542 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
39543 gen_rtx.
39544
39545 2004-02-02 Arnaud Charlet <charlet@gnat.com>
39546
39547 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
39548
39549 2004-02-02 Vincent Celier <celier@gnat.com>
39550
39551 * gprcmd.adb (Check_Args): If condition is false, print the invoked
39552 comment before the usage.
39553 Gprcmd: Fail when command is not recognized.
39554 (Usage): Document command "prefix"
39555
39556 * g-md5.adb (Digest): Process last block.
39557 (Update): Do not process last block. Store remaining characters and
39558 length in Context.
39559
39560 * g-md5.ads (Update): Document that several call to update are
39561 equivalent to one call with the concatenated string.
39562 (Context): Add fields to allow new Update behaviour.
39563
39564 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
39565 defaulted to False.
39566 When May_Fail is True and no existing file can be found, return No_File.
39567
39568 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
39569 functions.
39570
39571 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
39572 spec file name instead on the W line.
39573
39574 2004-02-02 Robert Dewar <dewar@gnat.com>
39575
39576 * ali.adb: Read and acquire info from new format restrictions lines
39577
39578 * bcheck.adb: Add circuits for checking restrictions with parameters
39579
39580 * bindgen.adb: Output dummy restrictions data
39581 To be changed later
39582
39583 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39584 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
39585 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
39586 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
39587 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
39588
39589 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
39590 the warning message on access to possibly uninitialized variable S)
39591 Minor changes for new restrictions handling.
39592
39593 * gnatbind.adb: Minor reformatting
39594 Minor changes for new restrictions handling
39595 Move circuit for -r processing here from bcheck (cleaner)
39596
39597 * gnatcmd.adb, gnatlink.adb: Minor reformatting
39598
39599 * lib-writ.adb: Output new format restrictions lines
39600
39601 * lib-writ.ads: Document new R format lines for new restrictions
39602 handling.
39603
39604 * s-restri.ads/adb: New files
39605
39606 * Makefile.rtl: Add entry for s-restri.ads/adb
39607
39608 * par-ch3.adb: Fix bad error messages starting with upper case letter
39609 Minor reformatting
39610
39611 * restrict.adb: Major rewrite throughout for new restrictions handling
39612 Major point is to handle restrictions with parameters
39613
39614 * restrict.ads: Major changes in interface to handle restrictions with
39615 parameters. Also generally simplifies setting of restrictions.
39616
39617 * snames.ads/adb: New entry for proper handling of No_Requeue
39618
39619 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
39620 restriction counting.
39621 Other minor changes for new restrictions handling
39622
39623 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
39624 Restriction_Warnings now allows full parameter notation
39625 Major rewrite of Restrictions for new restrictions handling
39626
39627 2004-02-02 Javier Miranda <miranda@gnat.com>
39628
39629 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
39630 syntax rule for object renaming declarations.
39631 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
39632 component definitions.
39633
39634 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
39635 components.
39636 (Array_Type_Declaration): Give support to access components. In addition
39637 it was also modified to reflect the name of the object in anonymous
39638 array types. The old code did not take into account that it is possible
39639 to have an unconstrained anonymous array with an initial value.
39640 (Check_Or_Process_Discriminants): Allow access discriminant in
39641 non-limited types.
39642 (Process_Discriminants): Allow access discriminant in non-limited types
39643 Initialize the new Access_Definition field in N_Object_Renaming_Decl
39644 node. Change Ada0Y to Ada 0Y in comments
39645
39646 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
39647 equality operators.
39648 Change Ada0Y to Ada 0Y in comments
39649
39650 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
39651 renamings Change Ada0Y to Ada 0Y in comments
39652
39653 * sem_type.adb (Find_Unique_Type): Give support to the equality
39654 operators for universal access types
39655 Change Ada0Y to Ada 0Y in comments
39656
39657 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
39658
39659 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
39660 field.
39661 (N_Object_Renaming_Declaration): Addition of Access_Definition field
39662 Change Ada0Y to Ada 0Y in comments
39663
39664 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
39665 component definition and object renaming nodes
39666 Change Ada0Y to Ada 0Y in comments
39667
39668 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
39669
39670 * restrict.adb: Use the new restriction identifier
39671 No_Requeue_Statements instead of the old No_Requeue for defining the
39672 restricted profile.
39673
39674 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
39675 No_Requeue_Statements.
39676
39677 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
39678 that supersedes the GNAT specific restriction No_Requeue. The later is
39679 kept for backward compatibility.
39680
39681 2004-02-02 Ed Schonberg <schonberg@gnat.com>
39682
39683 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
39684 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
39685 pragma and fix incorrect ones.
39686
39687 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
39688 warning if the pragma is redundant.
39689
39690 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
39691
39692 * 5staprop.adb: Add missing 'constant' keywords.
39693
39694 * Makefile.in: use consistent value for SYMLIB on
39695 platforms where libaddr2line is supported.
39696
39697 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39698
39699 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
39700 annotating types.
39701
39702 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
39703
39704 * init.c (__gnat_install_handler): Setup an alternate stack for signal
39705 handlers in the environment thread. This allows proper propagation of
39706 an exception on stack overflows in this thread even when the builtin
39707 ABI stack-checking scheme is used without support for a stack reserve
39708 region.
39709
39710 * utils.c (create_field_decl): Augment the head comment about bitfield
39711 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
39712 here, because the former is not accurate enough at this point.
39713 Let finish_record_type decide instead.
39714 Don't make a bitfield if the field is to be addressable.
39715 Always set a size for the field if the record is packed, to ensure the
39716 checks for bitfield creation are triggered.
39717 (finish_record_type): During last pass over the fields, clear
39718 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
39719 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
39720 from DECL_BIT_FIELD.
39721
39722 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
39723
39724 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
39725 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
39726 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
39727
39728 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39729
39730 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
39731
39732 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
39733 (ZCX_By_Default): Likewise.
39734 (Front_End_ZCX_Support): Likewise.
39735
39736 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
39737 (Initialize_Lock): Mark Level unreferenced.
39738 (Sleep): Mark Reason unreferenced.
39739 (Timed_Sleep): Likewise.
39740 (Wakeup): Likewise.
39741 (Exit_Task): Use Result.
39742 (Check_No_Locks): Mark Self_ID unreferenced.
39743
39744 * 5gtasinf.adb (New_Sproc): Make Attr constant.
39745 (Bound_Thread_Attributes): Make Sproc constant.
39746 (New_Bound_Thread_Attributes): Likewise.
39747
39748 2004-01-26 Ed Schonberg <schonberg@gnat.com>
39749
39750 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
39751 one-dimensional array an slice assignments, when component type is
39752 controlled.
39753
39754 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
39755 component type is controlled, and control_actions are in effect, use
39756 TSS procedure rather than generating inline code.
39757
39758 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
39759 arrays with controlled components.
39760
39761 2004-01-26 Vincent Celier <celier@gnat.com>
39762
39763 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
39764 command line for the non VMS case.
39765
39766 * gnatlink.adb (Process_Binder_File): When building object file, if
39767 GNU linker is used, put all object paths between quotes, to prevent ld
39768 error when there are unusual characters (such as '!') in the paths.
39769
39770 * Makefile.generic: When there are sources in Ada and the main is in
39771 C/C++, invoke gnatmake with -B, instead of -z.
39772
39773 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
39774 from VMS_Conversion.
39775 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
39776 specification of argument file on the command line.
39777
39778 2004-01-26 Bernard Banner <banner@gnat.com>
39779
39780 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
39781
39782 2004-01-26 Ed Schonberg <schonberg@gnat.com>
39783
39784 * snames.adb: Update copyright notice.
39785 Add info on slice assignment for controlled arrays.
39786
39787 2004-01-23 Robert Dewar <dewar@gnat.com>
39788
39789 * exp_aggr.adb: Minor reformatting
39790
39791 * exp_ch9.adb: Minor code clean up
39792 Minor reformatting
39793 Fix bad character in comment
39794
39795 PR ada/13471
39796 * targparm.adb (Get_Target_Parameters): Give clean abort error on
39797 unexpected end of file, along with more detailed message.
39798
39799 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39800
39801 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
39802 PAT.
39803
39804 * decl.c (copy_alias_set): New function.
39805 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
39806
39807 2004-01-23 Doug Rupp <rupp@gnat.com>
39808
39809 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
39810 lib$${file} in case subsequent character is not a separator.
39811
39812 2004-01-23 Vincent Celier <celier@gnat.com>
39813
39814 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
39815 when the GCC version is at least 3.
39816
39817 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
39818 Remove all "Opt.", to prepare for opt split
39819
39820 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
39821 Extends_All. Set to True when the project parsed is an extending all
39822 project. Fails for importing an extending all project only when the
39823 imported project is an extending all project.
39824 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
39825 depending on the value of Extends_All returned.
39826
39827 * prj-proc.adb (Process): Check that no project shares its object
39828 directory with a project that extends it, directly or indirectly,
39829 including a virtual project.
39830 Check that no project extended by another project shares its object
39831 directory with another also extended project.
39832
39833 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
39834 Kind = N_With_Clause
39835
39836 * prj-tree.ads: Minor reformatting
39837 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
39838
39839 2004-01-23 Ed Schonberg <schonberg@gnat.com>
39840
39841 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
39842 applies to a type with an incomplete view, use full view in Name of
39843 clause, for consistency with uses of Get_Attribute_Definition_Clause.
39844
39845 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
39846
39847 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
39848 SCHED_RR, since other values are not supported by this policy.
39849 (Initialize): Move initialization of mutex attribute to package
39850 elaboration, to prevent early access to this variable.
39851
39852 * Makefile.in: Remove mention of Makefile.adalib, unused.
39853
39854 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39855 1ssecsta.ads: Removed, unused.
39856
39857 2004-01-21 Javier Miranda <miranda@gnat.com>
39858
39859 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
39860 entity if already built in the current scope.
39861
39862 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
39863 reminder in internal scopes. Required for nested limited aggregates.
39864
39865 2004-01-21 Doug Rupp <rupp@gnat.com>
39866
39867 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
39868 VMS. Replace all occurences of libgnat- and libgnarl- with
39869 libgnat$(hyphen) and libgnarl$(hyphen).
39870 Fixed shared library build problem on VMS.
39871
39872 2004-01-21 Robert Dewar <dewar@gnat.com>
39873
39874 * mlib-prj.adb: Minor reformatting
39875
39876 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
39877
39878 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
39879 'constant' keywords for declaration of pointers that are not modified.
39880
39881 * exp_pakd.adb: Fix English in comment.
39882
39883 2004-01-21 Ed Schonberg <schonberg@gnat.com>
39884
39885 PR ada/10889
39886 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
39887 copy all attributes of the parent, including the foreign language
39888 convention.
39889
39890 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
39891
39892 PR ada/10565
39893 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
39894 for 'delay until' statement.
39895
39896 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
39897
39898 * Make-lang.in: Replace $(docdir) with doc.
39899 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
39900 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
39901 to use consistent MAKEINFO rule.
39902 (ada.man, ada.srcman): Dummy entry.
39903 (ADA_INFOFILES): Define.
39904 (ada.info, ada.srcinfo): New rules.
39905
39906 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
39907
39908 * utils.c: Update copyright notice, missed in previous change.
39909
39910 2004-01-19 Vincent Celier <celier@gnat.com>
39911
39912 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
39913 args if Bind is True. Set First_ALI, if not already done.
39914 (Build_Library): For Stand Alone Libraries, extract from one ALI file
39915 an eventual --RTS switch, for gnatbind, and all backend switches +
39916 --RTS, for linking.
39917
39918 2004-01-19 Robert Dewar <dewar@gnat.com>
39919
39920 * sem_attr.adb, memtrack.adb: Minor reformatting
39921
39922 2004-01-19 Ed Schonberg <schonberg@gnat.com>
39923
39924 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
39925 that rename enumeration literals. This is properly done in sem_eval.
39926
39927 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
39928 to functions that rename enumeration literals.
39929
39930 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
39931 functions that rename enumeration literals.
39932
39933 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
39934
39935 * Make-lang.in (utils.o): Depend on target.h.
39936 * utils.c: Include target.h.
39937 (process_attributes): Use targetm.have_named_sections instead
39938 of ASM_OUTPUT_SECTION_NAME.
39939
39940 2004-01-16 Andreas Jaeger <aj@suse.de>
39941
39942 * Makefile.in: Add $(DESTDIR).
39943
39944 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
39945
39946 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
39947 also when not defining if a Size clause applies. That information is
39948 not to be ignored.
39949
39950 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
39951
39952 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
39953 symbolic links for the shared gnat run time when needed.
39954
39955 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
39956
39957 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
39958 for writing, and terminate with an error message if not.
39959
39960 2004-01-15 Ed Schonberg <schonberg@gnat.com>
39961
39962 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
39963 warning on an access to subprogram in an instance, when the target
39964 type is declared in the same generic unit.
39965 (Eval_Attribute): If 'access is known to fail accessibility check,
39966 rewrite as a raise statement.
39967
39968 2004-01-15 GNAT Script <nobody@gnat.com>
39969
39970 * Make-lang.in: Makefile automatically updated
39971
39972 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
39973
39974 * Make-lang.in (ada.srcextra): Dummy entry.
39975
39976 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
39977
39978 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
39979
39980 2004-01-13 Ed Schonberg <schonberg@gnat.com>
39981
39982 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
39983 components that are initialized with aggregates.
39984
39985 2004-01-13 Vincent Celier <celier@gnat.com>
39986
39987 * gnatlink.adb (Process_Binder_File): To find directory of shared
39988 libgcc, if "gcc-lib" is not a subdirectory, look for the last
39989 subdirectory "lib" in the path of the shared libgnat or libgnarl.
39990
39991 * make.adb (Gnatmake): If GCC version is at least 3, link with
39992 -shared-libgcc, when there is at least one shared library project.
39993
39994 * opt.ads (GCC_Version): New integer constant.
39995
39996 * adaint.c (get_gcc_version): New function.
39997
39998 2004-01-13 Robert Dewar <dewar@gnat.com>
39999
40000 * sem_dist.adb, sem_res.adb, sem_util.adb,
40001 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
40002 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
40003
40004 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
40005
40006 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
40007 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
40008 declarations.
40009
40010 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
40011
40012 * misc.c: Remove trailing spaces.
40013 Update copyright notice missed in previous change.
40014
40015 PR ada/13572
40016 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
40017 prefix/share/make
40018
40019 * Makefile.generic: Update copyright.
40020 Add license notice.
40021
40022 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
40023 of prefix/share/make.
40024
40025 * Makefile.prolog: Update copyright.
40026 Add license notice.
40027
40028 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
40029
40030 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
40031 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
40032 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
40033 instead of String.
40034
40035 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
40036 signature.
40037
40038 2004-01-12 Javier Miranda <miranda@gnat.com>
40039
40040 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
40041 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
40042 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
40043 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
40044 Component_Definition node.
40045
40046 2004-01-12 Ed Falis <falis@gnat.com>
40047
40048 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
40049
40050 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
40051
40052 * link.c: Change default libgnat kind to STATIC for FreeBSD.
40053
40054 2004-01-12 Bernard Banner <banner@gnat.com>
40055
40056 * Makefile.in: map 86numaux to a-numaux for x86_64
40057
40058 2004-01-12 Ed Schonberg <schonberg@gnat.com>
40059
40060 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
40061 generated to rename a generic actual, go to the actual itself, the
40062 subtype is not a user-visible entity.
40063
40064 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
40065 part is a private subtype, reset the visibility of its full view, if
40066 any, to be consistent.
40067
40068 PR ada/13417
40069 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
40070 to use a generic package G as a formal package for another generic
40071 declared within G.
40072
40073 2004-01-12 Robert Dewar <dewar@gnat.com>
40074
40075 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
40076
40077 * usage.adb: Remove mention of obsolete -gnatwb switch
40078 Noticed during code reading
40079
40080 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
40081
40082 * 1ssecsta.adb: Minor changes for -gnatwa warnings
40083
40084 2004-01-12 GNAT Script <nobody@gnat.com>
40085
40086 * Make-lang.in: Makefile automatically updated
40087
40088 2004-01-09 Mark Mitchell <mark@codesourcery.com>
40089
40090 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
40091
40092 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40093
40094 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
40095
40096 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
40097
40098 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
40099 Update comment and copyright date.
40100 * stamp-xgnatug: Delete.
40101
40102 2004-01-05 Robert Dewar <dewar@gnat.com>
40103
40104 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
40105 be modified by the binder generated main program if the -D switch is
40106 used.
40107
40108 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
40109 imported functions (since now we expect this to be done for imported
40110 functions)
40111
40112 * 5vtaprop.adb: Add several ??? for sections requiring more comments
40113 Minor reformatting throughout
40114
40115 * 5zinit.adb: Minor reformatting
40116 Add 2004 to copyright date
40117 Minor changes to avoid -gnatwa warnings
40118 Correct some instances of using OR instead of OR ELSE (noted while
40119 doing reformatting)
40120
40121 * sprint.adb: Minor updates to avoid -gnatwa warnings
40122
40123 * s-secsta.ads, s-secsta.adb:
40124 (SS_Get_Max): New function to obtain high water mark for ss stack
40125 Default_Secondary_Stack is not a constant since it may be modified by
40126 the binder generated main program if the -D switch is used.
40127
40128 * switch-b.adb: New -Dnnn switch for binder
40129
40130 * switch-c.adb:
40131 Make -gnatg imply all warnings currently in -gnatwa
40132
40133 * vms_conv.adb: Minor reformatting
40134 Add 2004 to copyright notice
40135 Add 2004 to printed copyright notice
40136
40137 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
40138 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
40139 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
40140 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
40141 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
40142 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
40143 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
40144 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
40145 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
40146 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
40147 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
40148 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
40149 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
40150 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
40151 checks.adb, clean.adb, cstand.adb, einfo.ads,
40152 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
40153 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
40154 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
40155 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
40156 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
40157 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
40158 Minor reformatting and code clean ups.
40159 Minor changes to prevent -gnatwa warnings
40160
40161 * ali.adb: Minor reformatting and cleanup of code
40162 Acquire new SS indication of secondary stack use from ali files
40163
40164 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
40165 (since now we expect this to be done for imported functions)
40166
40167 * bindgen.adb: Generate call to modify default secondary stack size if
40168 -Dnnn switch given
40169
40170 * bindusg.adb: Add line for new -D switch
40171
40172 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
40173 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
40174 Add circuitry for both records and arrays to avoid gigi
40175 processing if the type involved has non-bit-aligned components
40176
40177 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
40178 N_String_Literal node always references an E_String_Literal_Subtype
40179 entity. This may not be true in the future.
40180 (Possible_Bit_Aligned_Component): Move processing of
40181 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
40182
40183 * exp_ch6.adb (Expand_Thread_Body): Pick up
40184 Default_Secondary_Stack_Size as variable so that we get value modified
40185 by possible -Dnnn binder parameter.
40186
40187 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
40188 (Type_May_Have_Bit_Aligned_Components): New function.
40189
40190 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
40191 (Type_May_Have_Bit_Aligned_Components): New function.
40192
40193 * fe.h: (Set_Identifier_Casing): Fix prototype.
40194 Add declaration for Sem_Elim.Eliminate_Error_Msg.
40195 Minor reformatting.
40196
40197 * freeze.adb (Freeze_Entity): Add RM reference to error message about
40198 importing constant atomic/volatile objects.
40199 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
40200 unless explicit Pure_Function pragma given, to avoid insidious bug of
40201 call to non-pure imported function getting eliminated.
40202
40203 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
40204 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
40205 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
40206 Add 2004 to printed copyright notice
40207
40208 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
40209 stack used.
40210
40211 * Makefile.rtl: Add entry for g-sestin.o
40212 g-sestin.ads: New file.
40213
40214 * mdll.adb: Minor changes to avoid -gnatwa warnings
40215
40216 * mlib-tgt.adb: Minor reformatting
40217
40218 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
40219 New switch Sec_Stack_Used (GNAT, GNATBIND)
40220 Make Default_Secondary_Stack_Size a variable instead of a constant,
40221 so that it can be modified by the new -Dnnn bind switch.
40222
40223 * rtsfind.adb (Load_Fail): Give full error message in configurable
40224 run-time mode if all_errors mode is set. This was not done in the case
40225 of a file not found, which was an oversight.
40226 Note if secondary stack unit is used by compiler.
40227
40228 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
40229 ineffective elaborate all pragmas on non-visible packages (this
40230 happened when a renamed subprogram was called). Now the elaborate all
40231 always goes on the package containing the renaming rather than the one
40232 containing the renamed subprogram.
40233
40234 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
40235 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
40236
40237 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
40238 has an Etype that references an E_String_Literal.
40239 (Eval_String_Literal): Avoid assumption that N_String_Literal node
40240 always references an E_String_Literal_Subtype entity. This may not
40241 be true in the future.
40242
40243 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
40244 pragma location.
40245
40246 * sem_res.adb (Resolve): Specialize msg for function name used in proc
40247 call.
40248
40249 2004-01-05 Ed Falis <falis@gnat.com>
40250
40251 * g-debuti.adb: Replaced direct boolean operator with short-circuit
40252 form.
40253
40254 2004-01-05 Vincent Celier <celier@gnat.com>
40255
40256 * bld.adb: Minor comment updates
40257 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
40258 of Item_Name).
40259
40260 * make.adb (Gnatmake): Special process for files to compile/check when
40261 -B is specified. Fail when there are only foreign mains in attribute
40262 Main of the project file and -B is not specified. Do not skip bind/link
40263 steps when -B is specified.
40264
40265 * makeusg.adb: Document new switch -B
40266
40267 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
40268
40269 * switch-m.adb: (Scan_Make_Switches): Process -B switch
40270
40271 * vms_data.ads: Add new GNAT PRETTY qualifier
40272 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
40273
40274 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40275
40276 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
40277 case.
40278
40279 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
40280 Set_Identifier_Casing.
40281
40282 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
40283 has size that overflows.
40284
40285 2004-01-05 Gary Dismukes <dismukes@gnat.com>
40286
40287 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
40288 -gnatwa warning on static condition.
40289
40290 2004-01-05 Doug Rupp <rupp@gnat.com>
40291
40292 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
40293
40294 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
40295
40296 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
40297 all attributes, including read-only attribute.
40298
40299 2004-01-05 Pascal Obry <obry@gnat.com>
40300
40301 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
40302 library naming scheme.
40303
40304 * mlib-prj.adb (Build_Library): Generate different names for the static
40305 or dynamic version of the GNAT runtime. This is needed to support the
40306 new shared library naming scheme.
40307 (Process_Binder_File): Add detection of shared library in binder file
40308 based on the new naming scheme.
40309
40310 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
40311 scheme for the shared runtime libraries.
40312
40313 * Makefile.in:
40314 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
40315 scheme.
40316 (install-gnatlib): Do not create symlinks for shared libraries.
40317 (gnatlib-shared-default): Idem.
40318 (gnatlib-shared-dual-win32): New target. Not used for now as the
40319 auto-import feature does not support arrays/records.
40320 (gnatlib-shared-win32): Do not create copy for the shared libraries.
40321 (gnatlib-shared-vms): Fix shared runtime libraries names.
40322
40323 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
40324 dependent runtime shared library name.
40325
40326 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
40327
40328 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
40329 than the object.
40330
40331 2004-01-05 Ed Schonberg <schonberg@gnat.com>
40332
40333 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
40334 protected objects when allocator has a subtype indication, not a
40335 qualified expression. Note that qualified expressions may have to be
40336 checked when limited aggregates are implemented.
40337
40338 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
40339 pure, emit warning.
40340 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
40341 subprogram is imported, remove warning.
40342
40343 2004-01-05 Geert Bosch <bosch@gnat.com>
40344
40345 * s-poosiz.adb: Update copyright notice.
40346 (Allocate): Use Task_Lock to protect against concurrent access.
40347 (Deallocate): Likewise.
40348
40349 2004-01-05 Joel Brobecker <brobecker@gnat.com>
40350
40351 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
40352 comment.
40353
40354 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
40355
40356 * gnat_ug.texi: Force a CVS commit by updating copyright.
40357 * gnat_ug_vxw.texi: Regenerate.
40358 * gnat_ug_wnt.texi: Regenerate.
40359 * gnat_ug_vms.texi: Regenerate.
40360 * gnat_ug_unx.texi: Regenerate.
40361
40362 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
40363
40364 * trans.c: Remove uses of "register" specifier in
40365 declarations of local variables.
40366
40367 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
40368
40369 * stamp-xgnatug: New stamp file.
40370 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
40371 (ada/doctools/xgnatug): Add $(build_exeext).
40372 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
40373 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
40374
40375 2003-12-17 Ed Falis <falis@gnat.com>
40376
40377 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
40378 eliminate warning.
40379
40380 * a-exextr.adb: Add context clause for
40381 Ada.Exceptions.Last_Chance_Handler.
40382
40383 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
40384
40385 * cstand.adb (Create_Standard): Change the way how the declaration of
40386 the Duration type is created (making it the same way as it is for all
40387 the other standard types).
40388
40389 2003-12-17 Robert Dewar <dewar@gnat.com>
40390
40391 * s-crtl.ads: Fix header format
40392 Change Pure to Preelaborate
40393
40394 2003-12-17 Ed Schonberg <schonberg@gnat.com>
40395
40396 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
40397 the expression type only if it is declared in the current unit.
40398
40399 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
40400 are universal and already analyzed, as can occur in constrained
40401 subcomponents that depend on discriminants, when one constraint is a
40402 subtype mark.
40403
40404 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
40405 type Any_Fixed is legal as the argument of a conversion, if only one
40406 fixed-point type is in context.
40407
40408 2003-12-17 GNAT Script <nobody@gnat.com>
40409
40410 * Make-lang.in: Makefile automatically updated
40411
40412 2003-12-15 Robert Dewar <dewar@gnat.com>
40413
40414 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
40415 sec stack size.
40416
40417 2003-12-15 Vincent Celier <celier@gnat.com>
40418
40419 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
40420 (Gnatchop): Do not set failure status when reporting the number of
40421 warnings.
40422
40423 2003-12-15 Doug Rupp <rupp@gnat.com>
40424
40425 * s-ctrl.ads: New file.
40426
40427 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
40428
40429 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
40430 (GNATBIND_OBJS): Add ada/s-crtl.o.
40431
40432 * Makefile.in [VMS]: Clean up ifeq rules.
40433
40434 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
40435 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
40436 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
40437 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
40438 s-tasdeb.adb: Update copyright.
40439 Import System.CRTL.
40440 Make minor modifications to use System.CRTL declared functions instead
40441 of importing locally.
40442
40443 2003-12-15 GNAT Script <nobody@gnat.com>
40444
40445 * Make-lang.in: Makefile automatically updated
40446
40447 2003-12-11 Ed Falis <falis@gnat.com>
40448
40449 * 5zinit.adb: Clean up.
40450
40451 * 5zintman.adb (Notify_Exception): replaced case statement with a call
40452 to __gnat_map_signal, imported from init.c to support
40453 signal -> exception mappings that depend on the vxWorks version.
40454
40455 * init.c:
40456 Created and exported __gnat_map_signal to support signal -> exception
40457 mapping that is dependent on the VxWorks version.
40458 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
40459
40460 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
40461
40462 * 5wosinte.ads: Link with -mthreads switch.
40463
40464 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
40465
40466 * init.c (__gnat_install_handler [NetBSD]): Set
40467 __gnat_handler_installed, as done on all other platforms.
40468 Remove duplicated code.
40469
40470 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
40471
40472 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
40473
40474 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
40475
40476 * sinfo.ads: Fix inconsistent example code in comment.
40477
40478 2003-12-11 Robert Dewar <dewar@gnat.com>
40479
40480 * a-tiinau.adb: Add a couple of comments
40481
40482 * sem_ch3.adb: Minor reformatting
40483
40484 * sem_prag.adb:
40485 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
40486 Minor reformatting throughout
40487
40488 2003-12-11 Ed Schonberg <schonberg@gnat.com>
40489
40490 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
40491 bounds of a loop, create a separate block in order to generate proper
40492 cleanup actions to prevent memory leaks.
40493
40494 * sem_res.adb (Resolve_Call): After a call to
40495 Establish_Transient_Scope, the call may be rewritten and relocated, in
40496 which case no further processing is needed.
40497
40498 * sem_util.adb: (Wrong_Type): Refine previous fix.
40499 Fixes ACATS regressions.
40500
40501 PR ada/13353
40502 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
40503 be inlined.
40504
40505 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
40506
40507 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
40508 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
40509 obsolete files.
40510
40511 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
40512 (rts-zfp): Ditto.
40513
40514 2003-12-08 Robert Dewar <dewar@gnat.com>
40515
40516 * 7sintman.adb: Minor reformatting
40517
40518 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
40519 standard linker options to get standard libraries linked. We now plan
40520 to provide dummy versions of these libraries to match the appropriate
40521 configurable run-time (e.g. if a library is not needed at all, provide
40522 a dummy empty library).
40523
40524 * targparm.ads: Configurable_Run_Time mode no longer affects linker
40525 options (-L parameters and standard libraries). What we plan to do is
40526 to provide dummy libraries where the libraries are not required.
40527
40528 * gnatbind.adb: Minor comment improvement
40529
40530 2003-12-08 Javier Miranda <miranda@gnat.com>
40531
40532 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
40533 aggregate in the parent. Otherwise constants with limited aggregates
40534 are not supported. Add new formal to pass the component type (Ctype).
40535 It is required to call the corresponding IP subprogram in case of
40536 default initialized components.
40537 (Gen_Assign): In case of default-initialized component, generate a
40538 call to the IP subprogram associated with the component.
40539 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
40540 of aggregate with default initialized components.
40541 (Has_Default_Init_Comps): Improve implementation to recursively check
40542 all the present expressions.
40543
40544 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
40545 to indicate that the initialization call corresponds to a
40546 default-initialized component of an aggregate.
40547 In case of default initialized aggregate with tasks this parameter is
40548 used to generate a null string (this is just a workaround that must be
40549 improved later). In case of discriminants, this parameter is used to
40550 generate a selected component node that gives access to the discriminant
40551 value.
40552
40553 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
40554 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
40555 allocated aggregates with default-initialized components.
40556
40557 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
40558 the box notation is used in positional aggregates.
40559
40560 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
40561
40562 * lib.ads: Fix typo in comment
40563
40564 2003-12-08 Vincent Celier <celier@gnat.com>
40565
40566 * prj.adb (Project_Empty): New component Unkept_Comments
40567 (Scan): Remove procedure; moved to Prj.Err.
40568
40569 * prj.ads (Project_Data): New Boolean component Unkept_Comments
40570 (Scan): Remove procedure; moved to Prj.Err.
40571
40572 * prj-dect.adb: Manage comments for the different declarations.
40573
40574 * prj-part.adb (With_Record): New component Node
40575 (Parse): New Boolean parameter Store_Comments, defaulted to False.
40576 Set the scanner to return ends of line and comments as tokens, if
40577 Store_Comments is True.
40578 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
40579 comments are associated with these nodes. Store the node IDs in the
40580 With_Records.
40581 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
40582 With_Records.
40583 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
40584 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
40585 current project. Call Tree.Restore afterwards. Set the various nodes
40586 for comment storage (Next_End, End_Of_Line, Previous_Line,
40587 Previous_End).
40588
40589 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
40590 defaulted to False.
40591
40592 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
40593 to False. When Truncated is True, truncate the string, never go to the
40594 next line.
40595 (Write_End_Of_Line_Comment): New procedure
40596 (Print): Process comments for nodes N_With_Clause,
40597 N_Package_Declaration, N_String_Type_Declaration,
40598 N_Attribute_Declaration, N_Typed_Variable_Declaration,
40599 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
40600 Process nodes N_Comment.
40601
40602 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
40603 without comments and there are some comments, set the flag
40604 Unkept_Comments to True.
40605 (Scan): If there are comments, set the flag Unkept_Comments to True and
40606 clear the comments.
40607 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
40608 (Next_End_Nodes: New table
40609 (Comment_Zones_Of): New function
40610 (Scan): New procedure; moved from Prj. Accumulate comments in the
40611 Comments table and set end of line comments, comments after, after end
40612 and before end.
40613 (Add_Comments): New procedure
40614 (Save, Restore, Seset_State): New procedures
40615 (There_Are_Unkept_Comments): New function
40616 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
40617 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
40618 procedures.
40619 (First_Comment_After, First_Comment_After_End): New functions
40620 (First_Comment_Before, First_Comment_Before_End): New functions
40621 (Next_Comment): New function
40622 (End_Of_Line_Comment, Follows_Empty_Line,
40623 Is_Followed_By_Empty_Line): New functions
40624 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
40625 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
40626 (Set_Next_Comment): New procedure
40627 (Default_Project_Node): Associate comment before if the node can store
40628 comments.
40629
40630 * scans.ads (Token_Type): New enumeration value Tok_Comment
40631 (Comment_Id): New global variable
40632
40633 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
40634 defaulted to False.
40635 (Scan): Store position of start of comment. If comments are tokens, set
40636 Comment_Id and set Token to Tok_Comment when scanning a comment.
40637 (Set_Comment_As_Token): New procedure
40638
40639 * sinput-p.adb: Update Copyright notice
40640 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
40641 that no longer exists.
40642
40643 2003-12-08 Javier Miranda <miranda@gnat.com>
40644
40645 * sem_aggr.adb: Add dependence on Exp_Tss package
40646 Correct typo in comment
40647 (Resolve_Aggregate): In case of array aggregates set the estimated
40648 type of the aggregate before calling resolve. This is needed to know
40649 the name of the corresponding IP in case of limited array aggregates.
40650 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
40651 in case of default initialized array components.
40652
40653 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
40654 types. Required to give support to limited aggregates in generic
40655 formals.
40656
40657 2003-12-08 Ed Schonberg <schonberg@gnat.com>
40658
40659 * sem_ch3.adb (Check_Initialization): For legality purposes, an
40660 inlined body functions like an instantiation.
40661 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
40662 until bounds are analyzed, to diagnose premature use of type.
40663
40664 * sem_util.adb (Wrong_Type): Improve error message when the type of
40665 the expression is used prematurely.
40666
40667 2003-12-08 GNAT Script <nobody@gnat.com>
40668
40669 * Make-lang.in: Makefile automatically updated
40670
40671 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
40672
40673 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
40674 they are automatically generated by Make-lang.in and cause nothing but
40675 maintenance troubles.
40676
40677 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
40678
40679 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
40680 version of this unit).
40681
40682 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
40683
40684 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
40685 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
40686 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
40687 the body of System.Interrupt_Management common to several targets.
40688 Update copyright notice when appropriate.
40689
40690 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
40691 constant.
40692
40693 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
40694 to ensure that the kernel fills in the interrupted context structure
40695 before calling a signal handler, which is necessary to be able to
40696 unwind past it. Update the copyright notice.
40697
40698 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
40699
40700 * a-elchha.ads: New file.
40701
40702 * a-elchha.adb: New default last chance handler. Contents taken from
40703 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
40704
40705 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
40706 is moved to a-elchha.adb to provide a target-independent default last
40707 chance handler.
40708
40709 * Makefile.rtl: Add a-elchha.o
40710
40711 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
40712
40713 2003-12-05 Ed Schonberg <schonberg@gnat.com>
40714
40715 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
40716 declared in an instance, do not inline the call if the instance is not
40717 frozen yet, to prevent order of elaboration problems.
40718
40719 * sem_prag.adb: Add comments for previous fix.
40720
40721 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
40722
40723 * g-table.adb: Use the right variable in Set_Item.
40724 Update copyright notice.
40725
40726 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
40727
40728 * Makefile.in: Remove unused rules.
40729
40730 2003-12-05 Vincent Celier <celier@gnat.com>
40731
40732 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
40733 -nostdlib. Not needed here after all.
40734
40735 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
40736
40737 PR ada/11724
40738 * adaint.h, adaint.c, g-os_lib.ads:
40739 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
40740 on some platforms (including FreeBSD), it is a 64 bit value.
40741 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
40742
40743 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
40744
40745 * gnatvsn.ads (Library_Version): Now contain only the relevant
40746 version info.
40747 (Verbose_Library_Version): New constant.
40748
40749 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
40750 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
40751 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
40752
40753 * gnatlbr.adb: Clean up: replace Library_Version by
40754 Verbose_Library_Version.
40755
40756 * make.adb, lib-writ.adb, exp_attr.adb:
40757 Clean up: replace Library_Version by Verbose_Library_Version.
40758
40759 * 5lintman.adb: Removed.
40760
40761 * Makefile.in:
40762 Update and simplify computation of LIBRARY_VERSION.
40763 Fix computation of GSMATCH_VERSION.
40764 5lintman.adb is no longer used: replaced by 7sintman.adb.
40765
40766 2003-12-03 Robert Dewar <dewar@gnat.com>
40767
40768 * exp_ch5.adb:
40769 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
40770 name. Modified to consider small non-bit-packed arrays as troublesome
40771 and in need of component-by-component assigment expansion.
40772
40773 2003-12-03 Vincent Celier <celier@gnat.com>
40774
40775 * lang-specs.h: Process nostdlib as nostdinc
40776
40777 * back_end.adb: Update Copyright notice
40778 (Scan_Compiler_Arguments): Process -nostdlib directly.
40779
40780 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
40781
40782 * Makefile.in:
40783 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
40784 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
40785 included in HIE_NONE_TARGET_PAIRS.
40786
40787 2003-12-03 Ed Schonberg <schonberg@gnat.com>
40788
40789 * sem_attr.adb:
40790 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
40791 is legal in an instance, because legality is cheched in the template.
40792
40793 * sem_prag.adb:
40794 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
40795 appplied to an unchecked conversion of a formal parameter.
40796
40797 * sem_warn.adb:
40798 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
40799 variables.
40800
40801 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
40802
40803 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
40804 routines. The second one is new functionality to deal with backtracing
40805 through signal handlers.
40806 (unwind): Split into the two separate subroutines above.
40807 Update the documentation, and deal properly with sizeof (REG) different
40808 from sizeof (void*).
40809
40810 2003-12-01 Nicolas Setton <setton@act-europe.fr>
40811
40812 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
40813 so that the debugger can reliably access the value of the parameter,
40814 and therefore is able to display the exception name when an exception
40815 breakpoint is reached.
40816
40817 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
40818
40819 * fmap.adb: Fix typo in warning message.
40820
40821 * g-socket.ads, g-socket.adb: Make Free a visible instance of
40822 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
40823
40824 2003-12-01 Vincent Celier <celier@gnat.com>
40825
40826 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
40827 ther is no Afile.
40828 (Build_Library): Get the switches only if Default_Switches is declared
40829 in package Binder.
40830
40831 2003-12-01 Ed Schonberg <schonberg@gnat.com>
40832
40833 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
40834 actuals that are indexed components, reanalyze actual to ensure that
40835 packed array references are properly expanded.
40836
40837 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
40838 attempted assignment to a discriminant.
40839
40840 2003-12-01 Robert Dewar <dewar@gnat.com>
40841
40842 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
40843 reformatting.
40844
40845 * switch-c.adb: Minor reformatting of comments
40846
40847 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
40848
40849 * Makefile.in: Clean ups.
40850
40851 2003-12-01 GNAT Script <nobody@gnat.com>
40852
40853 * Make-lang.in: Makefile automatically updated
40854
40855 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
40856
40857 * 5wsystem.ads: Disable zero cost exception, not ready yet.
40858
40859 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
40860
40861 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
40862 to force serialization.
40863
40864 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
40865
40866 * g-socket.ads, g-socket.adb:
40867 Clarify documentation of function Stream. Introduce a Free procedure
40868 to release the returned Stream once it becomes unused.
40869
40870 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
40871
40872 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
40873
40874 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
40875 since NT 4 cannot handle timeout values that are too large,
40876 e.g. DWORD'Last - 1.
40877
40878 2003-11-26 Ed Schonberg <schonberg@gnat.com>
40879
40880 * exp_ch4.adb:
40881 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
40882 in procedure calls and whose expansion must be deferred.
40883
40884 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
40885 is in exp_ch4.
40886
40887 * sem_ch3.adb:
40888 (Build_Derived_Array_Type): Create operator for unconstrained type
40889 if ancestor is unconstrained.
40890
40891 2003-11-26 Vincent Celier <celier@gnat.com>
40892
40893 * make.adb (Project_Object_Directory): New global variable
40894 (Change_To_Object_Directory): New procedure
40895 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
40896 of Change_Dir directly. Do not change working directory to object
40897 directory of main project after each compilation.
40898 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
40899 directly.
40900 Change to object directory of main project before binding step.
40901 (Initialize): Initialize Project_Object_Directory to No_Project
40902
40903 * mlib-prj.adb:
40904 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
40905 binding a Stand-Alone Library.
40906
40907 * output.adb: Update Copyright notice
40908 (Write_Char): Output buffer when full
40909
40910 2003-11-26 Robert Dewar <dewar@gnat.com>
40911
40912 * sem_ch13.adb: (Check_Size): Reset size if size is too small
40913
40914 * sem_ch13.ads:
40915 (Check_Size): Fix documentation to include bit-packed array case
40916
40917 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
40918
40919 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
40920
40921 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
40922
40923 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
40924
40925 PR ada/13142
40926 * utils.c (init_gigi_decls): Change name of built-in setjmp to
40927 __builtin_setjmp, since this is apparently needed by recent
40928 non Ada changes.
40929
40930 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40931
40932 * adadecode.c: Only include ctype.h if not IN_GCC.
40933 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
40934
40935 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
40936
40937 * Makefile.in:
40938 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
40939 signals and interrupts.
40940
40941 * 5zintman.ads: New File.
40942
40943 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
40944 add exception signals to the set of unmasked signals.
40945
40946 * 5ztaprop.adb:
40947 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
40948 between signals and interrupts.
40949 Add to Unblocked_Signal_Mask the set of signals that are in
40950 Keep_Unmasked.
40951
40952 * 7sinmaop.adb:
40953 Adding a check to see whether the Interrupt_ID we want to unmask is in
40954 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
40955 reason is that the index type of the Keep_Unmasked array is not always
40956 Interrupt_ID; it may be a subtype of Interrupt_ID.
40957
40958 2003-11-24 Gary Dismukes <dismukes@gnat.com>
40959
40960 * exp_util.adb:
40961 (Remove_Side_Effects): Condition constantness of object created for a
40962 an unchecked type conversion on the constantness of the expression
40963 to ensure the correct value for 'Constrained when passing components
40964 of view-converted class-wide objects.
40965
40966 2003-11-24 Robert Dewar <dewar@gnat.com>
40967
40968 * par-load.adb (Load): Improve handling of misspelled and missing units
40969 Removes several cases of compilation abandoned messages
40970
40971 * lib.adb: (Remove_Unit): New procedure
40972
40973 * lib.ads: (Remove_Unit): New procedure
40974
40975 * lib-load.adb: Minor reformatting
40976
40977 2003-11-24 Vincent Celier <celier@gnat.com>
40978
40979 * make.adb:
40980 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
40981 (Marking_Label): Label to mark processed source files. Incremented for
40982 each executable.
40983 (Gnatmake): Increase Marking_Labet for each executable
40984 (Is_Marked): Compare against marking label
40985 (Mark): Mark with marking label
40986
40987 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
40988
40989 * s-thread.ads:
40990 Move the declaration of the TSD for System.Threads to System.Soft_Links.
40991 Add some comments.
40992
40993 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
40994 (rts-cert): build a single relocatable object for the run-time lib.
40995 Fix perms.
40996
40997 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
40998
40999 * Make-lang.in:
41000 Use gnatls rather than gcc to obtain the location of GNAT RTL for
41001 crosstools build.
41002
41003 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
41004
41005 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
41006 can not use it as before (that is, as a variable) when dumping it into
41007 the tree file. Add a local variable to store the result of this
41008 function and to be used as the string to be written into the tree.
41009
41010 * scn.adb (Initialize_Scanner): Add comments explaining the recent
41011 changes.
41012
41013 * sinput.adb (Source_First, Source_Last): In case of
41014 Internal_Source_File, replace returning attributes of
41015 Internal_Source_Ptr (which is wrong) with returning attributes of
41016 Internal_Source.
41017
41018 2003-11-24 Ed Schonberg <schonberg@gnat.com>
41019
41020 * sem_ch3.adb:
41021 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
41022 used for implicit concatenation operators.
41023 Code cleanup.
41024
41025 * sem_elab.adb:
41026 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
41027 task bodies that are in the scope of a Suppress pragma.
41028 (Check_A Call): Use the flag to prevent spurious elaboration checks.
41029
41030 * sinfo.ads, sinfo.adb:
41031 New flag No_Elaboration_Check on function/procedure calls, to properly
41032 suppress checks on calls in task bodies that are within a local suppress
41033 pragma.
41034
41035 * exp_ch4.adb:
41036 (Expand_Concatenate_Other): Use the proper integer type for the
41037 expression for the upper bound, to avoid universal_integer computations
41038 when possible.
41039
41040 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
41041
41042 * .cvsignore: Delete.
41043
41044 2003-11-21 Andreas Schwab <schwab@suse.de>
41045
41046 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
41047
41048 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
41049
41050 * 5wsystem.ads: Enable zero cost exception.
41051
41052 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
41053
41054 * 5ztiitho.adb: Remove an unreferenced variable.
41055
41056 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
41057
41058 * adaint.c: For FreeBSD, use mkstemp.
41059
41060 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
41061
41062 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
41063
41064 2003-11-21 Robert Dewar <dewar@gnat.com>
41065
41066 * bld.adb: Remove useless USE of gnatvsn
41067
41068 * gnatchop.adb: Minor reformatting
41069 Clean up version handling to be more consistent
41070
41071 * gnatxref.adb: Minor reformatting
41072
41073 * gprcmd.adb: Minor reformatting
41074 Fix output of copyright to be more consistent with other tools
41075
41076 2003-11-21 Vincent Celier <celier@gnat.com>
41077
41078 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
41079
41080 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
41081
41082 * atree.adb (Initialize): Add initializations for global variables
41083 used in New_Copy_Tree.
41084
41085 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
41086 Internal_Source_File as the actual).
41087 Put the set of statements creating Any_Character before the set of
41088 statements creating Any_Array to have Any_Character fully initialized
41089 when it is used in creating Any_Array.
41090
41091 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
41092 not call Scan in case if the actual is Internal_Source_File
41093 Add 2003 to copyright note.
41094
41095 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
41096 processing Internal_Source_File.
41097
41098 * types.ads: Add the constant Internal_Source_File representing the
41099 source buffer for artificial source-code-like strings created within
41100 the compiler (the definition of Source_File_Index is changed).
41101
41102 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
41103
41104 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
41105 56system.ads: New file, FreeBSD version.
41106
41107 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
41108
41109 * Make-lang.in (ada.extraclean): Delete.
41110
41111 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
41112
41113 * gnatmem.adb: Clean up verbose output.
41114
41115 * gprcmd.adb: Change copyright to FSF.
41116
41117 2003-11-19 Vincent Celier <celier@gnat.com>
41118
41119 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
41120 and Version (ignored).
41121
41122 * symbols.ads: (Policy): New type
41123 (Initialize): New parameter Reference, Symbol_Policy and
41124 Library_Version.
41125 Remove parameter Force.
41126 Minor reformatting.
41127
41128 * snames.ads, snames.adbadb: New standard names
41129 Library_Reference_Symbol_File and Library_Symbol_Policy
41130
41131 * mlib-prj.adb:
41132 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
41133 project.
41134
41135 * mlib-tgt.adb:
41136 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
41137
41138 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
41139
41140 * prj.adb: (Project_Empty): New component Symbol_Data
41141
41142 * prj.ads: (Policy, Symbol_Record): New types
41143 (Project_Data): New component Symbol_Data
41144
41145 * prj-attr.adb:
41146 New attributes Library_Symbol_File, Library_Symbol_Policy and
41147 Library_Reference_Symbol_File.
41148
41149 * prj-nmsc.adb:
41150 (Ada_Check): When project is a Stand-Alone library project, process
41151 attribute Library_Symbol_File, Library_Symbol_Policy and
41152 Library_Reference_Symbol_File.
41153
41154 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
41155 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
41156 5sml-tgt.adb (Build_Dynamic_Library): New parameter
41157 Symbol_Data (ignored).
41158
41159 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
41160 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
41161 functions Option_File_Name and Version_String. Set new options of
41162 gnatsym related to symbol file, symbol policy and reference symbol
41163 file.
41164
41165 * 5vsymbol.adb:
41166 Extensive modifications to take into account the reference symbol file,
41167 the symbol policy, the library version and to put in the symbol file the
41168 minor and major IDs.
41169
41170 * bld.adb (Process_Declarative_Items): Put second argument of
41171 gprcmd to_absolute between single quotes, to avoid problems with
41172 Windows.
41173
41174 * bld-io.adb: Update Copyright notice.
41175 (Flush): Remove last character of a line, if it is a back slash, to
41176 avoid make problems.
41177
41178 * gnatsym.adb:
41179 Implement new scheme with reference symbol file and symbol policy.
41180
41181 * g-os_lib.ads: (Is_Directory): Clarify comment
41182
41183 2003-11-19 Robert Dewar <dewar@gnat.com>
41184
41185 * atree.adb: Move New_Copy_Tree global variables to head of package
41186
41187 * errout.adb: Minor reformatting
41188
41189 2003-11-19 Javier Miranda <miranda@gnat.com>
41190
41191 * sem_ch4.adb: (Diagnose_Call): Improve error message.
41192 Add reference to Ada0Y (AI-50217)
41193
41194 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
41195 sem_util.adb: Add reference to AI-50217
41196
41197 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
41198
41199 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
41200
41201 * sem_aggr.adb: Complete documentation of AI-287 changes
41202
41203 * par-ch4.adb: Document previous changes.
41204
41205 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
41206 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
41207 Ada0Y (AI-50217)
41208
41209 * exp_aggr.adb: Add references to AI-287 in previous changes
41210
41211 2003-11-19 Ed Schonberg <schonberg@gnat.com>
41212
41213 * exp_ch6.adb:
41214 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
41215 in the rewriting is the result of an inlined call.
41216
41217 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
41218 parameter is a type conversion, use original node to construct the
41219 post-call assignment, because expression may have been rewritten, e.g.
41220 if it is a packed array.
41221
41222 * sem_attr.adb:
41223 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
41224 body, just as it is in an instance.
41225 Categorization routines
41226
41227 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
41228 Instantiate_Object): Set proper sloc reference for message on missing
41229 actual.
41230
41231 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
41232
41233 * Makefile.in: Add FreeBSD libgnat pairs.
41234
41235 * usage.adb: Fix typo in usage message.
41236
41237 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
41238
41239 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
41240 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
41241 pragma Thread_Body.
41242 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
41243
41244 * s-thread.adb: This file is now a dummy implementation of
41245 System.Thread.
41246
41247 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
41248
41249 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
41250
41251 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
41252
41253 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41254 instanciation references in the parent type description.
41255
41256 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41257
41258 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
41259
41260 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
41261 TYPE_PRECISION directly from esize.
41262
41263 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
41264
41265 * cstreams.c:
41266 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
41267
41268 * init.c: Initialization routines for FreeBSD
41269
41270 * link.c: Link info for FreeBSD
41271
41272 * sysdep.c: Add the case of FreeBSD
41273
41274 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
41275
41276 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
41277 already called in System.Threads.
41278
41279 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
41280 environment task, as it has been moved to System.Threads.Initialization.
41281
41282 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
41283
41284 * adaint.c (__gnatlib_install_locks): Only reference
41285 __gnat_install_locks on VMS, since other platforms can avoid using
41286 --enable-threads=gnat
41287
41288 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41289
41290 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
41291
41292 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
41293 TYPE_PACKED_ARRAY_TYPE_P.
41294 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
41295
41296 Part of PR ada/12806
41297 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
41298 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
41299
41300 2003-11-17 Vincent Celier <celier@gnat.com>
41301
41302 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
41303 to False.
41304 Do not set exit status to Failure when Warning is True.
41305 (Gnatchop): Make errors "no compilation units found" and
41306 "no source files written" warnings only.
41307
41308 * make.adb (Gnatmake): When using a project file, set
41309 Look_In_Primary_Dir to False.
41310 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
41311 and Local_Configuration_Pragmas in the project where they are declared
41312 not an extending project which might have inherited them.
41313
41314 * osint.adb (Locate_File): If Name is already an absolute path, do not
41315 look for a directory.
41316
41317 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
41318 -gnats (Check_Syntax) is used, issue only a warning, not an error.
41319
41320 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
41321 in objects of type Variable_Value.
41322
41323 * prj.ads: (Variable_Value): New component Project
41324
41325 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
41326 is in a project extended by Project.
41327
41328 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
41329 Project of Variable_Values to this new parameter value.
41330 (Expression): Set component Project of Variable_Values.
41331 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
41332 Set the component Project in array elements.
41333
41334 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
41335
41336 * errout.adb: (Initialize): Add initialization for error nodes.
41337
41338 * sem_ch12.adb (Initialize): Add missing initializations for
41339 Exchanged_Views and Hidden_Entities.
41340
41341 2003-11-17 Ed Schonberg <schonberg@gnat.com>
41342
41343 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
41344 already instantiated tree for use in subsequent inlining.
41345 (Analyze_Associations, Instantiate_Formal_Subprogram,
41346 Instantiate_Object): improve error message for mismatch in
41347 instantiations.
41348
41349 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
41350 instantiations of subprograms declared in instances.
41351
41352 2003-11-17 Javier Miranda <miranda@gnat.com>
41353
41354 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
41355 executed only under the Extensions_Allowed flag.
41356
41357 2003-11-17 Robert Dewar <dewar@gnat.com>
41358
41359 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
41360 zeroes suppressed.
41361 (Address_Image): Fix bug of returning 0x instead of 0x0
41362 Minor reformatting (function specs).
41363
41364 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
41365 (missed case of 33-63)
41366
41367 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
41368
41369 * s-thread.adb: Add comments for pragma Restriction
41370
41371 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
41372 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
41373
41374 2003-11-17 Ed Falis <falis@gnat.com>
41375
41376 * s-thread.adb: Added No_Tasking restriction for this implementation.
41377
41378 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
41379
41380 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41381 instanciation references in the parent type description.
41382
41383 2003-11-17 GNAT Script <nobody@gnat.com>
41384
41385 * Make-lang.in: Makefile automatically updated
41386
41387 2003-11-16 Jason Merrill <jason@redhat.com>
41388
41389 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
41390 and TAGS files that include them for each front end.
41391
41392 2003-11-14 Andreas Jaeger <aj@suse.de>
41393
41394 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
41395 is the canonical version.
41396 * misc.c (gnat_handle_option): Likewise.
41397
41398 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
41399
41400 * 5nsystem.ads: New file for x86_64-linux-gnu.
41401
41402 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
41403
41404 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
41405
41406 * comperr.adb: Fix logic in previous change.
41407
41408 2003-11-13 Vincent Celier <celier@gnat.com>
41409
41410 * 5bml-tgt.adb (Build_Dynamic_Library): Use
41411 Osint.Include_Dir_Default_Prefix instead of
41412 Sdefault.Include_Dir_Default_Name.
41413
41414 * gnatlbr.adb: Update Copyright notice
41415 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
41416 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
41417 instead of Sdefault.Object_Dir_Default_Name
41418
41419 * gnatlink.adb:
41420 (Process_Binder_File): Never suppress the option following -Xlinker
41421
41422 * mdll-utl.adb:
41423 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
41424 Sdefault.Object_Dir_Default_Name.
41425
41426 * osint.ads, osint.adb:
41427 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
41428 Minor reformatting.
41429
41430 * vms_conv.ads: Minor reformating
41431 Remove GNAT STANDARD and GNAT PSTA
41432
41433 * vms_conv.adb:
41434 Allow GNAT MAKE to have several files on the command line.
41435 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
41436 Sdefault.Object_Dir_Default_Name.
41437 Minor Reformating
41438 Remove data for GNAT STANDARD
41439
41440 * vms_data.ads:
41441 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
41442 Remove data for GNAT STANDARD
41443 Remove options and documentation for -gnatwb/-gnatwB: these warning
41444 options no longer exist.
41445
41446 2003-11-13 Ed Falis <falis@gnat.com>
41447
41448 * 5zthrini.adb: (Init_RTS): Made visible
41449
41450 * 5zthrini.adb:
41451 (Register): Removed unnecessary call to taskVarGet that checked whether
41452 an ATSD was already set as a task var for the argument thread.
41453
41454 * s-thread.adb:
41455 Updated comment to reflect that this is a VxWorks version
41456 Added context clause for System.Threads.Initialization
41457 Added call to System.Threads.Initialization.Init_RTS
41458
41459 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
41460
41461 * 5zthrini.adb:
41462 (Init_RTS): New procedure, for the initialization of the run-time lib.
41463
41464 * s-thread.adb:
41465 Remove dependancy on System.Init, so that this file can be used in the
41466 AE653 sequential run-time lib.
41467
41468 2003-11-13 Robert Dewar <dewar@gnat.com>
41469
41470 * bindgen.adb: Minor reformatting
41471
41472 2003-11-13 Ed Schonberg <schonberg@gnat.com>
41473
41474 * checks.adb:
41475 (Apply_Discriminant_Check): Do no apply check if target type is derived
41476 from source type with no applicable constraint.
41477
41478 * lib-writ.adb:
41479 (Ensure_System_Dependency): Do not apply the style checks that may have
41480 been specified for the main unit.
41481
41482 * sem_ch8.adb:
41483 (Find_Selected_Component): Further improvement in error message, with
41484 RM reference.
41485
41486 * sem_res.adb:
41487 (Resolve): Handle properly the case of an illegal overloaded protected
41488 procedure.
41489
41490 2003-11-13 Javier Miranda <miranda@gnat.com>
41491
41492 * exp_aggr.adb:
41493 (Has_Default_Init_Comps): New function to check the presence of
41494 default initialization in an aggregate.
41495 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
41496 extension aggregate of a limited record. In addition, a new formal
41497 was added to do not initialize the record controller (if any) during
41498 this recursive expansion of ancestors.
41499 (Init_Controller): Add support for limited record components.
41500 (Expand_Record_Aggregate): In case of default initialized components
41501 convert the aggregate into a set of assignments.
41502
41503 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
41504 describing the new syntax.
41505 Nothing else needed to be done because this subprogram delegates part of
41506 its work to P_Precord_Or_Array_Component_Association.
41507 (P_Record_Or_Array_Component_Association): Give support to the new
41508 syntax for default initialization of components.
41509
41510 * sem_aggr.adb:
41511 (Resolve_Aggregate): Relax the strictness of the frontend in case of
41512 limited aggregates.
41513 (Resolve_Record_Aggregate): Give support to default initialized
41514 components.
41515 (Get_Value): In case of default initialized components, duplicate
41516 the corresponding default expression (from the record type
41517 declaration). In case of default initialization in the *others*
41518 choice, do not check that all components have the same type.
41519 (Resolve_Extension_Aggregate): Give support to limited extension
41520 aggregates.
41521
41522 * sem_ch3.adb:
41523 (Check_Initialization): Relax the strictness of the front-end in case
41524 of aggregate and extension aggregates. This test is now done in
41525 Get_Value in a per-component manner.
41526
41527 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
41528 expression corresponds to a limited aggregate. This test is now done
41529 in Get_Value.
41530
41531 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
41532 Box_Present flag.
41533
41534 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
41535 present in an N_Component_Association node
41536
41537 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
41538
41539 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
41540 type-conformant entry only if they are homographs.
41541
41542 2003-11-13 GNAT Script <nobody@gnat.com>
41543
41544 * Make-lang.in: Makefile automatically updated
41545
41546 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41547
41548 * adadecode.c: Use <> form of include for ctype.h.
41549 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
41550
41551 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41552
41553 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
41554 Works around PR middle-end/6552.
41555
41556 2003-11-10 Ed Falis <falis@gnat.com>
41557
41558 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
41559
41560 * 5zinit.adb: (Install_Handler): Moved back to spec
41561 (Install_Signal_Handlers): Deleted
41562
41563 * 5zthrini.adb: Added context clause for System.Storage_Elements
41564 (Register): Only handles creation of taskVar; initialization moved to
41565 Thread_Body_Enter.
41566 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
41567 Added declaration of environment task secondary stack and
41568 initialization.
41569
41570 * s-thread.adb: Implement bodies for thread body processing
41571
41572 * s-thread.ads:
41573 Added comment identifying supported targets for pragma Thread_Body.
41574
41575 2003-11-10 Pascal Obry <obry@gnat.com>
41576
41577 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
41578 GNAT_MAX_PATH_LEN.
41579
41580 * s-fileio.adb:
41581 (Open): Properly check for string length before copying into the buffer.
41582 Raises Name_Error if buffer is too small. Note that this was a potential
41583 buffer overflow.
41584
41585 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
41586
41587 * bindgen.adb, comperr.adb: Code clean ups.
41588 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
41589
41590 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
41591
41592 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
41593
41594 2003-11-10 Vincent Celier <celier@gnat.com>
41595
41596 * gprcmd.adb:
41597 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
41598 installation.
41599
41600 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
41601
41602 * prj.adb: (Project_Empty): Add new boolean component Virtual
41603
41604 * prj.ads: (Virtual_Prefix): New constant string
41605 (Project_Data): New boolean component Virtual
41606
41607 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
41608 a library project is extended by a virtual extending project.
41609
41610 * prj-part.adb:
41611 Modifications throughout to implement extending-all project, including:
41612 (Virtual_Hash, Processed_Hash): New hash tables
41613 (Create_Virtual_Extending_Project): New procedure
41614 (Look_For_Virtual_Projects_For): New procedure
41615
41616 * prj-proc.adb:
41617 (Process): After checking the projects, if main project is an
41618 extending-all project, set the object directory of all virtual extending
41619 project to the object directory of the main project.
41620 Adjust error message when a virtual extending project has the same
41621 object directory as an project being extended.
41622 (Recursive_Process): If name starts with the virtual prefix, set Virtual
41623 to True in the project data.
41624
41625 * prj-tree.adb:
41626 (Default_Project_Node): Add new boolean component Extending_All
41627 (Is_Extending_All): New function
41628 (Set_Is_Extending_All): New procedure
41629
41630 * prj-tree.ads: (Is_Extending_All): New function
41631 (Set_Is_Extending_All): New procedure
41632 (Project_Node_Record): New boolean component Extending_All
41633
41634 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
41635
41636 * vms_data.ads:
41637 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
41638
41639 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
41640 "gprcmd prefix" to define it.
41641
41642 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
41643
41644 * einfo.ads: Fix a typo and remove an extraneous word in comments.
41645
41646 * lib-load.adb:
41647 (Create_Dummy_Package_Unit): Set the scope of the entity for the
41648 created dummy package to Standard_Standard, not to itself, to
41649 defend other parts of the front-end against encoutering a cycle in
41650 the scope chain.
41651
41652 * sem_ch10.adb:
41653 (Analyze_With_Clause): When setting the entities for the successive
41654 N_Expanded_Names that constitute the name of a child unit, do not
41655 attempt to go further than Standard_Standard in the chain of scopes.
41656 This case arises from the placeholder units created by
41657 Create_Dummy_Package_Unit in the case of a with_clause for a
41658 nonexistent child unit.
41659
41660 2003-11-10 Ed Schonberg <schonberg@gnat.com>
41661
41662 * exp_ch6.adb:
41663 (Expand_Thread_Body): Place subprogram on scope stack, so that new
41664 declarations are given the proper scope.
41665
41666 * sem_ch13.adb:
41667 (Check_Expr_Constants): Reject an expression that contains a constant
41668 created during expansion, and that appears after the object to which
41669 the address clause applies.
41670
41671 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
41672 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
41673 that uses 'Range of a function call with controlled components, so
41674 that the function result can be finalized before starting the loop.
41675
41676 * sem_ch8.adb:
41677 (Find_Selected_Component): Improve error message when prefix is
41678 an implicit dereference of an incomplete type.
41679
41680 2003-11-10 Robert Dewar <dewar@gnat.com>
41681
41682 * opt.ads: New Print_Standard flag for -gnatS switch
41683
41684 * sem_ch13.adb: Remove some additional checks for unaligned arrays
41685
41686 * cstand.adb (Create_Standard): Print out package standard if -gnatS
41687 switch set
41688
41689 * debug.adb: Update doc for -gnatds to discuss relationship with new
41690 -gnatS flag
41691
41692 * sinfo.adb: Add new field Entity_Or_Associated_Node
41693
41694 * sinfo.ads: Add new field Entity_Or_Associated_Node
41695 Update documentation for Associated_Node and Entity fields to clarify
41696 relationship and usage.
41697
41698 * sprint.adb:
41699 (Write_Id): Properly process Associated_Node field in generic template
41700
41701 * switch-c.adb:
41702 Recognize new -gnatS switch for printing package Standard
41703 This replaces gnatpsta
41704
41705 * usage.adb:
41706 Add line for new -gnatS switch for printing package Standard
41707 This replaces gnatpsta
41708
41709 2003-11-10 Andreas Jaeger <aj@suse.de>
41710
41711 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
41712 integer.
41713
41714 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
41715
41716 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
41717 by gnat1.
41718
41719 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
41720
41721 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
41722 no longer needed.
41723
41724 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
41725
41726 * sysdep.c: Add handling of cygwin.
41727
41728 2003-11-10 GNAT Script <nobody@gnat.com>
41729
41730 * Make-lang.in: Makefile automatically updated
41731
41732 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
41733
41734 PR 12950
41735 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
41736 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
41737 Replace GNAT_ROOT by GCC_ROOT.
41738
41739 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
41740
41741 2003-11-06 Zack Weinberg <zack@codesourcery.com>
41742
41743 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
41744 and update for changed meaning of GET_MODE_BITSIZE.
41745
41746 2003-11-04 Doug Rupp <rupp@gnat.com>
41747
41748 * sysdep.c: Problem discovered during IA64 VMS port.
41749 [VMS] #include <unixio.h> to get proper prototypes.
41750
41751 * adaint.c:
41752 Issues discovered/problems fixed during IA64 VMS port.
41753 [VMS] #define _POSIX_EXIT for proper semantics.
41754 [VMS] #include <unixio.h> for proper prototypes.
41755 [VMS] (fork): #define IA64 version.
41756 (__gnat_os_exit): Remove unnecessary VMS specific code.
41757
41758 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41759
41760 Part of PR ada/12806
41761 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
41762 tree, not integer.
41763
41764 * decl.c:
41765 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
41766 not integer.
41767
41768 * targtyps.c, decl.c, misc.c,
41769 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
41770 routines to work around change in FP sizing semantics in GCC.
41771
41772 * utils.c:
41773 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
41774
41775 * gigi.h: (enumerate_modes): New function.
41776
41777 * Make-lang.in: (ada/misc.o): Add real.h.
41778
41779 * misc.c: (enumerate_modes): New function.
41780
41781 2003-11-04 Robert Dewar <dewar@gnat.com>
41782
41783 * 3vtrasym.adb: Minor reformatting
41784 Use terminology encoded/decoded name, rather than C++ specific notion
41785 of mangling (this is the terminology used throughout GNAT).
41786
41787 * einfo.h: Regenerated
41788
41789 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
41790
41791 * exp_ch6.adb:
41792 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
41793
41794 * par-prag.adb: Add dummy entry for Thread_Body pragma
41795
41796 * rtsfind.ads:
41797 Add entries for System.Threads entities for thread body processing
41798
41799 * sem_attr.adb:
41800 (Analyze_Pragma, Access attributes): Check these are not applied to a
41801 thread body, since this is not permitted
41802
41803 * sem_prag.adb: Add processing for Thread_Body pragma.
41804 Minor comment fix.
41805
41806 * sem_res.adb:
41807 (Resolve_Call): Check for incorrect attempt to call a thread body
41808 procedure with a direct call.
41809
41810 * snames.ads, snames.adb: Add entry for Thread_Body pragma
41811 Add names associated with thread body expansion
41812
41813 * snames.h: Add entry for Thread_Body pragma
41814
41815 * s-thread.adb: Add entries for thread body processing
41816 These are dummy bodies so far
41817
41818 * s-thread.ads: Add documentation on thread body handling.
41819 Add entries for thread body processing.
41820
41821 2003-11-04 Javier Miranda <miranda@gnat.com>
41822
41823 * sem_ch10.adb:
41824 (Build_Limited_Views): Return after posting an error in case of limited
41825 with_clause on subprograms, generics, instances or generic renamings
41826 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
41827 on subprograms, generics, instances or generic renamings
41828
41829 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
41830
41831 * raise.c (setup_to_install): Correct mistake in last revision; two
41832 arguments out of order.
41833
41834 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
41835 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
41836 notice, missed in previous change.
41837 Remove trailing blanks and other style errors introduced in previous
41838 change.
41839
41840 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
41841
41842 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
41843 rid of the wrapper for a LJM type, ensuring we don't do that if the
41844 field is addressable. This avoids potential low level type view
41845 mismatches later on, for instance in a by-reference argument passing
41846 process.
41847
41848 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41849
41850 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
41851 aligned at byte boundary.
41852
41853 2003-11-04 Joel Brobecker <brobecker@gnat.com>
41854
41855 * decl.c (components_to_record): Do not delete the empty variants from
41856 the end of the union type.
41857
41858 2003-11-04 Ed Schonberg <schonberg@gnat.com>
41859
41860 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
41861 operation for a derived type, an explicit declaration may use a local
41862 subtype of Boolean.
41863
41864 2003-11-04 Vincent Celier <celier@gnat.com>
41865
41866 * make.adb (Gnatmake): Allow main sources on the command line with a
41867 library project when it is only for compilation (no binding or
41868 linking).
41869
41870 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41871
41872 * Makefile.in: Remove many duplicate variables.
41873
41874 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
41875
41876 * Make-lang.in (dvi): Move targets to $(docobjdir).
41877 (gnat_ug_vms.dvi): Simplify rule and adjust target.
41878 (gnat_ug_wnt.dvi): Likewise.
41879 (gnat_ug_unx.dvi): Likewise.
41880 (gnat_ug_vxw.dvi): Likewise.
41881 (gnat_rm.dvi): Likewise.
41882 (gnat-style.dvi): Likewise.
41883
41884 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
41885
41886 * gigi.h: Missed commit from update for C90.
41887
41888 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
41889
41890 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
41891
41892 2003-10-31 Andreas Schwab <schwab@suse.de>
41893
41894 * raise.c (get_action_description_for): Fix typo in last change.
41895
41896 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
41897
41898 PR ada/12761
41899 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
41900 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
41901
41902 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
41903
41904 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
41905 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
41906 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
41907 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
41908 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
41909
41910 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
41911
41912 * 3vtrasym.adb:
41913 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
41914 numbers when symbol name is too long.
41915
41916 2003-10-30 Ed Falis <falis@gnat.com>
41917
41918 * g-signal.ads, g-signal.adb: New files
41919
41920 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
41921
41922 * Makefile.rtl: Introduce GNAT.Signals
41923
41924 2003-10-30 Robert Dewar <dewar@gnat.com>
41925
41926 * freeze.adb: Minor reformatting
41927
41928 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
41929
41930 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
41931 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
41932 New handling of Id_Check parameter to improve recognition of keywords
41933 used as identifiers.
41934 Update copyright notice to include 2003
41935
41936 2003-10-29 Robert Dewar <dewar@gnat.com>
41937
41938 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
41939 sem_ch10.adb: Minor reformatting
41940
41941 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
41942 (Expand_Assign_Record): Test right hand side for bit unaligned as well
41943
41944 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
41945
41946 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
41947 Support for TBK$SYMBOLIZE-based symbolic traceback.
41948
41949 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
41950
41951 * exp_disp.adb:
41952 Revert previous change, that did not work well when pragma No_Run_Time
41953 was used in conjunction with a run-time other than ZFP.
41954
41955 2003-10-29 Vincent Celier <celier@gnat.com>
41956
41957 * make.adb:
41958 (Gnatmake): When there are no Ada mains in attribute Main, disable the
41959 bind and link steps only is switch -z is not used.
41960
41961 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
41962
41963 * Makefile.generic: Remove duplicated setting of CC.
41964
41965 * Makefile.prolog: Set CC to gcc by default, to override make's
41966 default (cc).
41967
41968 * einfo.h: Regenerated.
41969
41970 2003-10-29 Ed Schonberg <schonberg@gnat.com>
41971
41972 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
41973 current body, after compiling subunit.
41974
41975 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
41976 when in deleted code, because gigi needs properly ordered freeze
41977 actions to annotate types.
41978
41979 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
41980 prevent the premature freezing of record type that contains
41981 subcomponents with a private type that does not yet have a completion.
41982
41983 2003-10-29 Javier Miranda <miranda@gnat.com>
41984
41985 * sem_ch12.adb:
41986 (Analyze_Package_Instantiation): Check that instances can not be used in
41987 limited with_clauses.
41988
41989 * sem_ch8.adb:
41990 (Analyze_Package_Renaming): Check that limited withed packages cannot
41991 be renamed. Improve text on error messages related to limited
41992 with_clauses.
41993
41994 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
41995
41996 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
41997 Update copyright notice.
41998
41999 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
42000 (Install_Limited_Context_Clauses): New subprogram that isolates all the
42001 checks required for limited context_clauses and installs the limited
42002 view.
42003 (Install_Limited_Withed_Unit): Complete its documentation.
42004 (Analyze_Context): Check that limited with_clauses are only allowed in
42005 package specs.
42006 (Install_Context): Call Install_Limited_Context_Clauses after the
42007 parents have been installed.
42008 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
42009 package as 'From_With_Type'; this mark indicates that the limited view
42010 is installed. Used to check bad usages of limited with_clauses.
42011 (Build_Limited_Views): Do not add shadow entities to the scope's list
42012 of entities. Do not add real entities to the Non_Limited_Views chain.
42013 Improve error notification.
42014 (Remove_Context_Clauses): Remove context clauses in two phases:
42015 limited views first and regular views later (to maintain the
42016 stack model).
42017 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
42018 its visible entities.
42019
42020 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
42021
42022 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
42023 with any type that Is_Fixed_Point_Type.
42024
42025 * sinfo.ads: Fix documentation for Associated_Node attribute.
42026
42027 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
42028
42029 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
42030 both '-gnatc' and '-gnatt' are specified.
42031
42032 * atree.adb (Initialize): Add initialization for Node_Count (set to
42033 zero).
42034
42035 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42036
42037 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
42038 do not consider as Pure.
42039
42040 Part of implementation of function-at-a-time:
42041
42042 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
42043 (tree_transform): Add new argument to build_component_ref.
42044 (tree_transform, case N_Assignment_Statement): Make and return an
42045 EXPR_STMT.
42046 (tree_transform): If result IS_STMT, set flags and return it.
42047 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42048
42049 * utils2.c (build_simple_component_ref, build_component_ref): Add new
42050 arg, NO_FOLD_P.
42051 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
42052 (build_allocator): Likewise.
42053
42054 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
42055 Add new arg to build_component_ref.
42056 (maybe_unconstrained_array, unchecked_convert): Likewise.
42057
42058 * ada-tree.def (EXPR_STMT): New code.
42059
42060 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
42061
42062 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
42063 build_component_ref calls.
42064
42065 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
42066
42067 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42068 (build_component_ref): Add new argument, NO_FOLD_P.
42069
42070 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
42071
42072 * Makefile.generic: Add missing substitution on object_deps handling.
42073
42074 PR ada/5909
42075 * Make-lang.in (check-ada): Enable ACATS test suite.
42076
42077 2003-10-27 Robert Dewar <dewar@gnat.com>
42078
42079 * exp_ch3.adb:
42080 (Freeze_Array_Type): We do not need an initialization routine for types
42081 derived from String or Wide_String. They should be treated the same
42082 as String and Wide_String themselves. This caused problems with the
42083 use of Initialize_Scalars.
42084
42085 * exp_ch5.adb:
42086 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
42087 composites. This allows use of component clauses that are not byte
42088 aligned.
42089
42090 * sem_prag.adb:
42091 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
42092 is an attempt to pack an array of atomic objects.
42093
42094 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
42095
42096 2003-10-27 Pascal Obry <obry@gnat.com>
42097
42098 * g-dirope.adb:
42099 (Basename): Check for drive letters in a pathname only on DOS based OS.
42100
42101 2003-10-27 Vincent Celier <celier@gnat.com>
42102
42103 * make.adb:
42104 (Gnatmake): When unable to change dir to the object dir, display the
42105 content of the parent dir of the obj dir, to try to understand why this
42106 happens.
42107
42108 2003-10-27 GNAT Script <nobody@gnat.com>
42109
42110 * Make-lang.in: Makefile automatically updated
42111
42112 2003-10-27 Ed Schonberg <schonberg@gnat.com>
42113
42114 * sem_ch12.adb:
42115 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
42116 should not be done in Save/Restore_Scope_Stack, because it is performed
42117 locally.
42118
42119 * sem_ch8.adb:
42120 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42121 whether use clauses should be removed/restored.
42122
42123 * sem_ch8.ads:
42124 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42125 whether use clauses should be removed/restored.
42126
42127 2003-10-26 Andreas Jaeger <aj@suse.de>
42128
42129 * Makefile.in: Remove duplicated lines.
42130
42131 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42132
42133 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
42134 minimize the differences with ACT tree.
42135
42136 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
42137 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
42138 Gnatvsn.Gnat_Static_Version_String to reduce differences between
42139 ACT and FSF trees.
42140
42141 2003-10-24 Pascal Obry <obry@gnat.com>
42142
42143 PR ada/12014
42144 * adadecode.c (ostrcpy): New function.
42145 (__gnat_decode): Use ostrcpy of strcpy.
42146 (has_prefix): Set first parameter a const.
42147 (has_suffix): Set first parameter a const.
42148 Update copyright notice. Fix source name in header.
42149 Removes a trailing space.
42150
42151 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
42152
42153 * exp_disp.adb:
42154 Remove the test against being in No_Run_Time_Mode before generating a
42155 call to Register_Tag. It is redundant with the test against the
42156 availability of the function Register_Tag.
42157
42158 2003-10-24 Vincent Celier <celier@gnat.com>
42159
42160 * g-catiio.adb: (Month_Name): Correct spelling of February
42161
42162 * make.adb: (Mains): New package
42163 (Initialize): Call Mains.Delete
42164 (Gnatmake): Check that each main on the command line is a source of a
42165 project file and, if there are several mains, each of them is a source
42166 of the same project file.
42167 (Gnatmake): When a foreign language is specified in attribute Languages,
42168 no main is specified on the command line and attribute Mains is not
42169 empty, only build the Ada main. If there is no Ada main, just compile
42170 the Ada sources and their closure.
42171 (Gnatmake): If a main is specified on the command line with directory
42172 information, check that the source exists and, if it does, that the path
42173 is the actual path of a source of a project.
42174
42175 * prj-env.adb:
42176 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
42177 Full_Path is True, return the full path instead of the simple file name.
42178 (Project_Of): New function
42179
42180 * prj-env.ads:
42181 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
42182 defaulted to False.
42183 (Project_Of): New function
42184
42185 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42186
42187 * Makefile.generic:
42188 Ensure objects of main project are always checked and rebuilt if needed.
42189 Set CC to gcc by default.
42190 Prepare new handling of link by creating a global archive (not activated
42191 yet).
42192
42193 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42194 stringt.h: Update copyright notice. Remove trailing blanks.
42195 Fix source name in header.
42196
42197 2003-10-24 Robert Dewar <dewar@gnat.com>
42198
42199 * sem_ch12.adb: Minor reformatting
42200
42201 * sem_ch3.adb:
42202 Minor reformatting (including new function return style throughout)
42203
42204 * sem_ch3.ads:
42205 Minor reformatting (including new function return style throughout)
42206
42207 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42208
42209 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42210 stringt.h: Update copyright notice. Remove trailing blanks.
42211 Fix source name in header.
42212
42213 2003-10-24 GNAT Script <nobody@gnat.com>
42214
42215 * Make-lang.in: Makefile automatically updated
42216
42217 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
42218
42219 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
42220 stringt.h: Convert to ISO C90 declarations and definitions.
42221
42222 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
42223
42224 PR ada/11978
42225 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
42226 External_Tag attribute definition clauses.
42227
42228 2003-10-23 Ed Schonberg <schonberg@gnat.com>
42229
42230 PR ada/7613
42231 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
42232 child unit, generate a fully qualified name to avoid spurious errors
42233 when the context contains renamings of different child units with
42234 the same simple name.
42235
42236 * exp_dbug.ads: Add documentation on name qualification for renamings
42237 of child units.
42238
42239 2003-10-23 Robert Dewar <dewar@gnat.com>
42240
42241 * g-regpat.ads, g-regpat.adb: Minor reformatting
42242
42243 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
42244
42245 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
42246
42247 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42248
42249 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
42250 Machine call.
42251
42252 * urealp.h: (Machine): Update to proper definition.
42253
42254 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
42255
42256 * init.c, adaint.c: Minor reformatting.
42257
42258 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
42259
42260 * adaint.c (w32_epoch_offset): Define static const at file level.
42261 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
42262 rather than t_create, t_access in call to GetFileTime. Use union
42263 to convert between FILETIME and unsigned long long.
42264 (__gnat_file_time_name): Test for invalid file handle.
42265 (__gnat_set_filetime_name): Support win32 targets using
42266 w32api SetFileTime.
42267
42268 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
42269
42270 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
42271
42272 * ctrl_c.c (__gnat_int_handler): Remove declaration.
42273
42274 * decl.c (creat_concat_name): Const-ify prefix.
42275
42276 * adaint.c: Include ctype.h if __MINGW32__.
42277 (__gnat_readlink): Mark arguments as possibly unused.
42278 (__gnat_symlink): Likewise.
42279 (__gnat_is_symbolic_link): Likewise.
42280 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
42281 declaration
42282 (__gnat_file_time_name): Don't declare struct stat statbuf when
42283 not needed.
42284 (__gnat_is_absolute_path): Add parenthesis around condition of
42285 'if' statement to avoid warning.
42286 (__gnat_plist_init): Specify void as parameter.
42287 (plist_enter): Likewise.
42288 (plist_leave): Likewise.
42289 (remove_handle): Make static. Initialize prev.
42290
42291 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
42292
42293 PR ada/10110
42294 * Makefile.in: Disable build of gnatpsta.
42295 * cstreams.c (__gnat_full_name): Minor improvements and clean up
42296 of previous change.
42297
42298 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42299
42300 * tracebak.c (MAX): Avoid redefinition warning.
42301
42302 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
42303 Change msg to const char *.
42304 (__gnat_install_handler): Remove ss, unused.
42305 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
42306 to const char *.
42307 * cstreams.c (__gnat_full_name): Declare p only when used.
42308 (__gnat_full_name) [sgi] Return buffer.
42309
42310 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
42311
42312 * mingw32.h: New file.
42313 * gnat_wrapper.adb: New file.
42314
42315 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
42316
42317 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
42318 string match a pre compiled regular expression (the corresponding
42319 version of the function working on a raw regular expression)
42320 Fix typos in various comments
42321 Update copyright notice in spec
42322
42323 2003-10-21 Gary Dismukes <dismukes@gnat.com>
42324
42325 * exp_ch3.adb:
42326 (Component_Needs_Simple_Initialization): Return False when the type is a
42327 packed bit array. Revise spec comments to document this case.
42328
42329 * exp_prag.adb:
42330 (Expand_Pragma_Import): Set any expression on the imported object to
42331 empty to avoid initializing imported objects (in particular this
42332 covers the case of zero-initialization of bit arrays).
42333 Update copyright notice.
42334
42335 2003-10-21 Ed Schonberg <schonberg@gnat.com>
42336
42337 * sem_ch12.adb:
42338 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
42339 a subunit is missing.
42340 (Instantiate_Subprogram_Body): If body of function is missing, set type
42341 of return expression explicitly in dummy body, to prevent cascaded
42342 errors when a subunit is missing.
42343 Fixes PR 5677.
42344
42345 * sem_ch3.adb:
42346 (Access_Subprogram_Declaration): Verify that return type is valid.
42347 Fixes PR 8693.
42348
42349 * sem_elab.adb:
42350 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
42351 generic.
42352 Fixes PR 12318.
42353
42354 * sem_util.adb:
42355 (Corresponding_Discriminant): If the scope of the discriminant is a
42356 private type without discriminant, use its full view.
42357 Fixes PR 8247.
42358
42359 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
42360
42361 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
42362 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
42363 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
42364 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
42365 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
42366 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
42367 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
42368 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
42369 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
42370 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
42371 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
42372 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
42373 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
42374 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
42375 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
42376 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
42377 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
42378 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
42379 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
42380 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
42381 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
42382 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
42383 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
42384 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
42385 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
42386 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
42387 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
42388 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
42389 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
42390 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
42391 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
42392 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
42393 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
42394 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
42395 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
42396 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
42397 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
42398 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
42399 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
42400 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
42401 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
42402 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
42403 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
42404 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
42405 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
42406 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
42407 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
42408 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
42409 vms_conv.ads, vms_conv.adb, vms_data.ads,
42410 vxaddr2line.adb: Files added. Merge with ACT tree.
42411
42412 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
42413 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
42414 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
42415 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
42416 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
42417 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
42418 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
42419 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
42420 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
42421 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
42422
42423 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
42424 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
42425 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
42426 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
42427 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
42428 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
42429 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
42430 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
42431 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
42432 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
42433 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
42434 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
42435 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
42436 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
42437 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
42438 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
42439 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
42440 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
42441 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
42442 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
42443 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
42444 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
42445 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
42446 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
42447 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
42448 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
42449 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
42450 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
42451 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
42452 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
42453 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
42454 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
42455 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
42456 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
42457 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
42458 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
42459 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
42460 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
42461 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
42462 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
42463 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
42464 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
42465 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
42466 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
42467 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
42468 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
42469 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
42470 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
42471 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
42472 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
42473 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
42474 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
42475 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
42476 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
42477 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
42478 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
42479 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
42480 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
42481 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
42482 checks.adb, checks.ads, cio.c, comperr.adb,
42483 comperr.ads, csets.adb, cstand.adb, cstreams.c,
42484 debug_a.adb, debug_a.ads, debug.adb, decl.c,
42485 einfo.adb, einfo.ads, errout.adb, errout.ads,
42486 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
42487 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
42488 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
42489 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
42490 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
42491 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
42492 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
42493 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
42494 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
42495 fe.h, fmap.adb, fmap.ads, fname.adb,
42496 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
42497 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
42498 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
42499 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
42500 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
42501 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
42502 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
42503 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
42504 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
42505 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
42506 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
42507 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
42508 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
42509 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
42510 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
42511 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
42512 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
42513 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
42514 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
42515 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
42516 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
42517 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
42518 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
42519 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
42520 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
42521 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
42522 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
42523 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
42524 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
42525 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
42526 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
42527 layout.adb, lib.adb, lib.ads, lib-list.adb,
42528 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
42529 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
42530 link.c, live.adb, make.adb, make.ads,
42531 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
42532 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
42533 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
42534 misc.c, mkdir.c, mlib.adb, mlib.ads,
42535 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
42536 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
42537 namet.adb, namet.ads, namet.h, nlists.ads,
42538 nlists.h, nmake.adt, opt.adb, opt.ads,
42539 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
42540 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
42541 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
42542 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
42543 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
42544 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
42545 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
42546 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
42547 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
42548 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
42549 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
42550 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
42551 prj-util.adb, prj-util.ads, raise.c, raise.h,
42552 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
42553 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
42554 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
42555 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
42556 scans.ads, scn.adb, scn.ads, s-crc32.adb,
42557 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
42558 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42559 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
42560 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
42561 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
42562 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
42563 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
42564 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
42565 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
42566 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
42567 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
42568 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
42569 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
42570 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
42571 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
42572 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
42573 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
42574 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
42575 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
42576 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
42577 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
42578 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
42579 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
42580 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
42581 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
42582 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
42583 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
42584 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
42585 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
42586 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
42587 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
42588 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
42589 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
42590 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
42591 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
42592 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
42593 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
42594 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
42595 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
42596 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
42597 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
42598 stringt.adb, stringt.ads, stringt.h, style.ads,
42599 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
42600 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
42601 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
42602 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
42603 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
42604 table.adb, table.ads, targparm.adb, targparm.ads,
42605 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
42606 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
42607 ttypes.ads, types.ads, types.h, uintp.adb,
42608 uintp.ads, uintp.h, uname.adb, urealp.adb,
42609 urealp.ads, urealp.h, usage.adb, utils2.c,
42610 utils.c, validsw.adb, validsw.ads, widechar.adb,
42611 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
42612 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
42613 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
42614 gnatvsn.ads: Merge with ACT tree.
42615
42616 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
42617
42618 2003-10-20 Mark Mitchell <mark@codesourcery.com>
42619
42620 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
42621 (gnat_ug_vmx.info): Likewise.
42622 (gnat_ug_vxw.info): Likewise.
42623 (gnat_ug_wnt.info): Likewise.
42624 (gnat_rm.info): Likewise.
42625 (gnat-style.info): Likewise.
42626
42627 * Make-lang.in (ada.install-info): Remove target.
42628 (info): New target.
42629 (install-info): Likewise.
42630 (gnat_ug_unx.info): Simplify rule.
42631 (gnat_ug_vmx.info): Likewise.
42632 (gnat_ug_vxw.info): Likewise.
42633 (gnat_ug_wnt.info): Likewise.
42634 (gnat_rm.info): Likewise.
42635 (gnat-style.info): Likewise.
42636
42637 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
42638
42639 * Make-lang.in: Replace uses of $(target_alias) with
42640 $(target_noncanonical).
42641 * ada/Makefile.in: Remove unused mention of $(target_alias).
42642
42643 2003-10-06 Mark Mitchell <mark@codesourcery.com>
42644
42645 * Make-lang.in (ada.info): Replace with ...
42646 (info): ... this.
42647 (ada.dvi): Replace with ...
42648 (dvi): ... this.
42649
42650 2003-09-29 Zack Weinberg <zack@codesourcery.com>
42651
42652 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
42653 initialize dconstp5 and dconstmp5.
42654
42655 2003-09-28 Richard Henderson <rth@redhat.com>
42656
42657 * trans.c (tree_transform): Update call to expand_asm_operands.
42658
42659 2003-09-21 Richard Henderson <rth@redhat.com>
42660
42661 * trans.c, utils.c: Revert.
42662
42663 2003-09-21 Richard Henderson <rth@redhat.com>
42664
42665 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
42666 change to const.
42667
42668 2003-09-04 Michael Matz <matz@suse.de>
42669
42670 * misc.c: Include "target.h".
42671 * Make-lang.in (misc.o): Add dependency on target.h.
42672
42673 2003-09-03 DJ Delorie <dj@redhat.com>
42674
42675 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
42676 hook.
42677
42678 2003-08-30 Zack Weinberg <zack@codesourcery.com>
42679
42680 * Makefile.in: Update substitutions to match changes to
42681 configure. Use include directives instead of @-insertions
42682 to read in host and target fragments. Add a rule to
42683 regenerate ada/Makefile.
42684
42685 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
42686
42687 * lang-options.h: Remove.
42688 * lang.opt: Add help text.
42689
42690 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
42691
42692 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
42693 calls.
42694
42695 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
42696
42697 * misc.c (gnat_handle_option): Don't handle filenames.
42698
42699 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
42700
42701 * Make-lang.in: Replace PWD with PWD_COMMAND.
42702 * Makefile.adalib: Likewise.
42703 * Makefile.in: Likewise.
42704
42705 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
42706
42707 * misc.c (gnat_argv): Revert last change.
42708 (gnat_handle_option, gnat_init_options): Copy arguments.
42709
42710 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
42711
42712 * misc.c (gnat_argv): Make const.
42713
42714 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
42715
42716 * misc.c (save_argc, save_argv): Keep non-static!
42717
42718 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
42719
42720 * misc.c (save_argc, save_argv): Make static.
42721 (gnat_init_options): New prototype.
42722 (gnat_init_options): Update.
42723
42724 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
42725
42726 * gnat_ug.texi: Remove unlikely characters from @vars.
42727 * gnat_ug_vms.texi: Regenerate.
42728
42729 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
42730
42731 * misc.c (record_code_position): Adjust emit_note call.
42732
42733 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
42734
42735 * misc.c (gnat_handle_option): Don't check for missing arguments.
42736
42737 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
42738
42739 * utils.c (end_subprog_body): Adjust expand_function_end call.
42740
42741 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
42742
42743 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
42744 Bind_Main_Program.
42745
42746 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
42747
42748 * lang.opt: Declare Ada.
42749 * misc.c (gnat_init_options): Update.
42750
42751 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
42752
42753 * utils.c (begin_subprog_body): Adjust init_function_start call.
42754
42755 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
42756
42757 * Make-lang.in: Update to use options.c and options.h.
42758 * misc.c: Include options.h not aoptions.h.
42759 (gnat_handle_option): Abort on unrecognized switch.
42760 (gnat_init_options): Request Ada switches.
42761
42762 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
42763
42764 * lang.opt: Add -Wall.
42765 * misc.c (gnat_handle_option): Handle it.
42766
42767 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
42768
42769 * misc.c (gnat_handle_option): Fix warnings.
42770
42771 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
42772
42773 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
42774
42775 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
42776
42777 * Make-lang.in: Update to handle command-line options.
42778 * lang.opt: New file.
42779 * misc.c: Include aoptions.h.
42780 (cl_options_count, cl_options): Remove.
42781 (gnat_handle_option): New.
42782 (gnat_decode_option): Remove.
42783 (LANG_HOOKS_DECODE_OPTION): Remove.
42784 (LANG_HOOKS_HANDLE_OPTION): Override.
42785
42786 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
42787
42788 * init.c, misc.c, trans.c, utils.c: Remove dead code.
42789
42790 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
42791
42792 * Makefile.in: Replace "host_canonical" with "host" for autoconf
42793 substitution.
42794
42795 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
42796
42797 * Make-lang.in: Update.
42798 * misc.c: Include opts.h. Define cl_options_count and cl_options.
42799
42800 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
42801
42802 * misc.c (gnat_init_options): Update.
42803
42804 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
42805
42806 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
42807 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
42808 __attribute__ ((__unused__)).
42809
42810 2003-06-05 Jan Hubicka <jh@suse.cz>
42811
42812 * Make-lang.in: Add support for stageprofile and stagefeedback
42813
42814 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
42815
42816 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
42817 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
42818
42819 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
42820
42821 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
42822 Remove non-VMS directive.
42823 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
42824 alternatives.
42825 (Examples of gnatls Usage): Remove VMS alternative.
42826
42827 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
42828
42829 PR ada/9953
42830 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
42831 and turn ZCX_By_Default back to False since the underlying support
42832 is not quite there yet.
42833
42834 2003-06-01 Andreas Jaeger <aj@suse.de>
42835
42836 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
42837 and ROUND_TYPE_SIZE_UNIT.
42838
42839 2003-05-22 Geert Bosch <bosch@gnat.com>
42840
42841 * gnat_rm.texi : Remove reference to Ada Core Technologies.
42842
42843 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
42844
42845 * trans.c (tree_transform): Use location_t and input_location
42846 directly.
42847 (build_unit_elab): Likewise.
42848 * utils.c (create_label_decl): Likewise.
42849
42850 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
42851
42852 * trans.c (tree_transform, build_unit_elab,
42853 set_lineno): Rename lineno to input_line.
42854 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
42855 end_subprog_body): Likewise.
42856 * utils2.c (build_call_raise): Likewise.
42857
42858 2003-05-01 Laurent Guerby <guerby@acm.org>
42859
42860 PR ada/10546
42861 * 5iosinte.ads: Increase pthread_cond_t size to match recent
42862 LinuxThread and NPTL version, merge from ACT.
42863
42864 2003-04-28 Zack Weinberg <zack@codesourcery.com>
42865
42866 * utils.c (convert): No need to clear TREE_CST_RTL.
42867
42868 2003-04-23 Geert Bosch <bosch@gnat.com>
42869
42870 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
42871 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
42872 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
42873 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
42874 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
42875 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
42876 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
42877 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
42878 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
42879 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
42880 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
42881 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
42882 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
42883 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
42884 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
42885 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
42886 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
42887 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
42888 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
42889 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
42890 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
42891 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
42892 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
42893 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
42894 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
42895 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
42896 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
42897 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
42898 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
42899 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
42900 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
42901 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
42902 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
42903 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
42904 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
42905 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
42906 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
42907 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
42908 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
42909 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
42910 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
42911 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
42912 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
42913 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
42914 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
42915 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
42916 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
42917 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
42918 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
42919 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
42920 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
42921 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
42922 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
42923 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
42924 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
42925 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
42926 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
42927 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
42928 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
42929 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
42930 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
42931 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
42932 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
42933 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
42934 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
42935 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
42936 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
42937 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
42938 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
42939 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
42940 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
42941 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
42942 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
42943 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
42944 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
42945 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
42946 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
42947 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
42948 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
42949 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
42950 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
42951 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
42952 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
42953 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
42954 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
42955 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
42956 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
42957 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
42958 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
42959 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
42960 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
42961 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
42962 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
42963 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
42964 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
42965 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
42966 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
42967 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
42968 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
42969 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
42970 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
42971 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
42972 ali.adb, ali.ads, alloc.ads, argv.c,
42973 atree.adb, atree.ads, atree.h, aux-io.c,
42974 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
42975 binde.adb, binde.ads, binderr.adb, binderr.ads,
42976 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
42977 butil.adb, butil.ads, cal.c, calendar.ads,
42978 casing.adb, casing.ads, ceinfo.adb, checks.adb,
42979 checks.ads, cio.c, comperr.adb, comperr.ads,
42980 config-lang.in, csets.adb, csets.ads, csinfo.adb,
42981 cstand.adb, cstand.ads, cuintp.c, debug.adb,
42982 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
42983 dec-io.ads, dec.ads, deftarg.c, directio.ads,
42984 einfo.adb, einfo.ads, elists.adb, elists.ads,
42985 elists.h, errno.c, errout.adb, errout.ads,
42986 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
42987 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
42988 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
42989 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
42990 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
42991 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
42992 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
42993 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
42994 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
42995 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
42996 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
42997 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
42998 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
42999 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
43000 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
43001 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
43002 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
43003 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
43004 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
43005 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
43006 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
43007 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
43008 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
43009 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
43010 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
43011 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
43012 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
43013 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
43014 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
43015 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
43016 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
43017 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
43018 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
43019 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
43020 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
43021 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
43022 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
43023 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
43024 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
43025 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
43026 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
43027 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
43028 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
43029 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
43030 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
43031 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
43032 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
43033 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
43034 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
43035 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
43036 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
43037 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
43038 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
43039 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
43040 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
43041 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
43042 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
43043 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
43044 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
43045 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
43046 lib.adb, lib.ads, live.adb, live.ads,
43047 machcode.ads, make.adb, make.ads, makeusg.adb,
43048 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
43049 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
43050 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
43051 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
43052 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
43053 mlib.ads, namet.adb, namet.ads, nlists.adb,
43054 nlists.ads, opt.adb, opt.ads, osint-b.adb,
43055 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
43056 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
43057 osint.ads, output.adb, output.ads, par-ch10.adb,
43058 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
43059 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
43060 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
43061 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
43062 par-tchk.adb, par-util.adb, par.adb, par.ads,
43063 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
43064 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
43065 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
43066 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
43067 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
43068 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
43069 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
43070 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
43071 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
43072 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
43073 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
43074 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
43075 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
43076 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
43077 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
43078 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
43079 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
43080 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
43081 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
43082 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
43083 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
43084 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
43085 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
43086 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
43087 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
43088 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
43089 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
43090 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
43091 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
43092 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
43093 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
43094 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
43095 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
43096 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
43097 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
43098 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
43099 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
43100 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
43101 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
43102 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
43103 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
43104 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
43105 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
43106 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
43107 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
43108 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
43109 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
43110 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
43111 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
43112 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
43113 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
43114 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
43115 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
43116 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
43117 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
43118 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
43119 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
43120 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
43121 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
43122 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
43123 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
43124 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
43125 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
43126 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
43127 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
43128 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
43129 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
43130 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
43131 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
43132 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
43133 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
43134 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
43135 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
43136 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
43137 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
43138 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
43139 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
43140 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
43141 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
43142 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
43143 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
43144 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
43145 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
43146 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
43147 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
43148 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
43149 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
43150 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
43151 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
43152 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
43153 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
43154 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
43155 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
43156 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
43157 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
43158 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
43159 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
43160 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
43161 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
43162 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
43163 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
43164 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
43165 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
43166 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
43167 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
43168 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
43169 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
43170 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
43171 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
43172 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
43173 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
43174 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
43175 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
43176 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
43177 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
43178 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
43179 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
43180 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
43181 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
43182 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
43183 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
43184 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
43185 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
43186 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
43187 snames.ads, sprint.adb, sprint.ads, stand.adb,
43188 stand.ads, stringt.adb, stringt.ads, style.adb,
43189 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
43190 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
43191 switch-m.ads, switch.adb, switch.ads, system.ads,
43192 table.adb, table.ads, targparm.adb, targparm.ads,
43193 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
43194 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
43195 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
43196 ttypef.ads, ttypes.ads, types.adb, types.ads,
43197 uintp.adb, uintp.ads, uname.adb, uname.ads,
43198 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
43199 usage.adb, usage.ads, validsw.adb, validsw.ads,
43200 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
43201 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
43202 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
43203 formatting and other trivial changes from ACT.
43204
43205 2003-04-12 Zack Weinberg <zack@codesourcery.com>
43206
43207 * gigi.h, utils2.c (build_constructor):
43208 Rename gnat_build_constructor. Use build_constructor.
43209 * decl.c (gnat_to_gnu_entity)
43210 * trans.c (tree_transform, pos_to_constructor, extract_values)
43211 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
43212 (unchecked_convert)
43213 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
43214 (fill_vms_descriptor):
43215 Update to match.
43216
43217 2003-04-06 Zack Weinberg <zack@codesourcery.com>
43218
43219 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
43220 * misc.c (gnat_tree_size): New function.
43221 (LANG_HOOKS_TREE_SIZE): Override.
43222
43223 2003-04-03 Jason Merrill <jason@redhat.com>
43224
43225 * misc.c (gnat_adjust_rli): #if 0.
43226
43227 2003-03-31 Geert Bosch <bosch@gnat.com>
43228
43229 PR ada/10020
43230 * link.c : Fix misspelled "const" keyword
43231
43232 2003-03-23 Mark Mitchell <mark@codesourcery.com>
43233
43234 PR c++/7086
43235 * utils2.c: Adjust calls to put_var_into_stack.
43236
43237 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
43238
43239 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
43240
43241 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
43242
43243 * misc.c (gnat_init): Update for new prototype.
43244
43245 2003-03-05 Olivier Hainque <hainque@gnat.com>
43246
43247 ada/9961
43248 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
43249 warning, and fix return type for the IN_RTS && !SJLJ case.
43250
43251 2003-03-04 Tom Tromey <tromey@redhat.com>
43252
43253 * Make-lang.in (ada.tags): New target.
43254
43255 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
43256
43257 ada/9911
43258 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
43259 wrapper, which name remains constant whatever underlying GCC
43260 scheme.
43261
43262 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
43263 the stable interface needed for a-except.
43264
43265 2003-03-02 Andreas Jaeger <aj@suse.de>
43266
43267 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43268 gnat_ug_wnt.texi: Regenerate.
43269
43270 2003-03-02 Laurent Guerby <guerby@acm.org>
43271
43272 * Makefile.in (install-gnatlib): Match previous change there
43273 so it works.
43274
43275 2003-02-28 Andreas Schwab <schwab@suse.de>
43276
43277 * Make-lang.in (install-gnatlib): Change to ada directory before
43278 running make instead of using ada/Makefile directly.
43279
43280 2003-02-18 Ben Elliston <bje@redhat.com>
43281
43282 Part of PR ada/9406
43283 * gnat_ug.texi (Binder output file): Grammar fix.
43284
43285 2003-02-18 Ben Elliston <bje@redhat.com>
43286
43287 PR other/7350
43288 * 5qtaprop.adb (Sleep): Fix typo in comment.
43289
43290 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
43291
43292 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
43293 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43294 gnat_ug_wnt.texi: Regenerate.
43295
43296 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
43297
43298 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
43299 be created if necessary.
43300 (ada.install-common): Let $(DESTDIR)$(bindir) be created
43301 if necessary. Remove erroneous and redundant gnatchop
43302 installation commands. Test for gnatdll before attempting
43303 to install it.
43304 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
43305 and gnatdll from all plausible locations.
43306
43307 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
43308
43309 * utils2.c (build_unary_op): Don't check flag_volatile.
43310 * gnat_ug.texi: Remove -fvolatile from example.
43311 * gnat_ug_vxw.texi: Likewise.
43312
43313 2003-01-29 Laurent Guerby <guerby@acm.org>
43314
43315 PR ada/8344
43316 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
43317 * Makefile.in: match previous change.
43318 * Make-lang.in: match previous change.
43319
43320 2003-01-29 Joel Sherrill <joel@OARcorp.com>
43321
43322 * 5rosinte.ads: Add SIGXCPU.
43323 * 5rtpopsp.adb: New file.
43324 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
43325 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
43326 specific file 5rtpopsp.adb.
43327 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
43328 is likely needed for all newlib targets.
43329 * init.c: Add RTEMS specific version of __gnat_initialize().
43330
43331 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43332
43333 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
43334
43335 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43336
43337 * init.c (__gnat_error_handler): Make msg const.
43338
43339 * gmem.c (convert_addresses): Move declaration ...
43340 * adaint.h: ... here.
43341 * adaint.c (convert_addresses): Adapt addrs type to match
43342 prototype.
43343
43344 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
43345
43346 2003-01-24 Andreas Schwab <schwab@suse.de>
43347
43348 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
43349 size_t to avoid warning.
43350
43351 2003-01-21 Zack Weinberg <zack@codesourcery.com>
43352
43353 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
43354
43355 2003-01-09 Geoffrey Keating <geoffk@apple.com>
43356
43357 * gnat_rm.texi: Remove RCS version number.
43358
43359 * ada-tree.h (union lang_tree_node): Add chain_next option.
43360
43361 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
43362
43363 * Make-lang.in (ada.install-info, ada.install-common,
43364 ada.uninstall): Prepend $(DESTDIR) to the destination
43365 directory in all (un)installation commands.
43366 * Makefile.in (install-gnatlib, install-rts): Ditto.
43367
43368 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
43369
43370 * gnat_rm.texi, gnat_ug.texi: Use @copying.
43371 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43372 gnat_ug_wnt.texi: Regenerate.
43373
43374 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
43375
43376 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
43377 only.
43378 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
43379 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
43380 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
43381 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
43382 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
43383 $(srcdir)/doc/include/gcc-common.texi.
43384
43385 2002-12-15 Geert Bosch <bosch@gnat.com>
43386
43387 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
43388
43389 2002-12-14 Geert Bosch <bosch@gnat.com>
43390
43391 PR ada/5690
43392 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
43393 case of a body created for a Renaming_As_Body, on which
43394 conformance checks are not performed.
43395
43396 2002-11-30 Zack Weinberg <zack@codesourcery.com>
43397
43398 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
43399 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
43400 not already included.
43401 * Make-lang.in: Update dependencies.
43402
43403 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
43404 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
43405 solution to buffer overflow bug on GNU/Linux.
43406
43407 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
43408
43409 PR ada/5856
43410 PR ada/6919
43411 * bindgen.adb: Remove all references to Public_Version.
43412 * comperr.adb: Remove all references to Public_Version and
43413 GNATPRO_Version; correct bug reporting instructions.
43414 * comperr.ads: Change to match bug box.
43415 * gnatvsn.ads: Remove all references to Public version and
43416 GNATPRO version.
43417
43418 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
43419
43420 PR ada/6919
43421 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
43422 GNU/Linux.
43423
43424 PR ada/6558
43425 * config-lang.in: Remove diff_excludes.
43426
43427 2002-11-05 Graham Stott <graham.stott@btinternet.com>
43428
43429 PR ada/8358
43430 * trans.c (gnu_pending_elaboration_lists): New GC root.
43431 (build_unit_elab): Use..
43432
43433 2002-10-30 Geert Bosch <bosch@gnat.com>
43434
43435 PR ada/6558
43436 * misc.c : Include optabs.h
43437
43438 * Make-lang.in (misc.o): Add dependency on optabs.h
43439
43440 2002-10-29 Geert Bosch <bosch@gnat.com>
43441
43442 PR ada/6558
43443 * Make-lang.in (gnatbind): Depend on CONFIG_H
43444
43445 2002-10-29 Geert bosch <bosch@gnat.com>
43446
43447 PR ada/6558
43448 * misc.c: Unrevert misc.c (1.13)
43449
43450 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
43451
43452 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
43453 maintainership comments.
43454
43455 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
43456
43457 PR ada/5904
43458 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
43459 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
43460 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
43461 7staprop.adb: Correct statements in comments about
43462 maintainership of GNAT.
43463
43464 PR ada/5904
43465 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
43466 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
43467 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
43468 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
43469 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
43470 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
43471 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
43472 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
43473 comments about maintainership of GNAT.
43474
43475 PR ada/6919 (forward port of patch for PR ada/5904)
43476 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
43477 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
43478 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
43479 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
43480 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
43481 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
43482 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
43483 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
43484 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
43485 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
43486 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
43487 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
43488 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
43489 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
43490 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
43491 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
43492 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
43493 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
43494 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
43495 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
43496 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
43497 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
43498 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
43499 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
43500 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
43501 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
43502 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
43503 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
43504 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
43505 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
43506 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
43507 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
43508 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
43509 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
43510 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
43511 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
43512 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
43513 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
43514 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
43515 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
43516 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
43517 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
43518 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
43519 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
43520 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
43521 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
43522 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
43523 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
43524 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
43525 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
43526 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
43527 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
43528 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
43529 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
43530 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
43531 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
43532 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
43533 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
43534 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
43535 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
43536 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
43537 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
43538 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
43539 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
43540 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
43541 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
43542 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
43543 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
43544 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
43545 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
43546 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
43547 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
43548 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
43549 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
43550 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
43551 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
43552 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
43553 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
43554 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
43555 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
43556 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
43557 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
43558 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
43559 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
43560 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
43561 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
43562 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
43563 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
43564 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
43565 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
43566 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
43567 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
43568 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
43569 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
43570 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
43571 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
43572 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
43573 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
43574 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
43575 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
43576 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
43577 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
43578 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
43579 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
43580 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
43581 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
43582 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
43583 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
43584 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
43585 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
43586 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
43587 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
43588 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
43589 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
43590 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
43591 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
43592 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
43593 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
43594 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
43595 par-endh.adb par-labl.adb par-load.adb par-prag.adb
43596 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
43597 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
43598 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
43599 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
43600 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
43601 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
43602 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
43603 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
43604 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
43605 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
43606 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
43607 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
43608 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
43609 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
43610 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
43611 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
43612 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
43613 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
43614 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
43615 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
43616 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
43617 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
43618 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
43619 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
43620 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
43621 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
43622 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
43623 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
43624 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
43625 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
43626 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
43627 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
43628 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
43629 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
43630 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
43631 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
43632 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
43633 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
43634 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
43635 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
43636 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
43637 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
43638 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
43639 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
43640 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
43641 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
43642 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
43643 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
43644 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
43645 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
43646 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
43647 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
43648 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
43649 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
43650 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
43651 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
43652 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
43653 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
43654 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
43655 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
43656 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
43657 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
43658 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
43659 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
43660 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
43661 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
43662 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
43663 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
43664 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
43665 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
43666 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
43667 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
43668 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
43669 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
43670 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
43671 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
43672 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
43673 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
43674 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
43675 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
43676 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
43677 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
43678 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
43679 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
43680 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
43681 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
43682 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
43683 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
43684 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
43685 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
43686 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
43687 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
43688 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
43689 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
43690 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
43691 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
43692 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
43693 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
43694 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
43695 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
43696 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
43697 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
43698 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
43699 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
43700 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
43701 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
43702 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
43703 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
43704 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
43705 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
43706 stringt.ads stringt.h style.adb style.ads stylesw.adb
43707 stylesw.ads switch.adb switch.ads sysdep.c system.ads
43708 table.adb table.ads targparm.adb targparm.ads targtyps.c
43709 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
43710 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
43711 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
43712 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
43713 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
43714 usage.ads utils.c utils2.c validsw.adb validsw.ads
43715 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
43716 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
43717 xtreeprs.adb: Correct statements in comments about maintainership
43718 of GNAT.
43719
43720 2002-09-23 Zack Weinberg <zack@codesourcery.com>
43721
43722 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
43723 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
43724 * gnatvsn.ads: Gnat_Version_String is now a function.
43725 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
43726 copy the C version_string into a String and return it.
43727 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
43728 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
43729 Remove pragma Ident (Gnat_Version_String). If this was the
43730 sole use of package Gnatvsn, remove the with statement too.
43731 * gnat1drv.adb: Tweak -gnatv output.
43732
43733 2002-09-17 Richard Henderson <rth@redhat.com>
43734
43735 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
43736 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
43737 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
43738 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
43739 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
43740 and real_2expN instead of a loop.
43741 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
43742 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
43743
43744 2002-08-25 Andre Leis <a.leis@gmx.net>
43745 David Billinghurst <David.Billinghurst@riotinto.com>
43746
43747 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
43748
43749 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43750
43751 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
43752 Remove $(CONFIG_H) dependency.
43753
43754 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
43755
43756 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
43757
43758 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43759
43760 * adadecode.c (ada_demangle): Use xstrdup in lieu of
43761 xmalloc/strcpy.
43762 * misc.c (gnat_decode_option): Likewise.
43763
43764 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
43765
43766 * make.adb (Add_Switch): Make Generic_Position a procedure. The
43767 function approach did not work well because of a side effect (the
43768 function call could reallocate the table which was being indexed
43769 using its result). Fixes ada/4851. [RESURRECTED]
43770
43771 2002-07-01 Roger Sayle <roger@eyesopen.com>
43772
43773 * ada/utils.c (builtin_function): Accept an additional parameter.
43774
43775 2002-06-28 Andreas Jaeger <aj@suse.de>
43776
43777 PR ada/7144
43778 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
43779 <adi@thur.de>.
43780
43781 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43782
43783 * Makefile.in (SHELL): Set to @SHELL@.
43784
43785 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43786
43787 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
43788 array size calculation.
43789
43790 2002-06-04 Andreas Jaeger <aj@suse.de>
43791
43792 * Make-lang.in (gnatbind): Readd rule that has been lost in last
43793 patch.
43794
43795 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
43796
43797 Merge from pch-branch:
43798
43799 * config-lang.in (gtfiles): Add ada-tree.h.
43800 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
43801 (SET_TYPE_MODULUS): New.
43802 (SET_TYPE_INDEX): New.
43803 (SET_TYPE_DIGITS_VALUE): New.
43804 (SET_TYPE_RM_SIZE): New.
43805 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
43806 (SET_TYPE_ADA_SIZE): New.
43807 (SET_TYPE_ACTUAL_BOUNDS): New.
43808 (SET_DECL_CONST_CORRESPONDING_VAR): New.
43809 (SET_DECL_ORIGINAL_FIELD): New.
43810 (TREE_LOOP_ID): Correct typo.
43811 * decl.c: Use new macros.
43812 * utils.c: Include debug.h, use new macros.
43813 * utils2.c: Use new macros.
43814
43815 * ada-tree.h: Update all macros for new tree description.
43816 (struct tree_loop_id): New.
43817 (union lang_tree_node): New.
43818 (struct lang_decl): New.
43819 (struct lang_type): New.
43820 * misc.c (gnat_mark_tree): Delete.
43821 (LANG_HOOKS_MARK_TREE): Delete.
43822 * trans.c (tree_transform): No longer any need to cast
43823 for TREE_LOOP_ID.
43824
43825 * utils.c (struct language_function): New dummy structure.
43826
43827 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
43828 (misc.o): Likewise.
43829 (utils.o): Likewise; also gtype-ada.h.
43830 * Make-lang.in (gnat1): Add dependency on s-gtype.
43831 (gnatbind): Add dependency on $(CONFIG_H).
43832 * utils.c: Correct last #include.
43833 (stuct e_stack): Remove unnecessary 'static'.
43834 (mark_e_stack): Remove unused prototype.
43835
43836 * scn-nlit.adb: Remove whitespace after version number to
43837 keep lines under 80 chars.
43838 * snames.adb: Likewise.
43839 * treepr.ads: Likewise.
43840
43841 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
43842 (misc.o): Likewise.
43843 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
43844 * config-lang.in (gtfiles): New.
43845 * decl.c: Use gengtype for roots.
43846 * gigi.h: Use gengtype for roots.
43847 * trans.c: Use gengtype for roots.
43848 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
43849
43850 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
43851
43852 * misc.c (gnat_init): Adjust setting of internal_error_function.
43853
43854 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
43855
43856 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
43857 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43858 gnat_ug_wnt.texi: Regenerate.
43859
43860 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
43861
43862 * 5ntaprop.adb (with System.OS_Primitives): Remove.
43863
43864 * cstreams.c (max_path_len): Move from here ...
43865 * adaint.c (__gnat_max_path_len): ... to here.
43866 * adaint.c (__gnat_max_path_len): Declare.
43867 * g-dirope.adb (Max_Path): Adjust.
43868 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
43869 * i-cstrea.ads (max_path_len): Adjust.
43870 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
43871 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
43872
43873 * Makefile.in, Make-lang.in: Documentation is now built in
43874 Make-lang.in. Store Info and generated Texinfo files in the
43875 source directory.
43876 * gnat_ug.texi: Remove CVS keywords, correct version number.
43877 Set file name correctly.
43878
43879 * gnat_ug_*.texi: Add.
43880 * .cvsignore: Ignore generated Texinfo files.
43881
43882 2002-05-30 Zack Weinberg <zack@codesourcery.com>
43883
43884 * ada.h: Add MI guard macro.
43885 (SUBTYPE): Define constants with an anonymous enum, not static
43886 const variables.
43887 (IN): Cast constants to appropriate type before use.
43888
43889 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
43890
43891 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
43892 (experimental)".
43893
43894 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43895
43896 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
43897 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
43898 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
43899 (ALL_ADA_CFLAGS): Likewise.
43900 (ADA_INCLUDES): Likewise.
43901 Adapt for new working dir.
43902 (GNATBIND): Use Makefile.in version.
43903 (.SUFFIXES): Copy from Makefile.in.
43904 (ada-warn): Define.
43905 (.adb.o, .ads.o): Copy from Makefile.in.
43906 Added $(OUTPUT_OPTION).
43907 (GNAT1_C_OBJS): Moved from Makefile.in.
43908 Prefix with ada subdir.
43909 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
43910 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
43911 Adapt for new working dir.
43912 (EXTRA_GNATBIND_OBJS): Likewise.
43913 (ADA_BACKEND): Moved from Makefile.in.
43914 Renamed to avoid conflict with global BACKEND.
43915 Use that one.
43916 (TARGET_ADA_SRCS): Moved from Makefile.in.
43917 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
43918 Use ADA_BACKEND.
43919 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
43920 (ada_extra_files): Moved from Makefile.in.
43921 Prefix with ada subdir.
43922 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
43923 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
43924 (ada/nmake.ads): Likewise.
43925 (update-sources): Moved from Makefile.in.
43926 Prefix with ada subdir.
43927 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
43928 (ADA_TREE_H): Likewise.
43929 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
43930 (ada/memtrack.o): Likewise.
43931 (ada/adadecode.o): Likewise.
43932 Update dependencies.
43933 (ada/adaint.o): New.
43934 (ada/argv.o): Moved from Makefile.in.
43935 Prefix with ada subdir.
43936 Update dependencies.
43937 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
43938 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
43939 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
43940 Prefix with ada subdir.
43941 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
43942 (GNAT DEPENDENCIES): Regenerate.
43943 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
43944 toplevel Makefile.in.
43945 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
43946 (TARGET_ADA_SRCS): Removed.
43947 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
43948 (GNATBIND_OBJS): Likewise.
43949 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
43950 (BACKEND): Removed.
43951 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
43952 (TREE_H): Likewise.
43953 (ada_extra_files): Likewise.
43954 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
43955 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
43956 (update-sources): Likewise.
43957 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
43958 (ADA_TREE_H): Likewise.
43959 (adadecoce.o): Likewise.
43960 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
43961 (GNAT DEPENDENCIES): Likewise.
43962
43963 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43964
43965 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
43966 * Makefile.in: Likewise.
43967
43968 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43969
43970 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
43971 Restore $(CONFIG_H) and prefix.o dependencies.
43972 (ada.stage[1-4]): Depend on stage?-start.
43973
43974 * Makefile.in (b_gnatb.c): Depend on interfac.o.
43975
43976 2002-05-02 Jim Wilson <wilson@redhat.com>
43977
43978 * utils.c (finish_record_type): Change record_size to record_type.
43979
43980 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
43981
43982 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
43983 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
43984 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
43985
43986 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
43987
43988 * misc.c (gnat_parse_file): Update.
43989
43990 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
43991
43992 * misc.c (gnat_init): Don't set lang_attribute_common.
43993
43994 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
43995
43996 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
43997
43998 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
43999
44000 * gnat_ug.texi: New file.
44001
44002 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
44003 instead of gfdl.texi
44004
44005 * xgnatug.adb, ug_words: New files.
44006
44007 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
44008 gnat_rm and gnat-style manuals.
44009
44010 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
44011
44012 * gigi.h (incomplete_type_error): Remove.
44013 * utils.c (incomplete_type_error): Remove.
44014
44015 2002-04-16 Mark Mitchell <mark@codesourcery.com>
44016
44017 * trans.c (tree_transform): Add has_scope argument to
44018 expand_start_stmt_expr.
44019
44020 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
44021
44022 * gigi.h (truthvalue_conversion): Rename.
44023 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
44024 * trans.c (tree_transform): Update.
44025 * utils2.c (truthvalue_conversion): Rename, update.
44026 (build_binary_op, build_unary_op): Update.
44027
44028 2002-04-04 Laurent Guerby <guerby@acm.org>
44029
44030 * make.adb: Implement -margs, remove restriction about file name placement.
44031 * makeusg.adb: Documentation update.
44032 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
44033 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
44034
44035 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
44036
44037 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
44038 (builtin_function): Similarly.
44039
44040 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
44041
44042 * decl.c (gnat_to_gnu_entity): Update.
44043 * gigi.h (mark_addressable): Rename.
44044 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
44045 * trans.c (tree_transform): Update.
44046 * utils.c (create_var_decl): Update.
44047 * util2.c (build_binary_op, build_unary_op,
44048 fill_vms_descriptor): Update.
44049 (mark_addressable): Rename, update.
44050
44051 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
44052
44053 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
44054 Rename.
44055 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
44056 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
44057 * trans.c (tree_transform, convert_with_check): Update.
44058 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
44059 Rename.
44060
44061 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
44062
44063 * gigi.h (finish_incomplete_decl): Rename.
44064 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
44065 * utils.c (gnat_init_decl_processing): Don't set hook.
44066 (finish_incomplete_decl): Rename.
44067
44068 2002-03-29 Andreas Schwab <schwab@suse.de>
44069
44070 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
44071 directory.
44072
44073 2001-03-28 Robert Dewar <dewar@gnat.com>
44074
44075 * checks.ads:
44076 (Remove_Checks): New procedure
44077
44078 * checks.adb:
44079 (Remove_Checks): New procedure
44080
44081 * exp_util.adb:
44082 Use new Duplicate_Subexpr functions
44083 (Duplicate_Subexpr_No_Checks): New procedure
44084 (Duplicate_Subexpr_No_Checks_Orig): New procedure
44085 (Duplicate_Subexpr): Restore original form (checks duplicated)
44086 (Duplicate_Subexpr): Call Remove_Checks
44087
44088 * exp_util.ads:
44089 (Duplicate_Subexpr_No_Checks): New procedure
44090 (Duplicate_Subexpr_No_Checks_Orig): New procedure
44091 Add 2002 to copyright notice
44092
44093 * sem_util.adb: Use new Duplicate_Subexpr functions
44094
44095 * sem_eval.adb:
44096 (Eval_Indexed_Component): This is the place to call
44097 Constant_Array_Ref and to replace the value. We simply merge
44098 the code of this function in here, since it is now no longer
44099 used elsewhere. This fixes the problem of the back end not
44100 realizing we were clever enough to see that this was
44101 constant.
44102 (Expr_Val): Remove call to Constant_Array_Ref
44103 (Expr_Rep_Val): Remove call to Constant_Array_Ref
44104 Minor reformatting
44105 (Constant_Array_Ref): Deal with string literals (patch
44106 suggested by Zack Weinberg on the gcc list)
44107
44108 2001-03-28 Ed Schonberg <schonber@gnat.com>
44109
44110 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
44111 Duplicate_Subexpr_Move_Checks.
44112
44113 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
44114 Duplicate_Subexpr_Move_Checks.
44115
44116 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
44117 value of array exists before retrieving it (it may a private
44118 protected component in a function).
44119
44120 2002-03-28 Geert Bosch <bosch@gnat.com>
44121
44122 * prj-pp.adb : New file.
44123
44124 * prj-pp.ads : New file.
44125
44126 2002-03-28 Andreas Jaeger <aj@suse.de>
44127
44128 * Makefile.in (stamp-sdefault): Fix path for Makefile.
44129
44130 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
44131
44132 * misc.c (gnat_expand_expr): Move prototype.
44133
44134 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44135
44136 * misc.c (insert_default_attributes): Remove.
44137
44138 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44139
44140 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
44141 (gnat_init): Don't set hook.
44142 (gnat_expand_expr): Fix prototype.
44143
44144 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44145
44146 * misc.c (ggc_p): Remove.
44147
44148 2002-03-27 Geert Bosch <bosch@gnat.com>
44149
44150 * prj-makr.ads, prj-makr.adb : New files.
44151
44152 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
44153
44154 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
44155 (lang_mark_tree): Make static, rename.
44156
44157 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
44158
44159 * misc.c (maybe_build_cleanup): Remove.
44160
44161 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
44162
44163 * gigi.h (yyparse): Remove.
44164
44165 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
44166
44167 From Ben Brosgol <brosgol@gnat.com>
44168 * gnat_rm.texi: Sync with ACT version.
44169
44170 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
44171
44172 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
44173 (gnat_init): Remove old hook.
44174
44175 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
44176
44177 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
44178 (yyparse): Rename gnat_parse_file.
44179
44180 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
44181
44182 Delete all lines containing "$Revision:".
44183 * xeinfo.adb: Don't look for revision numbers.
44184 * xnmake.adb: Likewise.
44185 * xsinfo.adb: Likewise.
44186 * xsnames.adb: Likewise.
44187 * xtreeprs.adb: Likewise.
44188
44189 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44190
44191 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
44192 gnat_tree_code_name): Delete.
44193 (tree_code_type, tree_code_length, tree_code_name): Define.
44194 (gnat_init): Don't try to copy into the various tree_code
44195 arrays.
44196
44197 2002-03-11 Richard Henderson <rth@redhat.com>
44198
44199 * Makefile.in (.NOTPARALLEL): Add fake tag.
44200
44201 2002-03-07 Geert Bosch <bosch@gnat.com>
44202
44203 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
44204 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
44205 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
44206 switch-m.adb, switch-m.ads : New files.
44207
44208 2002-03-07 Geert Bosch <bosch@gnat.com>
44209
44210 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
44211 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
44212 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
44213 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
44214 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
44215 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
44216 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
44217 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
44218 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
44219 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
44220 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
44221 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
44222 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
44223 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
44224 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
44225 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
44226 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
44227 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
44228 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
44229 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
44230 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
44231 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
44232 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
44233 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
44234 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
44235 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
44236 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
44237 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
44238 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
44239 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
44240 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
44241 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
44242 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
44243 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
44244 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
44245 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
44246 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
44247 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
44248 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
44249 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
44250 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
44251 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
44252 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
44253 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
44254 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
44255 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
44256 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
44257 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
44258 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
44259 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
44260 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
44261 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
44262 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
44263 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
44264 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
44265 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
44266 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
44267 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
44268 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
44269 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
44270 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
44271 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
44272 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
44273 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
44274 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
44275 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
44276 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
44277 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
44278 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
44279 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
44280 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
44281 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
44282 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
44283 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
44284 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
44285 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
44286 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
44287 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
44288 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
44289 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
44290 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
44291 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
44292 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
44293 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
44294 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
44295 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
44296 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
44297 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
44298 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
44299 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
44300 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
44301 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
44302 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
44303 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
44304 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
44305 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
44306 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
44307
44308 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
44309 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
44310 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
44311 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
44312
44313 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
44314 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
44315
44316 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
44317 to mdll-fil.ad[bs] and mdll-util.ad[bs]
44318
44319 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
44320 from mdllfile.ad[bs] and mdlltool.ad[bs]
44321
44322 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44323
44324 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
44325 lieu of explicit sizeof/sizeof.
44326
44327 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
44328
44329 * misc.c (copy_lang_decl): Remove.
44330
44331 2002-02-27 Zack Weinberg <zack@codesourcery.com>
44332
44333 * misc.c: Delete traditional-mode-related code copied from the
44334 C front end but not used, or used only to permit the compiler
44335 to link.
44336
44337 2002-02-07 Richard Henderson <rth@redhat.com>
44338
44339 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
44340 * adaint.h (__gnat_to_gm_time): Update prototype.
44341
44342 2002-01-30 Richard Henderson <rth@redhat.com>
44343
44344 * trans.c (tree_transform) [N_Loop_Statement]: Use
44345 expand_exit_loop_top_cond.
44346
44347 2001-12-23 Richard Henderson <rth@redhat.com>
44348
44349 * utils.c (end_subprog_body): Push GC context around
44350 rest_of_compilation for nested functions.
44351
44352 2001-12-23 Richard Henderson <rth@redhat.com>
44353
44354 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
44355
44356 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
44357
44358 * gnat-style.texi (Declarations and Types): Remove ancient style
44359 rule which was mandated by code generation issues.
44360
44361 * gnat-style.texi (header): Add @dircategory, @direntry.
44362 (title page): Remove date.
44363 (general) Add @./@: where approriate, and two spaces after the
44364 full stop at the end of a sentence. Use @samp markup when
44365 referring concrete lexical entities (keywords, attribute names
44366 etc.), and @syntax for ARM grammar elements. Use @r for English
44367 text in comments. Use @emph for emphasis. Change "if-statements"
44368 etc. to "if statements" (without @samp). Break long lines. Make
44369 casing of section names consistent.
44370 (Identifiers): Use @samp markup for variable names.
44371 (Comments): Use @samp markup for comment characters. Line-end
44372 comments may follow any Ada code, not just statements. Fix
44373 misspelling of "Integer" as "integer".
44374 (Loop statements): Do not use variable name "I", use "J".
44375 (Subprogram Declarations): Document alignment.
44376 (Subprogram Bodies, Block statements): Document empty line before
44377 "begin".
44378
44379 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
44380
44381 * make.adb (Add_Switch): Make Generic_Position a procedure. The
44382 function approach did not work well because of a side effect (the
44383 function call could reallocate the table which was being indexed
44384 using its result). Fixes ada/4851.
44385
44386 2001-12-19 Robert Dewar <dewar@gnat.com>
44387
44388 * bindgen.adb: Minor reformatting
44389
44390 * cstand.adb: Minor reformatting
44391
44392 * fmap.adb: Minor reformatting
44393 Change name from Add for Add_To_File_Map (Add is much too generic)
44394 Change Path_Name_Of to Mapped_Path_Name
44395 Change File_Name_Of to Mapped_File_Name
44396 Fix copyright dates in header
44397
44398 * fmap.ads:
44399 Change name from Add for Add_To_File_Map (Add is much too generic)
44400 Change Path_Name_Of to Mapped_Path_Name
44401 Change File_Name_Of to Mapped_File_Name
44402 Fix copyright dates in header
44403
44404 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
44405 Add use clause for Fmap.
44406
44407 * make.adb: Minor reformatting
44408
44409 * osint.adb: Minor reformatting. Change of names in Fmap.
44410 Add use clause for Fmap.
44411
44412 * prj-env.adb: Minor reformatting
44413
44414 * prj-env.ads: Minor reformatting
44415
44416 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
44417 error found (there were odd exceptions to this general rule in
44418 -gnatec/-gnatem processing)
44419
44420 2001-12-19 Olivier Hainque <hainque@gnat.com>
44421
44422 * raise.c (__gnat_eh_personality): Exception handling personality
44423 routine for Ada. Still in rough state, inspired from the C++ version
44424 and still containing a bunch of debugging artifacts.
44425 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
44426 inspired from the C++ library.
44427
44428 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
44429 exception handling integration.
44430
44431 2001-12-19 Arnaud Charlet <charlet@gnat.com>
44432
44433 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
44434 (HIE_SOURCES): Add s-secsta.ad{s,b}.
44435 (HIE_OBJS): Add s-fat*.o
44436 (RAVEN_SOURCES): Remove files that are no longer required. Add
44437 interrupt handling files.
44438 (RAVEN_MOD): Removed, no longer needed.
44439
44440 2001-12-19 Robert Dewar <dewar@gnat.com>
44441
44442 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
44443 Add 2001 to copyright date
44444
44445 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
44446 need to force universal inlining for these cases.
44447
44448 2001-12-19 Arnaud Charlet <charlet@gnat.com>
44449
44450 * s-taprob.adb: Minor clean ups so that this unit can be used in
44451 Ravenscar HI.
44452
44453 * exp_ch7.adb: Allow use of secondary stack in HI mode.
44454 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
44455
44456 2001-12-19 Vincent Celier <celier@gnat.com>
44457
44458 * prj-tree.ads (Project_Node_Record): Add comments for components
44459 Pkg_Id and Case_Insensitive.
44460
44461 2001-12-19 Pascal Obry <obry@gnat.com>
44462
44463 * g-socket.adb: Minor reformatting. Found while reading code.
44464
44465 2001-12-19 Robert Dewar <dewar@gnat.com>
44466
44467 * prj-tree.ads: Minor reformatting
44468
44469 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
44470
44471 * config-lang.in (diff_excludes): Remove.
44472
44473 2001-12-17 Ed Schonberg <schonber@gnat.com>
44474
44475 * sem_res.adb (Resolve_Selected_Component): do not generate a
44476 discriminant check if the selected component is a component of
44477 the argument of an initialization procedure.
44478
44479 * trans.c (tree_transform, case of arithmetic operators): If result
44480 type is private, the gnu_type is the base type of the full view,
44481 given that the full view itself may be a subtype.
44482
44483 2001-12-17 Robert Dewar <dewar@gnat.com>
44484
44485 * sem_res.adb: Minor reformatting
44486
44487 * trans.c (tree_transform, case N_Real_Literal): Add missing third
44488 parameter in call to Machine (unknown horrible effects from this
44489 omission).
44490
44491 * urealp.h: Add definition of Round_Even for call to Machine
44492 Add third parameter for Machine
44493
44494 2001-12-17 Ed Schonberg <schonber@gnat.com>
44495
44496 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
44497 predefined units in No_Run_Time mode.
44498
44499 2001-12-17 Richard Kenner <kenner@gnat.com>
44500
44501 * misc.c (insn-codes.h): Now include.
44502
44503 2001-12-17 Olivier Hainque <hainque@gnat.com>
44504
44505 * a-except.adb: Preparation work for future integration of the GCC 3
44506 exception handling mechanism
44507 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
44508 to factorize previous code sequences and make them externally callable,
44509 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
44510 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
44511 Use the new notification routines.
44512
44513 2001-12-17 Emmanuel Briot <briot@gnat.com>
44514
44515 * prj-tree.ads (First_Choice_Of): Document the when others case
44516
44517 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44518
44519 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
44520 HI-E mode, in order to support Ravenscar profile properly.
44521
44522 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
44523 mode on 32 bits targets.
44524
44525 2001-12-17 Vincent Celier <celier@gnat.com>
44526
44527 * fmap.adb: Initial version.
44528
44529 * fmap.ads: Initial version.
44530
44531 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
44532 If search is successfully done, add to mapping.
44533
44534 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
44535
44536 * make.adb:
44537 (Gnatmake): Add new local variable Mapping_File_Name.
44538 Create mapping file when using project file(s).
44539 Delete mapping file before exiting.
44540
44541 * opt.ads (Mapping_File_Name): New variable
44542
44543 * osint.adb (Find_File): Use path name found in mapping, if any.
44544
44545 * prj-env.adb (Create_Mapping_File): New procedure
44546
44547 * prj-env.ads (Create_Mapping_File): New procedure.
44548
44549 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
44550 (Mapping_File)
44551
44552 * usage.adb: Add entry for new switch -gnatem.
44553
44554 * Makefile.in: Add dependencies for fmap.o.
44555
44556 2001-12-17 Ed Schonberg <schonber@gnat.com>
44557
44558 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
44559 is a package instantiation rewritten as a package body.
44560 (Install_Withed_Unit): Undo previous change, now redundant.
44561
44562 2001-12-17 Gary Dismuke <dismukes@gnat.com>
44563
44564 * layout.adb:
44565 (Compute_Length): Move conversion to Unsigned to callers.
44566 (Get_Max_Size): Convert Len expression to Unsigned after calls to
44567 Compute_Length and Determine_Range.
44568 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
44569 Compute_Length and Determine_Range.
44570 Above changes fix problem with length computation for supernull arrays
44571 where Max (Len, 0) wasn't getting applied due to the Unsigned
44572 conversion used by Compute_Length.
44573
44574 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44575
44576 * rtsfind.ads:
44577 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
44578 System.Secondary_Stack.
44579 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
44580 in HI-E mode.
44581 Remove unused entity RE_Exception_Data.
44582
44583 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
44584
44585 * rident.ads (No_Secondary_Stack): New restriction.
44586
44587 2001-12-17 Joel Brobecker <brobecke@gnat.com>
44588
44589 * gnat_rm.texi: Fix minor typos. Found while reading the section
44590 regarding "Bit_Order Clauses" that was sent to a customer.
44591 Very interesting documentation!
44592
44593 2001-12-17 Robert Dewar <dewar@gnat.com>
44594
44595 * sem_case.adb (Choice_Image): Avoid creating improper character
44596 literal names by using the routine Set_Character_Literal_Name. This
44597 fixes bombs in certain error message cases.
44598
44599 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44600
44601 * a-reatim.adb: Minor reformatting.
44602
44603 2001-12-17 Ed Schonberg <schonber@gnat.com>
44604
44605 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
44606 case where the formal is an extension of another formal in the current
44607 unit or in a parent generic unit.
44608
44609 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44610
44611 * s-tposen.adb: Update comments. Minor reformatting.
44612 Minor code clean up.
44613
44614 * s-tarest.adb: Update comments. Minor code reorganization.
44615
44616 2001-12-17 Gary Dismukes <dismukes@gnat.com>
44617
44618 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
44619 when Java_VM.
44620
44621 2001-12-17 Robert Dewa <dewar@gnat.com>
44622
44623 * exp_attr.adb: Minor reformatting
44624
44625 2001-12-17 Ed Schonberg <schonber@gnat.com>
44626
44627 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
44628 derivations nested within a child unit: verify that the parent
44629 type is declared in an outer scope.
44630
44631 2001-12-17 Robert Dewar <dewar@gnat.com>
44632
44633 * sem_ch12.adb: Minor reformatting
44634
44635 2001-12-17 Ed Schonberg <schonber@gnat.com>
44636
44637 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
44638 warning if current unit is a predefined one, from which bodies may
44639 have been deleted.
44640
44641 2001-12-17 Robert Dewar <dewar@gnat.com>
44642
44643 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
44644 Fix header format. Add 2001 to copyright date.
44645
44646 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
44647 which caused CE during compilation if checks were enabled.
44648
44649 2001-12-17 Vincent Celier <celier@gnat.com>
44650
44651 * make.adb:
44652 (Switches_Of): New function
44653 (Test_If_Relative_Path): New procedure
44654 (Add_Switches): Use new function Switches_Of
44655 (Collect_Arguments_And_Compile): Use new function Switches_Of.
44656 When using a project file, test if there are any relative
44657 search path. Fail if there are any.
44658 (Gnatmake): Only add switches for the primary directory when not using
44659 a project file. When using a project file, change directory to the
44660 object directory of the main project file. When using a project file,
44661 test if there are any relative search path. Fail if there are any.
44662 When using a project file, fail if specified executable is relative
44663 path with directory information, and prepend executable, if not
44664 specified as an absolute path, with the exec directory. Make sure
44665 that only one -o switch is transmitted to the linker.
44666
44667 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
44668
44669 * prj-nmsc.adb:
44670 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
44671 when using a non standard naming scheme.
44672 (Check_Ada_Naming_Scheme): Make sure that error messages
44673 do not raise exceptions.
44674 (Is_Illegal_Append): Return True if there is no dot in the suffix.
44675 (Language_Independent_Check): Check the exec directory.
44676
44677 * prj.adb (Project_Empty): Add new component Exec_Directory
44678
44679 * prj.ads:
44680 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
44681 (Project_Data): Add component Exec_Directory
44682
44683 * snames.adb: Updated to match snames.ads revision 1.215
44684
44685 * snames.ads: Added Exec_Dir
44686
44687 2001-12-17 Robert Dewar <dewar@gnat.com>
44688
44689 * make.adb: Minor reformatting
44690
44691 * prj-nmsc.adb: Minor reformatting
44692
44693 * snames.adb: Updated to match snames.ads
44694
44695 * snames.ads: Alphebetize entries for project file
44696
44697 2001-12-17 Ed Schonberg <schonber@gnat.com>
44698
44699 * trans.c (process_freeze_entity): Do nothing if the entity is a
44700 subprogram that was already elaborated.
44701
44702 2001-12-17 Richard Kenner <kenner@gnat.com>
44703
44704 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
44705 and Esize if object is referenced via pointer.
44706
44707 2001-12-17 Ed Schonberg <schonber@gnat.com>
44708
44709 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
44710 is discrete before analyzing choices.
44711
44712 2001-12-17 Joel Brobecker <brobecke@gnat.com>
44713
44714 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
44715 containing the name of the Ada Main Program. This string is mainly
44716 intended for the debugger.
44717 (Gen_Output_File_C): Do the equivalent change when generating a C file.
44718
44719 2001-12-17 Robert Dewar <dewar@gnat.com>
44720
44721 * ali.adb: Set new Dummy_Entry field in dependency entry
44722
44723 * ali.ads: Add Dummy_Entry field to source dependency table
44724
44725 * bcheck.adb (Check_Consistency): Ignore dummy D lines
44726
44727 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
44728
44729 * lib-writ.ads: Document dummy D lines for missing files.
44730
44731 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
44732
44733 2001-12-17 Robert Dewar <dewar@gnat.com>
44734
44735 * ali.adb: Type reference does not reset current file.
44736
44737 * ali.adb: Recognize and scan renaming reference
44738
44739 * ali.ads: Add spec for storing renaming references.
44740
44741 * lib-xref.ads: Add documentation for handling of renaming references
44742
44743 * lib-xref.adb: Implement output of renaming reference.
44744
44745 * checks.adb:
44746 (Determine_Range): Document local variables
44747 (Determine_Range): Make sure Hbound is initialized. It looks as though
44748 there could be a real problem here with an uninitialized reference
44749 to Hbound, but no actual example of failure has been found.
44750
44751 2001-12-17 Laurent Pautet <pautet@gnat.com>
44752
44753 * g-socket.ads:
44754 Fix comment of Shutdown_Socket and Close_Socket. These functions
44755 should not fail silently because if they are called twice, this
44756 probably means that there is a race condition in the user program.
44757 Anyway, this behaviour is consistent with the rest of this unit.
44758 When an error occurs, an exception is raised with the error message
44759 as exception message.
44760
44761 2001-12-17 Robert Dewar <dewar@gnat.com>
44762
44763 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
44764 that it happens before modification of Sloc values for -gnatD.
44765
44766 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
44767 so that it happens before modification of Sloc values for -gnatD.
44768
44769 * switch.adb: Minor reformatting
44770
44771 2001-12-15 Richard Henderson <rth@redhat.com>
44772
44773 * sem_ch7.adb: Wrap comment.
44774
44775 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
44776
44777 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
44778 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
44779 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
44780 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
44781 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
44782 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
44783 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
44784 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
44785 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
44786 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
44787 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
44788 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
44789 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
44790 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
44791 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
44792 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
44793 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
44794 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
44795 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
44796 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
44797 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
44798 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
44799 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
44800 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
44801 spelling errors.
44802
44803 2001-12-14 Vincent Celier <celier@gnat.com>
44804
44805 * osint.adb(Create_Debug_File): When an object file is specified,
44806 put the .dg file in the same directory as the object file.
44807
44808 2001-12-14 Robert Dewar <dewar@gnat.com>
44809
44810 * osint.adb: Minor reformatting
44811
44812 * lib-xref.adb (Output_Instantiation): New procedure to generate
44813 instantiation references.
44814
44815 * lib-xref.ads: Add documentation of handling of generic references.
44816
44817 * ali.adb (Read_Instantiation_Ref): New procedure to read
44818 instantiation references
44819
44820 * ali.ads: Add spec for storing instantiation references
44821
44822 * bindusg.adb: Minor reformatting
44823
44824 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44825
44826 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44827
44828 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44829
44830 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44831
44832 * csets.ads:
44833 Fix header format
44834 Add 2001 to copyright date
44835 Add entry for Latin-5 (Cyrillic ISO-8859-5)
44836
44837 2001-12-14 Matt Gingell <gingell@gnat.com>
44838
44839 * adaint.c: mktemp is a macro on Lynx and can not be used as an
44840 expression.
44841
44842 2001-12-14 Richard Kenner <kenner@gnat.com>
44843
44844 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
44845 if operand is CONSTRUCTOR.
44846
44847 2001-12-14 Ed Schonberg <schonber@gnat.com>
44848
44849 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
44850 before emiting check on right-hand side, so that exception information
44851 is correct.
44852
44853 2001-12-14 Richard Kenner <kenner@gnat.com>
44854
44855 * utils.c (create_var_decl): Throw away initializing expression
44856 if just annotating types and non-constant.
44857
44858 2001-12-14 Vincent Celier <celier@gnat.com>
44859
44860 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
44861 Default_Ada_...
44862
44863 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44864 Remove functions.
44865 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
44866
44867 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44868 Remove functions.
44869 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
44870
44871 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
44872
44873 * ChangeLog: Remove piece of diff output.
44874
44875 2001-12-14 Geert Bosch <bosch@gnat.com>
44876
44877 * config-lang.in: Update copyright notice
44878
44879 * layout.adb: Remove commented out code.
44880
44881 * mdllfile.ads: Update copyright notice. Fix header format.
44882
44883 * sem_case.ads: Likewise.
44884
44885 * sem_ch3.adb: Minor reformatting.
44886
44887 2001-12-12 Geert Bosch <bosch@gnat.com>
44888
44889 * freeze.ads: Update copyright date.
44890
44891 * g-comlin.ads: Minor reformatting.
44892
44893 * gnat-style.texi: Fix typo.
44894
44895 2001-12-12 Geert Bosch <bosch@gnat.com>
44896
44897 * einfo.h: Regenerate.
44898
44899 2001-12-12 Ed Schonberg <schonber@gnat.com>
44900
44901 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
44902 on known node types, rather than untyped fields. Further cleanups.
44903
44904 2001-12-12 Robert Dewar <dewar@gnat.com>
44905
44906 * sem_ch12.adb:
44907 (Save_Entity_Descendant): Minor comment update.
44908 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
44909 of an N_Attribute_Reference node. As per note below, this does not
44910 eliminate need for Associated_Node in attribute ref nodes.
44911 (Associated_Node): Documentation explicitly mentions attribute
44912 reference nodes, since this field is used in such nodes.
44913
44914 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
44915
44916 2001-12-12 Robert Dewar <dewar@gnat.com>
44917
44918 * s-stalib.adb: Add more comments on with statements being needed
44919
44920 * par-ch12.adb: Minor reformatting
44921
44922 * prj-dect.ads: Fix copyright header
44923
44924 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
44925 inputs fit in 32 bits, but the result still overflows.
44926
44927 * s-fatgen.ads: Minor comment improvement
44928
44929 2001-12-12 Ed Schonberg <schonber@gnat.com>
44930
44931 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
44932 formal derived type, look for an inherited component from the full
44933 view of the parent, if any.
44934
44935 2001-12-12 Robert Dewar <dewar@gnat.com>
44936
44937 * checks.ads (Apply_Alignment_Check): New procedure.
44938
44939 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
44940 ensure that the alignment of objects with address clauses is
44941 appropriate, and raise PE if not.
44942
44943 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
44944 Exp_Pakd.Known_Aligned_Enough
44945
44946 * mdllfile.ads: Minor reformatting
44947
44948 * mlib-fil.ads: Minor reformatting
44949
44950 2001-12-12 Ed Schonberg <schonber@gnat.com>
44951
44952 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
44953 fix to any component reference if enclosing record has non-standard
44954 representation.
44955
44956 2001-12-12 Vincent Celier <celier@gnat.com>
44957
44958 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
44959 Iteration
44960
44961 2001-12-12 Ed Schonberg <schonber@gnat.com>
44962
44963 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
44964 sem_attr.
44965
44966 2001-12-12 Robert Dewar <dewar@gnat.com>
44967
44968 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
44969
44970 2001-12-12 Emmanuel Briot <briot@gnat.com>
44971
44972 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
44973 and it adds dependencies to system.io.
44974
44975 2001-12-12 Pascal Obry <obry@gnat.com>
44976
44977 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
44978 variable name.
44979
44980 2001-12-11 Ed Schonberg <schonber@gnat.com>
44981
44982 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
44983 that is the parent of other generics, the instance body replaces the
44984 instance node. Retrieve the instance of the spec, which is the one
44985 that is visible in clients and within the body.
44986
44987 2001-12-11 Vincent Celier <celier@gnat.com>
44988
44989 * gnatmain.adb: Initial version.
44990
44991 * gnatmain.ads: Initial version.
44992
44993 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
44994
44995 * snames.adb: Updated to match snames.ads.
44996
44997 * snames.ads: Added Gnatstub.
44998
44999 2001-12-11 Vincent Celier <celier@gnat.com>
45000
45001 * prj-attr.adb (Initialization_Data): Change name from
45002 Initialisation_Data.
45003
45004 2001-12-11 Emmanuel Briot <briot@gnat.com>
45005
45006 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
45007 + and * applied to backslashed expressions like \r.
45008
45009 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
45010
45011 * g-os_lib.ads: String_List type added, Argument_List type is now
45012 subtype of String_List.
45013
45014 2001-12-11 Robert Dewar <dewar@gnat.com>
45015
45016 * g-os_lib.ads: Change copyright to FSF
45017 Add comments for String_List type
45018
45019 2001-12-11 Vincent Celier <celier@gnat.com>
45020
45021 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
45022 string to the buffer).
45023
45024 2001-12-11 Ed Schonberg <schonber@gnat.com>
45025
45026 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
45027 sem_attr.
45028
45029 * sem_attr.adb: Simplify previous fix for Address.
45030 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
45031 to avoid anomalies where the bound of the type appears to raise
45032 constraint error.
45033
45034 2001-12-11 Robert Dewar <dewar@gnat.com>
45035
45036 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
45037 handled.
45038
45039 2001-12-11 Ed Schonber <schonber@gnat.com>
45040
45041 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
45042 renamed unit before checking for recursive instantiations.
45043
45044 2001-12-11 Emmanuel Briot <briot@gnat.com>
45045
45046 * prj.ads: Add comments for some of the fields.
45047
45048 2001-12-11 Robert Dewar <dewar@gnat.com>
45049
45050 * lib-xref.adb (Output_Refs): Don't output type references outside
45051 the main unit if they are not otherwise referenced.
45052
45053 2001-12-11 Ed Schonberg <schonber@gnat.com>
45054
45055 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
45056 code and diagnose additional illegal uses
45057
45058 * sem_util.adb (Is_Object_Reference): An indexed component is an
45059 object only if the prefix is.
45060
45061 2001-12-11 Vincent Celier <celier@gnat.com>
45062
45063 * g-diopit.adb: Initial version.
45064
45065 * g-diopit.ads: Initial version.
45066
45067 * g-dirope.adb:
45068 (Expand_Path): Avoid use of Unbounded_String
45069 (Find, Wildcard_Iterator): Moved to child package Iteration
45070
45071 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
45072
45073 2001-12-11 Robert Dewar <dewar@gnat.com>
45074
45075 * sem_attr.adb: Minor reformatting
45076
45077 2001-12-11 Ed Schonberg <schonber@gnat.com>
45078
45079 * sem_ch3.adb: Clarify some ???.
45080
45081 2001-12-11 Robert Dewar <dewar@gnat.com>
45082
45083 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
45084 Exp_Pakd.Known_Aligned_Enough
45085
45086 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
45087 version is moved to Exp_Ch13.
45088
45089 2001-12-11 Robert Dewar <dewar@gnat.com>
45090
45091 * einfo.ads: Minor reformatting
45092
45093 * exp_ch5.adb: Add comment for previous.change
45094
45095 * ali.adb: New interface for extended typeref stuff.
45096
45097 * ali.ads: New interface for typeref stuff.
45098
45099 * checks.adb (Apply_Alignment_Check): New procedure.
45100
45101 * debug.adb: Add -gnatdM for modified ALI output
45102
45103 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
45104
45105 * lib-xref.adb: Extend generation of <..> notation to cover
45106 subtype/object types. Note that this is a complete rewrite,
45107 getting rid of the very nasty quadratic algorithm previously
45108 used for derived type output.
45109
45110 * lib-xref.ads: Extend description of <..> notation to cover
45111 subtype/object types. Uses {..} for these other cases.
45112 Also use (..) for pointer types.
45113
45114 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
45115
45116 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
45117 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
45118
45119 2001-12-11 Vincent Celier <celier@gnat.com>
45120
45121 * gnatcmd.adb:
45122 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
45123 Changed /BIND_ONLY to /ACTIONS=BIND
45124 Changed /LINK_ONLY to /ACTIONS=LINK
45125
45126 2001-12-11 Ed Schonberg <schonber@gnat.com>
45127
45128 * sem_ch8.adb (Find_Selected_Component): improved search for a
45129 candidate package in case of error.
45130
45131 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
45132 chain back on scope stack before reinstalling use clauses.
45133
45134 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
45135 is enabled, do not kill the code for the condition, to preserve
45136 warning.
45137
45138 2001-12-11 Robert Dewar <dewar@gnat.com>
45139
45140 * checks.adb (Insert_Valid_Check): Apply validity check to expression
45141 of conversion, not to result of conversion.
45142
45143 2001-12-11 Ed Schonberg <schonber@gnat.com>
45144
45145 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
45146 before freezing parent. If the declarations are mutually recursive,
45147 an access to the current record type may be frozen before the
45148 derivation is complete.
45149
45150 2001-12-05 Vincent Celier <celier@gnat.com>
45151
45152 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
45153 -c /COMPILE_ONLY, -l /LINK_ONLY
45154
45155 * opt.ads:
45156 (Bind_Only): New Flag
45157 (Link_Only): New flag
45158
45159 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
45160 and -l (Link_Only)
45161
45162 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
45163
45164 * make.adb:
45165 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
45166 (Gnatmake): Set the step flags. Only perform a step if the
45167 corresponding step flag is True.
45168 (Scan_Make_Arg): Reset the bind and link step flags when -u
45169 or -gnatc has been specified.
45170
45171 2001-12-05 Ed Schonberg <schonber@gnat.com>
45172
45173 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
45174 get bounds from right operand.
45175
45176 * sem_eval.adb: Minor reformatting
45177
45178 * exp_util.adb (Make_Literal_Range): use bound of literal rather
45179 than Index'First, its lower bound may be different from 1.
45180
45181 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
45182 and C48009J
45183
45184 2001-12-05 Vincent Celier <celier@gnat.com>
45185
45186 * prj-nmsc.adb Minor reformatting
45187
45188 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
45189 set and libraries are not supported.
45190
45191 2001-12-05 Ed Schonberg <schonber@gnat.com>
45192
45193 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
45194 private view explicitly, so the back-end can treat as a global
45195 when appropriate.
45196
45197 2001-12-05 Ed Schonberg <schonber@gnat.com>
45198
45199 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
45200 unit, always replace instance node with new body, for ASIS use.
45201
45202 2001-12-05 Vincent Celier <celier@gnat.com>
45203
45204 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
45205 libraries are not supported and both attributes Library_Name and
45206 Library_Dir are specified.
45207
45208 * prj-proc.adb (Expression): Set location of Result to location of
45209 first term.
45210
45211 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
45212 (prj-nmsc is now importing MLib.Tgt)
45213
45214 * prj-proc.adb: Put the change indicated above that was forgotten.
45215
45216 2001-12-05 Robert Dewar <dewar@gnat.com>
45217
45218 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
45219
45220 2001-12-05 Ed Schonberg <schonber@gnat.com>
45221
45222 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
45223 constraint, introduce explicit subtype declaration and derive from it.
45224
45225 * sem_ch3.adb: Minor reformatting
45226
45227 2001-12-05 Robert Dewar <dewar@gnat.com>
45228
45229 * checks.adb (Determine_Range): Increase cache size for checks.
45230 Minor reformatting
45231
45232 * exp_ch6.adb: Minor reformatting
45233 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
45234 a parameter whose root type is System.Address, since treating such
45235 subprograms as pure in the code generator is almost surely a mistake
45236 that will lead to unexpected results.
45237
45238 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
45239 change handling of conversions.
45240
45241 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
45242
45243 2001-12-05 Ed Schonberg <schonber@gnat.com>
45244
45245 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
45246 aggregate with static wrong size, attach generated Raise node to
45247 declaration.
45248
45249 2001-12-05 Robert Dewar <dewar@gnat.com>
45250
45251 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
45252 Fixes compilation abandoned bomb in B24009B.
45253
45254 2001-12-05 Ed Schonberg <schonber@gnat.com>
45255
45256 * sem_ch12.adb:
45257 Document use of Associated_Node on Selected_Components.
45258 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
45259 to clarify use of untyped descendant fields.
45260
45261 2001-12-05 Robert Dewar <dewar@gnat.com>
45262
45263 * prj-dect.ads: Add ??? comment
45264 Add 2001 to copyright notice (was not done in after all)
45265
45266 * prj-part.adb: Minor reformatting. Reword one awkward error message.
45267
45268 * prj.ads: Minor reformatting throughout, and add some ??? comments
45269
45270 * snames.ads: Minor reformatting
45271
45272 2001-12-05 Geert Bosch <bosch@gnat.com>
45273
45274 * snames.adb: Autoupdate
45275
45276 2001-12-05 Vincent Celier <celier@gnat.com>
45277
45278 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
45279
45280 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
45281
45282 * prj-env.adb: Minor comment changes (modifying -> extends).
45283
45284 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
45285
45286 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
45287 Tok_Extends.
45288
45289 * prj.adb (Initialize): Change Modifying to Extends.
45290
45291 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
45292
45293 * prj.ads: Minor comment change (Modifying -> extending).
45294
45295 * snames.ads: Change modifying to extends.
45296
45297 2001-12-05 Robert Dewar <dewar@gnat.com>
45298
45299 * sem_warn.adb: Remove stuff for conditionals, we are not going to
45300 do this after all.
45301
45302 * sem_warn.ads: Remove stuff for conditionals, we are not going to
45303 do this after all. Add 2001 to copyright notice
45304
45305 2001-12-04 Geert Bosch <bosch@gnat.com>
45306
45307 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
45308
45309 2001-12-04 Robert Dewar <dewar@gnat.com>
45310
45311 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
45312 location if we already have errors. Stops some cases of cascaded
45313 errors.
45314
45315 * errout.adb: Improve comment.
45316
45317 2001-12-04 Robert Dewar <dewar@gnat.com>
45318
45319 * sem_ch12.adb:
45320 (Analyze_Formal_Type_Definition): Defend against Error.
45321 (Analyze_Formal_Subprogram): Defend against Error.
45322
45323 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
45324 remove following semicolon if present. Removes cascaded error.
45325
45326 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
45327
45328 * bindgen.adb:
45329 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
45330 exceptions equals 0.
45331 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
45332 Fixes PIWG E tests (which have to be run with -gnatL).
45333
45334 2001-12-04 Robert Dewar <dewar@gnat.com>
45335
45336 * einfo.ads: Minor reformatting
45337
45338 2001-12-04 Ed Schonberg <schonber@gnat.com>
45339
45340 * einfo.ads: Block_Node points to the identifier of the block, not to
45341 the block node itself, to preserve the link when the block is
45342 rewritten, e.g. within an if-statement with a static condition.
45343
45344 * inline.adb (Cleanup_Scopes): recover block statement from block
45345 entity using new meaning of Block_Node.
45346
45347 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
45348 identifier of block node, rather than to node itself.
45349
45350 2001-12-04 Gary Dismukes <dismukes@gnat.com>
45351
45352 * layout.adb:
45353 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
45354 (Discrimify): Go back to setting the Etypes of the selected component
45355 because the Vname component does not exist at this point and will
45356 fail name resolution. Also set Analyzed.
45357 Remove with and use of Sem_Res.
45358
45359 2001-12-04 Arnaud Charlet <charlet@gnat.com>
45360
45361 * Makefile.in: (HIE_SOURCES): add s-fat*.
45362
45363 2001-12-04 Robert Dewar <dewar@gnat.com>
45364
45365 * sem_attr.adb:
45366 (Compile_Time_Known_Attribute): New procedure.
45367 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
45368 proper range check.
45369
45370 2001-12-04 Ed Schonberg <schonber@gnat.com>
45371
45372 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
45373 processing discriminants to diagnose illegal default values.
45374
45375 2001-12-04 Ed Schonberg <schonber@gnat.com>
45376
45377 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
45378 access discriminant within a type extension that constrains its
45379 parent discriminants.
45380
45381 2001-12-04 Ed Schonberg <schonber@gnat.com>
45382
45383 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
45384 is malformed, use instance of Any_Id to allow analysis to proceed.
45385
45386 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
45387 type definition is illegal.
45388 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
45389 misplaced.
45390
45391 2001-12-04 Ed Schonberg <schonber@gnat.com>
45392
45393 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
45394 constants.
45395
45396 2001-12-04 Robert Dewar <dewar@gnat.com>
45397
45398 * errout.adb: Minor reformatting
45399
45400 2001-12-04 Robert Dewar <dewar@gnat.com>
45401
45402 * exp_util.adb: Minor reformatting from last change
45403
45404 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
45405 which is a rewriting of an expression, traverse the original
45406 expression to remove warnings that may have been posted on it.
45407
45408 2001-12-04 Ed Schonberg <schonber@gnat.com>
45409
45410 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
45411 record that has other packed components.
45412
45413 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
45414
45415 * adaint.c: Minor cleanups.
45416
45417 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
45418
45419 * adaint.c: Do not use utime.h on vxworks.
45420
45421 2001-12-04 Arnaud Charlet <charlet@gnat.com>
45422
45423 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
45424 more confusion than it solves.
45425
45426 2001-12-04 Geert bosch <bosch@gnat.com>
45427
45428 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
45429
45430 2001-12-04 Geert Bosch <bosch@gnat.com>
45431
45432 * Makefile.in (update-sources): New target.
45433 For use by gcc_release script.
45434
45435 2001-12-04 Ed Schonberg <schonber@gnat.com>
45436
45437 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
45438 a configuration pragma, it is now legal wherever a pragma can appear.
45439
45440 2001-12-04 Zack Weinberg <zack@codesourcery.com>
45441
45442 * Makefile.in: Don't set ALL. Delete @cross_defines@,
45443 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
45444 is now @CROSS@ -DIN_GCC; update comment.
45445
45446 2001-12-04 Robert Dewar <dewar@gnat.com>
45447
45448 * einfo.adb (Has_Pragma_Pure_Function): New flag.
45449 Fix problem that stopped ceinfo from working
45450
45451 * einfo.ads (Has_Pragma_Pure_Function): New flag.
45452
45453 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
45454
45455 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
45456
45457 * gnatchop.adb:
45458 (File_Time_Stamp): New procedure.
45459 (Preserve_Mode): New boolean.
45460 (Write_Unit): Pass time stamp.
45461 Implement -p switch (preserve time stamps).
45462
45463 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
45464
45465 * gnatchop.adb: Do usage info for -p switch
45466
45467 * adaint.h (__gnat_set_file_time_name): New function
45468
45469 * adaint.c (__gnat_set_file_time_name): Implement
45470
45471 * adaint.h: Fix typo
45472
45473 2001-12-03 Robert Dewar <dewar@gnat.com>
45474
45475 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
45476 have Associated_Node.
45477
45478 2001-12-03 Robert Dewar <dewar@gnat.com>
45479
45480 * prj-proc.adb: Minor reformatting
45481
45482 * make.adb: Minor reformatting
45483
45484 2001-12-03 Geert Bosch <bosch@gnat.com>
45485
45486 * make.adb: Minor reformatting.
45487
45488 2001-12-03 Robert Dewar <dewar@gnat.com>
45489
45490 * sem_ch12.adb: Minor reformatting
45491
45492 2001-12-03 Ed Schonberg <schonber@gnat.com>
45493
45494 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
45495 push Standard on the stack before analyzing the instance body,
45496 in order to have a clean visibility environment.
45497
45498 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
45499
45500 2001-12-03 Ed Schonberg <schonber@gnat.com>
45501
45502 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
45503 instantiation of a body that contains an inlined body.
45504
45505 2001-12-03 Ed Schonberg <schonber@gnat.com>
45506
45507 * sem_ch12.adb:
45508 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
45509 to prevent freezing within formal packages.
45510 (Freeze_Subprogram_Body): If body comes from another instance that
45511 appeared before its own body, place freeze node at end of current
45512 declarative part, to prevent a back-end crash.
45513 (Inline_Instance_Body): Handle properly a package instance within
45514 a subprogram instance that is a child unit.
45515
45516 2001-12-01 Graham Stott <grahams@redhat.com>
45517
45518 * Makefile.in (misc.o): Add missing $(srcdir) prefix
45519 and add optabs.h dependency.
45520
45521 * misc.c: Include optabs.h
45522 (gnat_tree_code_type): Make static and const.
45523 (gnat_tree_code_length): Likewise.
45524 (gnat_tree_code_name): Likewise.
45525 (update_setjmp_buf): Obtain operands mode from insn_data.
45526
45527 2001-11-29 Richard Henderson <rth@redhat.com>
45528
45529 * init.c: Remove obsolete dwarf2 frame.h section.
45530
45531 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
45532
45533 * Make-lang.in (ada.generated-manpages): New dummy target.
45534
45535 2001-11-29 Ed Schonberg <schonber@gnat.com>
45536
45537 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
45538 into Command, an array conversion is illegal here. Uncovered by
45539 ACATS B460005.
45540
45541 2001-11-28 Geert Bosch <bosch@gnat.com>
45542
45543 * init.c: Minor whitespace changes.
45544
45545 2001-11-28 Doug Rupp <rupp@gnat.com>
45546
45547 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
45548 signal stack.
45549
45550 2001-11-28 Zack Weinberg <zack@codesourcery.com>
45551
45552 * misc.c (gnat_expand_constant): Move declaration above
45553 definition of lang_hooks.
45554 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
45555 (gnat_init): lang_expand_constant no longer exists.
45556
45557 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
45558 always have vprintf.
45559 (gnat_init): Always call set_internal_error_function.
45560
45561 2001-11-27 Andreas Jaeger <aj@suse.de>
45562
45563 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
45564
45565 2001-11-27 Laurent Guerby <guerby@acm.org>
45566
45567 * Makefile.in: Regenerate Ada dependencies.
45568
45569 2001-11-26 Richard Henderson <rth@redhat.com>
45570
45571 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
45572 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
45573 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
45574
45575 2001-11-25 Laurent Guerby <guerby@acm.org>
45576
45577 * sysdep.c (rts_get_*): Fix style.
45578
45579 2001-11-19 Laurent Guerby <guerby@acm.org>
45580
45581 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
45582 since it is of no apparent use and cause warnings.
45583
45584 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
45585
45586 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
45587 static too.
45588 (gnat_init): Don't return NULL.
45589 (finish_parse): Remove.
45590
45591 2001-11-17 Laurent Guerby <guerby@acm.org>
45592
45593 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
45594 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
45595 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
45596 * lang-spec.h: Add missing struct field to silence warnings.
45597 * sysdep.c (rts_get_*): Provide K&R prototype.
45598 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
45599 * traceback.c (Unlock_Task, Lock_Task): Likewise.
45600 * tracebak.c (__gnat_backtrace): Remove unused variable.
45601 * utils.c (end_subprog_body): Move to K&R style.
45602
45603 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
45604
45605 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
45606
45607 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
45608
45609 * misc.c (gnat_init): Change prototype. Include the
45610 functionality of the old init_parse and init_decl_processing.
45611 (gnat_init_decl_processing): New prototype.
45612 (init_parse): Remove.
45613 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
45614
45615 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
45616
45617 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
45618 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
45619 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
45620 set_yydebug): Remove.
45621
45622 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
45623
45624 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
45625 (struct lang_hooks): Constify.
45626 (language_string, lang_identify): Remove.
45627 * utils.c (init_decl_processing): Update.
45628
45629 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
45630
45631 * misc.c: Include langhooks-def.h.
45632 * Makefile.in: Update.
45633
45634 2001-10-30 Robert Dewar <dewar@gnat.com>
45635
45636 * style.adb:
45637 (Check_Identifier): Rewrite circuit to be compatible with use of letters
45638 in the upper half of ASCII.
45639 (Check_Identifier): Minor reformatting
45640
45641 2001-10-30 Geert Bosch <bosch@gnat.com>
45642
45643 * (Associated_Node, Set_Associated_Node): Do not check for
45644 Freeze_Entity.
45645
45646 2001-10-30 Robert Dewar <dewar@gnat.com>
45647
45648 * a-reatim.ads: Minor reformatting
45649
45650 2001-10-30 Robert Dewar <dewar@gnat.com>
45651
45652 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
45653 undocumented declarations.
45654
45655 2001-10-30 Pascal Obry <obry@gnat.com>
45656
45657 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
45658 to the binder and linker.
45659 Minor style fix.
45660
45661 * mdll.ads: Fix layout. Update copyright notice.
45662
45663 * mdll.adb: Fix layout. Update copyright notice.
45664
45665 2001-10-30 Robert Dewar <dewar@gnat.com>
45666
45667 * usage.adb: Minor fix to output for -gnaty.
45668
45669 2001-10-30 Ed Schonberg <schonber@gnat.com>
45670
45671 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
45672 to accommodate all its possible values.
45673
45674 * a-reatim.adb (Split): Special-case handling of Time_Span_First
45675 and of small absolute values of T.
45676
45677 2001-10-30 Richard Kenner <kenner@gnat.com>
45678
45679 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
45680 set_mem_attributes since not needed and wrong if RESULT if a REG;
45681 fixes ACATS failures.
45682
45683 2001-10-30 Geert Bosch <bosch@gnat.com>
45684
45685 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
45686 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
45687
45688 2001-10-30 Robert Dewar <dewar@gnat.com>
45689
45690 * bindusg.adb: Undocument -f switch.
45691
45692 * gnatcmd.adb: Remove /FULL_ELABORATION.
45693
45694 * opt.ads (Force_RM_Elaboration_Order): Document that this is
45695 obsolescent.
45696
45697 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
45698
45699 * gnatbind.adb: Minor update of warning msg.
45700
45701 2001-10-30 Vincent Celier <celier@gnat.com>
45702
45703 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
45704 for project file switches (-P (/PROJECT_FILE=),
45705 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
45706 or MEDIUM or HIGH)
45707
45708 2001-10-30 Geert Bosch <bosch@gnat.com>
45709
45710 * decl.c: Minor whitespace fixes.
45711
45712 2001-10-30 Richard Kenner <kenner@gnat.com>
45713
45714 * utils2.c (build_allocator): Test for SIZE overflow in array case too
45715
45716 2001-10-30 Geert Bosch <bosch@gnat.com>
45717
45718 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
45719 Found due to GCC 3.0 warning of using uninitialized value.
45720
45721 * layout.adb:
45722 (Get_Max_Size): Use variant record for tracking value/expression.
45723 Makes logic clearer and prevents warnings for uninitialized variables.
45724 (Layout_Array_Type): Use variant record for tracking value/expression.
45725 Makes logic clearer and prevents warnings for uninitialized variables.
45726
45727 2001-10-30 Robert Dewar <dewar@gnat.com>
45728
45729 * lib.adb: Minor reformatting
45730
45731 * s-taprop.ads: Minor reformatting
45732
45733 2001-10-29 Laurent Guerby <guerby@acm.org>
45734
45735 * init.c:
45736 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
45737 const.
45738 (_gnat_error_handler): Make MSG const.
45739
45740 2001-10-29 Richard Kenner <kenner@gnat.com>
45741
45742 * sysdep.c: Fix localtime_r problem on LynxOS.
45743 Also remove #elif to avoid warnings.
45744
45745 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45746 used by this.
45747
45748 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
45749
45750 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
45751
45752 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
45753 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
45754 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
45755 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
45756 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
45757 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
45758 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
45759 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
45760 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
45761 types.ads, urealp.adb: Fix spelling errors.
45762
45763 2001-10-27 Laurent Guerby <guerby@acm.org>
45764
45765 * trans.c (gigi): Fix non determinism leading to bootstrap
45766 comparison failures for debugging information.
45767
45768 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
45769
45770 * gnat_rm.texi: Use @./@: where appropriate.
45771
45772 2001-10-26 Robert Dewar <dewar@gnat.com>
45773
45774 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
45775
45776 2001-10-26 Richard Kenner <kenner@gnat.com>
45777
45778 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
45779
45780 2001-10-26 Richard Kenner <kenner@gnat.com>
45781
45782 * decl.c (validate_size): Modify message for bad size to avoid
45783 implication that compiler is modifying the size.
45784
45785 2001-10-26 Robert Dewar <dewar@gnat.com>
45786
45787 * prj-util.adb: Minor reformatting. Fix bad header format.
45788
45789 2001-10-26 Robert Dewar <dewar@gnat.com>
45790
45791 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
45792
45793 * sinfo.ads: Clarify use of Associated_Node (documentation only).
45794
45795 * sem_ch12.adb: Change Node4 to Associated_Node. Change
45796 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
45797 much more narrowly in places where needed. These are cleanups.
45798
45799 2001-10-26 Joel Brobecker <brobecke@gnat.com>
45800
45801 * 5zosinte.ads (null_pthread): new constant.
45802
45803 * 5ztaprop.adb:
45804 (Initialize_TCB): Initialize thread ID to null, to be able to verify
45805 later that this field has been set.
45806 (Finalize_TCB): ditto.
45807 (Suspend_Task): Verify that the thread ID is not null before using it.
45808 (Resume_Task): ditto.
45809
45810 * s-tasdeb.adb:
45811 (Resume_All_Tasks): Lock the tasks list before using it.
45812 (Suspend_All_Tasks): ditto.
45813
45814 2001-10-26 Richard Kenner <kenner@gnat.com>
45815
45816 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
45817 Make constant variant of designated type for Is_Access_Constant.
45818 Call update_pointer_to with main variant.
45819
45820 * trans.c (process_freeze_entity, process_type):
45821 Call update_pointer_to on main variant.
45822
45823 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
45824 If main variant, update all other variants.
45825
45826 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
45827 TREE_STATIC.
45828
45829 2001-10-26 Robert Dewar <dewar@gnat.com>
45830
45831 * prj-util.adb: Minor reformatting
45832
45833 2001-10-26 Robert Dewar <dewar@gnat.com>
45834
45835 * prj-util.adb: Minor reformatting
45836
45837 2001-10-26 Robert Dewar <dewar@gnat.com>
45838
45839 * prj-attr.adb: Minor reformatting throughout
45840
45841 2001-10-26 Robert Dewar <dewar@gnat.com>
45842
45843 * prj-attr.ads: Minor reformatting
45844 Add ??? comment (this whole spec has almost no comments)
45845
45846 2001-10-26 Vincent Celier <celier@gnat.com>
45847
45848 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
45849 ("//") that precede the drive letter on Interix.
45850
45851 2001-10-26 Geert Bosch <bosch@gnat.com>
45852
45853 * gnat_rm.texi: Add GNAT Reference Manual.
45854
45855 2001-10-25 Robert Dewar <dewar@gnat.com>
45856
45857 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
45858 is Error. Similar change for other renaming cases.
45859
45860 2001-10-25 Robert Dewar <dewar@gnat.com>
45861
45862 * s-atacco.ads: Add pragma Inline_Always for functions.
45863 Fix header format. Add copyright 2001
45864
45865 2001-10-25 Ed Schonberg <schonber@gnat.com>
45866
45867 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
45868 return Error rather than Empty so that analysis can proceed.
45869
45870 2001-10-25 Ed Schonberg <schonber@gnat.com>
45871
45872 * sem_util.adb (Enter_Name): better handling of cascaded error
45873 messages when a unit appears in its own context.
45874
45875 2001-10-25 Ed Schonberg <schonber@gnat.com>
45876
45877 * sem_util.adb (Defining_Entity): in case of error, attach created
45878 entity to specification, so that semantic analysis can proceed.
45879
45880 2001-10-25 Robert Dewar <dewar@gnat.com>
45881
45882 * sem_util.adb
45883 (Defining_Entity): Deal with Error.
45884 (Process_End_Label): Deal with bad end label for.
45885
45886 2001-10-25 Ed Schonberg <schonber@gnat.com>
45887
45888 * sem_elab.adb (Check_A_Call): refine message when call is in an
45889 instance but callee is not declared in the generic unit.
45890
45891 2001-10-25 Ed Schonberg <schonber@gnat.com>
45892
45893 * sem_elab.adb (Check_A_Call): check for renaming before finding the
45894 enclosing unit, which may already be different from the calling unit.
45895
45896 2001-10-25 Geert Bosch <bosch@gnat.com>
45897
45898 * 4gintnam.ads: fix header format.
45899
45900 2001-10-25 Ed Schonberg <schonber@gnat.com>
45901
45902 * sem_res.adb (Resolve_Call): if the call is actually an indexing
45903 operation on the result of a parameterless call, perform elaboration
45904 check after the node has been properly rewritten.
45905
45906 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
45907 inlined within the generic tree, the defining identifier is not a
45908 compilation_unit.
45909
45910 2001-10-25 Ed Schonberg <schonber@gnat.com>
45911
45912 * sem_res.adb (Resolve): special-case resolution of Null in an
45913 instance or an inlined body to avoid view conflicts.
45914
45915 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
45916 compatibility by retrieving the access type of the generic copy.
45917
45918 2001-10-25 Robert Dewar <dewar@gnat.com>
45919
45920 * sem_ch3.adb:
45921 (Analyze_Number_Declaration): Handle error expression.
45922 (Signed_Integer_Type_Declaration): Handle error bound.
45923 (Analyze_Subtype_Indication): Handle error range.
45924
45925 * sem_util.adb (Get_Index_Bounds): Check for Error.
45926
45927 2001-10-25 Robert Dewar <dewar@gnat.com>
45928
45929 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
45930 in no run time mode.
45931
45932 2001-10-25 Pascal Obry <obry@gnat.com>
45933
45934 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
45935 mode case for ALLOC case.
45936
45937 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
45938 all platforms. Improvement of last change.
45939
45940 2001-10-25 Robert Dewar <dewar@gnat.com>
45941
45942 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
45943
45944 2001-10-25 Geert Bosch <bosch@gnat.com>
45945
45946 * osint.adb (Is_Relative): Remove duplicate.
45947
45948 2001-10-25 Pascal Obry <obry@gnat.com>
45949
45950 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
45951 pathnames in UNIX and DOS style with drive letter.
45952 (Is_Relative): new routine.
45953
45954 * osint.adb: Minor reformatting
45955
45956 * osint.adb (Is_Relative): implementation using
45957 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
45958
45959 2001-10-25 Pascal Obry <obry@gnat.com>
45960
45961 * g-dirope.adb (Basename): correctly compute offset between the
45962 original Path and the translated one.
45963
45964 * g-dirope.adb: (Base_Name): add some comments.
45965
45966 2001-10-25 Robert Dewar <dewar@gnat.com>
45967
45968 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
45969 in HIE mode, avoids compilation abandoned message
45970
45971 * exp_imgv.adb: Correct typo in previous change
45972
45973 * exp_imgv.adb: Correct typo in previous change (not my day!)
45974
45975 2001-10-25 Robert Dewar <dewar@gnat.com>
45976
45977 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
45978
45979 2001-10-25 Pascal Obry <obry@gnat.com>
45980
45981 * g-awk.ads: Move all pragma inlines next to the routine
45982 declarations. This is more uniform with other GNAT spec.
45983
45984 2001-10-22 Geert Bosch <bosch@gnat.com>
45985
45986 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
45987
45988 2001-10-19 Geert Bosch <bosch@gnat.com>
45989
45990 * Makefile.in (tools, gnattools): Remove gnatmem.
45991
45992 2001-10-17 Richard Henderson <rth@redhat.com>
45993
45994 * Makefile.in (misc.o): Depend on langhooks.h.
45995 * misc.c: Include it.
45996 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
45997 (LANG_HOOKS_DECODE_OPTION): New.
45998 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
45999
46000 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
46001
46002 * trans.c (tree_transform): Adjust to recent change in
46003 expand_asm_operands to implement named asm operands.
46004
46005 2001-10-11 Ed Schonberg <schonber@gnat.com>
46006
46007 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
46008 renaming of discriminant for mutable record type.
46009
46010 2001-10-11 Robert Dewar <dewar@gnat.com>
46011
46012 * validsw.adb: Properly save -gnatVn status.
46013
46014 2001-10-11 Robert Dewar <dewar@gnat.com>
46015
46016 * usage.adb: Add lines for V switch.
46017
46018 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
46019 (/VALIDITY_CHECKING).
46020
46021 2001-10-11 Ed Schonberg <schonber@gnat.com>
46022
46023 * sem_type.adb (Add_One_Interp): an operator for a type declared in
46024 an extension of System is known to be visible.
46025
46026 2001-10-11 Ed Schonberg <schonber@gnat.com>
46027
46028 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
46029 properly. Fixes regression on ACATS C34005G.
46030
46031 2001-10-11 Robert Dewar <dewar@gnat.com>
46032
46033 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
46034 loop in generic instance, since this is likely not very useful.
46035
46036 2001-10-11 Robert Dewar <dewar@gnat.com>
46037
46038 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
46039 the error message for high integrity mode.
46040
46041 * rtsfind.adb (RTE): Give message if we try to find an entity that
46042 is not available in high integrity mode.
46043
46044 * rtsfind.ads:
46045 (OK_To_Use_In_HIE_Mode): New array.
46046 (RTE): May return Empty in high integrity mode.
46047
46048 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
46049 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
46050
46051 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
46052 unit if not inlined always and in no runtime mode. Fixes problem
46053 caused by new Rtsfind changes.
46054
46055 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
46056 body is deleted.
46057
46058 * rtsfind.adb (RTE): Make sure we do not try to load unit after
46059 giving message for entity not available in high integrity mode.
46060
46061 2001-10-11 Pascal Obry <obry@gnat.com>
46062
46063 * impunit.adb: Add GNAT.CRC32.
46064
46065 2001-10-11 Ed Schonberg <schonber@gnat.com>
46066
46067 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
46068 properly the case where one universal operand in a non-static
46069 exponentiation of a real literal.
46070
46071 2001-10-11 Ed Schonberg <schonber@gnat.com>
46072
46073 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
46074 clause, return the gobal finalization list, for lack of anthing else.
46075
46076 2001-10-11 Ed Schonberg <schonber@gnat.com>
46077
46078 * exp_ch7.adb (Make_Transient_Block): if statement is within
46079 exception handler, always use new transient scope to place Clean
46080 procedure.
46081
46082 2001-10-11 Pascal Obry <obry@gnat.com>
46083
46084 * Makefile.in:
46085 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46086 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46087 (GNATLS_RTL_OBJS): add g-crc32.o
46088 (GNATMAKE_RTL_OBJS): add g-crc32.o
46089
46090 * ali-util.adb:
46091 (CRC_Match): new function.
46092 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
46093 instead of the previous simple checksum algorithm.
46094 (Time_Stamp_Mismatch): use CRC_Match for comparison.
46095 (Set_Source_Table): idem.
46096
46097 * ali-util.ads:
46098 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
46099 instead of simple checksum.
46100 (CRC_Match): new function.
46101 (CRC_Error): new constant.
46102
46103 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
46104 a CRC now and not a simple checksum. A CRC uses lower-case hex
46105 letters, fixes ambiguity in parsing.
46106
46107 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
46108 is what this variable will store.
46109
46110 * bcheck.adb: Change reference to chechsum in comments by CRC.
46111 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
46112 rename All_Checksum_Match to All_CRC_Match. Change due to API
46113 renaming since now GNAT does not use a simple checksum but a
46114 CRC using GNAT.CRC32.
46115
46116 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
46117 now and not anymore a simple checksum.
46118
46119 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
46120 places.
46121
46122 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
46123
46124 * scans.adb:
46125 (Restore_Scan_State): rename Checksum to CRC.
46126 (Save_Scan_State): idem.
46127
46128 * scans.ads:
46129 With GNAT.CRC32.
46130 (Checksum): rename to CRC.
46131 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
46132
46133 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
46134 GNAT.CRC32). Update copyright notice.
46135
46136 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
46137 GNAT.CRC32). Update copyright notice.
46138
46139 * scn.adb:
46140 (Accumulate_Checksum): removed.
46141 (Update): new procedure. Add a wide-character into the CRC.
46142
46143 * sinput-l.adb:
46144 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
46145 (Load_File): fix initialization of S (change Source_Checksum to
46146 Source_CRC)
46147
46148 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
46149 Source_CRC in S initialization.
46150
46151 * sinput.adb (Source_Checksum): renamed to Source_CRC.
46152
46153 * sinput.ads (Source_Checksum): renamed to Source_CRC.
46154 Update comments for the CRC.
46155
46156 * types.adb (Hex): Use lowercase for the letter part.
46157
46158 * types.ads (Get_Hex_String): Returns the hexadecimal representation
46159 for a word. This is currently used only for CRC. In previous version,
46160 the checksum was using a representation with all letter being
46161 upper-case. With the new implementation (using CRC) we do not remove
46162 the 32th bit of the CRC, so we can have an upper-case starting letter
46163 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
46164 It is ambigous since the CRC was optional and could be followed by
46165 options like EB, EE. So now this routines uses lower-case letter for
46166 the hexadecimal representation. Strange enough only lower case letters
46167 where checked in Scan_ALI (even if this was not a possible case).
46168
46169 * gnatvsn.ads (Library_Version): changed to 3.15a.
46170
46171 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
46172 for the compiler.
46173
46174 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
46175 for the compiler.
46176
46177 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
46178 Add 2001 to copyright notice
46179 (Accumulate_Checksum): Modify to use System.CRC32.
46180
46181 * ali-util.ads: Redo changes of previous revision to continue to use
46182 the word Checksum. Add 2001 to copyright notice.
46183
46184 * ali.adb: Undo some of previous changes, not needed.
46185 Keep the change for lower case letters in the checksum.
46186
46187 * ali.ads: Undo previous change not needed.
46188
46189 * bcheck.adb: Undo most of previous change, not needed.
46190 But do use Checksums_Match for checksum comparison.
46191
46192 * gnatls.adb: Undo most of previous change, not needed.
46193 But do use Checksums_Match for comparing checksums.
46194
46195 * lib-load.adb: Undo previous change, not needed.
46196
46197 * lib-writ.adb: Undo previous change, not needed.
46198
46199 * lib-writ.ads: Document that checksums use lower case,
46200 not upper case letters.
46201
46202 * scans.adb: Undo previous change, not needed
46203
46204 * scans.ads: Undo previous change, not needed.
46205
46206 * scn-nlit.adb: Undo previous changes, not needed.
46207
46208 * scn-slit.adb: Undo previous change, not needed. Fix header format.
46209
46210 * scn.adb:
46211 (Accumulate_Checksum): Use System.CRC32.
46212 (Initialize_Checksum): New procedure.
46213 Remove other changes of previous revision.
46214
46215 * sinput-p.adb: Undo previous change, not needed.
46216
46217 * sinput.adb: Undo previous change, not needed.
46218
46219 * sinput-l.adb: Undo previous change, not needed.
46220
46221 * sinput.ads: Undo previous change, not needed. Keep only comment
46222 on new checksum algorithm
46223
46224 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
46225 Also remove a-tags and a-stream from GNAT sources.
46226
46227 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
46228
46229 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
46230
46231 2001-10-11 Geert Bosch <bosch@gnat.com>
46232
46233 * einfo.h: Regenerate.
46234
46235 * nmake.ads: Regenerate.
46236
46237 * nmake.adb: Regenerate.
46238
46239 * sinfo.h: Regenerate.
46240
46241 * treeprs.adb: Regenerate.
46242
46243 2001-10-10 Geert Bosch <bosch@gnat.com>
46244
46245 * gnat-style.texi: New file describing coding guidelines for Ada.
46246
46247 2001-10-10 Ed Schonberg <schonber@gnat.com>
46248
46249 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
46250 is Flag174.
46251
46252 2001-10-10 Geert Bosch <bosch@gnat.com>
46253
46254 * snames.ads: Add new names for project facility.
46255
46256 * snames.adb: Update to reflect snames.ads changes.
46257
46258 * snames.h: Update to reflect snames.ads changes.
46259
46260 2001-10-10 Vincent Celier <celier@gnat.com>
46261
46262 * make.adb:
46263 (Add_Switches): reflect the changes for the switches attributes
46264 Default_Switches indexed by the programming language,
46265 Switches indexed by the file name.
46266 (Collect_Arguments_And_Compile): Idem.
46267 Reflect the attribute name changes.
46268
46269 * prj-attr.adb:
46270 (Initialisation_Data): Change the names of some packages and
46271 attributes.
46272 (Initialize): process case insensitive associative arrays.
46273
46274 * prj-attr.ads:
46275 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
46276
46277 * prj-dect.adb:
46278 (Parse_Attribute_Declaration): For case insensitive associative
46279 arrays, set the index string to lower case.
46280
46281 * prj-env.adb:
46282 Reflect the changes of the project attributes.
46283
46284 * prj-nmsc.adb:
46285 Replace Check_Naming_Scheme by Ada_Check and
46286 Language_Independent_Check.
46287
46288 * prj-nmsc.ads:
46289 Replaced Check_Naming_Scheme by 2 procedures:
46290 Ada_Check and Language_Independent_Check.
46291
46292 * prj-proc.adb:
46293 (Process_Declarative_Items): For case-insensitive associative
46294 arrays, set the index string to lower case.
46295 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
46296 Prj.Nmsc.Check_Naming_Scheme.
46297
46298 * prj-tree.adb:
46299 (Case_Insensitive): New function
46300 (Set_Case_Insensitive): New procedure
46301
46302 * prj-tree.ads:
46303 (Case_Insensitive): New function
46304 (Set_Case_Insensitive): New procedure
46305 (Project_Node_Record): New flag Case_Insensitive.
46306
46307 * prj-util.adb:
46308 (Value_Of): new function to get the string value of a single
46309 string variable or attribute.
46310
46311 * prj-util.ads:
46312 (Value_Of): new function to get the string value of a single
46313 string variable or attribute.
46314
46315 * prj.adb:
46316 (Ada_Default_Spec_Suffix): New function
46317 (Ada_Default_Impl_Suffix): New function
46318 Change definitions of several constants to reflect
46319 new components of record types.
46320
46321 * prj.ads:
46322 (Naming_Data): Change several components to reflect new
46323 elements of naming schemes.
46324 (Project_Data): New flags Sources_Present and
46325 Language_Independent_Checked.
46326 (Ada_Default_Spec_Suffix): New function.
46327 (Ada_Default_Impl_Suffix): New function.
46328
46329 * snames.ads:
46330 Modification of predefined names for project manager: added
46331 Implementation, Specification_Exceptions, Implementation_Exceptions,
46332 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
46333 Default_Switches, _Languages, Builder, Cross_Reference,
46334 Finder. Removed Body_Part, Specification_Append, Body_Append,
46335 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
46336 Gnatlink.
46337
46338 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46339 Add comments.
46340
46341 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
46342 not that it is Nil_Variable_Value.
46343
46344 * prj.ads: Add ??? for uncommented declarations
46345
46346 2001-10-10 Ed Schonberg <schonber@gnat.com>
46347
46348 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
46349 constant, do not indicate possible modification, so that gigi can
46350 treat it as a bona fide constant.
46351
46352 2001-10-10 Robert Dewar <dewar@gnat.com>
46353
46354 * sem_prag.adb: Add processing for pragma External.
46355
46356 * snames.ads: Add entry for pragma External.
46357
46358 * par-prag.adb: Add pragma External.
46359
46360 * snames.adb: Updated to match snames.ads.
46361
46362 2001-10-10 Ed Schonberg <schonber@gnat.com>
46363
46364 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
46365 a dynamic task if the allocator appears in an indexed assignment
46366 or selected component assignment.
46367
46368 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
46369 For a dynamic task in an assignment statement, use target of
46370 assignment to generate meaningful name.
46371
46372 2001-10-10 Ed Schonberg <schonber@gnat.com>
46373
46374 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
46375 a generic package.
46376
46377 * einfo.ads: Body_Entity is also defined for generic package.
46378 Documentation change only
46379
46380 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
46381 others_choice for a discriminated component initialization,
46382 convert discriminant references into the corresponding discriminals.
46383
46384 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
46385 only if original type is private and expression has to be wrapped
46386 in a conversion.
46387
46388 * checks.adb:
46389 (Apply_Constraint_Check): Do not perform length check
46390 if expression is an aggregate with only an others_choice.
46391 (Length_N_Cond): two references to the same in_parameter
46392 (typically the discriminal in an init_proc) denote the same value.
46393 Two useful optimization uncovered by bugfixes above.
46394
46395 2001-10-10 Robert Dewar <dewar@gnat.com>
46396
46397 * xeinfo.adb: Change int to char in translation of enumeration types.
46398 This fixes a problem in the C representation of component alignment.
46399 Add 2001 to copyright notice
46400
46401 2001-10-10 Richard Kenner <kenner@gnat.com>
46402
46403 * decl.c: (validate_size): Do check size of object of integral type
46404 if it is a packed array type.
46405
46406 2001-10-10 Richard Kenner <kenner@gnat.com>
46407
46408 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
46409 VAR_DECL for constant if not Is_Public but -O0.
46410
46411 2001-10-10 Richard Kenner <kenner@gnat.com>
46412
46413 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
46414
46415 2001-10-10 Geert Bosch <bosch@gnat.com>
46416
46417 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
46418 use '/' as switch character, allowing for absolute file names.
46419
46420 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
46421
46422 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
46423 FSF address.
46424
46425 2001-10-08 Geert Bosch <bosch@gnat.com>
46426
46427 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
46428 Automatically build utilities when files need to be regenerated.
46429
46430 2001-10-08 Geert Bosch <bosch@gnat.com>
46431
46432 * xsnames.adb: New utility for updating snames.ads and snames.adb
46433
46434 2001-10-08 Zack Weinberg <zack@codesourcery.com>
46435
46436 * Make-lang.in (ADAFLAGS): Add -W -Wall.
46437 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
46438 (gnat1): Also depend on attribs.o.
46439 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
46440 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
46441 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
46442 (ADAFLAGS): Add -W -Wall.
46443 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
46444 take out CFLAGS.
46445
46446 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
46447 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
46448 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
46449 Use $(ADAC), not $(CC), as compilation command.
46450
46451 (gnattools): Depend directly on tools to build, don't use
46452 recursive make.
46453 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
46454
46455 * einfo.h, sinfo.h: New files (autogenerated).
46456
46457 2001-10-08 Richard Henderson <rth@redhat.com>
46458
46459 * comperr.adb (Abort_In_Progress): New.
46460 (Compiler_Abort): Use it to prevent recursion.
46461
46462 2001-10-08 Robert Dewar <dewar@gnat.com>
46463
46464 * atree.adb: Set Error_Posted in Error node, helps error recovery.
46465
46466 * par-endh.adb (Output_End_Expected): We should also not test
46467 Error_Posted on the Error node, since now it is always set.
46468
46469 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
46470 to help error recovery. Part of general work on 9407-004.
46471
46472 * par.adb: Add ??? for misuse of error
46473
46474 * sem_res.adb:
46475 (Resolve): Defend against Error, fixes 9407-003.
46476 (Resolve_Discrete_Subtype_Indication): Defend against Error.
46477
46478 * sinfo.ads (N_Error): Now has Etype field (which will be set
46479 to Any_Type to help error recovery).
46480
46481 2001-10-08 Richard Kenner <kenner@gnat.com>
46482
46483 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
46484 Consistently set MEM attributes from expression; fixes
46485 bootstrap failure on x86.
46486
46487 2001-10-08 Geert Bosch <bosch@gnat.com>
46488
46489 * 5oosinte.adb: Add 2001 to copyright notice.
46490
46491 2001-10-08 Geert Bosch <bosch@gnat.com>
46492
46493 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
46494
46495 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
46496
46497 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
46498
46499 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
46500
46501 2001-10-05 Geert Bosch <bosch@gnat.com>
46502
46503 * adaint.h: Small formatting fix.
46504
46505 2001-10-04 Geert Bosch <bosch@gnat.com>
46506
46507 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
46508 Arg is int, not FILE *, in dummy version of functions.
46509
46510 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
46511 Arg is int, not FILE *.
46512
46513 2001-10-04 Geert Bosch <bosch@gnat.com>
46514
46515 * 3lsoccon.ads: Added file, missed with initial check ins.
46516
46517 * 4lintnam.ads: Fix header format.
46518 Change Linux to GNU/Linux.
46519
46520 * 5iosinte.adb: Change Linux to GNU/Linux.
46521
46522 * 5iosinte.ads: Change Linux to GNU/Linux.
46523
46524 * 5itaprop.adb: Change Linux to GNU/Linux.
46525
46526 * 5itaspri.ads: Change Linux to GNU/Linux.
46527 Update copyright notice.
46528
46529 * 5lintman.adb: Change Linux to GNU/Linux.
46530
46531 * 5lml-tgt.adb: Change Linux to GNU/Linux.
46532
46533 * 5losinte.ads: Change Linux to GNU/Linux.
46534
46535 * 5lsystem.ads: Change Linux to GNU/Linux.
46536
46537 * 5qosinte.adb: Change Linux to GNU/Linux.
46538
46539 * 5qosinte.ads: Change Linux to GNU/Linux.
46540
46541 * 5qparame.ads: Change Linux to GNU/Linux.
46542
46543 * 5qtaprop.adb: Change Linux to GNU/Linux.
46544
46545 * 5qtaspri.ads: Change Linux to GNU/Linux.
46546 Add 2001 to copyright notice.
46547
46548 * 5vintman.ads: Change Linux to GNU/Linux.
46549 Fix header format. Add 2001 to copyright notice.
46550
46551 * g-soccon.ads: Change Linux to GNU/Linux.
46552
46553 * g-trasym.ads: Change Linux to GNU/Linux.
46554 Add 2001 to copyright notice.
46555
46556 * memtrack.adb: Change Linux to GNU/Linux.
46557
46558 * s-intman.ads: Change Linux to GNU/Linux.
46559 Add 2001 to copyright notice. Fix header format.
46560
46561 * s-stache.adb: Change Linux to GNU/Linux.
46562
46563 * adaint.c: Change Linux to GNU/Linux.
46564
46565 * cio.c: Change Linux to GNU/Linux.
46566
46567 * cstreams.c: Change Linux to GNU/Linux.
46568
46569 * init.c: Change Linux to GNU/Linux.
46570
46571 * gmem.c: Change Linux to GNU/Linux.
46572
46573 * tracebak.c: Change Linux to GNU/Linux.
46574
46575
46576 2001-10-02 Geert Bosch <bosch@gnat.com>
46577
46578 * misc.c (insert_default_attributes): Add dummy version.