freeze.adb: Minor reformatting
[gcc.git] / gcc / ada / ChangeLog
1 2008-08-20 Robert Dewar <dewar@adacore.com>
2
3 * freeze.adb: Minor reformatting
4
5 * g-comlin.adb: Minor reformatting
6
7 * g-socket.adb: Minor reformatting
8
9 * g-socthi-mingw.adb: Minor reformatting
10
11 * g-stheme.adb: Minor reformatting
12
13 2008-08-20 Ed Schonberg <schonberg@adacore.com>
14
15 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
16 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
17 confusion between partial and full views of an ancestor of the context
18 type when the parent is a private extension declared in a parent unit,
19 and full views are available for the context type.
20
21 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
22 Robert Dewar <dewar@adacore.com>
23
24 PR ada/30827
25 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
26 version string.
27 Move comment in the right place.
28 * g-comver.adb (Version): Look for a zero-termination in
29 addition to a closing parenthesis.
30
31 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
32
33 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
34 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
35 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
36 Is_Package_Or_Generic_Package instead of hand-crafted tests.
37
38 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
39
40 PR ada/15808
41 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
42 as well.
43
44 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
45
46 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
47
48 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
49
50 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
51 for back-copy statements in lieu of that of the actual.
52
53 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
54
55 PR ada/20548
56 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
57 setjmp test consistently. Adjust for new behavior of flag_stack_check.
58 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
59 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
60
61 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
62
63 PR ada/36777
64 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
65 * sem_attr.adb (Check_Type): The current instance of a protected
66 object is not a type name.
67 (Analyze_Access_Attribute): Accept instances of protected objects.
68 (Analyze_Attribute, Attribute_Address clause): Ditto.
69 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
70 the prefix as being the current instance if needed.
71
72 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
73
74 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
75 Remove duplicate s-win32.o. Add s-winext.o.
76
77 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
78
79 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
80 with SOSC.SOCK__STREAM.
81 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
82 SOSC.MSG_OOB.
83
84 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
85
86 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
87 * gsocket.h, socket.c: Update to support RTEMS.
88 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
89
90 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
91 Robert Dewar <dewar@adacore.com>
92
93 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
94 left argument even when right argument is 0.
95 (Expand_N_Op_Mod): Ditto when right argument is 1.
96 (Expand_N_Op_Multiply): Ditto when any argument is 0.
97 (Expand_N_Op_Rem): Ditto when right argument is 1.
98
99 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
100
101 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
102 by warn_unused.
103
104 2008-08-08 Ed Schonberg <schonberg@adacore.com>
105
106 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
107 from Freeze_Entity. Used to generate cross-reference information for
108 types declared in generic packages.
109
110 2008-08-08 Thomas Quinot <quinot@adacore.com>
111
112 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
113 compatibility shim.
114
115 2008-08-08 Thomas Quinot <quinot@adacore.com>
116
117 * gsocket.h:
118 On Windows, include <errno.h> and redefine only selected errno values
119 from their <winsock2.h> definitions.
120
121 * s-osinte-freebsd.ads: Minor reformatting
122
123 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
124
125 * g-soccon.ads: New file.
126
127 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
128 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
129 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
130 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
131 unit, to allow building software that depends on this internal unit
132 with both older and newer compilers.
133
134 2008-08-08 Robert Dewar <dewar@adacore.com>
135
136 * s-strxdr.adb: Minor reformatting
137
138 2008-08-08 Bob Duff <duff@adacore.com>
139
140 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
141 checking for integer operations (including division by zero)", which
142 is wrong -- divide by zero is not part of overflow checking.
143 Also added misc clarification about what check-suppression means.
144
145 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
146
147 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
148
149 * g-comlin.adb (Add_Switch): Handle addition of switches at the
150 begining of the command line.
151 (Append, Add): Renaming of Append to Add as this now allows addition
152 at the begining of the list.
153
154 * g-comlin.ads (Add_Switch): Handle addition of switches at the
155 begining of the command line.
156
157 2008-08-08 Thomas Quinot <quinot@adacore.com>
158
159 * g-sercom.ads:
160 (Name): Document application scope (only legacy PC serial ports on
161 Linux and Windows).
162
163 2008-08-08 Thomas Quinot <quinot@adacore.com>
164
165 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
166 previous change, not needed after all.
167
168 2008-08-08 Ed Schonberg <schonberg@adacore.com>
169
170 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
171 exclusion indicator is present
172
173 2008-08-08 Robert Dewar <dewar@adacore.com>
174
175 * g-comlin.adb: Minor code reorganization
176 Minor reformatting
177
178 * g-comlin.ads: Minor reformatting
179
180 * s-fileio.adb: Minor reformatting
181
182 * sem_attr.adb: Minor code reorganization (use Nkind_In)
183 Minor reformatting
184
185 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
186
187 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
188 with s-oscons-tmplt.i.
189
190 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
191
192 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
193
194 2008-08-06 Ed Schonberg <schonberg@adacore.com>
195
196 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
197 of incomplete type.
198
199 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
200 of a formal parameter of an incomplete type. Improve error message for
201 other improper uses of incomplete types.
202
203 2008-08-06 Robert Dewar <dewar@adacore.com>
204
205 * gnat_ugn.texi: Clarify -gnato documentation
206
207 2008-08-06 Thomas Quinot <quinot@adacore.com>
208
209 * gcc-interface/Makefile.in,
210 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
211 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
212 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
213 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
214 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
215 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
216 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
217 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
218 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
219 Remove GNAT.Sockets.Constants. This internal package is replaced by
220 System.OS_Constants.
221
222 2008-08-06 Thomas Quinot <quinot@adacore.com>
223
224 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
225 Remove obsolete targets referencing gen-soccon
226 When generating s-oscons.ads, use a file name that includes the
227 THREAD_KIND, to ensure that the (potentially different) version from a
228 previous build with a different threads flavour does not get reused.
229
230 2008-08-06 Thomas Quinot <quinot@adacore.com>
231
232 * sem_res.adb: Minor reformatting
233
234 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
235 only when the operating system reports a non-existing file or directory
236 (ENOENT), otherwise raise Name_Error.
237
238 * exp_ch11.adb: Minor reformatting
239
240 2008-08-06 Ed Schonberg <schonberg@adacore.com>
241
242 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
243 incomplete, add the access_to_subprogram type to the list of private
244 dependents only if the incomplete type will be completed in the current
245 scope.
246 (Build_Discriminant_Constraints): If the type of the discriminant is
247 access_to_variable, reject a constraint that is access_to_constant.
248
249 2008-08-06 Thomas Quinot <quinot@adacore.com>
250
251 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
252 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
253 g-sttsne-dummy.ads: New files.
254
255 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
256 with pragma Unimplemented_Unit for sockets packages on Nucleus.
257
258 2008-08-06 Pascal Obry <obry@adacore.com>
259
260 * adaint.c: Another fix for ACL support on Windows.
261
262 2008-08-06 Javier Miranda <miranda@adacore.com>
263
264 * exp_disp (Expand_Interface_Actuals): Adds missing support for
265 expansion of calls to subprograms using selected components.
266
267 2008-08-06 Ed Schonberg <schonberg@adacore.com>
268
269 * sem_res.adb (Resolve_Call): Use base type to determine whether a
270 dereference is needed because a subtype of an access_to_subprogram is
271 simply an access-subtype
272
273 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
274
275 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
276 parameters, always specify the expected separator.
277
278 2008-08-06 Thomas Quinot <quinot@adacore.com>
279
280 * xnmake.adb: Use new XUtil package for platform independent text
281 output.
282
283 2008-08-06 Vincent Celier <celier@adacore.com>
284
285 * gnat_ugn.texi: Document compiler switch -gnateG
286
287 2008-08-06 Quentin Ochem <ochem@adacore.com>
288
289 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
290 in the case of an empty pattern size.
291 (Compute_Result): Do not do any computation in the case of an empty
292 pattern size.
293 (Report_Result): Fixed computation of the overflow guard.
294
295 2008-08-06 Ed Schonberg <schonberg@adacore.com>
296
297 * g-awk.adb (Finalize): Do not use directly objects of the type in the
298 finalization routine to prevent elaboration order anomalies in new
299 finalization scheme.
300
301 2008-08-06 Ed Schonberg <schonberg@adacore.com>
302
303 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
304 declaration for the same type.
305
306 2008-08-06 Thomas Quinot <quinot@adacore.com>
307
308 * sem.adb: Minor rewording (comment)
309
310 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
311
312 * g-comlin.adb (Define_Switch, Get_Switches): New.
313 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
314 ungrouping switches.
315 (For_Each_Simple_Switch): Allow more control over parameters handling.
316 This generic method now allows ungrouping of switches with parameters
317 and switches with more than one letter after the prefix.
318 (Set_Command_Line): Take care of switches that are prefixed with a
319 switch handling parameters without delimiter (-gnatya and -gnaty3 for
320 example).
321 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
322 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
323 the operation.
324 (Start, Alias_Switches, Group_Switches): Take care of parameters
325 possibly present inside a group.
326
327 * g-comlin.ads (Define_Switch): New method used to define a list of
328 expected switches, that are necessary for correctly ungrouping switches
329 with more that one character after the prefix.
330 (Get_Switches): Method that builds a getopt string from the list of
331 switches as set previously by Define_Switch.
332 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
333 status of the operation. Also allow the removal of switches with
334 parameters only.
335 (Command_Line_Configuration_Record): Maintain a list of expected
336 switches.
337
338 2008-08-06 Doug Rupp <rupp@adacore.com>
339
340 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
341 TARGET_MALLOC64 clear.
342
343 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
344 if TARGET_MALLOC64 clear.
345
346 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
347 (TARGET_MALLC64): New macro. Default to clear.
348
349 2008-08-06 Doug Rupp <rupp@adacore.com>
350
351 * gcc-interface/utils2.c (snames.h) Include
352 (TARGET_ABI_OPEN_VMS): Initialize.
353 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
354 for Convention C.
355
356 2008-08-06 Ed Schonberg <schonberg@adacore.com>
357
358 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
359 null exclusion in a discriminant declaration
360
361 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
362 indicators when type is not an access type.
363
364 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
365 indicators when type is not an access type.
366
367 2008-08-06 Javier Miranda <miranda@adacore.com>
368
369 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
370 with the target interface before expanding the code of the interface
371 conversion.
372
373 2008-08-05 Ed Schonberg <schonberg@adacore.com>
374
375 * freeze.adb:
376 (Freeze_Entity): A deferred constant does not violate the restriction
377 No_Default_Initialization,
378
379 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
380 can carry a null exclusion indicator, and on which an error may be
381 posted if the indicator is redundant.
382
383 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
384 does not apply to a subtype mark that already excludes null.
385
386 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
387 exclusion does not apply to a subtype mark that already excludes null.
388
389 2008-08-05 Thomas Quinot <quinot@adacore.com>
390
391 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
392
393 2008-08-05 Doug Rupp <rupp@adacore.com>
394
395 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
396
397 2008-08-05 Thomas Quinot <quinot@adacore.com>
398
399 * gsocket.h: Make this file includable in a Nucleus environment, which
400 does not support sockets.
401
402 * socket.c: Remove Nucleus-specific hack.
403
404 2008-08-05 Pascal Obry <obry@adacore.com>
405
406 * adaint.c: Remove support for readable attribute on vxworks and nucleus
407
408 2008-08-05 Ed Schonberg <schonberg@adacore.com>
409
410 * sem_attr.adb:
411 (Analyze_Attribute, case 'Result): handle properly the case where some
412 operand of the expression in a post-condition generates a transient
413 block.
414
415 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
416 right-hand side when it is an anonymous access_to_subprogram, to force
417 static accessibility check when needed.
418
419 2008-08-05 Sergey Rybin <rybin@adacore.com>
420
421 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
422 rule according to the change in the rule option.
423 Add documentation for -gnatw.b/-gnatw.B
424
425 2008-08-05 Robert Dewar <dewar@adacore.com>
426
427 * ug_words: Add entries for -gnatw.b/-gnatw.B
428
429 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
430
431 2008-08-05 Vincent Celier <celier@adacore.com>
432
433 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
434 (File).
435
436 * a-ztdeio.adb: Ditto.
437
438 2008-08-05 Pascal Obry <obry@adacore.com>
439
440 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
441 readable attribute.
442
443 2008-08-05 Vincent Celier <celier@adacore.com>
444
445 * s-wchwts.adb:
446 (Wide_String_To_String): Returns a String with the same 'First as its
447 parameter S.
448 (Wide_Wide_String_To_String): Ditto
449
450 * s-wchwts.ads:
451 (Wide_String_To_String): Document that the lowest index of the returned
452 String is equal to S'First.
453
454 2008-08-05 Thomas Quinot <quinot@adacore.com>
455
456 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
457
458 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
459 s-oscons.ads
460
461 2008-08-05 Robert Dewar <dewar@adacore.com>
462
463 * opt.ads (Warn_On_Biased_Representation): New flag
464
465 * sem_ch13.adb:
466 (Analyze_Attribute_Definition_Clause): Issue warning when biased
467 representation is required.
468 (Minimum_Size): Don't allow biasing if enum rep clause case
469
470 * sem_warn.adb:
471 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
472 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
473
474 * usage.adb: Add lines for -gnatw.b/B switches
475
476 2008-08-05 Pascal Obry <obry@adacore.com>
477
478 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
479
480 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
481
482 2008-08-05 Thomas Quinot <quinot@adacore.com>
483
484 * socket.c: Minor reformatting.
485
486 2008-08-05 Robert Dewar <dewar@adacore.com>
487
488 * sem_ch3.adb: Minor reformatting
489
490 * prj-nmsc.adb: Minor reformatting
491
492 2008-08-05 Ed Schonberg <schonberg@adacore.com>
493
494 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
495 visibility check on the component type if the simple test fails.
496
497 2008-08-05 Jose Ruiz <ruiz@adacore.com>
498
499 * init.c (__gnat_install_handler for linux): If we are building the
500 Xenomai run time then we need to do two additional things: avoid
501 memory swapping and transform the Linux environment task into a native
502 Xenomai task.
503
504 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
505 time): Use interface to Xenomai native skin and avoid linux-specific
506 way of setting CPU affinity.
507 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
508
509 2008-08-05 Bob Duff <duff@adacore.com>
510
511 * checks.ads: Minor comment fix
512
513 2008-08-05 Thomas Quinot <quinot@adacore.com>
514
515 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
516 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
517 CS8.
518
519 2008-08-05 Robert Dewar <dewar@adacore.com>
520
521 * mlib.adb: Minor code reorganization
522 Minor reformatting
523
524 * make.adb: Minor reformatting
525
526 * prj-attr.ads: Minor reformatting
527
528 * s-os_lib.adb: Minor reformatting
529
530 * s-fileio.adb: Minor code reorganization
531 Minor reformatting
532
533 * prj.ads: Minor reformatting
534
535 2008-08-05 Bob Duff <duff@adacore.com>
536
537 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
538 unresolved initial value of "null", because it causes implicitly
539 generated "=" operators to be ambiguous, and because this type should
540 not be passed to gigi.
541
542 2008-08-05 Vincent Celier <celier@adacore.com>
543
544 * mlib.adb: Update comments.
545
546 * make.adb (Switches_Of): Check for Switches (others), before checking
547 for Default_Switches ("Ada").
548 (Gnatmake): Use Builder'Switches (others) in preference to
549 Builder'Default_Switches ("Ada") if there are several mains.
550
551 * prj-attr-pm.adb:
552 (Add_Attribute): Add component Others_Allowed in Attribute_Record
553 aggregate.
554
555 * prj-attr.adb:
556 Add markers to indicates that attributes Switches allow others as index
557 (Others_Allowed_For): New Boolean function, returning True for
558 attributes with the mark.
559 (Initialize): Recognize optional letter 'O' as the marker for
560 associative array attributes where others is allowed as the index.
561
562 * prj-attr.ads:
563 (Others_Allowed_For): New Boolean function
564 (Attribute_Record): New Boolean component Others_Allowed
565
566 * prj-dect.adb:
567 (Parse_Attribute_Declaration): For associative array attribute where
568 others is allowed as the index, allow others as an index.
569
570 * prj-nmsc.adb:
571 (Process_Binder): Skip associative array attributes with index others
572 (Process_Compiler): Ditto
573
574 * prj-util.adb:
575 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
576 index is All_Other_Names.
577
578 * prj.ads:
579 (All_Other_Names): New constant
580
581 * prj-proc.adb:
582 (Process_Declarative_Items): Skip associative array attribute when index
583 is reserved word "others".
584
585 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
586
587 * gen-oscons.c: Adapt for VMS where termios.h is not available.
588
589 2008-08-05 Thomas Quinot <quinot@adacore.com>
590
591 * a-rttiev.adb: Minor reformatting (comments)
592
593 * gen-soccon.c: Rename to gen-oscons.c
594
595 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
596 GNAT.Sockets.Constants.
597 Add new constants for GNAT.Serial_Communications and System.File_IO.
598
599 2008-08-05 Javier Miranda <miranda@adacore.com>
600
601 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
602 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
603 implementation of this routine has been simplified.
604
605 2008-08-05 Pascal Obry <obry@adacore.com>
606
607 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
608 Set_Read_Only Win32 implementation.
609
610 2008-08-05 Thomas Quinot <quinot@adacore.com>
611
612 * exp_strm.adb: Minor reformatting (comments)
613
614 * sem_ch12.adb: Minor reformatting.
615
616 2008-08-05 Robert Dewar <dewar@adacore.com>
617
618 * sem_ch3.adb: Minor reformatting
619
620 * checks.adb: Minor reformatting
621
622 2008-08-05 Thomas Quinot <quinot@adacore.com>
623
624 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
625 restriction on Prefix.
626
627 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
628
629 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
630 methods needed to handle switch sections when building a command line.
631 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
632 Current_Section): New public methods or methods modified to handle
633 building command lines with sections.
634 (Set_Command_Line): Take into account sections when analysing a switch
635 string.
636 (Start): Sort the switches by sections before iterating the command line
637 elements.
638
639 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
640 Is_New_Section, Current_Section): New methods or methods modified to
641 handle building command lines with sections.
642
643 2008-08-05 Ed Schonberg <schonberg@adacore.com>
644
645 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
646 discriminants, indicate that the corresponding object declaration has
647 no initialization, to prevent spurious warnings when the access type is
648 null-excluding.
649
650 2008-08-05 Ed Schonberg <schonberg@adacore.com>
651
652 * sem_res.adb (Resolve_Call): If this is a call to the predefined
653 Abort_Task, warn if the call appears within a protected operation.
654
655 2008-08-04 Robert Dewar <dewar@adacore.com>
656
657 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
658
659 2008-08-04 Ed Schonberg <schonberg@adacore.com>
660
661 * sem_ch3.adb:
662 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
663 anonymous access to protected subprogram that is the return type of the
664 specification of a subprogram body.
665
666 * sem_ch6.adb:
667 (Analyze_Subprogram_Body): if the return type is an anonymous access to
668 subprogram, freeze it now to prevent access anomalies in the back-end.
669
670 * exp_ch9.adb: Minor code cleanup.
671 Make sure that new declarations are inserted into the tree before
672 analysis (from code reading).
673
674 2008-08-04 Robert Dewar <dewar@adacore.com>
675
676 * exp_ch5.adb:
677 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
678 at point of return.
679
680 2008-08-04 Thomas Quinot <quinot@adacore.com>
681
682 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
683
684 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
685
686 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
687
688 2008-08-04 Javier Miranda <miranda@adacore.com>
689
690 * sem_prag.adb (Process_Convention): Add missing support for
691 N_Private_Extension_Declaration nodes.
692
693 2008-08-04 Robert Dewar <dewar@adacore.com>
694
695 * exp_ch4.adb: Minor reformatting
696
697 2008-08-04 Pascal Obry <obry@adacore.com>
698
699 * adaint.h: Add missing prototype.
700
701 * adaint.c: Refine support for Windows file attributes.
702
703 2008-08-04 Robert Dewar <dewar@adacore.com>
704
705 * sem_res.adb:
706 (Valid_Conversion): Catch case of designated types having different
707 sizes, even though they statically match.
708
709 2008-08-04 Javier Miranda <miranda@adacore.com>
710
711 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
712 added in previous patch to handle access to subprograms.
713
714 2008-08-04 Robert Dewar <dewar@adacore.com>
715
716 * freeze.adb:
717 (Freeze_Entity): Only check No_Default_Initialization restriction for
718 constructs that come from source
719
720 2008-08-04 Thomas Quinot <quinot@adacore.com>
721
722 * exp_ch6.adb: Minor comment fix.
723
724 * sem_ch4.adb: Minor reformatting.
725
726 2008-08-04 Robert Dewar <dewar@adacore.com>
727
728 * sem_res.adb: (Large_Storage_Type): Improve previous change.
729
730 2008-08-04 Pascal Obry <obry@adacore.com>
731
732 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
733 file attributes.
734
735 2008-08-04 Javier Miranda <miranda@adacore.com>
736
737 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
738 for N_Formal_Object_Declaration nodes. Adding kludge required by
739 First_Formal to provide its functionality with access to functions.
740 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
741 for anonymous access types returned by functions.
742
743 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
744 conversion of null-excluding access types (required only once to force
745 the generation of the required runtime check).
746
747 * sem_type.adb (Covers): minor reformating
748
749 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
750 with internally generated nodes. Avoid generating the error inside init
751 procs.
752
753 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
754 (Resolve_Null): Generate the null-excluding check in case of assignment
755 to a null-excluding object.
756 (Valid_Conversion): Add missing support for anonymous access to
757 subprograms.
758
759 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
760 anonymous access types whose designated type is an itype. This case
761 occurs with anonymous access to protected subprograms types.
762 (Analyze_Return_Type): Add missing support for anonymous access to
763 protected subprogram.
764
765 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
766 subprograms addition of missing check on matching convention. Required
767 to properly handle access to protected subprogram types.
768
769 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
770 null excluding access types.
771
772 2008-08-04 Ed Schonberg <schonberg@adacore.com>
773
774 * sem_ch12.adb: Add comments
775
776 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
777 access type and the allocator is not initialized, warn rather than
778 reporting an error.
779
780 2008-08-04 Robert Dewar <dewar@adacore.com>
781
782 * exp_ch4.adb: Minor reformatting
783
784 * exp_dist.adb: Minor reformatting
785
786 * g-comlin.adb: Minor reformatting
787
788 2008-08-04 Gary Dismukes <dismukes@adacore.com>
789
790 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
791 target to the type of the aggregate in the case where the target object
792 is class-wide.
793
794 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
795 result type is class-wide and inherently limited, and the expression
796 has a specific type, create a return object of the specific type, for
797 more efficient handling of returns of build-in-place aggregates (avoids
798 conversions of the class-wide return object to the specific type on
799 component assignments).
800
801 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
802 about a type mismatch for a class-wide function with a return object
803 having a specific type when the object declaration doesn't come from
804 source. Such an object can result from the expansion of a simple return.
805
806 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
807
808 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
809
810 * gcc-interface/Makefile.in: Use 64bit-specific system files when
811 compiling for 64bit windows.
812
813 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
814
815 * g-comlin.adb (Group_Switches): Preserve the switch order when
816 grouping and allow switch grouping of switches with more than one
817 character extension (e.g. gnatw.x).
818 (Args_From_Expanded): Remove this now obsolete method.
819
820 2008-08-04 Ed Schonberg <schonberg@adacore.com>
821
822 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
823 chain at once, to ensure that type is properly decorated for back-end,
824 when allocator appears within a loop.
825
826 2008-08-04 Kevin Pouget <pouget@adacore.com>
827
828 * snames.h, snames.adb, snames.ads:
829 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
830
831 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
832 Build_To_Any_Call and Build_TypeCode_Call procedures.
833
834 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
835
836 * rtsfind.ads: Add corresponding names.
837
838 * tbuild.adb: Update prefix restrictions to allow '_' character.
839
840 2008-08-04 Doug Rupp <rupp@adacore.com>
841
842 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
843 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
844 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
845 use it. Calculate pointer range overflow using 64bit types.
846
847 2008-08-04 Ed Schonberg <schonberg@adacore.com>
848
849 * sem_ch3.adb (Access_Definition): A formal object declaration is a
850 legal context for an anonymous access to subprogram.
851
852 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
853 indirect call, report success to the caller to include possible
854 interpretation.
855
856 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
857 check when the type
858 of the extended return is an anonymous access_to_subprogram type.
859
860 * sem_res.adb:
861 (Resolve_Call): Insert a dereference if the type of the subprogram is an
862 access_to_subprogram and the context requires its return type, and a
863 dereference has not been introduced previously.
864
865 2008-08-04 Arnaud Charlet <charlet@adacore.com>
866
867 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
868 gnatcheck support in GPS.
869
870 2008-08-04 Vincent Celier <celier@adacore.com>
871
872 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
873 requested
874
875 2008-08-04 Vincent Celier <celier@adacore.com>
876
877 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
878 variable, but don't check the resulting value as it has no impact on
879 the processing.
880
881 * opt.ads:
882 (Generate_Processed_File): New Boolean flag, set to True in the compiler
883 when switch -gnateG is used.
884
885 * prep.adb:
886 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
887 when the source is modified by the preprocessor and there is no
888 preprocessing errors.
889
890 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
891
892 * sinput-l.adb:
893 (Load_File): Output the result of preprocessing if the source text was
894 modified.
895
896 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
897
898 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
899
900 * ug_words: Add VMS equivalent for -gnateG
901
902 * vms_data.ads:
903 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
904
905 2008-08-04 Doug Rupp <rupp@adacore.com>
906
907 * gcc-interface/utils2.c:
908 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
909 in 32bit descriptor.
910
911 2008-08-04 Robert Dewar <dewar@adacore.com>
912
913 * par-ch10.adb: Minor reformatting
914
915 * i-cobol.adb: Minor reformatting.
916
917 2008-08-04 Ed Schonberg <schonberg@adacore.com>
918
919 * sem_ch3.adb (Access_Definition): Create an itype reference for an
920 anonymous access return type of a regular function that is not a
921 compilation unit.
922
923 2008-08-04 Vincent Celier <celier@adacore.com>
924
925 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
926
927 * snames.adb: New standard name Global_Compilation_Switches
928
929 * snames.ads: New standard name Global_Compilation_Switches
930
931 * make.adb: Correct spelling error in comment
932
933 2008-08-04 Arnaud Charlet <charlet@adacore.com>
934
935 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
936 target.
937
938 2008-08-04 Thomas Quinot <quinot@adacore.com>
939
940 * sem_ch10.adb: Minor comment fix.
941
942 2008-08-04 Robert Dewar <dewar@adacore.com>
943
944 * restrict.adb: Improved messages for restriction warnings
945
946 * restrict.ads: Improved messages for restriction messages
947
948 * s-rident.ads (Profile_Name): Add No_Profile
949
950 2008-08-04 Robert Dewar <dewar@adacore.com>
951
952 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
953
954 2008-08-04 Robert Dewar <dewar@adacore.com>
955
956 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
957
958 2008-08-04 Vincent Celier <celier@adacore.com>
959
960 * prj-proc.adb:
961 (Copy_Package_Declarations): When inheriting package Naming from a
962 project being extended, do not inherit source exception names.
963
964 2008-08-04 Ed Schonberg <schonberg@adacore.com>
965
966 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
967 list of declaration to find previous subprogram, do not go to the
968 original node of a generic unit.
969
970 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
971
972 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
973 New case. Convert BOOLEAN_TYPE operation to the default integer type.
974
975 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
976
977 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
978 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
979 and adjust for above renaming.
980 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
981 gnu_expr_alt_type parameter. Convert the expression to it instead
982 of changing its type in place.
983 (build_function_stub): Adjust call to above function.
984
985 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
986
987 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
988 code. Do not get full definition of deferred constants with address
989 clause for a use. Do not ignore deferred constant definitions with
990 address clause. Ignore constant definitions already marked with the
991 error node.
992 <object>: Remove obsolete comment. For a deferred constant with
993 address clause, get the initializer from the full view.
994 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
995 Rework and remove obsolete comment.
996 <N_Object_Declaration>: For a deferred constant with address clause,
997 mark the full view with the error node.
998 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
999 formatting nits.
1000
1001 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1002
1003 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1004
1005 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1006 sem_prag.adb, snames.adb, snames.ads, snames.h,
1007 par-prag.adb: Undo previous stream related changes.
1008
1009 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1010
1011 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1012 Define enumeration type to designate different IO mechanisms.
1013 Enchance generic package Stream_Ops_Internal to include an
1014 implementation of Input and Output.
1015
1016 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1017 No_Stream_Optimization is active, choose the default byte IO
1018 implementations of stream attributes for Strings.
1019 Otherwise use the corresponding block IO version.
1020
1021 2008-08-01 Olivier Hainque <hainque@adacore.com>
1022
1023 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1024 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1025
1026 2008-08-01 Robert Dewar <dewar@adacore.com>
1027
1028 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1029 convert plain identifier into defining identifier.
1030
1031 2008-08-01 Robert Dewar <dewar@adacore.com>
1032
1033 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1034 warnings
1035
1036 * lib-xref.adb: Add error defense.
1037
1038 2008-08-01 Bob Duff <duff@adacore.com>
1039
1040 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1041
1042 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1043
1044 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1045 correct accessibility levels. In the "when others" case, retrieve the
1046 access level of the Etype of Prev rather than Prev_Orig, because the
1047 original exression has not always been analyzed.
1048
1049 2008-08-01 Robert Dewar <dewar@adacore.com>
1050
1051 * prj-nmsc.adb: Minor reformatting
1052
1053 * sem_ch4.adb: Minor reformatting
1054 Minor code reorganization
1055
1056 * prj.ads: Minor reformatting
1057
1058 * s-os_lib.adb: Minor reformatting
1059
1060 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1061 half encodings
1062
1063 * scans.ads: Minor reformatting.
1064
1065 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1066 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1067
1068 * sem_res.adb:
1069 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1070
1071 * sem_ch12.adb: Minor comment reformatting
1072
1073 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1074 keyword
1075
1076 2008-08-01 Robert Dewar <dewar@adacore.com>
1077
1078 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1079 generating code
1080
1081 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1082
1083 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1084 converted is a real literal and the target type has static bounds,
1085 perform the conversion exactly to prevent floating-point anomalies on
1086 some targets.
1087
1088 2008-08-01 Vincent Celier <celier@adacore.com>
1089
1090 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1091
1092 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1093
1094 * prj.adb (Object_Exist_For): Use Object_Generated, not
1095 Objects_Generated that is removed and was never modified anyway.
1096
1097 * prj.ads:
1098 (Path_Syntax_Kind): New enumeration type
1099 (Language_Config): New component Path_Syntax, defaulted to Host.
1100 Components PIC_Option and Objects_Generated removed, as they are not
1101 used.
1102
1103 * snames.adb: New standard name Path_Syntax
1104
1105 * snames.ads: New standard name Path_Syntax
1106
1107 2008-08-01 Vincent Celier <celier@adacore.com>
1108
1109 * mlib-utl.adb:
1110 (Adalib_Path): New variable to store the path of the adalib directory
1111 when procedure Specify_Adalib_Dir is called.
1112 (Lib_Directory): If Adalib_Path is not null, return its value
1113 (Specify_Adalib_Dir): New procedure
1114
1115 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1116
1117 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1118
1119 * sem_prag.adb:
1120 (Check_Precondition_Postcondition): If not generating code, analyze the
1121 expression in a postcondition that appears in a subprogram body, so that
1122 it is properly decorated for ASIS use.
1123
1124 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1125
1126 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1127 Orig_Prev to Prev in the case where the actual is N_Function_Call or
1128 N_Identifier. This was interfering with other cases that are rewritten
1129 as N_Identifier, such as allocators, resulting in passing of the wrong
1130 accessibility level, and based on testing this code is apparently no
1131 longer needed at all.
1132
1133 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1134
1135 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1136 procedure call whose prefix
1137 is a parameterless function call that returns an access_to_procedure.
1138
1139 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1140
1141 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1142 for RTX. Adding a suffix that is incremented at each iteration.
1143
1144 2008-08-01 Robert Dewar <dewar@adacore.com>
1145
1146 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1147 Raise_Exception
1148
1149 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
1150
1151 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1152 paths, which are authorized by Windows but can lead to errors when used
1153 elsewhere.
1154
1155 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1156
1157 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1158 a pending instantiation for the body of a subprogram that is to be
1159 inlined.
1160
1161 * sem_ch12.adb:
1162 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1163
1164 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1165 create a pending instance for its body, so that calls to the subprogram
1166 can be inlined by the back-end.
1167
1168 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1169
1170 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1171 rts-rtx-w32).
1172
1173 2008-08-01 Robert Dewar <dewar@adacore.com>
1174
1175 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1176
1177 2008-08-01 Doug Rupp <rupp@adacore.com>
1178
1179 * gnat_rm.texi: Document new mechanism Short_Descriptor.
1180
1181 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1182 mechanism values.
1183
1184 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1185 mechanism and Short_Descriptor mechanism values.
1186
1187 * snames.adb (preset_names): Add short_descriptor entry.
1188
1189 * snames.ads: Add Name_Short_Descriptor.
1190
1191 * types.h: Add new By_Short_Descriptor mechanism values.
1192
1193 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1194 mechanism and Short_Descriptor mechanism values.
1195
1196 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1197 values.
1198 (Descriptor_Codes): Modify range for new mechanism values.
1199
1200 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1201 mechanism values.
1202
1203 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1204 (gnat_to_gnu_param): Handle By_Short_Descriptor.
1205
1206 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1207 (build_vms_descriptor32): New prototype.
1208 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1209
1210 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1211 argument in call fill_vms_descriptor.
1212
1213 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1214 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1215 (build_vms_descriptor): Renamed from build_vms_descriptor64.
1216 (convert_vms_descriptor32): New function.
1217 (convert_vms_descriptor64): New function.
1218 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1219 descriptors.
1220
1221 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1222 no longer needed.
1223
1224 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1225
1226 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1227 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1228 name.
1229
1230 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1231
1232 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1233 current directory so only fully qualified names are allowed.
1234
1235 2008-08-01 Robert Dewar <dewar@adacore.com>
1236
1237 * gnat_ugn.texi:
1238 Minor editing, remove uncomfortable use of semicolon
1239
1240 * s-ststop.adb: Add some ??? comments
1241
1242 * sem_ch10.adb: Minor reformatting
1243
1244 * snames.ads:
1245 Minor comment fixes, some pragmas were not properly
1246 categorized in the comments, documentation change only
1247
1248 * xref_lib.adb: Minor reformatting
1249
1250 * sinput.adb: Minor reformatting
1251
1252 * gnatchop.adb: Minor reformatting
1253
1254 * sem_util.ads: Minor reformatting.
1255
1256 * opt.ads: Minor documentation fix
1257
1258 * scng.adb: Minor reformatting
1259
1260 * prj-part.adb: Update comments
1261
1262 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1263
1264 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1265 tagged synchronized type, use corresponding record type.
1266
1267 2008-08-01 Doug Rupp <rupp@adacore.com>
1268
1269 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1270 dummy transfer address for debugging.
1271
1272 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1273
1274 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1275
1276 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
1277
1278 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1279 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1280
1281 2008-07-31 Pascal Obry <obry@adacore.com>
1282
1283 * prj-nmsc.adb: Keep Object and Exec directory casing.
1284
1285 2008-07-31 Jose Ruiz <ruiz@adacore.com>
1286
1287 * system-rtx-rtss.ads
1288 Change the default stack size. It is important to set the commit part.
1289
1290 * s-taprop-rtx.adb
1291 (Initialize): Get the clock resolution.
1292 (RT_Resolution): Return the clock resolution that is indicated by the
1293 system.
1294
1295 * s-parame-vxworks.adb
1296 Document that this body is used for RTX in RTSS (kernel) mode.
1297
1298 * gcc-interface/Makefile.in
1299 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
1300 s-parame-vxworks.adb body in order to have reasonable stack sizes in
1301 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
1302 cannot ask for too big values.
1303
1304 2008-07-31 Robert Dewar <dewar@adacore.com>
1305
1306 * exp_aggr.adb: Minor reformatting
1307
1308 * makeutl.adb: Minor reformatting
1309
1310 * prj-env.adb: Minor reformatting
1311
1312 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
1313
1314 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
1315 tagged type is completed by a concurrent type.
1316
1317 2008-07-31 Gary Dismukes <dismukes@adacore.com>
1318
1319 * sem_aggr.adb:
1320 (Resolve_Record_Aggregate): Bypass error that a type without
1321 components must have a "null record" aggregate when compiling for Ada
1322 2005, since it's legal to give an aggregate of form (others => <>)
1323 for such a type.
1324
1325 2008-07-31 Javier Miranda <miranda@adacore.com>
1326
1327 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
1328 handle synchronized types. Required to handle well the object.operation
1329 notation applied to synchronized types.
1330
1331 2008-07-31 Quentin Ochem <ochem@adacore.com>
1332
1333 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
1334 anymore - just used internally.
1335 Added handling of very small tasks - when the theoretical size is
1336 already full at the point of the call.
1337 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
1338 not need to be added to the result.
1339
1340 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
1341
1342 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
1343 corresponding spec is a primitive wrapper. Update comment.
1344
1345 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
1346
1347 * bindgen.adb Comment reformatting. Update the list of run-time globals.
1348 (Gen_Adainit_Ada): Add the declaration, import and value set for
1349 configuration flag Canonical_Streams.
1350 (Gen_Adainit_C): Add the declaration and initial value of external
1351 symbol __gl_canonical_streams.
1352
1353 * init.c: Update the list of global values computed by the binder.
1354
1355 * opt.ads: Add flag Canonical_Streams.
1356
1357 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
1358 semantically handled pragmas.
1359
1360 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
1361 (Analyze_Pragma): Add case for pragma Canonical_Streams.
1362
1363 * snames.adb: Add character value for name Canonical_Streams.
1364
1365 * snames.ads:
1366 Add Name_Canonical_Streams to the list of configuration pragmas.
1367 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
1368
1369 * snames.h: Add a definition for Pragma_Canonical_Streams.
1370
1371 * s-ststop.adb:
1372 Add a flag and import to seize the value of external symbol
1373 __gl_canonical_streams. Update comment and initial value of constant
1374 Use_Block_IO.
1375
1376 * gnat_rm.texi: Add section of pragma Canonical_Streams.
1377
1378 * gnat_ugn.texi:
1379 Add pragma Canonical_Streams to the list of configuration pragmas.
1380
1381 2008-07-31 Ed Schonberg <schonberg@adacore.com>
1382
1383 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
1384 has the form A.B.C and B is a unit renaming, analyze its compilation
1385 unit and add a with_clause on A.b to the context.
1386
1387 2008-07-31 Vincent Celier <celier@adacore.com>
1388
1389 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
1390 return the empty string, instead of raising Constraint_Error.
1391
1392 2008-07-31 Gary Dismukes <dismukes@adacore.com>
1393
1394 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
1395
1396 * checks.adb (Apply_Accessibility_Check): Insert the check on
1397 Insert_Node.
1398
1399 * exp_attr.adb:
1400 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
1401 to new parameter Insert_Node on call to Apply_Accessibility_Check.
1402 Necessary to distinguish the insertion node because the dereferenced
1403 formal may come from a rename, but the check must be inserted in
1404 front of the attribute.
1405
1406 * exp_ch4.adb:
1407 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
1408 call to Apply_Accessibility_Check.
1409 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
1410 on call to Apply_Accessibility_Check.
1411 Minor reformatting
1412
1413 2008-07-31 Javier Miranda <miranda@adacore.com>
1414
1415 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
1416 types when the candidate type is a synchronized type.
1417
1418 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
1419 types, and complete management of synchronized types adding missing
1420 code to handle formal that is a synchronized type.
1421
1422 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
1423 are not available and cause the compiler to blowup. Found compiling
1424 test with switch -gnatc
1425
1426 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
1427 Has_Correct_Formal_Mode plus code cleanup.
1428
1429 2008-07-31 Bob Duff <duff@adacore.com>
1430
1431 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
1432 recognized as two end-of-lines, but it should be just one.
1433
1434 2008-07-31 Thomas Quinot <quinot@adacore.com>
1435
1436 * exp_ch9.adb: Minor reformatting
1437
1438 * tbuild.ads: Fix several occurrences of incorrectly referring to
1439 Name_Find as Find_Name.
1440
1441 2008-07-31 Ed Schonberg <schonberg@adacore.com>
1442
1443 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
1444 and the context is an object declaration with non-static bounds, treat
1445 the aggregate as non-static.
1446
1447 2008-07-31 Vincent Celier <celier@adacore.com>
1448
1449 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
1450 Move back spec of Parse_Single_Project to body, as it is not called
1451 outside of package Prj.Part.
1452 (Project_Data): Remove components Linker_Name, Linker_Path and
1453 Minimum_Linker_Options as they are no longer set.
1454 Remove function There_Are_Ada_Sources from package Prj and move code
1455 in the only place it was used, in Prj.Env.Set_Ada_Paths.
1456
1457 2008-07-31 Arnaud Charlet <charlet@adacore.com>
1458
1459 * mlib-utl.ads: Fix typo.
1460
1461 2008-07-31 Robert Dewar <dewar@adacore.com>
1462
1463 * sem_ch12.adb: Minor reformatting
1464
1465 2008-07-31 Sergey Rybin <rybin@adacore.com>
1466
1467 * gnat_ugn.texi: Change the description of the
1468 Overly_Nested_Control_Structures: now the rule always requires a
1469 positive parameter for '+R' option
1470
1471 2008-07-31 Thomas Quinot <quinot@adacore.com>
1472
1473 * g-pehage.adb: Minor reformatting
1474
1475 2008-07-31 Pascal Obry <obry@adacore.com>
1476
1477 * s-finimp.ads: Minor reformatting.
1478
1479 2008-07-31 Vincent Celier <celier@adacore.com>
1480
1481 * s-regexp.ads: Minor comment fix
1482
1483 2008-07-31 Arnaud Charlet <charlet@adacore.com>
1484
1485 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
1486 so that we can compile this file successfully with -gnatc.
1487
1488 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
1489
1490 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
1491 of the type when looking for stream subprograms for type String,
1492 Wide_String and Wide_Wide_String.
1493
1494 * s-ststop.adb: Change the initialization expression of constant
1495 Use_Block_IO.
1496
1497 2008-07-31 Geert Bosch <bosch@adacore.com>
1498
1499 * arit64.c:
1500 New file implementing __gnat_mulv64 signed integer multiplication with
1501 overflow checking
1502
1503 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
1504
1505 * gcc-interface/gigi.h:
1506 (standard_types): Add ADT_mulv64_decl
1507 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
1508
1509 * gcc-interface/utils.c:
1510 (init_gigi_decls): Add initialization of mulv64_decl
1511
1512 * gcc-interface/trans.c:
1513 (build_unary_op_trapv): New function
1514 (build_binary_op_trapv): New function
1515 (gnat_to_gnu): Use the above functions instead of
1516 build_{unary,binary}_op
1517
1518 * gcc-interface/Makefile.in
1519 (LIBGNAT_SRCS): Add arit64.c
1520 (LIBGNAT_OBJS): Add arit64.o
1521
1522 2008-07-31 Vincent Celier <celier@adacore.com>
1523
1524 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
1525 Linker'Default_Switches are declared. Warn if they are declared.
1526
1527 2008-07-31 Ed Schonberg <schonberg@adacore.com>
1528
1529 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
1530 Insert_Actions to place the pointer declaration in the code, rather
1531 than Insert_Before_And_Analyze, so that insertions of temporaries are
1532 kept in the proper order when transient scopes are present.
1533
1534
1535 2008-07-31 Robert Dewar <dewar@adacore.com>
1536
1537 * einfo.adb (Spec_PPC): Now defined for generic subprograms
1538
1539 * einfo.ads (Spec_PPC): Now defined for generic subprograms
1540
1541 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
1542 subprogram case
1543
1544 2008-07-31 Vincent Celier <celier@adacore.com>
1545
1546 * s-os_lib.adb: Minor comment fix
1547
1548 2008-07-31 Ed Schonberg <schonberg@adacore.com>
1549
1550 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
1551 transfer pre/postconditions from generic copy to original tree, so that
1552 they will appear in each instance.
1553 (Process_PPCs): Do not transform postconditions into a procedure in a
1554 generic context, to prevent double expansion of check pragmas.
1555
1556 * sem_attr.adb: In an instance, the prefix of the 'result attribute
1557 can be the renaming of the
1558 current instance, so check validity of the name accordingly.
1559
1560 2008-07-31 Robert Dewar <dewar@adacore.com>
1561
1562 * mlib-utl.ads: Minor reformatting
1563
1564 2008-07-31 Ed Schonberg <schonberg@adacore.com>
1565
1566 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
1567 from context. This attribute must be usable in Ada95 mode.
1568 The attribute can appear in the body of a function marked
1569 Inline_Always, but in this case the postocondition is not enforced.
1570
1571 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
1572 of an inlined call pre- and postconditions are legal
1573
1574 2008-07-31 Vincent Celier <celier@adacore.com>
1575
1576 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
1577 were for gprmake only
1578
1579 2008-07-31 Robert Dewar <dewar@adacore.com>
1580
1581 * gnat_ugn.texi: Update -gnatN documentation.
1582
1583 * gnat_rm.texi: Add note about pre/postcondition
1584 pragmas not checked in conjunction with front-end inlining.
1585
1586 2008-07-31 Robert Dewar <dewar@adacore.com>
1587
1588 * g-pehage.adb, g-pehage.ads: Minor reformatting
1589
1590 2008-07-31 Arnaud Charlet <charlet@adacore.com>
1591
1592 * mlib-utl.ads, prj-makr.ads: Add comments.
1593
1594 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1595
1596 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
1597 [WINDOWS]: Add s-winext.o.
1598
1599 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
1600
1601 PR ada/36554
1602 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
1603 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
1604 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
1605 Set precision to 1 for subtype of BOOLEAN_TYPE.
1606 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
1607 (make_type_from_size): Deal with BOOLEAN_TYPE.
1608 * gcc-interface/misc.c (gnat_print_type): Likewise.
1609 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
1610 Set boolean_type_node as its translation in the table, as well
1611 as boolean_false_node for False and boolean_true_node for True.
1612 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
1613 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
1614 (create_param_decl): Deal with BOOLEAN_TYPE.
1615 (build_vms_descriptor): Likewise.
1616 (build_vms_descriptor64): Likewise.
1617 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
1618
1619 2008-07-30 Robert Dewar <dewar@adacore.com>
1620
1621 * exp_ch9.adb: Minor reformatting
1622
1623 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
1624 if no primitive operation is found.
1625
1626 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
1627
1628 * sem_ch8.adb: Minor reformatting
1629
1630 2008-07-30 Laurent Pautet <pautet@adacore.com>
1631
1632 * g-pehage.adb:
1633 Remove a limitation on the length of the words handled by the minimal
1634 perfect hash function generator.
1635
1636 * g-pehage.ads:
1637 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
1638 Fix some typos.
1639
1640 2008-07-30 Robert Dewar <dewar@adacore.com>
1641
1642 * gnatlink.adb: Minor reformatting
1643
1644 2008-07-30 Thomas Quinot <quinot@adacore.com>
1645
1646 * rtsfind.adb (Check_RPC): Check version consistency even when not
1647 generating RCI stubs. Provide more detailed error message in case of
1648 mismatch.
1649
1650 2008-07-30 Ed Schonberg <schonberg@adacore.com>
1651
1652 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
1653 as a actual in an instance, check for a missing attribute to prevent
1654 program_error on an illegal program.
1655
1656 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
1657 error if primitive is not found, so that exception can be handled
1658 elsewhere on illegal programs.
1659
1660 2008-07-30 Robert Dewar <dewar@adacore.com>
1661
1662 * uintp.adb (UI_GCD): Fix potential overflow
1663
1664 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
1665
1666 * einfo.adb: Flag245 is now used.
1667 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
1668 check to include functions.
1669 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1670 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
1671 include functions.
1672 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
1673 to the list of displayed flags.
1674
1675 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
1676 Wrapped_Entity. These two flags are now present in functions.
1677 New flag Is_Private_Primitive.
1678 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1679
1680 * exp_ch9.adb:
1681 (Build_Wrapper_Bodies): New subprogram.
1682 (Build_Wrapper_Body): The spec and body have been moved to in
1683 Build_Wrapper_ Bodies. Code cleanup.
1684 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
1685 Wrappers are now generated for primitives declared between the private
1686 and full view of a concurrent type that implements an interface.
1687 (Build_Wrapper_Specs): New subprogram.
1688 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
1689 creation mechanism with a call to Build_Wrapper_Bodies.
1690 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
1691 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
1692 (Expand_N_Task_Body): Replace the wrapper body creation
1693 mechanism with a call to Build_Wrapper_Bodies.
1694 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
1695 creation mechanism with a call to Build_Wrapper_Specs.
1696 (Is_Private_Primitive_Subprogram): New subprogram.
1697 (Overriding_Possible): Code cleanup.
1698 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
1699
1700 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
1701
1702 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
1703 (Process_Full_View): Build wrapper specs for all primitives
1704 that belong to a private view completed by a concurrent type
1705 implementing an interface.
1706
1707 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
1708 is a primitive of a
1709 concurrent type with a private view that implements an interface, try to
1710 find the proper spec.
1711 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
1712 primitive if the type of its first parameter is a non-generic tagged
1713 private type.
1714 (Analyze_Subprogram_Specification): Code reformatting.
1715 (Disambiguate_Spec): New routine.
1716 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
1717 (Is_Private_Concurrent_Primitive): New routine.
1718
1719 * sem_ch6.ads:
1720 (Find_Corresponding_Spec): Add a formal to control the output of errors.
1721
1722 2008-07-30 Doug Rupp <rupp@adacore.com>
1723
1724 * gigi.h (build_vms_descriptor64): New function prototype.
1725 (fill_vms_descriptor): Modified function prototype.
1726
1727 * utils.c (build_vms_descriptor64): New function.
1728
1729 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
1730
1731 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
1732 argument.
1733
1734 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
1735 64bit and 32bit descriptor and save the 64bit version as an alternate
1736 TREE_TYPE in the parameter.
1737 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
1738 thin pointer.
1739
1740 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
1741
1742 2008-07-30 Robert Dewar <dewar@adacore.com>
1743
1744 * make.adb: Minor reformatting
1745
1746 * mlib-utl.adb: Minor reformatting
1747
1748 * osint.ads: Minor reformatting
1749
1750 2008-07-30 Jose Ruiz <ruiz@adacore.com>
1751
1752 * adaint.c
1753 (__gnat_file_exists): Do not use __gnat_stat for RTX.
1754 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
1755 avoid the use of this symbol from libgcc.a in RTX kernel mode.
1756
1757 * cio.c
1758 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
1759 the function RtPrintf for console output.
1760
1761 * argv.c Do not use the environ variable for RTX.
1762
1763 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
1764 been moved before the call to Osint.Add_Default_Search_Dirs in order
1765 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
1766 from the appropriate run time.
1767
1768 * targparm.ads
1769 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
1770 target is a RTSS module for RTX.
1771
1772 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
1773 RTX_RTSS_Kernel_Module
1774 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
1775
1776 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
1777 exception handling mechanism for Windows and RTX in Win32 mode, but
1778 not for RTX in kernel mode (RTSS).
1779 (LIBGNAT_SRCS): Remove ada.h
1780
1781 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
1782
1783 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
1784 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1785 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
1786 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
1787 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
1788 ALL_ADA_CFLAGS): Remove.
1789 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
1790 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1791 (GCC_CFLAGS): Remove X_CFLAGS.
1792 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
1793 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
1794 (ADA_CFLAGS): Substitute.
1795
1796 2008-07-30 Laurent Guerby <laurent@guerby.net>
1797
1798 PR ada/5911
1799 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
1800 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
1801 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
1802 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
1803 by stamp-gnatlib2-rts.
1804
1805 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1806
1807 PR documentation/15479
1808 * gnat-style.texi: Remove AdaCore copyright statement and GPL
1809 statement for GNAT. Add @copying stanza, use it. Update to
1810 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
1811 title as Front-Cover Text.
1812 * gnat_rm.texi: Likewise.
1813 * gnat_ugn.texi: Likewise.
1814
1815 2008-07-29 Jan Hubicka <jh@suse.cz>
1816
1817 * trans.c (process_inlined_subprograms): Remove tree_really_inline
1818 check.
1819
1820 2008-07-29 Arnaud Charlet <charlet@adacore.com>
1821
1822 * gcc-interface: New directory.
1823
1824 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
1825 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
1826 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
1827 to gcc-interface subdirectory.
1828
1829 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1830
1831 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
1832
1833 2008-07-28 Jan Hubicka <jh@suse.cz>
1834
1835 * misc.c (gnat_post_options): Do not set flag_no_inline.
1836
1837 2008-07-28 Richard Guenther <rguenther@suse.de>
1838
1839 Merge from gimple-tuples-branch.
1840
1841 2008-07-22 Olivier Hainque <hainque@adacore.com>
1842
1843 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
1844 this is called for an elab proc to be discarded if empty.
1845 * utils.c (end_subprog_body): Honor ELAB_P.
1846 (build_function_stub): Adjust call to end_subprog_body.
1847 * trans.c (Subprogram_Body_to_gnu): Likewise.
1848 (gigi): Reorganize processing of elab procs to prevent
1849 gimplifying twice, using the new end_subprog_body argument.
1850
1851 2008-07-19 Richard Guenther <rguenther@suse.de>
1852
1853 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
1854 (utils.o): Likewise.
1855 * trans.c: Include tree-iterator.h.
1856 (gnat_gimplify_expr): Adjust prototype. Fix typo.
1857 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
1858 (set_expr_location_from_node): Likewise.
1859 (gigi): Tuplify.
1860 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
1861 of GENERIC_NEXT.
1862 * utils.c: Include tree-iterator.h.
1863 * gigi.h (gnat_gimplify_expr): Adjust prototype.
1864
1865 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
1866
1867 * trans.c: Include gimple.h instead of tree-gimple.h.
1868 * utils.c: Same.
1869
1870 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
1871
1872 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
1873
1874 2008-07-25 Jan Hubicka <jh@suse.cz>
1875
1876 * utils.c (end_subprog_body): Remove inline trees check.
1877 * misc.c (gnat_post_options): Do not set flag_inline_trees.
1878
1879 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1880
1881 * raise-gcc.c: Move tsystem.h before tm.h.
1882
1883 2008-07-20 Arnaud Charlet <charlet@adacore.com>
1884
1885 * gnathtml.pl: New file.
1886
1887 2008-07-19 Olivier Hainque <hainque@adacore.com>
1888
1889 * targtyps.c (get_target_default_allocator_alignment): Use
1890 MALLOC_ABI_ALIGNMENT.
1891
1892 2008-07-17 Olivier Hainque <hainque@adacore.com>
1893
1894 * adaint.c (__MINGW32__ section): Include ctype.h and define
1895 a fallback ISALPHA if IN_RTS.
1896 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
1897
1898 2008-07-17 Olivier Hainque <hainque@adacore.com>
1899
1900 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
1901 argument, to apply to references in addition to definitions. Prevent
1902 setting TREE_STATIC on externals.
1903 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
1904
1905 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1906
1907 PR documentation/15479
1908 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
1909 Replace backets around optional parameters with @ovar
1910 where possible, use @r{[}, @r{]} otherwise.
1911 Replace some @r, @i, and @emph with @var where appropriate.
1912
1913 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
1914
1915 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
1916
1917 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1918
1919 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
1920 -Wc++-compat warnings.
1921 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
1922 __gnat_locate_exec_on_path): Likewise.
1923 * decl.c (annotate_value): Likewise.
1924 * misc.c (gnat_handle_option): Likewise.
1925 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
1926 post_error_ne_tree): Likewise.
1927
1928 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
1929
1930 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
1931 version of its type, attempt to first convert its elements.
1932
1933 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
1934
1935 * Makefile.in: Fix *86 kfreebsd target specific pairs.
1936
1937 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
1938
1939 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
1940
1941 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
1942
1943 * utils2.c (known_alignment): Derive the alignment from pointed-to
1944 types only if it is otherwise unknown.
1945 <INTEGER_CST>: Tidy.
1946 <MULT_EXPR>: Likewise.
1947 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1948 that of the base.
1949
1950 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1951
1952 PR ada/36573
1953 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1954
1955 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1956
1957 * gnat_rm.texi (Implementation Defined Characteristics)
1958 (Standard Library Routines): Use @smallexample for indented
1959 text. Drop Indentation outside examples.
1960 * gnat_ugn.texi: Likewise.
1961
1962 2008-06-13 Olivier Hainque <hainque@adacore.com>
1963
1964 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1965 if undefined.
1966 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1967 realignment with force_align_arg_pointer attribute on foreign
1968 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1969
1970 2008-06-13 Olivier Hainque <hainque@adacore.com>
1971
1972 * utils.c (rest_of_record_type_compilation): When computing
1973 encodings for the components of a variable size type, early
1974 strip conversions on the current position expression to make
1975 sure it's shape is visible. Use remove_conversions for this
1976 purpose.
1977
1978 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
1979
1980 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1981 constrained subtype of a discriminated type, discard the fields that
1982 are beyond its limits according to its size.
1983
1984 2008-06-10 Olivier Hainque <hainque@adacore.com>
1985
1986 * utils.c (create_subprog_decl): If this is for the 'main' entry
1987 point according to the asm name, redirect main_identifier_node.
1988
1989 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
1990
1991 * decl.c (components_to_record): Adjust the packedness for the
1992 qualified union as well.
1993
1994 2008-06-09 Arnaud Charlet <charlet@adacore.com>
1995
1996 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1997 checks non fatal.
1998
1999 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2000
2001 * sem_res.adb (Large_Storage_Type): A type is large if it
2002 requires as many bits as Positive to store its values and its
2003 bounds are known at compile time.
2004 * sem_ch13.adb (Minimum_Size): Note that this function returns
2005 0 if the size is not known at compile time.
2006
2007 2008-06-06 Nicolas Setton <setton@adacore.com>
2008 Olivier Hainque <hainque@adacore.com>
2009
2010 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2011 attribute, parallel descriptive type attached to another
2012 type for debug info generation purposes.
2013 * utils.c (add_parallel_type): New function, register
2014 parallel type to be attached to a type.
2015 (get_parallel_type): New function, fetch a registered
2016 parallel type, if any.
2017 (rest_of_record_type_compilation): Register the parallel
2018 type we make for variable size records.
2019 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2020 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2021 parallel debug types we make.
2022 * trans.c (extract_encoding, decode_name): New functions.
2023 (gigi): If the DWARF attribute extensions are available, setup
2024 to use them.
2025 * lang.opt: Register language specific processing request
2026 for -gdwarf+.
2027 * misc.c (gnat_dwarf_extensions): New global variable. How much
2028 do we want of our DWARF extensions. 0 by default.
2029 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2030 (gnat_post_options): Map gnat_dwarf_extensions to the
2031 commonuse_gnu_debug_info_extensions for later processing.
2032
2033 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
2034
2035 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2036
2037 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2038
2039 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2040 * gnat_ugn.texi (Style Checking)
2041 (Adding the Results of Compiler Checks to gnatcheck Output)
2042 (Example of Binder Output File): Fix typos.
2043 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2044 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2045 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2046 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2047 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2048 sinfo.ads, utils.c: Fix typos in comments.
2049 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2050
2051 2008-05-29 Thomas Quinot <quinot@adacore.com>
2052
2053 * sem_eval.adb: Minor reformatting
2054
2055 2008-05-29 Ed Schonberg <schonberg@adacore.com>
2056
2057 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2058 is abstract, do not apply abstractness check on subprogram if this is
2059 a renaming declaration.
2060
2061 2008-05-29 Arnaud Charlet <charlet@adacore.com>
2062
2063 PR ada/864
2064 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2065 allow recognition of program suffix in addition to prefix.
2066
2067 * gnatchop.adb (Locate_Executable): Add support for prefix.
2068
2069 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2070 mlib-utl.adb: Adjust calls to Program_Name.
2071
2072 2008-05-29 Robert Dewar <dewar@adacore.com>
2073
2074 * sem_ch3.adb: Minor reformatting
2075 * sem_prag.adb: Minor reformatting
2076 * sem_res.adb: Minor reformatting
2077 * sinput-p.ads: Minor reformatting
2078
2079 2008-05-29 Javier Miranda <miranda@adacore.com>
2080
2081 * sem_util.adb:
2082 (Abstract_Interface_List): Add missing support for full type-declaration
2083 associated with synchronized types.
2084
2085 2008-05-29 Robert Dewar <dewar@adacore.com>
2086
2087 * sem_eval.adb (Is_Same_Value): Take care of several more cases
2088
2089 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2090
2091 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2092 access type, wrap the expression in a conversion to force an
2093 accessibility check.
2094
2095 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2096 accessibility checks even when expansion is disabled in order to
2097 generate messages in the presence of previous errors or in
2098 semantics-only mode.
2099
2100 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
2101
2102 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2103 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2104
2105 2008-05-28 Vincent Celier <celier@adacore.com>
2106
2107 PR ada/34446
2108 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2109 preprocessing expressions
2110
2111 2008-05-28 Vincent Celier <celier@adacore.com>
2112
2113 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2114 for preprocessing
2115
2116 * sinput-p.ads: Minor comment update and reformatting
2117
2118 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2119
2120 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2121 type has a deeper level than any master only when it is the type of an
2122 access parameter.
2123
2124 2008-05-28 Javier Miranda <miranda@adacore.com>
2125
2126 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2127
2128 2008-05-28 Javier Miranda <miranda@adacore.com>
2129
2130 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2131 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2132 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2133 Add code that was previously located in
2134 Find_Overridden_Synchronized_Primitive because it is only used here.
2135
2136 2008-05-28 Sergey Rybin <rybin@adacore.com>
2137
2138 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2139 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2140
2141 2008-05-28 Robert Dewar <dewar@adacore.com>
2142
2143 * restrict.ads:
2144 Add missing restrictions, and properly label all GNAT defined ones
2145
2146 * rtsfind.ads:
2147 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2148 Add entry for Ada.Task_Termination.Set_Specific_Handler
2149 Add entry for Ada.Task_Termination.Specific_Handler
2150
2151 * s-rident.ads:
2152 Add missing restrictions and properly mark all gnat defined ones
2153
2154 * sem_ch3.adb:
2155 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2156
2157 * sem_res.adb:
2158 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2159
2160 * gnat_rm.texi: Add missing restrictions, and properly label all
2161 GNAT defined ones
2162
2163 2008-05-28 Robert Dewar <dewar@adacore.com>
2164
2165 * restrict.adb:
2166 (Check_Restriction): violation of restriction No_Finalization is
2167 treated as a serious error to stop expansion
2168
2169 2008-05-28 Robert Dewar <dewar@adacore.com>
2170
2171 * exp_util.adb: Minor reformatting
2172 * exp_util.ads: Minor reformatting.
2173
2174 2008-05-28 Arnaud Charlet <charlet@adacore.com>
2175
2176 * Make-lang.in: Remove gprmake.
2177
2178 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2179
2180 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2181
2182 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2183 improper progenitor names, and avoid cascaded errors.
2184
2185 2008-05-28 Robert Dewar <dewar@adacore.com>
2186
2187 * gnat_rm.texi: Add note on Old giving warning when applied to constant
2188
2189 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2190 a constant
2191
2192 2008-05-28 Robert Dewar <dewar@adacore.com>
2193
2194 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2195 size
2196
2197 2008-05-28 Robert Dewar <dewar@adacore.com>
2198
2199 * exp_ch5.adb:
2200 (Expand_Simple_Function_Return): Copy unaligned result into temporary
2201
2202 2008-05-28 Javier Miranda <miranda@adacore.com>
2203
2204 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2205 for user-defined predefined primitives.
2206
2207 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2208 (Find_Overridden_Synchronized_Primitive): Ditto.
2209
2210 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2211
2212 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2213
2214 * a-ststio.adb, s-direio.adb:
2215 Further code clean up of previous change.
2216 Update comments.
2217
2218 2008-05-27 Vincent Celier <celier@adacore.com>
2219
2220 * prj-nmsc.adb: Minor reformatting
2221
2222 2008-05-27 Bob Duff <duff@adacore.com>
2223
2224 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2225 untagged private type with a tagged full type, where the full type has
2226 a self reference, create the corresponding class-wide type early, in
2227 case the self reference is "access T'Class".
2228
2229 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2230
2231 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2232 tasks and context is an object declaration. create master entity before
2233 expansion.
2234
2235 2008-05-27 Robert Dewar <dewar@adacore.com>
2236
2237 * mlib-prj.adb: Minor reformatting
2238
2239 * prj-part.adb: Minor reformatting
2240
2241 * prj.ads: Minor reformatting
2242
2243 * exp_ch3.adb: Minor reformatting.
2244
2245 * sem_ch3.ads: Minor reformatting
2246
2247 * sem_eval.adb: Minor reformatting
2248
2249 2008-05-27 Vincent Celier <celier@adacore.com>
2250
2251 * gnatcmd.adb:
2252 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2253
2254 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2255
2256 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2257 tasks, create an activation chain now, before the expansion into
2258 assignments and build-in-place calls that require the presence of an
2259 activation chain.
2260 (Backend_Processing_Possible): If the component type is inherently
2261 limited, the aggregate must be expanded into individual built-in-place
2262 assignments.
2263
2264 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2265 determine whether an allocation extra parameter must be built, to
2266 handle case of a private type whose full type is a discriminated type
2267 with defaults.
2268
2269 2008-05-27 Bob Duff <duff@adacore.com>
2270
2271 * gnat_rm.texi:
2272 Document the new behavior regarding trampolines.
2273
2274 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2275
2276 * a-direio.adb, a-sequio.adb: Replace address clause by
2277 unrestricted_access, simpler and compatible with .NET.
2278
2279 2008-05-27 Vincent Celier <celier@adacore.com>
2280
2281 * prj-part.adb:
2282 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2283 a project file, so that symbolic links are not resolved.
2284
2285 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2286
2287 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2288 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2289 portable across GNAT targets, since this kind of address clause is not
2290 supported by VM back-ends (.NET/JGNAT).
2291
2292 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2293
2294 * bindgen.adb: Update comments.
2295
2296 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
2297
2298 2008-05-27 Vincent Celier <celier@adacore.com>
2299
2300 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
2301 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
2302 mlib-tgt.adb, prj-env.adb, prj-env.ads:
2303 (Path_Information): New record type
2304 Use component of type Path_Information when there are two paths, one in
2305 canonical format and one in display format.
2306 Update the project manager to these new components.
2307
2308 2008-05-27 Robert Dewar <dewar@adacore.com>
2309
2310 * makeutl.adb: Minor reformatting
2311 * prj-nmsc.adb: Minor reformatting
2312 * s-stausa.adb: Minor reformatting
2313 * s-stausa.ads: Minor reformatting
2314 * sem_ch6.adb: Minor reformatting
2315
2316 2008-05-27 Thomas Quinot <quinot@adacore.com>
2317
2318 * sem_res.adb: Minor comment fixes
2319
2320 2008-05-27 Thomas Quinot <quinot@adacore.com>
2321
2322 * makeutl.adb: Minor code reorganization
2323
2324 * exp_aggr.adb: Add ??? comment
2325 Fix typo
2326
2327 * exp_ch6.adb: Minor reformatting
2328
2329 2008-05-27 Quentin Ochem <ochem@adacore.com>
2330
2331 * s-stausa.adb (Initialize): Updated result initialization, and
2332 initialization of environment stack.
2333 (Fill_Stack): Improved computation of the pattern zone, taking into
2334 account already filled at the calling point.
2335 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
2336 Measure and Overflow_Guard.
2337 (Report_Result): Fixed computation of the result using new fields of
2338 Stack_Analyzer.
2339
2340 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
2341 params by more explicit Stack_Size / Max_Pattern_Size params.
2342 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
2343 Added Stack_Used_When_Filling field.
2344 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
2345 Min_Measure and Max_Measure fields.
2346
2347 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
2348
2349 2008-05-27 Vincent Celier <celier@adacore.com>
2350
2351 * prj-nmsc.adb:
2352 (Check_File): Make sure that a unit that replaces the same unit in a
2353 project being extended is properly processed.
2354
2355 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2356
2357 * sem_ch3.adb:
2358 (Get_Discr_Value): Remove obsolete code that failed to find the value
2359 of a discriminant for an inherited task component appearing in a type
2360 extension.
2361
2362 2008-05-27 Thomas Quinot <quinot@adacore.com>
2363
2364 (System.File_IO.{Close, Delete, Reset}):
2365 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2366
2367 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
2368 Pass File parameter by reference.
2369
2370 2008-05-27 Vincent Celier <celier@adacore.com>
2371
2372 * prj-nmsc.adb:
2373 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
2374 sources of the same project that have the same object file name.
2375 (Find_Explicit_Sources): Always remove a source exception that was not
2376 found.
2377
2378 2008-05-27 Thomas Quinot <quinot@adacore.com>
2379
2380 * sem_ch3.adb: Minor reformatting
2381
2382 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2383
2384 * sem_ch6.adb:
2385 (Is_Interface_Conformant): Handle properly a primitive operation that
2386 overrides an interface function with a controlling access result.
2387 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
2388 inherited and overriding operations, omit as well the conformance check
2389 on result types, to prevent spurious errors.
2390
2391 2008-05-27 Vincent Celier <celier@adacore.com>
2392
2393 * makeutl.ads, makeutl.adb:
2394 (Set_Location): New procedure
2395 (Get_Location): New function
2396 (Update_Main): New procedure
2397
2398 2008-05-27 Vincent Celier <celier@adacore.com>
2399
2400 * prj-nmsc.adb:
2401 (Check_Library): Allow standard project to be extended as a static
2402 library project.
2403 (Get_Mains): Do not inherit attribute Main in an extending library
2404 project.
2405
2406 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
2407
2408 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
2409 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
2410 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
2411 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
2412 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
2413 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
2414 * system-mingw.ads (Always_Compatible_Rep): Likewise.
2415 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
2416 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
2417 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
2418
2419 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2420
2421 * sem_attr.adb: add guard to previous patch.
2422
2423 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2424
2425 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
2426 a synchronized tagged type, do not attempt to build dispatch table for
2427 full view. The table is built for the corresponding record type, which
2428 has its own declaration.
2429
2430 2008-05-27 Gary Dismukes <dismukes@adacore.com>
2431
2432 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
2433 to the known type entity E, rather than setting it to Any_Type. Fixes
2434 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
2435 for objects whose type had an illegal constraint.
2436
2437 2008-05-27 Vincent Celier <celier@adacore.com>
2438
2439 * gnat_ugn.texi:
2440 Add succinct documentation for attribute Excluded_Source_List_File
2441
2442 2008-05-27 Vincent Celier <celier@adacore.com>
2443
2444 * prj-attr.adb: Add new project level attribute Map_File_Option
2445
2446 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
2447
2448 * prj.ads: Minor reformatting and comment update
2449 (Project_Configuration): New component Map_File_Option
2450
2451 * snames.adb: New standard name Map_File_Option
2452
2453 * snames.ads: New standard name Map_File_Option
2454
2455 2008-05-27 Vincent Celier <celier@adacore.com>
2456
2457 * xsnames.adb: Remove unused variable Oname
2458
2459 2008-05-27 Doug Rupp <rupp@adacore.com>
2460
2461 * exp_ch6.adb:
2462 (Expand_N_Function_Call): Fix comments. Minor reformatting.
2463
2464 * exp_vfpt.ads:
2465 (Expand_Vax_Foreign_Return): Fix comments.
2466
2467 2008-05-27 Thomas Quinot <quinot@adacore.com>
2468
2469 * exp_dist.adb: Minor reformating
2470
2471 2008-05-26 Gary Dismukes <dismukes@adacore.com>
2472
2473 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
2474 No_Default_Initialization, which is now delayed until the freeze point
2475 of the object. Add a comment about deferral of the check.
2476
2477 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
2478 on objects is moved here.
2479
2480 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
2481
2482 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
2483 (Compare_Array_S16): Adjust for above change.
2484 * s-casi32.adb (Uword): Likewise.
2485 (Compare_Array_S32): Likewise.
2486 * s-casi64.adb (Uword): Likewise.
2487 (Compare_Array_S64): Likewise.
2488 * s-caun16.adb (Uhalf): Likewise.
2489 (Compare_Array_U16): Likewise.
2490 * s-caun32.adb (Uword): Likewise.
2491 (Compare_Array_U32): Likewise.
2492 * s-caun64.adb (Uword): Likewise.
2493 (Compare_Array_U64): Likewise.
2494
2495 2008-05-26 Robert Dewar <dewar@adacore.com>
2496
2497 * exp_ch6.adb: Add ??? comment for previous change
2498
2499 * exp_vfpt.adb: Minor reformatting
2500
2501 * exp_vfpt.ads: Add ??? comment for last change
2502
2503 * sem_attr.adb: Add some ??? comments for previous change
2504
2505 * s-vaflop.ads: Add comments for previous change
2506
2507 2008-05-26 Doug Rupp <rupp@adacore.com>
2508
2509 * s-vaflop-vms-alpha.adb:
2510 Remove System.IO use clause, to prevent spurious ambiguities when
2511 package is access through rtsfind.
2512
2513 2008-05-26 Sergey Rybin <rybin@adacore.com>
2514
2515 * tree_io.ads (ASIS_Version_Number): Update because of the changes
2516 made in front-end
2517
2518 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2519
2520 * sem_attr.adb:
2521 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
2522 converted to S (A)'address only if A .. B is known to be a non-null
2523 range.
2524
2525 2008-05-26 Doug Rupp <rupp@adacore.com>
2526
2527 * s-vaflop.adb:
2528 (Return_D, Return_F, Return_G): New functions.
2529
2530 * s-vaflop.ads:
2531 (Return_D, Return_F, Return_G): New functions.
2532
2533 * exp_vfpt.adb:
2534 (Expand_Vax_Foreign_Return): New procedure
2535
2536 * exp_vfpt.ads:
2537 (Expand_Vax_Foreign_Return): New procedure
2538
2539 * rtsfind.ads:
2540 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
2541 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
2542
2543 * exp_ch6.adb:
2544 Import Exp_Vfpt
2545 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
2546
2547 * s-vaflop-vms-alpha.adb:
2548 (Return_D, Return_F, Return_G): New functions.
2549
2550 2008-05-26 Gary Dismukes <dismukes@adacore.com>
2551
2552 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
2553 init proc entity when there is actual default initialization associated
2554 with the component type, to avoid spurious errors on objects of scalar
2555 array types that are marked Is_Public when No_Default_Initialization
2556 applies.
2557
2558 2008-05-26 Thomas Quinot <quinot@adacore.com>
2559
2560 * rtsfind.ads, rtsfind.adb:
2561 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
2562 (Check_RPC): Support per-PCS-kind API versioning.
2563
2564 exp_dist.ads, exp_dist.adb:
2565 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
2566 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
2567 library function Get_RACW.
2568 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
2569 library function Get_Reference.
2570 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
2571 through an intermediate Any.
2572 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
2573 going through an intermediate Any.
2574
2575 * sem_dist.adb: Minor reformatting.
2576
2577 2008-05-26 Javier Miranda <miranda@adacore.com>
2578
2579 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
2580 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
2581 (Is_Internal): Adding documentation on internal entities that have
2582 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
2583
2584 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
2585 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
2586 Added assertion to force entities with this attribute to have
2587 attribute Is_Internal set to True.
2588 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
2589
2590 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
2591 renamed as Derive_Progenitor_Subprograms. In addition, its code is
2592 a new implementation.
2593 (Add_Interface_Tag_Components): Remove special management of
2594 synchronized interfaces.
2595 (Analyze_Interface_Declaration): Minor reformating
2596 (Build_Derived_Record_Type): Minor reformating
2597 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
2598 predefined primitive inherited from interface type because the body of
2599 internally generated predefined primitives of tagged types are generated
2600 later by Freeze_Type
2601 (Derive_Subprogram): Avoid generating an internal name if the parent
2602 subprogram overrides an interface primitive.
2603 (Derive_Subprograms): New implementation that keeps separate the
2604 management of tagged types not implementing interfaces, from tagged
2605 types that implement interfaces.
2606 (Is_Progenitor): New implementation.
2607 (Process_Full_View): Add documentation
2608 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
2609 by call to Derive_Progenitor_Subprograms.
2610
2611 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
2612 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2613 Skip_Controlling_Formals.
2614
2615 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
2616 (Check_Conventions): New implementation. Remove local subprogram
2617 Skip_Check. Remove formal Search_From of routine Check_Convention.
2618 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2619 Skip_Controlling_Formals.
2620 (New_Overloaded_Entity): Enable addition of predefined dispatching
2621 operations.
2622
2623 * sem_disp.ads
2624 (Find_Primitive_Covering_Interface): New subprogram.
2625
2626 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
2627 the task body procedure as a primitive of the corresponding tagged
2628 type.
2629 (Check_Operation_From_Private_Type): Avoid adding twice an entity
2630 to the list of primitives.
2631 (Find_Primitive_Covering_Interface): New subprogram.
2632 (Override_Dispatching_Operation): Add documentation.
2633
2634 * sem_type.adb (Covers): Minor reformatings
2635
2636 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
2637 Collect_Interfaces.
2638 Rename formal.
2639 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
2640 (Implements_Interface): New subprogram.
2641 (Is_Parent): Removed.
2642 (Primitive_Names_Match): New subprogram.
2643 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2644 (Ultimate_Alias): New subprogram.
2645
2646 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
2647 Collect_Interfaces.
2648 Remove special management for synchronized types. Rename formal. Remove
2649 internal subprograms Interface_Present_In_Parent and Add_Interface.
2650 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
2651 on non-record types by code to return false in such case.
2652 (Implements_Interface): New subprogram.
2653 (Is_Parent): Removed. No special management is now required for
2654 synchronized types covering interfaces.
2655 (Primitive_Names_Match): New subprogram.
2656 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2657 (Ultimate_Alias): New subprogram.
2658
2659 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
2660 Add internal entities associated with secondary dispatch tables to
2661 the list of tagged type primitives that are not interfaces.
2662 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
2663 (Make_Predefined_Primitive_Specs): Code reorganization to improve
2664 the management of predefined equality operator. In addition, if
2665 the type has an equality function corresponding with a primitive
2666 defined in an interface type, the inherited equality is abstract
2667 as well, and no body can be created for it.
2668
2669 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
2670 exp_util to exp_disp.
2671 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
2672 an entity corresponds with one of the predefined primitives required
2673 to implement interfaces.
2674 Update copyright notice.
2675
2676 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
2677 final check on abstract subprograms all the primitives associated with
2678 interface primitives because they must be visible in the public and
2679 private part.
2680 (Write_DT): Use Find_Dispatching_Type to locate the name of the
2681 interface type. This allows the use of this routine, for debugging
2682 purposes, when the tagged type is not fully decorated.
2683 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
2684 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
2685 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
2686 entity corresponds with one of the predefined primitives required to
2687 implement interfaces.
2688
2689 * exp_util.adb (Find_Interface_ADT): New implementation
2690 (Find_Interface): Removed.
2691
2692 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
2693 list of interfaces associated with nodes
2694 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
2695
2696 2008-05-26 Thomas Quinot <quinot@adacore.com>
2697
2698 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
2699 condition for assignment to temporary.
2700
2701 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2702
2703 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
2704 checks on the upper bound if the index type is a modular type, to
2705 prevent wrap-around computations when size is close to upper bound of
2706 type.
2707
2708 2008-05-26 Robert Dewar <dewar@adacore.com>
2709
2710 * sem_ch3.adb: Minor reformatting
2711
2712 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2713
2714 * sem_ch12.adb (Remove_Parent): Use specification of instance
2715 to retrieve generic parent,
2716 to handle properly the case where the instance is a child unit.
2717 Add guard to handle properly wrapper packages.
2718 Minor reformatting
2719
2720 2008-05-26 Thomas Quinot <quinot@adacore.com>
2721
2722 * sinfo.ads: Minor reformatting
2723
2724 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
2725
2726 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
2727 Generate a tag check when the result subtype of a function, defined by
2728 an access definition, designates a specific tagged type.
2729 (Make_Tag_Check): New routine.
2730
2731 2008-05-26 Arnaud Charlet <charlet@adacore.com>
2732
2733 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
2734
2735 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
2736
2737 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
2738 (builtin_decl_for): Likewise.
2739 * trans.c (gigi): Likewise.
2740 * utils.c (def_builtin_1): Fix formatting.
2741
2742 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
2743
2744 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
2745 Create the statements which map a string name to protected or task
2746 entry indix.
2747
2748 * exp_ch9.adb: Add with and use clause for Stringt.
2749 Minor code reformatting.
2750 (Build_Entry_Names): New routine.
2751 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
2752 for flag Build_Entry_Names which controls the allocation of the data
2753 structure for the string names of entries.
2754
2755 * exp_ch9.ads (Build_Entry_Names): New subprogram.
2756
2757 * exp_util.adb (Entry_Names_OK): New function.
2758
2759 * exp_util.ads (Entry_Names_OK): New function.
2760
2761 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
2762 enumerations RE_Id and RE_Unit_Table.
2763
2764 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
2765 (Free_Entry_Names_Array): New routine.
2766
2767 * s-taskin.ads: Comment reformatting.
2768 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
2769 Add component Entry_Names to record Ada_Task_Control_Block.
2770 (Free_Entry_Names_Array): New routine.
2771
2772 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
2773 dynamically allocate an array
2774 of string pointers. This structure holds string entry names.
2775 (Free_Entry_Names): New routine.
2776 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
2777 (Set_Entry_Names): New routine.
2778
2779 * s-tassta.ads:
2780 (Create_Task): Add formal Build_Entry_Names. The flag is used to
2781 control the allocation of the data structure which stores entry names.
2782 (Set_Entry_Name): New routine.
2783
2784 * s-tpoben.adb:
2785 Add with and use clause for Ada.Unchecked_Conversion.
2786 (Finalize): Deallocate the entry names array.
2787 (Free_Entry_Names): New routine.
2788 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
2789 create an array of string pointers to hold the entry names.
2790 (Set_Entry_Name): New routine.
2791
2792 * s-tpoben.ads:
2793 Add field Entry_Names to record Protection_Entries.
2794 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
2795 (Set_Entry_Name): New routine.
2796
2797 2008-05-26 Vincent Celier <celier@adacore.com>
2798
2799 * prj-nmsc.adb:
2800 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
2801
2802 * prj.ads:
2803 (Project_Configuration): New component Shared_Lib_Driver
2804
2805 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2806
2807 * inline.adb:
2808 (Cleanup_Scopes): For a protected operation, transfer finalization list
2809 to protected body subprogram, to force cleanup actions when needed.
2810
2811 2008-05-26 Robert Dewar <dewar@adacore.com>
2812
2813 * sem_cat.adb: Minor reformatting
2814
2815 * gnatname.adb: Minor reformatting
2816
2817 * osint.ads: Minor reformatting
2818
2819 * s-carun8.ads: Minor reformatting
2820
2821 * g-heasor.ads: Minor comment fix (unit is now pure)
2822
2823 2008-05-26 Robert Dewar <dewar@adacore.com>
2824
2825 * exp_ch2.adb:
2826 (Expand_Current_Value): Properly type generated integer literal
2827
2828 2008-05-26 Sergey Rybin <rybin@adacore.com>
2829
2830 * gnat_ugn.texi: Add description for the new gnatcheck rule -
2831 Separate_Numeric_Error_Handlers.
2832
2833 2008-05-26 Pascal Obry <obry@adacore.com>
2834
2835 * sem_aggr.adb: Minor reformatting.
2836
2837 2008-05-26 Jose Ruiz <ruiz@adacore.com>
2838
2839 * s-osinte-aix.adb:
2840 (To_Target_Priority): Setting the time slice value to 0 or greater sets
2841 the scheduling policy to FIFO within priorities or round-robin
2842 respectively.
2843 Hence, the priority must be set in this case to the one selected by the
2844 user.
2845
2846 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2847
2848 * sem_ch12.adb:
2849 (Remove_Parent): If the enclosing scope is an instance whose generic
2850 parent is declared within some parent scope of the just completed
2851 instance, make full views of the entities in that parent visible, when
2852 applicable.
2853
2854 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
2855
2856 * mingw32.h (STD_MINGW): Set to true for target w64.
2857
2858 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
2859
2860 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
2861 instead of TREE_STATIC on the ADDR_EXPR.
2862
2863 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
2864
2865 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
2866 (Sloc_to_locus): Do not overwrite known GCC locations when translating
2867 GNAT standard locations.
2868
2869 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
2870
2871 * gigi.h (mark_visited): Declare.
2872 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
2873 only the topmost node of expressions.
2874 (elaborate_expression_1): Look deeper for read-only variables.
2875 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
2876 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
2877 (mark_visited_r): New function.
2878
2879 2008-05-23 Vincent Celier <celier@adacore.com>
2880
2881 * snames.adb: New standard name Excluded_Source_List_File.
2882
2883 * snames.ads: New standard name Excluded_Source_List_File.
2884
2885 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
2886
2887 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
2888 Get excluded sources from
2889 file indicated by attribute Excluded_Source_List_File, when present and
2890 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
2891
2892 2008-05-23 Robert Dewar <dewar@adacore.com>
2893
2894 * exp_dist.adb: Minor reformatting
2895
2896 2008-05-23 Ed Schonberg <schonberg@adacore.com>
2897
2898 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
2899 slice, convert it to an indexed component, which is equivalent, more
2900 efficient, and usable even if the slice itself is not addressable.
2901
2902 2008-05-23 Olivier Hainque <hainque@adacore.com>
2903
2904 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
2905 convention also allows access to named compiler built-in subprograms
2906 such as the GCC __builtin family.
2907
2908 2008-05-23 Vincent Celier <celier@adacore.com>
2909
2910 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
2911 sep. If there are several possibilities, choose the one with the
2912 longer prefix.
2913
2914 2008-05-23 Vincent Celier <celier@adacore.com>
2915
2916 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
2917 back end switches when executable specified with --GCC= is same as
2918 default, even if there are additional options.
2919
2920 * gnat_ugn.texi:
2921 Document when the back end switches from the ALI file are taken into
2922 account when gnatlink is invoked with --GCC=
2923
2924 2008-05-23 Thomas Quinot <quinot@adacore.com>
2925
2926 * s-os_lib.adb:
2927 (copy_File): Do not open destination file if source file is unreadable.
2928
2929 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
2930
2931 * utils.c (handle_type_generic_attribute): Adjust to accept
2932 fixed arguments before an elipsis.
2933
2934 2008-05-21 Thomas Quinot <quinot@adacore.com>
2935
2936 * g-sothco.ads, g-sothco.adb: New files.
2937
2938 2008-05-20 Thomas Quinot <quinot@adacore.com>
2939
2940 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2941
2942 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2943 Add missing "with" of Ada.Unchecked_Conversion
2944
2945 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
2946 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
2947 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
2948 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
2949 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
2950 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
2951 Move common code out of GNAT.Sockets.Thin implementations and into
2952 Thin_Common.
2953 New constant SIZEOF_fd_set
2954 New flag Has_Sockaddr_Len
2955 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2956
2957 * g-stsifd-sockets.adb
2958 (Create): Remove call to Set_Length; use Set_Family to set the family
2959 and (on appropriate platforms) length fields in struct sockaddr.
2960
2961 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
2962 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
2963 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2964 Move common code out of GNAT.Sockets.Thin implementations and into
2965 Thin_Common.
2966
2967 * g-socket.ads, g-socket.adb:
2968 Move common code out of GNAT.Sockets.Thin implementations and into
2969 Thin_Common.
2970 (Connect_Socket, Accept_Socket): Provide new versions of these two
2971 routines that operate with a user specified timeout.
2972 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2973 this is now handled automatically by Set_Family on platforms that
2974 require it.
2975
2976 * gen-soccon.c:
2977 Move common code out of GNAT.Sockets.Thin implementations and into
2978 Thin_Common.
2979 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2980 this constant to 0 (not -1) because we use it to initialize an
2981 unsigned_char value.
2982 Align values for numeric constants only.
2983 Handle the case of systems that do not support AF_INET6.
2984 New constant SIZEOF_fd_set
2985 New flag Has_Sockaddr_Len
2986 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2987
2988 * gsocket.h: New flag Has_Sockaddr_Len
2989 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2990
2991 2008-05-20 Santiago Uruena <uruena@adacore.com>
2992
2993 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2994
2995 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2996
2997 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2998 the underlying issue with malloc/free has been fixed. Remove associated
2999 comments.
3000 Minor reformatting.
3001 Related to PR ada/24533
3002
3003 2008-05-20 Robert Dewar <dewar@adacore.com>
3004
3005 * ali.adb: Correct casing of ASCII.NUL
3006
3007 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3008 properly.
3009
3010 2008-05-20 Robert Dewar <dewar@adacore.com>
3011 Gary Dismukes <dismukes@adacore.com>
3012
3013 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3014 overflow if result converted to wider integer type.
3015 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3016 discriminated types when discriminant checks are suppressed.
3017
3018 2008-05-20 Vincent Celier <celier@adacore.com>
3019
3020 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3021 Wide_Wide_Character.
3022
3023 2008-05-20 Tristan Gingold <gingold@adacore.com>
3024
3025 * decl.c: Do not emit a variable for a object that has an address
3026 representation clause whose value is known at compile time.
3027 When a variable has an address clause whose value is known at compile
3028 time, refer to this variable by using directly the address instead of
3029 dereferencing a pointer.
3030
3031 2008-05-20 Robert Dewar <dewar@adacore.com>
3032
3033 PR ada/30740
3034 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3035 subtypes, always False for non-modular types.
3036 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3037 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3038 for Shared_Storage package.
3039 (Is_RACW_Stub_Type): New entity flag.
3040
3041 * exp_ch4.adb
3042 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3043 case where we have a modular type with a non-binary modules.
3044 Comments reformattings.
3045
3046 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3047 all types.
3048
3049 2008-05-20 Javier Miranda <miranda@adacore.com>
3050
3051 * exp_aggr.adb
3052 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3053 tests did not covered the case in which the type of the aggregate has
3054 no progenitors but some its parents has progenitors.
3055
3056 2008-05-20 Gary Dismukes <dismukes@adacore.com>
3057 Hristian Kirtchev <kirtchev@adacore.com>
3058
3059 * exp_ch3.adb
3060 (Expand_N_Object_Declaration): Correct the condition which triggers the
3061 generation of a call to Displace when initializing a class-wide object.
3062 (Build_Dcheck_Functions): Build discriminant-checking for null variants
3063 when Frontend_Layout_On_Target is true to ensure that they're available
3064 for calling when a record variant size function is built in Layout.
3065
3066 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3067
3068 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3069 procedure for a derived type retrieve the discriminant values from the
3070 parent using the corresponding discriminant.
3071 (Expand_N_Assignment_Statement): Skip generation of implicit
3072 if-statement associated with controlled types if we are
3073 compiling with restriction No_Finalization.
3074
3075 2008-05-20 Vincent Celier <celier@adacore.com>
3076
3077 * prj.adb (Hash (Project_Id)): New function
3078 (Project_Empty): Add new component Interfaces_Defined
3079
3080 * prj.ads (Source_Data): New component Object_Linked
3081 (Language_Config): New components Object_Generated and Objects_Linked
3082 (Hash (Project_Id)): New function
3083 (Source_Data): New Boolean components In_Interfaces and
3084 Declared_In_Interfaces.
3085 (Project_Data): New Boolean component Interfaces_Defined
3086
3087 * prj-attr.adb:
3088 New project level attribute Object_Generated and Objects_Linked
3089 Add new project level attribute Interfaces
3090
3091 * prj-dect.adb: Use functions Present and No throughout
3092 (Parse_Variable_Declaration): If a string type is specified as a simple
3093 name and is not found in the current project, look for it also in the
3094 ancestors of the project.
3095
3096 * prj-makr.adb:
3097 Replace procedure Make with procedures Initialize, Process and Finalize
3098 to implement H414-023: process different directories with different
3099 patterns.
3100 Use functions Present and No throughout
3101
3102 * prj-makr.ads:
3103 Replace procedure Make with procedures Initialize, Process and Finalize
3104
3105 * prj-nmsc.adb
3106 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3107 the language configuration.
3108 (Process_Project_Level_Array_Attributes): Process new attributes
3109 Object_Generated and Object_Linked.
3110 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3111 False, to indicate that the erreor/warning is a continuation.
3112 (Check): Call Report_No_Sources with Contnuation = True after the first
3113 call.
3114 (Error_Msg): Process successively contnuation character and warning
3115 character.
3116 (Find_Explicit_Sources): Check that all declared sources have been found
3117 (Check_File): Indicate in hash table Source_Names when a declared source
3118 is found.
3119 (Check_File): Set Other_Part when found
3120 (Find_Explicit_Sources): In multi language mode, check if all exceptions
3121 to the naming scheme have been found. For Ada, report an error if an
3122 exception has not been found. Otherwise, disregard the exception.
3123 (Check_Interfaces): New procedure
3124 (Add_Source): When Other_Part is defined, set mutual pointers in spec
3125 and body.
3126 (Check): In multi-language mode, call Check_Interfaces
3127 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3128 for an excluded source.
3129 (Remove_Source): A source replacing a source in the interfaces is also
3130 in the interfaces.
3131
3132 * prj-pars.adb: Use function Present
3133
3134 * prj-part.adb: Use functions Present and No throughout
3135 (Parse_Single_Project): Set the parent project for child projects
3136 (Create_Virtual_Extending_Project): Register project with no qualifier
3137 (Parse_Single_Project): Allow an abstract project to be extend several
3138 times. Do not allow an abstract project to extend a non abstract
3139 project.
3140
3141 * prj-pp.adb: Use functions Present and No throughout
3142 (Print): Take into account the full associative array attribute
3143 declarations.
3144
3145 * prj-proc.adb: Use functions Present and No throughout
3146 (Expression): Call itself with the same From_Project_Node for the
3147 default value of an external reference.
3148
3149 * prj-strt.adb: Use functions Present and No throughout
3150 (Parse_Variable_Reference): If a variable is specified as a simple name
3151 and is not found in the current project, look for it also in the
3152 ancestors of the project.
3153
3154 * prj-tree.ads, prj-tree.adb (Present): New function
3155 (No): New function
3156 Use functions Present and No throughout
3157 (Parent_Project_Of): New function
3158 (Set_Parent_Project_Of): New procedure
3159
3160 * snames.ads, snames.adb:
3161 Add new standard names Object_Generated and Objects_Linked
3162
3163 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3164
3165 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3166 and the derived type are of the same kind.
3167 (Expand_Call): Generate type conversions for actuals of
3168 record or array types when the parent and the derived types differ in
3169 size and/or packed status.
3170
3171 2008-05-20 Javier Miranda <miranda@adacore.com>
3172 Ed Schonberg <schonberg@adacore.com>
3173
3174 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3175 generating dispatch tables of locally defined tagged types statically.
3176 Remove implicit if-statement that is no longer required.
3177 (Expand_Dispatching_Call): If this is a call to an instance of the
3178 generic dispatching constructor, the type of the first argument may be
3179 a subtype of Tag, so always use the base type to recognize this case.
3180
3181 2008-05-20 Thomas Quinot <quinot@adacore.com>
3182
3183 * exp_dist.adb
3184 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3185 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3186 assigning NULL into the result, to avoid a spurious warning.
3187 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3188 is not frozen.
3189 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3190 type.
3191 (Build_From_Any_Function, Build_To_Any_Function,
3192 Build_TypeCode_Function): For a type that has user-specified stream
3193 attributes, use an opaque sequence of octets as the representation.
3194
3195 2008-05-20 Kevin Pouget <pouget@adacore.com>
3196
3197 * exp_smem.ads, exp_smem.adb: Construction of access and assign
3198 routines has been replaced by an instantiation of
3199 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3200 shared variable declaration.
3201 Calls to access and assign routines have been replaced by calls to
3202 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3203 instantiated package.
3204
3205 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3206 It identifies the new generic package added in s-shasto.
3207
3208 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3209 is instantiated for each shared passive variable. It provides
3210 supporting procedures called upon each read or write access by the
3211 expanded code.
3212
3213 * sem_attr.adb:
3214 For this runtime unit (always compiled in GNAT mode), we allow
3215 stream attributes references for limited types for the case where
3216 shared passive objects are implemented using stream attributes,
3217 which is the default in GNAT's persistent storage implementation.
3218
3219 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3220
3221 * freeze.adb
3222 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3223 convention from its base type, do not set the type to that of integer,
3224 because it may inherit a size clause.
3225 Warn on a size clause with a size different
3226 from that of Integer, if the type has convention C.
3227
3228 2008-05-20 Vincent Celier <celier@adacore.com>
3229
3230 * gnatname.adb
3231 (Scan_Args): Rewrite to take into account new switch --and to separate
3232 arguments into sections.
3233 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3234 section, then Finalize.
3235
3236 2008-05-20 Tristan Gingold <gingold@adacore.com>
3237
3238 * init.c: Enable stack probing on ppc-linux.
3239
3240 * tracebak.c: Add symbolic traceback for ppc-linux.
3241
3242 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3243
3244 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3245
3246 * Makefile.in
3247 (common-tools): New rule, to avoid parallel build failure on gnat tools.
3248 Reenable parallel builds on this Makefile.
3249
3250 * Make-lang.in: Update dependencies.
3251
3252 2008-05-20 Robert Dewar <dewar@adacore.com>
3253
3254 * opt.ads (Treat_Restrictions_As_Warnings): New switch
3255
3256 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3257 Treat_Restrictions_As_Warnings.
3258
3259 * switch-c.adb: Recognize new switch -gnatr
3260
3261 * usage.adb: Add line for -gnatr
3262
3263 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3264
3265 * par-ch3.adb
3266 (P_Access_Definition): Change the error message when parsing "access
3267 all" in Ada 95 mode. The message no longer forces the user to recompile
3268 in 05 mode only to discover that anonymous access types are not allowed
3269 to have "all".
3270
3271 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3272
3273 * par-ch9.adb
3274 (P_Protected): Update the error message on missing "-gnat05" switch when
3275 using interfaces in conjunction with protected types. Remove the
3276 incorrect error message associated with the presence of "private" after
3277 a "with".
3278
3279 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3280
3281 * sem_aggr.adb: Update comments.
3282 Improve previous change for PR ada/17985
3283
3284 2008-05-20 Thomas Quinot <quinot@adacore.com>
3285
3286 * sem_cat.adb
3287 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3288 the visible part of the spec of a remote types unit.
3289 (Validate_Remote_Access_Object_Type_Declaration):
3290 New local subprogram Is_Valid_Remote_Object_Type, replaces
3291 Is_Recursively_Limited_Private.
3292 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
3293 non-controlling formals (and the return type, even though this is not
3294 explicit in the standard) must support external streaming.
3295 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
3296 as above for of RAS types and RCI subprograms. (The return type is not
3297 checked yet).
3298 Update comments related to RACWs designating limited interfaces per
3299 ARG ruling on AI05-060.
3300
3301 * sem_util.ads, sem_util.adb
3302 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
3303 Is_Remote_Call_Interface to identify RACW types in a stable and
3304 consistent way. We used to rely in this predicate on the privateness of
3305 the designated type and its ancestors, but depending on the currently
3306 visible private parts, this caused false negatives. We now uniformly
3307 rely on checks made at the point where the RACW type is declared.
3308 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
3309
3310 2008-05-20 Javier Miranda <miranda@adacore.com>
3311 Ed Schonberg <schonberg@adacore.com>
3312 Hristian Kirtchev <kirtchev@adacore.com>
3313
3314 * sem_ch3.adb
3315 (Analyze_Object_Declaration): Fix over-conservative condition
3316 restricting use of predefined assignment with tagged types that have
3317 convention CPP.
3318 (Analyze_Object_Declaration): Relax the check regarding deferred
3319 constants declared in scopes other than packages since they can be
3320 completed with pragma Import.
3321 Add missing escaping of all-caps word 'CPP' in error messages.
3322 (Build_Discriminated_Subtype): Do not inherit representation clauses
3323 from parent type if subtype already carries them, because they are
3324 inherited earlier during derivation and already include those that may
3325 come from a partial view.
3326
3327 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
3328 Check the declarations of a subprogram body for proper deferred
3329 constant completion.
3330
3331 * sem_ch7.ads, sem_ch7.adb
3332 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
3333
3334 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3335 Thomas Quinot <quinot@adacore.com>
3336
3337 * sem_ch4.adb
3338 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
3339 F is a parameterless function that returns an array, and S is a subtype
3340 mark.
3341 (Analyze_Call): Insert dereference when the prefix is a parameterless
3342 function that returns an access to subprogram and the call has
3343 parameters.
3344 Reject a non-overloaded call whose name resolves to denote
3345 a primitive operation of the stub type generated to support a remote
3346 access-to-class-wide type.
3347
3348 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3349
3350 * sem_ch8.adb
3351 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
3352 when there is a use clause for the same entity in the context.
3353 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
3354 created for a stream attribute of an abstract type or interface type.
3355
3356 2008-05-20 Thomas Quinot <quinot@adacore.com>
3357
3358 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
3359 subprogram.
3360
3361 * sem_type.adb
3362 (Add_One_Interp): Ignore any interpretation that is a primitive
3363 operation of an RACW stub type (these primitives are only executed
3364 through dispatching, never through static calls).
3365 (Collect_Interps): When only one interpretation has been found, set N's
3366 Entity and Etype to that interpretation, otherwise Entity and Etype may
3367 still refer to an interpretation that was ignored by Add_One_Interp,
3368 in which case would end up with being marked as not overloaded but with
3369 an Entity attribute not pointing to its (unique) correct interpretation.
3370
3371 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3372
3373 * sem_eval.adb
3374 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
3375 denotes the whole array of its prefix.
3376
3377 2008-05-20 Robert Dewar <dewar@adacore.com>
3378
3379 * sem_res.adb (Resolve_Op_Not): Warn on double negation
3380
3381 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3382
3383 * sprint.adb
3384 (Print_Itype): Do not modify the sloc of the component type of a
3385 (packed) array itype, because it is an unrelated type whose source
3386 location is independent of the point of creation of the itype itself.
3387
3388 2008-05-20 Thomas Quinot <quinot@adacore.com>
3389
3390 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
3391 Append.
3392
3393 2008-05-20 Robert Dewar <dewar@adacore.com>
3394 Vincent Celier <celier@adacore.com>
3395
3396 * vms_data.ads: Add entry for -gnatr
3397 Put GNAT SYNC section in proper alpha order
3398 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
3399
3400 * gnat_ugn.texi: Add documentation for new gnatname switch --and
3401 Update the style checks section
3402 Add documentation of -gnatr
3403 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
3404 subsection the explanation how compiler checks should be disabled for
3405 gnatcheck.
3406 Update the list of Ada 95 reserved words used by in the project language
3407 Add documentation for project qualifiers.
3408 Document that abstract projects may be extended by different projects in
3409 the same project tree.
3410 Add documentation for gnatmake switch -d
3411
3412 * ug_words: Add -gnatyy VMS equivalence string.
3413 Add entry for -gnatr
3414
3415 2008-05-20 Bob Duff <duff@adacore.com>
3416
3417 * a-rttiev.adb
3418 (Set_Handler): Remove code from both of these that implements
3419 RM-D.15(15/2), because it causes a race condition and potential
3420 deadlock.
3421 (Process_Queued_Events): Add comment explaining "exception when others
3422 => null". Add clarifying ".all", even though implicit .all is legal
3423 here.
3424
3425 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3426
3427 * s-winext.ads: Replace representation clause by pragma Pack. Gives
3428 equivalent representation, but has the advantage of allowing
3429 compilation of this file under 64 bits platforms.
3430
3431 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
3432
3433 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
3434
3435 * adaint.c:
3436 Don't define dummy implementation of convert_addresses on ppc-linux.
3437
3438 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3439
3440 * exp_ch7.adb
3441 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
3442 if expression is aggregate component.
3443
3444 2008-05-20 Robert Dewar <dewar@adacore.com>
3445
3446 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
3447 sem_ch12.adb: Update comments. Minor reformatting.
3448
3449 * exp_ch2.adb: Typo
3450
3451 * s-unstyp.ads: Fixed some typos in comments.
3452
3453 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3454
3455 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
3456 type/constant.
3457
3458 * g-socthi-vxworks.ads: Update to latest socket changes.
3459
3460 * a-caldel-vms.adb: Resync with a-caldel spec.
3461
3462 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
3463 Update comments.
3464
3465 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
3466
3467 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
3468 for dummy types pointed to by the converted pointer types.
3469
3470 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
3471
3472 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
3473 of records and unions.
3474 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
3475
3476 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
3477 Robert Dewar <dewar@adacore.com>
3478
3479 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
3480 restrictions to the prefix of 'Old.
3481 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
3482 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
3483 variables.
3484
3485 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
3486
3487 PR ada/24880
3488 PR ada/26635
3489 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
3490 expression to an integral type with lower precision, use NOP_EXPR
3491 directly in a couple of special cases.
3492
3493 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
3494 Ed Schonberg <schonberg@adacore.com>
3495
3496 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
3497 constraint expressions.
3498
3499 2008-05-12 Tomas Bily <tbily@suse.cz>
3500
3501 * utils2.c (known_alignment, contains_save_expr_p)
3502 (gnat_mark_addressable): Use CASE_CONVERT.
3503 * decl.c (annotate_value): Likewise.
3504 * trans.c (maybe_stabilize_reference): Likewise.
3505 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
3506 * utils.c (rest_of_record_type_compilation): Likewise.
3507 * trans.c (protect_multiple_eval, Attribute_to_gnu)
3508 (protect_multiple_eval): Likewise.
3509
3510 2008-05-08 Andreas Schwab <schwab@suse.de>
3511
3512 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
3513 DECL_IS_PURE to DECL_PURE_P.
3514
3515 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
3516
3517 * decl.c (maybe_pad_type): Add ??? comment.
3518
3519 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
3520
3521 * decl.c (components_to_record): Zero the alignment of the qualified
3522 union built for the variant part upon creating it.
3523
3524 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
3525
3526 * decl.c (maybe_pad_type): Try to get a form of the type with integral
3527 mode even if the alignment is not a factor of the original size. But
3528 make sure to create the inner field with the original size. Reorder.
3529 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
3530 record as always addressable.
3531 * utils.c (convert): Deal specially with conversions between original
3532 and packable versions of a record type.
3533 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
3534 recognizing an assignment between padded objects.
3535
3536 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
3537
3538 * decl.c (make_packable_type): Resize the last component to its RM size
3539 only if it is of an aggregate type.
3540 * trans.c (call_to_gnu): Fix nit in comment.
3541 (gnat_to_gnu): Likewise.
3542
3543 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
3544
3545 * Makefile.in: Adapt sh4-linux target.
3546
3547 2008-04-29 Ed Schonberg <schonberg@adacore.com>
3548
3549 PR ada/35792
3550 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
3551 tagged type by an untagged protected or task type.
3552
3553 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
3554 Tristan Gingold <gingold@adacore.com>
3555
3556 PR ada/36007
3557 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
3558 of aliased objects with an unconstrained nominal subtype.
3559 Cap the promotion to the effective alignment of the word mode.
3560
3561 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3562
3563 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
3564 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
3565 Use '&&' instead of ';'.
3566
3567 2008-04-24 Olivier Hainque <hainque@adacore.com>
3568
3569 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
3570 doesn't require signed arithmetic anymore.
3571
3572 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
3573
3574 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
3575 (call_to_gnu): Don't set TREE_INVARIANT.
3576 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
3577
3578 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
3579
3580 * s-osinte-rtems.adb: Add sigalstack function.
3581 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
3582 function. Add Alternate_Stack and Alternate_Stack_Size.
3583 Add missing process_shared field to pthread_condattr_t
3584 and change ss_low_priority to int from timespec.
3585
3586 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
3587
3588 * i-forbla.adb: Link against -llapack and -lblas by default
3589 instead of the private -lgnalasup.
3590
3591 2008-04-21 Olivier Hainque <hainque@adacore.com>
3592
3593 Access to most C builtins from Ada
3594 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
3595 (handle_pure_attribute, handle_novops_attribute,
3596 handle_nonnull_attribute, handle_sentinel_attribute,
3597 handle_noreturn_attribute, handle_malloc_attribute,
3598 handle_type_generic_attribute): New attribute handlers, from C fe.
3599 (gnat_internal_attribute_table): Map the new handlers.
3600 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
3601 (init_gigi_decls): ... here.
3602 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
3603 Move to a section dedicated to builtins processing.
3604 (build_void_list_node, builtin_type_for_size): New functions.
3605 (def_fn_type, get_nonnull_operand): Likewise.
3606 (install_builtin_elementary_type, install_builtin_function_types,
3607 install_builtin_attributes): Likewise.
3608 (fake_attribute_handler): Fake handler for attributes we don't
3609 support in Ada.
3610 (def_builtin_1): New function, worker for DEF_BUILTIN.
3611 (install_builtin_functions): New function.
3612 (gnat_install_builtins): Move to the builtins processing section.
3613 Now calling the newly introduced installers.
3614
3615 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
3616
3617 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
3618 constant objects, but not exceptions.
3619 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
3620 compatibility test.
3621 * utils.c (create_var_decl_1): Likewise.
3622 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
3623 the type when copying to padded object and the source is a constructor.
3624
3625 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3626
3627 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
3628 alignment, reset it to zero if it would end up not being greater
3629 than that of the type.
3630
3631 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3632
3633 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
3634 the padded type has a variable size.
3635
3636 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3637
3638 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
3639 target pointer mechanism as soon as the size is not constant.
3640
3641 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3642
3643 * gigi.h (create_var_decl_1): Declare.
3644 (create_var_decl): Turn into a macro invoking create_var_decl_1.
3645 (create_true_var_decl): Likewise.
3646 * utils.c (create_var_decl_1): Make global and reorder parameters.
3647 (create_var_decl): Delete.
3648 (create_true_var_decl): Likewise.
3649
3650 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
3651
3652 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
3653 objects by default.
3654 * fe.h (Debug_Flag_Dot_A): Delete.
3655 * debug.adb (-gnatd.a): Update documentation.
3656
3657 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
3658
3659 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
3660 "not null" parameter.
3661
3662 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
3663
3664 * g-socket.adb: Add a message "IPv6 not supported" to the
3665 Socket_Error exception.
3666
3667 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
3668
3669 PR ada/29015
3670 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
3671 the type is known instead of the underlying type.
3672
3673 2008-04-15 Ed Schonberg <schonberg@adacore.com>
3674
3675 PR ada/22387
3676 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3677 procedure for a derived type retrieve the discriminant values from
3678 the parent using the corresponding discriminant.
3679
3680 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
3681 Gary Dismukes <dismukes@adacore.com>
3682
3683 PR ada/28733
3684 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
3685 which is not an entity (and hence not a package).
3686 (End_Use_Package): Ditto.
3687
3688 2008-04-15 Ed Schonberg <schonberg@adacore.com>
3689
3690 PR ada/16086
3691 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
3692 protected operation that matches the signature, not only an entry, a
3693 regular subprogram or a literal.
3694
3695 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
3696
3697 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
3698 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
3699 if a size or alignment is specified. Do not take into account
3700 alignment promotions for the computation of the object's size.
3701 <type>: Call maybe_pad_type only if a size or alignment is specified.
3702 (maybe_pad_type): Really reuse the RM_Size of the original type if
3703 requested.
3704 * trans.c (Attribute_to_gnu): Fix a couple of nits.
3705 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
3706 statements. Use the padded view of the type when copying between
3707 padded objects of the same underlying type.
3708
3709 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3710
3711 * vms_data.ads: Fix typo in constant.
3712 * gen-soccon.c: Fix typo in error string.
3713 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
3714 Fix typos.
3715 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
3716 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
3717 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
3718 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
3719 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
3720 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
3721 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
3722 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
3723 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
3724 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
3725 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
3726 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
3727 sinfo.ads: Fix typos in comments.
3728
3729 2008-04-14 Robert Dewar <dewar@adacore.com>
3730
3731 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
3732 to every non-object and change error message.
3733
3734 2008-04-14 Robert Dewar <dewar@adacore.com>
3735
3736 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
3737 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
3738 directly.
3739
3740 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3741
3742 PR ada/18680
3743 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
3744 apply pragma Linker_Section on type.
3745
3746 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3747
3748 PR ada/16098
3749 * sem_prag.adb (Error_Pragma_Ref): New.
3750 (Process_Convention): Specialized message for non-local
3751 subprogram renaming. Detect the problem in homonyms as well.
3752
3753 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3754
3755 PR ada/15915
3756 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
3757 * sem_ch12.adb (Instantiate_Object): Use it.
3758 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
3759 storage pool denotes a variable as per RM 13.11(15).
3760
3761 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3762
3763 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
3764 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
3765
3766 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
3767
3768 PR ada/20822
3769 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
3770 line endings even on non-Unix platforms.
3771
3772 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3773
3774 PR ada/35050
3775 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
3776 renaming information.
3777
3778 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
3779
3780 PR ada/17985
3781 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
3782 itself.
3783
3784 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3785
3786 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
3787 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
3788 snames.ads, sprint.adb, stand.ads, stringt.ads,
3789 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
3790 switch.ads, sysdep.c, table.adb, table.ads,
3791 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
3792 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
3793 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
3794 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
3795 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
3796 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
3797 Fix comment typos.
3798
3799 * sem_ch10.adb, sem_ch10.ads,
3800 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
3801 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3802 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
3803 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
3804 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
3805 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
3806 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
3807 sem_warn.ads: Fix comment typos.
3808
3809 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
3810 s-soflin.ads, s-stalib.ads, s-stausa.adb,
3811 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
3812 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3813 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
3814 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3815 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
3816 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
3817 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
3818 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
3819 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
3820 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
3821 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
3822 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
3823 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
3824 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
3825 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
3826 sem_cat.adb, sem_cat.ads: Fix comment typos.
3827
3828 2008-04-12 Joel Sherrill <joel@oarcorp.com>
3829
3830 PR ada/35825
3831 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
3832
3833 2008-04-12 Arnaud Charlet <charlet@adacore.com>
3834
3835 * s-linux-hppa.ads: Fix syntax errors.
3836
3837 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3838
3839 * gnat_ugn.texi: Fix typos.
3840 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
3841 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
3842 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
3843 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
3844 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
3845 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
3846 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3847 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
3848 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
3849 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
3850 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
3851 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
3852 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
3853 s-osinte-darwin.ads, s-osinte-freebsd.ads,
3854 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
3855 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3856 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
3857 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
3858 s-parame-hpux.ads, s-parame-vms-alpha.ads,
3859 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
3860 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
3861 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
3862 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
3863 s-rident.ads: Fix comment typos.
3864
3865 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
3866
3867 PR ada/28305
3868 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
3869 environment if generic instance is a top-level one.
3870
3871 2008-04-09 Doug Rupp <rupp@adacore.com>
3872
3873 * decl.c (validate_size): Set minimum size for fat pointers same as
3874 access types. Code clean ups.
3875
3876 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
3877 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
3878
3879 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
3880
3881 * s-crtl.ads (malloc32) New function, alias for malloc
3882 (realloc32) New function, alias for realloc
3883
3884 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
3885
3886 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
3887 allocator size is 32 and default pointer size is 64.
3888 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
3889 lhs type if smaller, whatever the modes.
3890
3891 * gigi.h (malloc32_decl): New macro definition
3892
3893 * utils.c (init_gigi_decls): New malloc32_decl
3894 Various code clean ups.
3895
3896 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3897 Task_Address vice System.Address.
3898
3899 * s-taspri-vms.ads: Import System.Aux_DEC
3900 (Task_Address): New subtype of System.Aux_DEC.Short_Address
3901 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
3902
3903 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3904 Task_Address vice System.Address.
3905
3906 * s-inmaop-vms.adb: Import System.Task_Primitives
3907 (To_Address): Unchecked convert to Task_Address vice System.Address
3908
3909 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
3910 expires now.
3911 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
3912 (To_Address) Unchecked convert to Task_Address vice System.Address
3913
3914 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
3915
3916 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
3917
3918 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3919
3920 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
3921 (fdesc_type_node): Define.
3922 (null_fdesc_node): Likewise.
3923 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
3924 uses descriptors for vtables and the type comes from a dispatch table,
3925 return the descriptor type.
3926 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
3927 uses descriptors for vtables and the type comes from a dispatch table,
3928 build a descriptor in the static case and copy the existing one in the
3929 non-static case.
3930 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
3931 the type is a pointer-to-subprogram coming from a dispatch table,
3932 return the null descriptor.
3933 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
3934 vtables, the source type is the descriptor type and the target type
3935 is a pointer type, first build the pointer.
3936 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
3937 build the descriptor type and the null descriptor.
3938
3939 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3940
3941 * decl.c (prepend_attributes): Fix typo.
3942 * trans.c (Pragma_to_gnu): Likewise.
3943 * utils.c (gnat_genericize): Likewise.
3944
3945 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3946 Richard Kenner <kenner@adacore.com>
3947
3948 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3949 * decl.c (gnat_to_gnu_entity): Adjust for above change.
3950 <E_Record_Type>: Try to get a better form of the component for
3951 packing, even if it has an integral mode.
3952 <E_Record_Subtype>: Likewise.
3953 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3954 exception suppressing the final conversion between record types.
3955
3956 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3957
3958 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3959 alignment for space, promote the alignment of non-scalar variables with
3960 no size and alignment.
3961 * gigi.h (gnat_types_compatible_p): Declare.
3962 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3963 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
3964 * utils.c (gnat_types_compatible_p) : New predicate.
3965 (convert): Use it throughout to test for cases where a mere view
3966 conversion is sufficient.
3967 * utils2.c (build_binary_op): Minor tweaks.
3968 (build_unary_op): Likewise.
3969
3970 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3971
3972 * decl.c (adjust_packed): Expand comment.
3973
3974 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3975
3976 * s-tasuti.ads: Use Task_Address instead of System.Address.
3977
3978 * makeutl.adb (Path_Or_File_Name): New function
3979
3980 * nlists.ads, itypes.ads: Update comments.
3981
3982 * s-crtl.ads (malloc32, realloc32): New functions.
3983
3984 * s-auxdec.ads (Short_Address_Size): New constant.
3985
3986 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3987
3988 * s-ststop.ads, s-ststop.adb: New file.
3989
3990 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3991 Minor reformatting.
3992
3993 2008-04-08 Pascal Obry <obry@adacore.com>
3994
3995 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3996 (Stop_Bits_Number): New type.
3997 (Parity_Check): Likewise.
3998 (Set): Add parameter to set the number of stop bits and
3999 the parity. Parameter timeout is now a duration instead
4000 of a plain integer.
4001
4002 * g-sercom-linux.adb:
4003 Implement the stop bits and parity support for GNU/Linux.
4004 Fix handling of timeout, it must be given in tenth of seconds.
4005
4006 * g-sercom-mingw.adb:
4007 Implement the stop bits and parity support for Windows.
4008 Use new s-win32.ads unit instead of declaring Win32 services
4009 directly into this body.
4010 Update handling of timeout as now a duration.
4011
4012 * s-win32.ads, s-winext.ads: New files.
4013
4014 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4015 Arnaud Charlet <charlet@adacore.com>
4016
4017 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4018
4019 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4020 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4021
4022 * s-osinte-lynxos-3.ads,
4023 (Alternate_Stack): Remove when not needed. Simplify declaration
4024 otherwise.
4025 (Alternate_Stack_Size): New constant.
4026
4027 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4028 'Unrestricted_Access.
4029
4030 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4031 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4032 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4033 s-osinte-solaris.ads, s-osinte-vms.ads
4034 (SA_ONSTACK): New constant.
4035 (stack_t): New record type.
4036 (sigaltstack): New imported function.
4037 (Alternate_Stack): New imported variable.
4038 (Alternate_Stack_Size): New constant.
4039
4040 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4041
4042 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4043 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4044 s-taspri-vms.ads (Task_Address): New subtype of System.Address
4045 (Task_Address_Size): New constant size of System.Address
4046 (Alternate_Stack_Size): New constant.
4047
4048 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4049 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4050 Establish the alternate stack if the platform makes use of n alternate
4051 signal stack for stack overflows.
4052 (Create_Task): Take into account the alternate stack in the stack size.
4053 (Initialize): Save the address of the alternate stack into the ATCB for
4054 the environment task.
4055 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4056
4057 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4058
4059 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4060
4061 * s-intman-posix.adb:
4062 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4063 alternate signal stack for stack overflows.
4064
4065 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4066 x86-64, adjust the saved value of the stack pointer if the signal was
4067 raised by a stack checking probe.
4068 (HP-UX section): Use global __gnat_alternate_stack as signal handler
4069 stack and only for SIGSEGV.
4070 (Linux section): Likewise on x86 and x86-64.
4071 [VxWorks section]
4072 (__gnat_map_signal): Now static.
4073 (__gnat_error_handler): Not static any more.
4074 (__gnat_adjust_context_for_raise): New function. Signal context
4075 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4076 propagation circuitry.
4077 (__gnat_error_handler): Second argument of a sigaction handler is a
4078 pointer, not an int, and is unused.
4079 Adjust signal context before mapping to exception.
4080 Install signal handlers for LynxOS case.
4081
4082 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4083 (Task_Id): Set size to Task_Address_Size
4084 (To_Task_id): Unchecked convert from Task_Address vice System.Address
4085 (To_Address): Unchecked convert to Task_Address vice System.Address
4086
4087 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4088 address into the ATCB if the platform makes use of an alternate signal
4089 stack for stack overflows.
4090 (Free_Task): Add call to Finalize_Attributes_Link.
4091 Add argument Relative_Deadline to pass the value specified for
4092 the task. This is not yet used for any target.
4093
4094 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4095 the value specified for the task.
4096
4097 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4098
4099 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4100 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4101 s-vxwext-rtp.adb): New files.
4102
4103 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4104 Minor updates to accomodate changes above.
4105
4106 2008-04-08 Pascal Obry <obry@adacore.com>
4107
4108 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4109 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4110 Use new s-win32.ads unit instead of declaration
4111 from s-osinte-mingw.ads.
4112
4113 * s-osinte-mingw.ads:
4114 Move all non tasking based interface to s-win32.ads.
4115
4116 * s-osprim-mingw.adb:
4117 Remove duplicated declarations and use s-win32.ads
4118 unit instead.
4119
4120 2008-04-08 Vincent Celier <celier@adacore.com>
4121 Arnaud Charlet <charlet@adacore.com>
4122
4123 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4124 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4125 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4126 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4127 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4128
4129 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4130 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4131 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4132 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4133 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4134 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4135 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4136 mlib-tgt-specific-mingw.adb: New names.
4137
4138 * Makefile.in:
4139 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4140 Get rid of gnatbl.
4141 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4142 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4143 Minor updates for VMS
4144
4145 * gnatbl.c: Removed.
4146
4147 2008-04-08 Thomas Quinot <quinot@adacore.com>
4148
4149 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4150 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4151 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4152 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4153 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4154 ASCII.NUL throughout.
4155
4156 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4157 Matthew Heaney <heaney@adacore.com>
4158
4159 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4160 renaming.
4161
4162 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
4163 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4164 to convention for non-RM specs.
4165 Add descriptive header, and documented each operation
4166 document each operation
4167
4168 2008-04-08 Robert Dewar <dewar@adacore.com>
4169 Bob Duff <duff@adacore.com>
4170 Gary Dismukes <dismukes@adacore.com>
4171 Ed Schonberg <schonberg@adacore.com>
4172
4173 * alloc.ads: Add entries for Obsolescent_Warnings table
4174
4175 * einfo.ads, einfo.adb: Minor reformatting.
4176 (Is_Discriminal): New subprogram.
4177 (Is_Prival): New subprogram.
4178 (Is_Protected_Component): New subprogram.
4179 (Is_Protected_Private): Removed.
4180 (Object_Ref, Set_Object_Ref): Removed.
4181 (Prival, Set_Prival): Change assertion.
4182 (Privals_Chain, Set_Privals_Chain): Removed.
4183 (Prival_Link, Set_Prival_Link): New subprogram.
4184 (Protected_Operation, Set_Protected_Operation): Removed.
4185 (Protection_Object, Set_Protection_Object): New subprogram.
4186 (Write_Field17_Name): Remove case for Object_Ref.
4187 (Write_Field20_Name): Add case for Prival_Link.
4188 (Write_Field22_Name): Remove case for Protected_Operation,
4189 Privals_Chain.
4190 Add case for Protection_Object.
4191 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4192 so clients
4193 (Overlays_Constant): New flag
4194 (Is_Constant_Object): New predicate
4195 (Is_Standard_Character_Type): New predicate
4196 (Optimize_Alignment_Space): New flag
4197 (Optimize_Alignment_Time): New flag
4198 (Has_Postconditions): New flag
4199 (Obsolescent_Warrning): Field removed
4200 (Spec_PPC_List): New field
4201 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4202 subprograms to get and set the relative deadline associated to a task.
4203
4204 * exp_attr.adb (May_Be_External_Call): Account for the case where the
4205 Access attribute is part of a named parameter association.
4206 (Expand_Access_To_Protected_Op): Test for the attribute occurring
4207 within an init proc and use that directly as the scope rather than
4208 traversing up to the protected operation's enclosing scope. Only apply
4209 assertion on Is_Open_Scopes in the case the scope traversal is done.
4210 For the init proc case use the address of the first formal (_init) as
4211 the protected object reference.
4212 Implement Invalid_Value attribute
4213 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4214 contents of the dispatch table there is no need to duplicate the
4215 itypes associated with record types (i.e. the implicit full view
4216 of private types).
4217 Implement Enum_Val attribute
4218 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4219 within _Postconditions procedure
4220 (Expand_N_Attribute_Reference, case Result): Implement new attribute
4221
4222 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4223 a return statement calls a function that is not available in
4224 configurable runtime.
4225 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4226 (Expand_Non_Function_Return): Generate call to _Postconditions proc
4227 (Expand_Simple_Function_Return): Ditto
4228
4229 * frontend.adb: Add call to Sem_Aux.Initialize
4230
4231 * sem_aux.ads, sem_aux.adb: New file.
4232
4233 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4234 Add new Pragma_Relative_Deadline.
4235 Add support for pragmas Check and Check_Policy
4236
4237 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4238 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4239 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4240 missing check because they are not allowed in CPP tagged types.
4241 Add Sure parameter to Note_Possible_Modification calls
4242 Add implementation of Invalid_Value attribute
4243 Implement new attribute Has_Tagged_Values
4244 Implement Enum_Val attribute
4245 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4246 generated attributes.
4247 (Analyze_Attribute, case Result): If prefix of the attribute is
4248 overloaded, it always resolves to the enclosing function.
4249 (Analyze_Attribute, case Result): Properly deal with analysis when
4250 Postconditions are not active.
4251 (Resolve_Attribute, case Result): Properly deal with appearence during
4252 preanalysis in spec.
4253 Add processing for attribute Result
4254
4255 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4256 for operators.
4257 (Analyze_Subprogram_Body): Install private_with_clauses when the body
4258 acts as a spec.
4259 (Check_Inline_Pragma): recognize an inline pragma that appears within
4260 the subprogram body to which it applies.
4261 (Analyze_Function_Return): Check that type of the expression of a return
4262 statement in a function with a class-wide result is not declared at a
4263 deeper level than the function.
4264 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4265 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4266 user- defined operators.
4267 (Install_Formals): Moved to spec to allow use from Sem_Prag for
4268 analysis of precondition/postcondition pragmas.
4269 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4270 Last_Formal, along with lots of comments on what this is about
4271 (Analyze_Subprogram_Body): Fix case where we move entities from the
4272 spec to the body when there are no body entities (now possible with
4273 precondition and postcondition pragmas).
4274 (Process_PPCs): New procedure
4275 (Analyze_Subprogram_Body): Add call to Process_PPCs
4276
4277 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4278 clause.
4279 (Pop_Scope): Restore Check_Policy_List on scope exit
4280 (Push_Scope): Save Check_Policy_List on scope entry
4281 Change name In_Default_Expression => In_Spec_Expression
4282 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4283 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
4284 (Analyze_Object_Renaming): Allow 'Reference as object
4285 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4286 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4287 of restriction identifier.
4288 Add Sure parameter to Note_Possible_Modication calls
4289
4290 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
4291 Don't check for primitive operations when calling Rep_Item_Too_Late.
4292 (Process_Import_Or_Interface): Do not place flag on formal
4293 subprograms.
4294 (Analyze_Pragma, case Export): If the entity is a deferred constant,
4295 propagate information to full view, which is the one elaborated by the
4296 back-end.
4297 (Make_Inline): the pragma is effective if it applies to an internally
4298 generated subprogram declaration for a body that carries the pragma.
4299 (Analyze_Pragma, case Optimize_Alignment): Set new flag
4300 Optimize_Alignment_Local.
4301 (Analyze_PPC_In_Decl_Part): New procedure
4302 (Get_Pragma_Arg): Moved to outer level
4303 (Check_Precondition_Postcondition): Change to allow new visibility
4304 rules for package spec
4305 (Analyze_Pragma, case Check_Policy): Change placement rules to be
4306 same as pragma Suppress/Unsuppress.
4307 Change name In_Default_Expression => In_Spec_Expression
4308 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4309 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
4310 (Check_Precondition_Postcondition): Do proper visibility preanalysis
4311 for the case of these pragmas appearing in the spec.
4312 (Check_Enabled): New function
4313 (Initialize): New procedure
4314 (Tree_Read): New procedure
4315 (Tree_Write): New procedure
4316 (Check_Precondition_Postcondition): New procedure
4317 Implement pragmas Check and Check_Policy
4318 Merge Assert processing with Check
4319
4320 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
4321 New warning flag -gnatw.e
4322
4323 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
4324 returning whether a task (or main procedure) has a pragma
4325 Relative_Deadline.
4326 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
4327 (or main procedure) has a pragma Relative_Deadline.
4328 Add Next_Pragma field to N_Pragma node
4329 (PPC_Enabled): New flag
4330 (Next_Pragma): Now used for Pre/Postcondition processing
4331
4332 * snames.h, snames.ads, snames.adb: New standard name
4333 Inherit_Source_Path
4334 Add entry for 'Invalid_Value attribute
4335 Add entry for new attribute Has_Tagged_Values
4336 Add entry for Enum_Val attribute
4337 Add new standard names Aggregate, Configuration and Library.
4338 Add _Postconditions
4339 Add _Result
4340 Add Pragma_Precondition
4341 Add Pragma_Postcondition
4342 Add Attribute_Result
4343 New standard name Archive_Builder_Append_Option
4344 (Preset_Names): Add _relative_deadline and relative_deadline definitions
4345 There was also a missing non_preemptive_within_priorities.
4346 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
4347 Relative_Deadline.
4348 Add support for pragmas Check and Check_Policy
4349
4350 * tree_gen.adb: Call Sem_Aux.Tree_Write
4351
4352 * tree_in.adb: Call Sem_Aux.Tree_Read
4353
4354 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
4355 sequence
4356
4357 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
4358 sequence
4359
4360 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
4361 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
4362 Relative_Deadline.
4363 (Expand_Pragma_Check): New procedure
4364
4365 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
4366 buffer.
4367
4368 * sinfo.adb (PPC_Enabled): New flag
4369
4370 2008-04-08 Robert Dewar <dewar@adacore.com>
4371 Gary Dismukes <dismukes@adacore.com>
4372 Javier Miranda <miranda@adacore.com>
4373 Ed Schonberg <schonberg@adacore.com>
4374
4375 * fe.h: Remove global Optimize_Alignment flag, no longer used
4376
4377 * layout.adb: Test Optimize_Alignment flags rather than global switch
4378
4379 * lib.ads, lib.adb: New OA_Setting field in library record
4380
4381 * lib-load.adb: New OA_Setting field in library record
4382
4383 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
4384 units mentioned in limited_with_ clauses in the ali file, with an
4385 'Y' marker.
4386 New Ox fields in U line
4387
4388 * opt.adb: New flag Optimize_Alignment_Local
4389 (Check_Policy_List[_Config]): New flags
4390
4391 * opt.ads (Invalid_Value_Used): New flag
4392 New switch Optimize_Alignment_Local
4393 (Warn_On_Parameter_Order): New flag
4394 (Check_Policy_List[_Config]): New flags
4395
4396 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
4397 limited_with clauses.
4398 New data structures for Optimize_Alignment
4399
4400 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
4401 New procedure
4402 (Check_Consistent_Optimize_Alignment): Rework for new structure
4403 (Check_Consistent_Restrictions): Fix incorrect error message
4404
4405 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
4406 created class-wide type (to the Parent field of the specific type).
4407 (Install_Siblings): Handle properly private_with_clauses on subprogram
4408 bodies and on generic units.
4409 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
4410 illegal limited_with_clause that names a non-existent package.
4411 (Check_Body_Required): Determine whether a unit named a limited_with
4412 clause needs a body.
4413 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
4414 Capture Optimize_Alignment settings to set new OA_Setting field in
4415 library record.
4416 (Build_Limited_Views): Include task and protected type declarations.
4417
4418 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
4419 case of a possible constant redeclaration where the current object is
4420 an entry index constant.
4421 (Analyze_Object_Declaration): Generate an error in case of CPP
4422 class-wide object initialization.
4423 (Analyze_Object_Declaration): Add extra information on warnings for
4424 declaration of unconstrained objects.
4425 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
4426 conflicts with the setting of Stored_Constraint in the case where the
4427 access type entity has already been created as an E_Incomplete_Type due
4428 to a limited with clause.
4429 Use new Is_Standard_Character_Type predicate
4430 (Analyze_Object_Declaration): Apply access_constant check only after
4431 expression has been resolved, given that it may be overloaded with
4432 several access types.
4433 (Constant_Redeclaration): Additional legality checks for deferred
4434 constant declarations tha involve anonymous access types and/or null
4435 exclusion indicators.
4436 (Analyze_Type_Declaration): Set Optimize_Alignment flags
4437 (Analyze_Subtype_Declaration): Ditto
4438 (Analyze_Object_Declaration): Ditto
4439 (Analyze_Object_Declaration): Don't count tasks in generics
4440 Change name In_Default_Expression => In_Spec_Expression
4441 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4442 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
4443 (Process_Discriminants): Additional check for illegal use of default
4444 expressions in access discriminant specifications in a type that is not
4445 explicitly limited.
4446 (Check_Abstract_Overriding): If an inherited function dispaches on an
4447 access result, it must be overridden, even if the type is a null
4448 extension.
4449 (Derive_Subprogram): The formals of the derived subprogram have the
4450 names and defaults of the parent subprogram, even if the type is
4451 obtained from the actual subprogram.
4452 (Derive_Subprogram): In the presence of interfaces, a formal of an
4453 inherited operation has the derived type not only if it descends from
4454 the type of the formal of the parent operation, but also if it
4455 implements it. This is relevant for the renamings created for the
4456 primitive operations of the actual for a formal derived type.
4457 (Is_Progenitor): New predicate, to determine whether the type of a
4458 formal in the parent operation must be replaced by the derived type.
4459
4460 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
4461 predicate recursive to handle components that have a user-defined
4462 Initialize procedure. Handle controlled derived types whose ancestor
4463 has a user-defined Initialize procedured.
4464 (Note_Possible_Modification): Add Sure parameter, generate warning if
4465 sure modification of constant
4466 Use new Is_Standard_Character_Type predicate
4467 (Find_Parameter_Type): when determining whether a protected operation
4468 implements an interface operation, retrieve the type of the formal from
4469 the entity when the formal is an access parameter or an
4470 anonymous-access-to-subprogram.
4471 Move Copy_Parameter_List to sem_util, for use when building stubbed
4472 subprogram bodies.
4473 (Has_Access_Values): Tagged types now return False
4474 (Within_HSS_Or_If): New procedure
4475 (Set_Optimize_Alignment_Flags): New procedure
4476 Change name In_Default_Expression => In_Spec_Expression
4477 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4478 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
4479
4480 2008-04-08 Tristan Gingold <gingold@adacore.com>
4481
4482 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
4483
4484 2008-04-08 Tristan Gingold <gingold@adacore.com>
4485
4486 PR ada/10768
4487
4488 * cuintp.c: Fix 16 bits issue for AVR.
4489 On AVR, integer is 16 bits, so it can't be used to do math with
4490 Base (=32768).
4491 So use long_integer instead.
4492
4493 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4494
4495 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
4496 System.OS_Primitives.
4497 Change type of various constants, parameters and local variables from
4498 Time to representation type OS_Time.
4499 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
4500 Remove the declaration of constant Mili_F from several routines. New
4501 body for internal package Conversions_Operations.
4502 (Time_Of): Add default parameters for several formals.
4503
4504 * a-caldel.adb: Minor reformatting
4505
4506 * a-calend.ads, a-calend.adb: New body for internal package
4507 Conversions_Operations.
4508 (Time_Of): Add default parameters for several formals.
4509
4510 * Makefile.rtl: Add a-ststop
4511 Add Ada.Calendar.Conversions to the list of runtime files.
4512 Add g-timsta
4513
4514 * a-calcon.adb, a-calcon.ads: New files.
4515
4516 2008-04-08 Jose Ruiz <ruiz@adacore.com>
4517 Tristan Gingold <gingold@adacore.com>
4518
4519 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
4520 (Install_Restricted_Handlers): New procedure
4521 which is a simplified version of Install_Handlers that does not store
4522 previously installed.
4523
4524 * s-interr-vxworks.adb: Fix ACATS cxc3001
4525 On VxWorks interrupts can't be detached.
4526 (Install_Restricted_Handlers): New procedure.
4527
4528 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
4529 procedure.
4530
4531 2008-04-08 Olivier Hainque <hainque@adacore.com>
4532
4533 * s-intman-vxworks.ads, s-intman-vxworks.adb
4534 (Map_And_Raise_Exception): Remove. Was an import of only part of the
4535 required services already implemented elsewhere.
4536 (Notify_Exception): Delete body, import __gnat_error_handler instead.
4537 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
4538 argument passed to the handler, which we need for ZCX propagation
4539 purposes.
4540
4541 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4542
4543 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
4544
4545 * g-timsta.adb, g-timsta.ads: New files.
4546
4547 2008-04-08 Robert Dewar <dewar@adacore.com>
4548
4549 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
4550 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
4551 (Raise_Exception_Always): Fix documentation accordingly
4552
4553 2008-04-08 Robert Dewar <dewar@adacore.com>
4554
4555 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
4556 Stream_Convert)
4557
4558 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
4559 FOnly
4560
4561 2008-04-08 Javier Miranda <miranda@adacore.com>
4562 Robert Dewar <dewar@adacore.com>
4563 Ed Schonberg <schonberg@adacore.com>
4564
4565 * a-tags.adb (Register_Interface_Offset): New subprogram.
4566 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
4567 (To_Predef_Prims_Table_Ptr): Removed.
4568 (Acc_Size): Removed.
4569 (To_Acc_Size): Removed.
4570 (Parent_Size): Modified to the call the subprogram returning the size of
4571 the parent by means of the new TSD component Size_Func.
4572
4573 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
4574 (DT_Offset_To_Top_Offset): New constant value that is used to generate
4575 code referencing the Offset_To_Top component of the dispatch table's
4576 prologue.
4577 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
4578 use of 'address to initialize dispatch table slots.
4579 (Size_Func): New component of the TSD. Used by the run-time to call the
4580 size primitive of the tagged type.
4581
4582 * checks.adb (Apply_Access_Check): Avoid check when accessing the
4583 Offset_To_Top component of a dispatch table.
4584 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
4585 deferred constant declaration. do not add a null expression, to prevent
4586 spurious errors when full declaration is analyzed.
4587 (Apply_Discriminant_Check): If both discriminant constraints share a
4588 node which is not static but has no side effects, do not generate a
4589 check for that discriminant.
4590 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
4591 subexpr, since the prefix of an attribute is a name.
4592
4593 * checks.ads: Fix nit in comment.
4594
4595 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
4596 and body of predefined primitives in case of CPP tagged type
4597 derivations.
4598 (Freeze_Type): Deal properly with no storage pool case
4599 (Make_Predefined_Primitive_Specs): Generate specification of abstract
4600 primitive Deep_Adjust if a nonlimited interface is derived from a
4601 limited interface.
4602 (Build_Dcheck_Functions): Create discriminant-checking functions only
4603 for variants that have some component(s).
4604 (Build_Slice_Assignment): In expanded code for slice assignment, handle
4605 properly the case where the slice bounds extend to the last value of the
4606 underlying representation.
4607 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
4608 (Is_Variable_Size_Record): An array component has a static size if
4609 index bounds are enumeration literals.
4610
4611 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
4612 an external tag has been specified for the type.
4613 (Building_Static_DT): Add missing support for private types.
4614 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
4615 to the entity associated with the parent of Typ. This is done to
4616 avoid wrong access when the parent is a private type.
4617 (Expand_Interface_Conversion): Improve error message when the
4618 configurable runtime has no support for dynamic interface conversion.
4619 (Expand_Interface_Thunk): Add missing support to interface types in
4620 configurable runtime.
4621 (Expand_Dispatching_Call): remove obsolete code.
4622 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
4623 ensure that all subtypes and aggregates associated with dispatch
4624 tables have the attribute Is_Dispatch_Table_Entity set to true.
4625 (Register_Primitive): Rename one variable to improve code reading.
4626 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
4627 of the pointer to the 'size primitive in the TSD.
4628
4629 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
4630 (RE_Offset_To_Top_Ptr): New entity.
4631 (RE_Register_Interface_Offset): New entity.
4632 (RE_Set_Dynamic_Offset_To_Top): New entity.
4633 (RE_Set_Offset_To_Top): Removed entity.
4634 (RE_Prim_Ptr): New entity
4635 (RE_Size_Func): New entity
4636 (RE_Size_Ptr): New entity
4637 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
4638 (Ada_Dispatching_Child): Define this new subrange.
4639 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
4640 RE_Time_Span, and RE_Time_Span_Zero).
4641 (RE_Unit_Table): Add new required run-time calls
4642
4643 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
4644 children.
4645
4646 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
4647 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
4648 initializes the Offset_To_Top component of a dispatch table.
4649 (Build_Predef_Prims): Removed.
4650 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
4651 its actual code.
4652 (Build_Set_Size_Function): New subprogram.
4653
4654 * exp_ch13.adb: Do not generate storage variable for storage_size zero
4655 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
4656
4657 2008-04-08 Robert Dewar <dewar@adacore.com>
4658
4659 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
4660 computing Fore when Exp > 0
4661
4662 2008-04-08 Robert Dewar <dewar@adacore.com>
4663
4664 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
4665
4666 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
4667 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
4668
4669 * fmap.adb: Remove Big_String declarations (now in Types)
4670 (No_Mapping_File): New Boolean global variable
4671 (Initialize): When mapping file cannot be read, set No_Mapping_File to
4672 False.
4673 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
4674 tables were empty before adding entries, open the mapping file
4675 with Truncate = True, instead of delete/re-create.
4676
4677 * fname-sf.adb: Remove Big_String declarations (now in Types)
4678
4679 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
4680 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
4681 big pointer types
4682
4683 * table.ads: Add for Table_Ptr'Storage_Size use 0
4684
4685 * types.ads: Add Big_String declarations
4686 Add Size_Clause of zero for big pointer types
4687
4688 2008-04-08 Vincent Celier <celier@adacore.com>
4689
4690 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
4691 (Usage): Add line for switch --subdirs=
4692 Add new switch -eL, to follow symbolic links when processing project
4693 files.
4694
4695 * gnatcmd.adb: Process switches -eL and --subdirs=
4696 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
4697 Program_Name to get proper tool names when AAMP_On_Target is set.
4698 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
4699 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
4700 Osint.Program_Name).
4701
4702 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
4703 (Usage): Add lines for switches -eL and --subdirs=
4704
4705 * makeusg.adb: Add line for switch --subdirs=
4706
4707 * prj.ads:
4708 (Source_Data): New Boolean component Compiled, defaulted to True
4709 (Empty_File_Name: New global variable in private part, initialized in
4710 procedure Initialize.
4711 (Subdirs_Option): New constant string
4712 (Subdirs): New String_Ptr global variable
4713 (Language_Config): New component Include_Compatible_Languages
4714 (Project_Qualifier): New type for project qualifiers
4715 (Project_Data): New component Qualifier
4716 (Project_Configuration): New component Archive_Builder_Append_Option
4717
4718 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
4719 another imported project indicate the name of this imported project.
4720 (Check_File): When a unit is in two project files, indicate the project
4721 names and the paths of the source files for each project.
4722 (Add_Source): Set Compiled to False if compiler driver is empty. Only
4723 set object, dependency and switches file names if Compiled is True.
4724 (Process_Compiler): Allow the empty string for value of attribute Driver
4725 (Get_Directories): When Subdirs is not null and Object_Dir is not
4726 specified, locate and create if necessary the actual object dir.
4727 (Locate_Directory): When Subdirs is not empty and Create is not the
4728 empty string, locate and create if necessary the actual directory
4729 as a subdirectory of directory Name.
4730 (Check_Library_Attributes.Check_Library): Allow a project where the only
4731 "sources" are header files of file based languages to be imported by
4732 library projects, in multi-language mode (gprbuild).
4733 (Check_Library_Attributes.Check_Library): In multi-language mode
4734 (gprbuild), allow a library project to import a project with no
4735 sources, even when this is not declared explicitly.
4736 (Check_If_Externally_Built): A virtual project extending an externally
4737 built project is also externally built.
4738 (Check_Library_Attributes): For a virtual project extending a library
4739 project, inherit the library directory.
4740 (Process_Project_Level_Array_Attributes): Process new attribute
4741 Inherit_Source_Path.
4742 For projects with specified qualifiers "standard", "library" or
4743 "abstract", check that the project conforms to the qualifier.
4744 (Process_Project_Level_Simple_Attributes): Process new attribute
4745 Archive_Builder_Append_Option.
4746
4747 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
4748 (Normalize_Compiler_Switches): Only keep compiler switches that are
4749 passed to gnat1 by the gcc driver and that are stored in the ALI file
4750 by gnat1.
4751 Do not take into account switc -save-temps
4752
4753 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
4754 gprmake is called with -eL.
4755 (Scan_Arg): Recognize switch -eL
4756 (Usage): Add line for switch -eL
4757
4758 * prj.adb (Initialize): Initialize Empty_File_Name
4759 (Project_Empty): New component Qualifier
4760
4761 * prj-attr.ads, prj-attr.adb: New project level attribute
4762 Inherit_Source_Path.
4763 New project level attribute Archive_Builder_Append_Option
4764
4765 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
4766
4767 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
4768 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
4769 upward compatibility.
4770
4771 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
4772 each Trying ..." on different lines.
4773 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
4774 is "configuration" when not in configuration. Fail when in configuration
4775 when a specified qualifier is other than "configuration".
4776
4777 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
4778 full associative array together.
4779 (Recursive_Process): Put the project qualifier in the project data
4780
4781 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
4782 (Set_Project_Qualifier_Of): New procedure
4783
4784 2008-04-08 Robert Dewar <dewar@adacore.com>
4785
4786 * errout.ads: Update comments for new handling of info: messages
4787
4788 * erroutc.adb (Matches): New procedure
4789 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
4790 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
4791 info messages as well as style messages.
4792
4793 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
4794
4795 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
4796 subprograms.
4797 (Check_A_Call): Special "info: " warnings now have ? in the text
4798 (Elab_Warning): Use info message in static case
4799
4800 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4801
4802 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
4803 whether an array aggregate with static bounds and scalar components
4804 should be expanded into a static constant.
4805
4806 2008-04-08 Gary Dismukes <dismukes@adacore.com>
4807 Ed Schonberg <schonberg@adacore.com>
4808 Robert Dewar <dewar@adacore.com>
4809
4810 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
4811 Has_Stream_Attribute_ Definition when checking for available stream
4812 attributes on parameters of a limited type in Ada 2005. Necessary for
4813 proper recognition of visible stream attribute clauses.
4814 (Has_Stream_Attribute_Definition): If the type is derived from a
4815 private type, then use the derived type's underlying type for checking
4816 whether it has stream attributes.
4817 (Validate_Object_Declaration): The check for a user-defined Initialize
4818 procedure applies also to types with controlled components or a
4819 controlled ancestor.
4820 Reject an object declaration in a preelaborated unit if the type is a
4821 controlled type with an overriding Initialize procedure.
4822 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
4823 checking when the parent of a dereference is a selected component and
4824 the name has not been analyzed.
4825
4826 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
4827 prefixes that are invalid explicit dereferences of remote
4828 access-to-class-wide values, first checking whether the selected
4829 component is a prefixed form of call to a tagged operation.
4830 (Analyze_Call): Remove code that issues an error for limited function
4831 calls in illegal contexts, as we now support all of the contexts that
4832 were forbidden here.
4833 Allow a function call that returns a task.and appears as the
4834 prefix of a selected component.
4835 (Analyze_Reference): Give error message if we try to make a 'Reference
4836 for an object that is atomic/aliased without its type having the
4837 corresponding attribute.
4838 (Analyze_Call): Remove condition checking for attributes to allow
4839 calls to functions with inherently limited results as prefixes of
4840 attributes. Remove related comment about Class attributes.
4841 (Analyze_Selected_Component): If the prefix is a remote type, check
4842 whether this is a prefixed call before reporting an error.
4843 (Complete_Object_Operation): If the controlling formal is an access to
4844 variable reject an actual that is a constant or an access to one.
4845 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4846 primitive operations from base type.
4847
4848 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
4849 build-in-place
4850 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4851 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
4852 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4853 (Expand_N_Slice): Test for prefix that is a build-in-place function call
4854 and call Make_Build_In_Place_Call_In_Anonymous_Context.
4855 (Analyze_Call): Remove code that issues an error for limited function
4856 calls in illegal contexts, as we now support all of the contexts that
4857 were forbidden here.
4858 New calling sequence for Get_Simple_Init_Val
4859 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
4860 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
4861
4862 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4863 Ed Schonberg <schonberg@adacore.com>
4864 Robert Dewar <dewar@adacore.com>
4865
4866 * exp_ch2.adb: Minor reformatting.
4867 (Expand_Entry_Index_Parameter): Set the type of the identifier.
4868 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
4869 (Expand_Protected_Component): New routine.
4870 (Expand_Protected_Private): Removed.
4871 Add Sure parameter to Note_Possible_Modification calls
4872
4873 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
4874 generated subprogram declaration must inherit the overriding indicator
4875 from the instantiation node.
4876 (Validate_Access_Type_Instance): If the designated type of the actual is
4877 a limited view, use the available view in all cases, not only if the
4878 type is an incomplete type.
4879 (Instantiate_Object): Actual is illegal if the formal is null-excluding
4880 and the actual subtype does not exclude null.
4881 (Process_Default): Handle properly abstract formal subprograms.
4882 (Check_Formal_Package_Instance): Handle properly defaulted formal
4883 subprograms in a partially parameterized formal package.
4884 Add Sure parameter to Note_Possible_Modification calls
4885 (Validate_Derived_Type_Instance): if the formal is non-limited, the
4886 actual cannot be limited.
4887 (Collect_Previous_Instances): Generate instance bodies for subprograms
4888 as well.
4889
4890 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
4891 try to set RM_Size.
4892 Add Sure parameter to Note_Possible_Modification calls
4893 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
4894 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
4895 constant overlaid by variable and issue warning.
4896 Use new Is_Standard_Character_Type predicate
4897 (Analyze_Record_Representation_Clause): Check that the specified
4898 Last_Bit is not less than First_Bit - 1.
4899 (Analyze_Attribute_Definition_Clause, case Address): Check for
4900 self-referential address clause
4901
4902 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
4903 detection mechanism when the lhs is a prival.
4904 (Analyze_Assignment): Call Check_Unprotected_Access to detect
4905 assignment of a pointer to protected data, to an object declared
4906 outside of the protected object.
4907 (Analyze_Loop_Statement): Check for unreachable code after loop
4908 Add Sure parameter to Note_Possible_Modication calls
4909 Protect analysis from previous syntax error such as a scope mismatch
4910 or a missing begin.
4911 (Analyze_Assignment_Statement): The assignment is illegal if the
4912 left-hand is an interface.
4913
4914 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
4915 violation of restriction No_Implicit_Conditionals
4916 Add Sure parameter to Note_Possible_Modication calls
4917 Use new Is_Standard_Character_Type predicate
4918 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
4919 call as operator. Fixes problems (e.g. validity checking) which
4920 come from the result looking as though it does not come from source).
4921 (Resolve_Call): Check case of name in named parameter if style checks
4922 are enabled.
4923 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
4924 from the checking that such calls should not occur from an entry body.
4925 (Resolve_Call): If the return type of an Inline_Always function
4926 requires the secondary stack, create a transient scope for the call
4927 if the body of the function is not available for inlining.
4928 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
4929 that are actuals for in-out formals.
4930 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4931 primitive operations from base type.
4932 (Analyze_Selected_Component): If the context is a call to a protected
4933 operation the parent may be an indexed component prior to expansion.
4934 (Resolve_Actuals): If an actual is of a protected subtype, use its
4935 base type to determine whether a conversion to the corresponding record
4936 is needed.
4937 (Resolve_Short_Circuit): Handle pragma Check
4938
4939 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
4940 Use new Is_Standard_Character_Type predicate
4941 (Eval_Relational_Op): Catch more cases of string comparison
4942
4943 2008-04-08 Robert Dewar <dewar@adacore.com>
4944 Gary Dismukes <dismukes@adacore.com>
4945
4946 * s-rident.ads: Add No_Default_Initialization restriction
4947
4948 * exp_tss.adb:
4949 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4950 (Set_TSS): Handle No_Default_Initialization case
4951
4952 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4953 No_Default_Initialization
4954 (Expand_N_Subprogram_Body): Remove redundant initialization of out
4955 parameters when Normalize_Scalars is active.
4956 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4957 Fix casing error in formal parameter name in call
4958 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4959 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4960 dispatching call on VM targets.
4961
4962 2008-04-08 Gary Dismukes <dismukes@adacore.com>
4963 Thomas Quinot <quinot@adacore.com>
4964
4965 * exp_ch7.adb (Find_Final_List): Change the test for generating a
4966 selected component from an access type's Associated_Final_Chain to
4967 check for the presence of that field, rather than assuming it exists
4968 for all named access types.
4969 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4970 procedure to call at the end of the generated cleanup procedure.
4971 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4972 and an At_End_Proc already exists in the handled sequence of statements
4973 for which cleanup actions are being expanded, the original cleanup
4974 action must be preserved.
4975
4976 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4977 Ed Schonberg <schonberg@adacore.com>
4978 Robert Dewar <dewar@adacore.com>
4979 Gary Dismukes <dismukes@adacore.com>
4980
4981 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4982 Build_Unprotected_Subprogram_Body): Generate debug info for
4983 declarations related to the handling of private data in task and
4984 protected types.
4985 (Debug_Private_Data_Declarations): New subprogram.
4986 (Install_Private_Data_Declarations): Remove all debug info flagging.
4987 This is now done by Debug_Private_Data_Declarations at the correct
4988 stage of expansion.
4989 (Build_Simple_Entry_Call): If the task name is a function call, expand
4990 the prefix into an object declaration, and make the surrounding block a
4991 task master.
4992 (Build_Master_Entity): An internal block is a master if it wraps a call.
4993 Code reformatting, update comments. Code clean up.
4994 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4995 (Replicate_Entry_Formals): If the formal is an access parameter or
4996 anonymous access to subprogram, copy the original tree to create new
4997 entities for the formals of the subprogram.
4998 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4999 for tasks to store the value passed using pragma Relative_Deadline.
5000 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5001 run-time call to create a task.
5002 (Build_Wrapper_Spec): If the controlling argument of the interface
5003 operation is an access parameter with a non-null indicator, use the
5004 non-null indicator on the wrapper.
5005
5006 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5007 present, which it may not be in the case where the type entity is an
5008 incomplete view brought in by a limited with.
5009 (Analyze_Task_Type): Only retrieve the full view when present, which it
5010 may not be in the case where the type entity is an incomplete view brought
5011 in by a limited with.
5012 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5013 private components of a protected type, to prevent the generation of freeze
5014 nodes for which there is no proper scope of elaboration.
5015
5016 * exp_util.ads, exp_util.adb
5017 (Remove_Side_Effects): If the expression is a function call that returns a
5018 task, expand into a declaration to invoke the build_in_place machinery.
5019 (Find_Protection_Object): New routine.
5020 (Remove_Side_Effects): Also make a copy of the value
5021 for attributes whose result is of an elementary type.
5022 (Silly_Boolean_Array_Not_Test): New procedure
5023 (Silly_Boolean_Array_Xor_Test): New procedure
5024 (Is_Volatile_Reference): New function
5025 (Remove_Side_Effects): Use Is_Volatile_Reference
5026 (Possible_Bit_Aligned_Component): Handle slice case properly
5027
5028 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5029 case test to Exp_Util
5030 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5031
5032 2008-04-08 Thomas Quinot <quinot@adacore.com>
5033
5034 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5035 in call
5036 (Add_RACW_Features): When processing an RACW in another unit than the
5037 main unit, set Body_Decls to No_List to indicate that the bodies of
5038 the type's TSS must not be generated.
5039 (GARLIC_Support.Add_RACW_Read_Attribute,
5040 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5041 Body_Decls is No_List.
5042 (PolyORB_Support.Add_RACW_Read_Attribute,
5043 PolyORB_Support.Add_RACW_Write_Attribute,
5044 PolyORB_Support.Add_RACW_From_Any,
5045 PolyORB_Support.Add_RACW_To_Any,
5046 PolyORB_Support.Add_RACW_TypeCode): Same.
5047 (Transmit_As_Unconstrained): New function.
5048 (Build_Ordered_Parameters_List): Use the above to order parameters.
5049 (GARLIC_Support.Build_General_Calling_Stubs):
5050 Use the above to determine which parameters to unmarshall using 'Input
5051 at the point where their temporary is declared (as opposed to later on
5052 with a 'Read call).
5053 (PolyORB_Support.Build_General_Calling_Stubs):
5054 Use the above to determine which parameters to unmarshall using From_Any
5055 at the point where their temporary is declared (as opposed to later on
5056 with an assignment).
5057
5058 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5059
5060 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5061 an Input function for an access type, do not perform default
5062 initialization on the local variable that receives the value, to
5063 prevent spurious warnings when the type is null-excluding.
5064
5065 2008-04-08 Robert Dewar <dewar@adacore.com>
5066 Ed Schonberg <schonberg@adacore.com>
5067
5068 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5069 units.
5070 (Size_Known): Generic formal scalar types have known at compile
5071 time size, so remove check.
5072 Fix casing error in formal parameter name in call
5073 (Freeze_Subprogram): If the subprogram is a user-defined operator,
5074 recheck its overriding indication.
5075
5076 2008-04-08 Vincent Celier <celier@adacore.com>
5077
5078 * gnat1drv.adb: Send all messages indicating an error to standard error
5079
5080 2008-04-08 Robert Dewar <dewar@adacore.com>
5081
5082 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5083 (List_Applicable_Restrictions): Do not list existing restrictions
5084
5085 2008-04-08 Thomas Quinot <quinot@adacore.com>
5086
5087 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5088 add a pointer to generic sockets literature
5089 do not mention that the given example is "typical" usage.
5090 Remove obsolete comment about multicast not being supported on Windows.
5091 (Connect_Socket): Make Server mode IN rather than IN OUT
5092 since this formal is never modified.
5093
5094 2008-04-08 Robert Dewar <dewar@adacore.com>
5095
5096 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5097 the declaration for some different entity.
5098 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5099 list is precent (following the parent subtype indication), display
5100 appropriate "and" keyword.
5101
5102 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5103 Remove unnecessary calls to Init_Size_Align and Init_Esize.
5104 Add notes on use of Parent field of an Itype
5105
5106 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5107 Robert Dewar <dewar@adacore.com>
5108 Gary Dismukes <dismukes@adacore.com>
5109
5110 * lib-xref.adb (Is_On_LHS): Remove dead code
5111 (Output_Overriden_Op): If the overridden operation is itself inherited,
5112 list the ancestor operation, which is the one whose body or absstract
5113 specification is actually being overridden. For source navigation
5114 purposes.
5115
5116 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5117 operation is primitive for the type.
5118 (Declare_Inherited_Private_Subprograms): If the new operation overrides
5119 an inherited private subprogram, set properly the Overridden_Operation
5120 attribute, for better cross-reference information.
5121 (Analyze_Package_Specification): Do late analysis of spec PPCs
5122 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5123 properly the full view and underlying full views of a private type in a
5124 child unit, whose full view is derived from a private type in a parent
5125 unit, and whose own full view becomes visible in the child body.
5126
5127 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5128 primitive operation after the type has been frozen, add an explicit
5129 reference to the type and the operation, because other primitive
5130 references have been emitted already.
5131 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5132 dispatching call on VM targets.
5133
5134 2008-04-08 Vincent Celier <celier@adacore.com>
5135 Thomas Quinot <quinot@adacore.com>
5136
5137 * make.adb: (Gnatmake_Called): Remove, no longer necessary
5138 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5139 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5140 (Insert_Project_Sources): Take into account index in multi-unit source
5141 files.
5142 After building a library project, delete all temporary files.
5143 (Initialize): Reset current output after parsing project file.
5144 (Collect_Arguments_And_Compile): Never insert in the queue the sources
5145 of library projects that are externally built.
5146 Put file name in error and inform messages if -df is used
5147 (Display): If invoked with -d7, do not display path names, but only
5148 file names.
5149
5150 * makeutl.ads (Path_Or_File_Name): New function
5151 (Path_Or_File_Name): New function
5152
5153 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5154
5155 * Make-lang.in: Disable warnings during first stage of bootstrap
5156 Get rid of gnatbl.
5157 Update dependencies.
5158
5159 2008-04-08 Vincent Celier <celier@adacore.com>
5160
5161 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5162 case to decide if ALI object file is included in library.
5163 (Build_Library): Never attempt to build a library if the project is
5164 externally built.
5165
5166 2008-04-08 Thomas Quinot <quinot@adacore.com>
5167
5168 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5169 (No_List) is defined to return Empty.
5170
5171 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5172
5173 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5174 documentation.
5175 Update comments.
5176 (Read_Default_Search_Dirs): Do not consider spaces as path separators
5177 because spaces may be part of legal paths.
5178
5179 2008-04-08 Robert Dewar <dewar@adacore.com>
5180
5181 * par-ch11.adb (P_Exception_Handler): Check indentation level for
5182 handler
5183
5184 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5185
5186 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5187 in a type declaration, if this is not an interface declaration or
5188 private type extension.
5189
5190 2008-04-08 Vincent Celier <celier@adacore.com>
5191
5192 * prj-util.adb (Executable_Of): New String parameter Language. When
5193 Ada_Main is False and Language is not empty, attempt to remove the body
5194 suffix or the spec suffix of the language to get the base of the
5195 executable file name.
5196 (Put): New Boolean parameter Lower_Case, defauilted to False. When
5197 Lower_Case is True, put the value in lower case in the name list.
5198 (Executable_Of): If there is no executable suffix in the configuration,
5199 then do not modify Executable_Extension_On_Target.
5200
5201 * prj-util.ads (Executable_Of): New String parameter Language,
5202 defaulted to the empty string.
5203 (Put): New Boolean parameter Lower_Case, defauilted to False
5204
5205 2008-04-08 Robert Dewar <dewar@adacore.com>
5206
5207 * scng.adb (Scan_Identifier): Handle case of identifier starting with
5208 wide character using UTF-8 encoding.
5209
5210 2008-04-08 Javier Miranda <miranda@adacore.com>
5211
5212 * sem.adb (Analyze): Consider case in which we analyze an empty node
5213 that was generated by a call to a runtime function that is not
5214 available under the configurable runtime.
5215
5216 * sem.ads (Inside_Freezing_Actions): New flag.
5217 (Save_Check_Policy_List): New field in scope stack entry
5218
5219 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5220 Robert Dewar <dewar@adacore.com>
5221
5222 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5223 the ancestor part of an extension aggregate for a limited type.
5224 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5225 enumeration index bounds.
5226 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5227 when array is too short.
5228 (Check_Expr_OK_In_Limited_Aggregate): Move function
5229 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5230 change name).
5231 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5232 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5233 component associations.
5234 (Check_Non_Limited_Type): Moved to outer level and renamed.
5235 (Resolve_Record_Aggregate): In an extension aggregate, an association
5236 with a box initialization can only designate a component of the
5237 extension, not a component inherited from the given ancestor
5238
5239 * sem_case.adb: Use new Is_Standard_Character_Type predicate
5240
5241 2008-04-08 Robert Dewar <dewar@adacore.com>
5242
5243 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5244 negative scale
5245 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5246 Properly handle case where Aft > Scale and input number is less than
5247 one.
5248
5249 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5250
5251 * s-stoele.ads, s-soflin.ads: Move the location of
5252 Dummy_Communication_Block from System.Storage_Elements to
5253 System.Soft_Links.
5254
5255 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5256 emulate Communication_Block in certain scenarios.
5257
5258 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5259
5260 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5261 subprogram.
5262 Add new subtype S_WWC, unchecked conversion routines From_WWC and
5263 To_WWC.
5264 (I_WWC, O_WWC): New routines for input and output of
5265 Wide_Wide_Character.
5266
5267 2008-04-08 Robert Dewar <dewar@adacore.com>
5268
5269 * stringt.adb (Write_String_Table_Entry): Handle wide characters
5270 properly
5271
5272 2008-04-08 Robert Dewar <dewar@adacore.com>
5273
5274 * styleg.adb (Check_Comment): Allow special char after -- in
5275 non-end-of-line case
5276
5277 2008-04-08 Robert Dewar <dewar@adacore.com>
5278
5279 * stylesw.adb: Implement -gnaty + - y options
5280 (Set_GNAT_Style_Check_Options): Includ I in style check string
5281
5282 * stylesw.ads: Add comments for new style switch options
5283
5284 2008-04-08 Sergey Rybin <rybin@adacore.com>
5285
5286 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5287 to the set of the GNAT components needed by ASIS.
5288
5289 2008-04-08 Bob Duff <duff@adacore.com>
5290
5291 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
5292
5293 2008-04-08 Tristan Gingold <gingold@adacore.com>
5294
5295 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
5296 Improve error message generation.
5297
5298 2008-04-08 Vincent Celier <celier@adacore.com>
5299
5300 * a-direct.adb (Start_Search): Check for Name_Error before checking for
5301 Use_Error, as specified in the RM. Check if directory is open and raise
5302 Use_Error if it is not.
5303
5304 2008-04-08 Vincent Celier <celier@adacore.com>
5305 Robert Dewar <dewar@adacore.com>
5306
5307 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
5308 AAMP_On_Target is set.
5309
5310 * vms_data.ads: Add NOxxx to style check switch list
5311 Add entry COMPONENTS for -gnatVe
5312 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
5313 (/SUBDIRS=).
5314 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
5315 Add qualifiers for gnatmetric coupling options
5316 Add note that -gnata enables all checks
5317 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
5318 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
5319 New warning flag -gnatw.e
5320
5321 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
5322 Add entry for -gnatyN (forgotten before)
5323 Line for new warning switch -gnatw.p
5324 New warning flag -gnatw.e
5325
5326 * gnat_ugn.texi: Add documentation fpr project file switch -aP
5327 Document -gnaty - + y
5328 Replace occurences of "package specification" with "package spec"
5329 Define preprocessing symbols in documentation of gnatprep
5330 Clarify reason for distinguishing overflow checking
5331 Add documentation for project-aware tool switches -eL and --subdirs=
5332 Complete list of configuration pragmas
5333 Specify that, even when gnatmake switch -x is used, mains on the command
5334 line need to be sources of project files.
5335 Editing of gnatcheck/gnatmetric doc.
5336 Add documentation for -gnatw.p/-gnatw.P
5337 Add missing documentation for -fno-inline-functions.
5338 Add documentation for -gnatw.e
5339
5340 * gnat_rm.texi: Add documentation for No_Default_Initialization
5341 Replace occurences of "package specification" with "package spec"
5342 Document use of * in Warnings Off string
5343 Update documentation of alignment/component clauses.
5344 Add documentation for Invalid_Value
5345 Document new consistency rule for Optimize_Alignment
5346 Add documentation for Precondition and Postcondition pragmas
5347 Add documentation for Check and Check_Policy pragmas
5348 Document new Enum_Val attribute
5349 Remove requirement for static string in pragma Assert
5350 Add documentation on GNAT.Time_Stamp
5351
5352 * ug_words: add entry for -gnatVe
5353 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
5354 Add entry for -gnatw.e
5355
5356 * debug.adb: Add missing documentation for d.a flag
5357 Document new -gnatd.a switch.
5358 Add documentation for new gnatmake debug switch -df
5359
5360 2008-04-08 Thomas Quinot <quinot@adacore.com>
5361
5362 * gen-soccon.c: Bump year in copyright notices.
5363
5364 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
5365
5366 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5367
5368 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
5369 Minor reformatting.
5370
5371 2008-04-08 Robert Dewar <dewar@adacore.com>
5372 Bob Duff <duff@adacore.com>
5373
5374 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
5375 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
5376
5377 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
5378
5379 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
5380
5381 * g-trasym.ads: Minor comment improvements
5382
5383 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
5384
5385 * a-sequio.ads, a-direio.ads: improve message for tagged type
5386
5387 * a-strunb.ads: Minor reformatting
5388
5389 * a-tifiio.adb: Minor reformatting
5390
5391 * atree.adb (Fix_Parents): Use clearer names for formals
5392 Cleanup and simplify code
5393 Use named notation in calls
5394
5395 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
5396 confusing calls
5397
5398 * uintp.adb: Used named notation for some confusing calls
5399
5400 * bindusg.adb: Minor change in one line of output
5401
5402 * cstand.adb: Minor reformatting of src representation of Standard
5403
5404 * a-assert.ads: Add comment.
5405
5406 * g-decstr.adb: Fix bad indentation
5407
5408 * expander.ads, expander.adb: Code clean up.
5409
5410 * sem_dist.ads: Minor comment improvement
5411
5412 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
5413 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
5414
5415 * i-cstrin.adb: Fix casing error in formal parameter name in call
5416
5417 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5418
5419 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
5420 mentioned in limited_with_clauses to do create semantic dependencies
5421 even though they appear in the ali file.
5422
5423 2008-04-08 Emmanuel Briot <briot@adacore.com>
5424
5425 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
5426 statement.
5427 (Get_Configuration): New subprogram.
5428
5429 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
5430 These optional parameters help preserve the casing of the project's name
5431 when pretty-printing.
5432
5433 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
5434 Arnaud Charlet <charlet@adacore.com>
5435
5436 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
5437 then use __gnat_set_exit_status to report the returned status code.
5438
5439 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
5440 messages on .NET, since some constructs of the language are not
5441 properly supported.
5442
5443 * gnatlink.adb (Gnatlink): In case the command line is too long for the
5444 .NET linker, gnatlink now concatenate all .il files and pass this to
5445 ilasm.
5446
5447 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
5448 Xavier Grave <grave@ipno.in2p3.fr>
5449
5450 * Makefile.in: Add make ifeq define for mips/mipsel support.
5451 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
5452 system-linux-mips.ads: New files.
5453
5454 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
5455
5456 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
5457 detect systems using GNU libc.
5458 * gsocket.h: ditto.
5459 * socket.c: ditto.
5460 * adaint.c: ditto.
5461 * link.c: ditto.
5462
5463 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
5464
5465 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
5466 constant constant for sysconf call.
5467 (bit_field): New packed boolean type used by cpu_set_t.
5468 (cpu_set_t): New type corresponding to the C type with
5469 the same name. Note that on the Ada side we use a bit
5470 field array for the affinity mask. There is not need
5471 for the C macro for setting individual bit.
5472 (pthread_setaffinity_np): New imported routine.
5473 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
5474 on GNU/kFreeBSD.
5475
5476 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
5477
5478 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
5479
5480 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
5481
5482 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
5483 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
5484 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
5485 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
5486 Return by Depressed Stack Pointer.
5487
5488 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
5489
5490 * decl.c (is_variable_size): Do not unconditionally return false
5491 on non-strict alignment platforms.
5492
5493 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
5494
5495 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
5496 used to process all the variants of the specified type.
5497 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
5498 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
5499 (rest_of_type_decl_compilation): Likewise.
5500 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
5501
5502 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
5503
5504 * gigi.h (insert_block): Kill.
5505 * utils.c (insert_block): Kill.
5506
5507 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
5508
5509 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
5510 type has self-referential size, get the size from the initializing
5511 expression directly if it is also a constant whose nominal type
5512 has self-referential size.
5513
5514 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5515
5516 PR ada/33688
5517 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
5518
5519 PR ada/33857
5520 * env.c: Always include crt_externs.h if __APPLE__ is defined.
5521 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
5522
5523 2008-04-01 Andreas Jaeger <aj@suse.de>
5524
5525 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
5526 IP_PKTINFO.
5527
5528 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5529
5530 * g-table.adb, g-tasloc.adb, g-traceb.ads,
5531 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
5532 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
5533 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
5534 gnatlink.adb, gnatmem.adb, gprep.adb,
5535 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
5536 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
5537 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
5538 lib-xref.ads, lib.adb, link.c, live.ads,
5539 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
5540 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
5541 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
5542 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
5543 namet.adb, namet.h, nlists.adb, nlists.ads,
5544 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
5545 osint-c.ads, osint.adb, osint.ads, output.ads,
5546 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
5547 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
5548 par-endh.adb, par-labl.adb, par-prag.adb,
5549 par-sync.adb, par-tchk.adb, par-util.adb,
5550 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
5551 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
5552 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
5553 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
5554
5555 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
5556
5557 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
5558 size if it has overflowed.
5559
5560 2008-03-31 Olivier Hainque <hainque@adacore.com>
5561 Eric Botcazou <ebotcazou@adacore.com>
5562
5563 * utils2.c (find_common_type): Document assumption on t1/t2 vs
5564 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
5565
5566 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5567
5568 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
5569 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
5570 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
5571 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
5572 exp_tss.ads, exp_util.adb, exp_util.ads,
5573 exp_vfpt.adb, freeze.adb, freeze.ads,
5574 frontend.adb, g-alleve.adb, g-altcon.adb,
5575 g-altive.ads, g-alveop.ads, g-alvevi.ads,
5576 g-arrspl.adb, g-busorg.ads, g-calend.adb,
5577 g-calend.ads, g-casuti.ads, g-cgideb.adb,
5578 g-comlin.adb, g-comlin.ads, g-curexc.ads,
5579 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
5580 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
5581 g-dyntab.adb, g-encstr.ads, g-excact.ads,
5582 g-except.ads, g-expect.ads, g-heasor.adb,
5583 g-hesora.adb, g-hesorg.adb, g-htable.ads,
5584 g-locfil.ads, g-md5.adb, g-md5.ads,
5585 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
5586 g-pehage.adb, g-pehage.ads, g-regexp.adb,
5587 g-regexp.ads, g-regpat.adb, g-regpat.ads,
5588 g-soccon-aix.ads, g-soccon-darwin.ads,
5589 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
5590 g-soccon-hpux.ads, g-soccon-irix.ads,
5591 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
5592 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
5593 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
5594 g-soccon-solaris.ads, g-soccon-tru64.ads,
5595 g-soccon-vms.ads, g-soccon-vxworks.ads,
5596 g-soccon.ads, g-socket.adb, g-socket.ads,
5597 g-socthi-mingw.adb, g-socthi-vms.adb,
5598 g-socthi-vxworks.adb, g-soliop-mingw.ads,
5599 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
5600 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
5601 typos.
5602
5603 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
5604
5605 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
5606 if the procedure is imported.
5607
5608 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5609
5610 * adaint.c: Fix warnings.
5611
5612 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5613
5614 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
5615
5616 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5617
5618 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
5619 Fix problem of status check for null file
5620
5621 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5622
5623 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
5624 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
5625 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
5626 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
5627 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
5628 comments.
5629
5630 2008-03-26 Thomas Quinot <quinot@adacore.com>
5631
5632 PR ada/33688
5633 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
5634 Get_Socket_Option): Add support for Receive_Packet_Info.
5635
5636 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
5637 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
5638 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
5639 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
5640 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
5641 new constants SO_REUSEPORT and IP_PKTINFO
5642
5643 2008-03-26 Robert Dewar <dewar@adacore.com>
5644
5645 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
5646 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
5647 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
5648 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
5649 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
5650 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
5651 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
5652 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5653 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
5654 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
5655 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
5656 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
5657 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
5658 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
5659 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
5660 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
5661 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
5662 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
5663 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
5664 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
5665 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
5666 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
5667 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
5668 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
5669 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
5670 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
5671 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
5672 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
5673 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
5674 s-tasloc.adb: Minor reformatting.
5675 Update comments.
5676 Remove "used for" sections from comments.
5677
5678 2008-03-26 Robert Dewar <dewar@adacore.com>
5679
5680 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5681 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5682 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5683 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5684 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5685 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5686 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5687 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5688 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5689 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5690 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5691 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5692 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5693 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5694 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5695 double spaced if it fits on one line and otherwise single spaced.
5696
5697 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5698
5699 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
5700 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
5701 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
5702 or task info if the thread could not be created.
5703
5704 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5705
5706 * gnatvsn.ads (Library_Version): Bump to 4.4.
5707 (Current_Year): Bump to 2008.
5708
5709 2008-03-26 Robert Dewar <dewar@adacore.com>
5710
5711 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
5712
5713 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
5714
5715 * debug.adb: Add debug flags d.r and d.v
5716 Add debug flag .T (Optimize_Alignment (Time))
5717 Add debug flag .S (Optimize_Alignment (Space))
5718
5719 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
5720 depending on setting of relevant debug flags.
5721 Replace use of Warnings_Off by Has_Warnings_Off
5722 (Freeze_Entity): In circuit for warning on suspicious convention
5723 actuals, do not give warning if subprogram has same entity as formal
5724 type, or if subprogram does not come from source.
5725 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
5726 if Optimize_Alignment set to Space.
5727
5728 * frontend.adb: Add call to Sem_Warn.Initialize
5729 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
5730 Reset Optimize_Alignment mode from debug switches .S and .T
5731
5732 * layout.adb (Layout_Composite_Object): Rewritten for
5733 Optimize_Aligment pragma.
5734
5735 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
5736 mode.
5737
5738 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
5739
5740 * par-prag.adb (N_Pragma): Chars field removed, use Chars
5741 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
5742 this change. Add entry for pragma Optimize_Alignment
5743
5744 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
5745 (Pragma_Identifier (..
5746 instead, adjustments throughout to accomodate this change.
5747 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
5748 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
5749 Add implementation of pragma Optimize_Alignment
5750
5751 2008-03-26 Vincent Celier <celier@adacore.com>
5752
5753 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
5754 Improve memory usage to avoid use of stack.
5755
5756 2008-03-26 Robert Dewar <dewar@adacore.com>
5757
5758 * a-teioed.ads: Correct value of Default_Fill
5759
5760 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
5761
5762 2008-03-26 Robert Dewar <dewar@adacore.com>
5763
5764 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
5765 with Current_Output (introduce Self).
5766
5767 2008-03-26 Robert Dewar <dewar@adacore.com>
5768
5769 * checks.adb (Ensure_Valid): Capture valid status if possible
5770 (eliminate checks)
5771
5772 2008-03-26 Robert Dewar <dewar@adacore.com>
5773
5774 * stand.ads: Deal with reordering of package standard declarations
5775
5776 * cstand.adb: Put package Standard declarations in proper order
5777
5778 2008-03-26 Robert Dewar <dewar@adacore.com>
5779
5780 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
5781 (Pragma_Identifier (.. instead.
5782 (OK_To_Reorder_Components): New flag
5783 (Has_Entries): Code cleanup.
5784 (Warnings_Off_Used): New flag
5785 (Warnings_Off_Used_Unmodified): New flag
5786 (Warnings_Off_Used_Unreferenced): New flag
5787 (Has_Warnings_Off): New function
5788 (Has_Unmodified): New function
5789 (Has_Unreferenced): New function
5790 (Is_Trivial_Subprogram): New flag
5791 (Is_Static_Dispatch_Table_Entity): New attribute.
5792 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
5793 (more consistent with other similar names)
5794 (Access_Subprogram_Type): New classification function
5795
5796 2008-03-26 Robert Dewar <dewar@adacore.com>
5797
5798 * errout.ads: Document new !! insertion sequence
5799
5800 * errout.adb (N_Pragma): Chars field removed, use Chars
5801 (Pragma_Identifier (.. instead.
5802 Replace use of Warnings_Off by Has_Warnings_Off
5803 (Error_Msg_Internal): Don't delete warning ending in !!
5804
5805 2008-03-26 Robert Dewar <dewar@adacore.com>
5806
5807 * par.adb (Check_No_Right_Paren): Removed no longer used
5808
5809 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
5810 (Pragma_Identifier (.. instead.
5811
5812 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
5813
5814 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
5815 par-ch4.adb: Minor improvements in error recovery and messages.
5816
5817 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
5818 non-serious
5819
5820 * par-ch9.adb: Minor improvements in error recovery and messages
5821 (P_Protected): Better error recovery for "protected type x;"
5822
5823 * par-util.adb: Minor improvements in error recovery and messages
5824 (Check_No_Right_Paren): Removed no longer used
5825
5826 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5827
5828 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
5829 that the prefix of an attribute is the type of the aggregate being
5830 expanded.
5831
5832 2008-03-26 Javier Miranda <miranda@adacore.com>
5833 Robert Dewar <dewar@adacore.com>
5834
5835 * exp_attr.adb (N_Pragma): Chars field removed.
5836 (Expand_N_Attribute_Reference): If the designated type associated with
5837 attribute 'Unrestricted_Access is a subprogram entity then replace it
5838 by an E_Subprogram_Type itype.
5839 Implement attribute Old
5840
5841 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
5842
5843 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
5844 Replace call to
5845 New_Internal_Entity by call to Create_Itype to centralize calls
5846 building itypes, ad propagate the convention of the designated
5847 subprogram. In addition, disable the machinery cleaning constant
5848 indications from all entities in current scope when 'Unrestricted_Access
5849 corresponds with a node initializing a dispatch table slot.
5850 (Analyze_Attribute): Parameterless attributes returning a string or a
5851 type will not be called with improper arguments, so we can remove junk
5852 code that was dealing with this case.
5853 Implement attribute Old
5854
5855 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
5856 Add entry for pragma Optimize_Alignment
5857 New standard names Sync and Synchronize
5858
5859 2008-03-26 Robert Dewar <dewar@adacore.com>
5860 Arnaud Charlet <charlet@adacore.com>
5861
5862 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
5863 stmt.
5864 (No_Exception_Propagation_Active): New function.
5865 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5866 Update comments, and review all uses of No_Exception_Propagation, which
5867 are now correct and in sync with what gigi expects.
5868
5869 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
5870 function.
5871 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5872 Update comments, and review all uses of No_Exception_Propagation, which
5873 are now correct and in sync with what gigi expects.
5874
5875 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5876
5877 * sem_ch3.adb (Access_Definition): If the access type is the return
5878 result of a protected function, create an itype reference for it
5879 because usage will be in an inner scope from the point of declaration.
5880 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
5881 OK_To_Reorder_Components.
5882 (Make_Index): If an overloaded range includes a universal integer
5883 interpretation, resolve to Standard.Integer.
5884 (Analyze_Subtype_Indication): Copy Convention to subtype
5885 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
5886 limited an synchronized progenitors in type declaration and private
5887 extension declarations.
5888
5889 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
5890 protected subprogram body, determine proper scope from subprogram
5891 declaration.
5892
5893 2008-03-26 Robert Dewar <dewar@adacore.com>
5894
5895 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
5896 No_Run_Time_Mode
5897
5898 2008-03-26 Gary Dismukes <dismukes@adacore.com>
5899
5900 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
5901 of a heap allocator for a limited unconstrained function return when
5902 resstriction No_Allocators is active.
5903 (Analyze_Allocator): The restriction No_Allocators is now only checked
5904 on allocators that have Comes_From_Source set, as per RM-H.4(7).
5905
5906 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
5907 of a heap allocator for a limited unconstrained function return when
5908 resstriction No_Allocators is active.
5909 (Analyze_Allocator): The restriction No_Allocators is now only checked
5910 on allocators that have Comes_From_Source set, as per RM-H.4(7).
5911 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
5912 operands are fixed-point types, the universal_fixed predefined operation
5913 is used, regardless of whether the operand type (s) have a primitive
5914 operation of the same name.
5915
5916 2008-03-26 Javier Miranda <miranda@adacore.com>
5917
5918 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
5919 Is_Static_Dispatch_Table
5920 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
5921 to Exchange_Declarations to exchange the private and full-view. Bug
5922 found working in this issue.
5923 (Expand_Dispatching_Call): Propagate the convention of the subprogram
5924 to the subprogram pointer type.
5925 (Make_Secondary_DT): Replace generation of Prim'Address by
5926 Address (Prim'Unrestricted_Access)
5927 (Make_DT): Replace generation of Prim'Address by
5928 Address (Prim'Unrestricted_Access)
5929 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
5930 simple call form for single entry.
5931 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
5932 tables of predefined primitives).
5933 (Make_Secondary_DT): Add support to handle access to dispatch tables of
5934 predefined primitives.
5935 (Make_Tags): Add entities to Access_Dispatch_Table associated with
5936 access to dispatch tables containing predefined primitives.
5937
5938 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
5939 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
5940 this change.
5941 (Register_Predefined_DT_Entry): Updated to handle the new contents
5942 of attribute Access_Disp_Table (pointers to dispatch tables containing
5943 predefined primitives).
5944
5945 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5946 subprogram.
5947 (Find_Interface_ADT): Updated to skip the new contents of attribute
5948 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5949 primitives).
5950
5951 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5952 concurrent types.
5953 (Set_Convention): Use new function Is_Access_Subprogram_Type
5954 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5955 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5956 primitives).
5957
5958 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5959 expanded code avoiding calls to Build_Predef_Prims.
5960 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5961 call to Build_Get_Predefined_Prim_Op_Address.
5962
5963 2008-03-26 Javier Miranda <miranda@adacore.com>
5964
5965 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5966 subprogram Corresponding_Runtime_Package to know the runtime package
5967 that will provide support to a given protected type.
5968
5969 * exp_ch9.adb (Add_Private_Declarations,
5970 Build_Protected_Subprogram_Call,
5971 Build_Protected_Entry, Build_Simple_Entry_Call,
5972 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5973 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5974 cleanup using the new centralized subprogram Corresponding_Runtime
5975 Package to know the runtime package that provides support to
5976 a given protected type.
5977
5978 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5979
5980 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5981 assignment is within the initialization procedure for a packed array,
5982 and Initialize_Scalars is enabled, compile right-hand side with checks
5983 off, because the value is purposely out of range.
5984
5985 2008-03-26 Vincent Celier <celier@adacore.com>
5986
5987 * gnatcmd.adb: Add processing for GNAT SYNC
5988
5989 * vms_conv.ads: (Command_Type): Add command Sync
5990
5991 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5992
5993 * vms_data.ads: Add entries for -gnatw.w
5994 Add qualifier for gnatstub --header-file option
5995 Add switches for GNAT SYNC
5996
5997 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5998 (Add_Package_Name): New procedure
5999 (Package_Name_List): New function
6000 (Initialize): Add known package names to the list
6001 (Register_New_Package): Add the new package name to the list
6002
6003 2008-03-26 Robert Dewar <dewar@adacore.com>
6004
6005 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6006 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6007 Raise_Exception by "raise with" construct.
6008
6009 2008-03-26 Pascal Obry <obry@adacore.com>
6010
6011 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6012 supported platforms.
6013
6014 * Makefile.rtl: Add g-sercom.o.
6015
6016 * impunit.adb: Add g-sercom.adb.
6017
6018 * s-crtl.ads (open): New routine.
6019 (close): Likewise.
6020 (write): Likewise.
6021
6022 * s-osinte-mingw.ads (BYTE): New type.
6023 (CHAR): Likewise.
6024 (OVERLAPPED): Likewise.
6025 (GENERIC_READ): New constant.
6026 (GENERIC_WRITE): Likewise.
6027 (OPEN_EXISTING): Likewise.
6028 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6029 type instead.
6030 (CreateFile): New routine.
6031 (WriteFile): Likewise.
6032 (ReadFile): Likewise.
6033 (CloseHandle): Move next to the other file oriented routines.
6034
6035 * g-sercom.ads: New unit.
6036
6037 * g-sercom.adb: Default implementation, calls to this unit will raise
6038 a program error exception.
6039
6040 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6041 GNU/Linux implementations.
6042
6043 2008-03-26 Robert Dewar <dewar@adacore.com>
6044
6045 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6046
6047 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6048 unchecked conversion for different conventions only for subprogram
6049 pointers or on VMS.
6050
6051 2008-03-26 Vincent Celier <celier@adacore.com>
6052
6053 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6054 to check if the specified object file is correct.
6055
6056 2008-03-26 Thomas Quinot <quinot@adacore.com>
6057
6058 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6059 Comes_From_Source to exclude primitives from being checked. We want to
6060 exclude predefined primitives only, so use the appropriate specific
6061 predicate. Also, flag a formal parameter of an anonymous
6062 access-to-subprogram type as illegal for a primitive operation of a
6063 remote access to class-wide type.
6064
6065 2008-03-26 Vincent Celier <celier@adacore.com>
6066
6067 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6068 known, check if it may be a missspelling of a known package name. In
6069 not verbose, not mode, issue warnings only if the package name is a
6070 possible misspelling.
6071 In verbose mode, always issue a warning for a not known package name,
6072 plus a warning if the name is a misspelling of a known package name.
6073
6074 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6075 limited withs or limited withs are parse during one call.
6076 (Parse_Single_Project): Post parse context clause in two passes: non
6077 limited withs before current project and limited withs after current
6078 project.
6079
6080 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6081 project with the name With_Name, even if it is only extended indirectly.
6082 (Recursive_Process): Process projects in order: first single withs, then
6083 current project, then limited withs.
6084
6085 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6086 project with the name With_Name, even if it is only extended indirectly.
6087
6088 2008-03-26 Robert Dewar <dewar@adacore.com>
6089
6090 * scn.adb (Initialize_Scanner): Format messages belong on standard error
6091
6092 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6093
6094 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6095 a generic subprogram that is imported, do not attempt to compile
6096 non-existent body.
6097
6098 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6099 imported, do not generate a raise_program_error for the non-existent
6100 body.
6101 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6102 perform minimal name resolution on the generic to avoid spurious
6103 warnings.
6104 (Find_Actual_Type): the designated type of the actual in a child unit
6105 may be declared in a parent unit without being an actual.
6106
6107 2008-03-26 Robert Dewar <dewar@adacore.com>
6108
6109 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6110 * sinfo.ads, sinfo.adb (From_At_End): New flag
6111
6112 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6113
6114 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6115 operations that have an interface parameter.
6116 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6117 Don't treat No_Return call as raise.
6118
6119 * sem_disp.adb (Check_Dispatching_Operations): apply check for
6120 non-primitive interface primitives to access parameters, not to all
6121 parameters of an access type.
6122
6123 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6124
6125 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6126 declarations of a parent unit are made visible when compiling a child
6127 instance, the parent is not a hidden open scope, even though it may
6128 contain other pending instance.
6129
6130 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6131 hidden open scope for some child instance, it does affect the
6132 visibility status of other stach entries.
6133 (Analyze_Object_Renaming): Check that a class-wide object cannot be
6134 renamed as an object of a specific type.
6135
6136 2008-03-26 Robert Dewar <dewar@adacore.com>
6137
6138 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6139 recursion and raise SE directly.
6140 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6141 set for formal type for IN mode parameter.
6142
6143 2008-03-26 Robert Dewar <dewar@adacore.com>
6144
6145 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6146 (Initialize): New procedure
6147 (Output_Warnings_Off_Warnings): New procedure
6148 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6149 (Output_Non_Modifed_In_Out_Warnings): Ditto
6150 (Warn_On_Unreferenced_Entity): Ditto
6151
6152 2008-03-26 Vincent Celier <celier@adacore.com>
6153
6154 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6155 readable.
6156
6157 2008-03-26 Matthew Heaney <heaney@adacore.com>
6158
6159 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
6160 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6161 Marked with clauses as private, and controlled operations as overriding
6162
6163 2008-03-26 Robert Dewar <dewar@adacore.com>
6164
6165 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6166
6167 2008-03-26 Robert Dewar <dewar@adacore.com>
6168
6169 * back_end.adb, back_end.ads: Minor reformatting
6170
6171 * bindgen.adb: Minor clarification of comments
6172
6173 * fname.ads: Minor comment fixes
6174
6175 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6176 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6177
6178 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6179 xsnames.adb: Remove warnings off pragma no longer needed
6180
6181 * a-catizo.ads, a-calari.ads, a-calfor.adb,
6182 a-calfor.ads: Fix header.
6183
6184 2008-03-26 Tristan Gingold <gingold@adacore.com>
6185
6186 * init.c: Do not adjust pc for HPARITH on alpha/vms.
6187
6188 2008-03-26 Robert Dewar <dewar@adacore.com>
6189
6190 * lib-xref.adb: (OK_To_Set_Reference): New function
6191 (Generate_Reference): Don't set referenced from occurrence in Warnings,
6192 Unmodified, or Unreferenced pragma
6193
6194 2008-03-26 Robert Dewar <dewar@adacore.com>
6195
6196 * alloc.ads: Add entries for Warnings_Off_Pragmas table
6197
6198 2008-03-26 GNAT Script <nobody@adacore.com>
6199
6200 * Make-lang.in: Makefile automatically updated
6201
6202 2008-03-26 Robert Dewar <dewar@adacore.com>
6203
6204 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6205 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6206 removed, use Chars (Pragma_Identifier (.. instead, adjustments
6207 throughout to accomodate this change.
6208
6209 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6210
6211 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6212 Einfo.Set_Needs_Debug_Info)
6213
6214 2008-03-26 Robert Dewar <dewar@adacore.com>
6215
6216 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6217 Add description for the new gnatstub option '--header-file'
6218 clarification of -gnatwz/-gnatwZ
6219 Add a "Irix-Specific Considerations" section to document the need to
6220 set LD_LIBRARY_PATH when using the default shared runtime library.
6221 Added documentation for both gcov and gprof.
6222
6223 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6224 messages that are not suppressed when clients are compiled.
6225 Add documentation of s-pooglo s-pooloc
6226 Document the new GNAT.Serial_Communications API.
6227 Add documentation for 'Old attribute
6228 Add description of pragma Optimize_Alignment
6229
6230 * ug_words: Add entries for -gnatw.w -gnatw.W
6231
6232 * usage.adb: Add line for -gnatw.w (warn on warnings off)
6233
6234 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
6235
6236 Revert
6237 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
6238 PR ada/35186
6239 * decl.c (maybe_pad_type): Avoid padding an integral type when
6240 bumping its alignment is sufficient.
6241
6242 2008-03-25 Arnaud Charlet <charlet@adacore.com>
6243
6244 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6245 Fix wrong formatting (lines too long)
6246
6247 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6248
6249 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6250 a-calend-vms.adb, a-calend.adb, a-calend.ads,
6251 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6252 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6253 a-cohama.ads, a-comlin.ads, a-coorse.adb,
6254 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6255 a-except-2005.ads, a-except.adb, a-except.ads,
6256 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6257 a-exextr.adb, a-filico.ads, a-finali.ads,
6258 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6259 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6260 a-sequio.ads, a-strbou.ads, a-strfix.adb,
6261 checks.adb, exp_ch3.adb, exp_ch4.adb,
6262 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6263 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6264 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6265 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6266 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6267
6268 2008-03-24 Robert Dewar <dewar@adacore.com>
6269
6270 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6271 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6272 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6273 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6274 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6275 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6276 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6277 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6278 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6279 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6280 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6281 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6282 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6283 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6284 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6285 double spaced if it fits on one line and otherwise single spaced.
6286
6287 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6288
6289 PR documentation/15479
6290 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
6291 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
6292 (doc/gnat_ugn.info): Renamed from ...
6293 (doc/gnat_ugn_unw.info): ... this.
6294 (doc/gnat_ugn.dvi): Renamed from ...
6295 (doc/gnat_ugn_unw.dvi): ... this.
6296 (doc/gnat_ugn.pdf): Renamed from ...
6297 (doc/gnat_ugn_unw.pdf): ... this.
6298 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
6299 Adjusted.
6300 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
6301 unconditionally to gnat_ugn.info. Fix cross references to the
6302 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
6303 and GNU make manuals to be proper texinfo links.
6304 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
6305
6306 2008-03-21 Olivier Hainque <hainque@adacore.com>
6307
6308 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
6309 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
6310
6311 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
6312
6313 * trans.c (addressable_p): Add notes on addressability issues.
6314
6315 2008-03-21 Olivier Hainque <hainque@adacore.com>
6316 Ed Schonberg <schonberg@adacore.com>
6317
6318 * trans.c (addressable_p): Accept COND_EXPR when both arms
6319 are addressable.
6320 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
6321 (call_to_gnu): Do not use name reference in the error message
6322 for a misaligned by_reference_parameter. The actual may be a
6323 general expression.
6324
6325 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
6326
6327 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6328
6329 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6330
6331 * gnat_rm.texi (Implementation Defined Characteristics)
6332 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
6333 appropriate.
6334 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
6335 (Switches for gnatchop, Installing a library): Likewise.
6336
6337 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
6338
6339 * trans.c (emit_range_check): Do not emit the check if the base type
6340 of the expression is the type against which its range must be checked.
6341
6342 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6343
6344 * decl.c (maybe_pad_type): Use value_factor_p.
6345
6346 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6347
6348 * lang.opt (nostdlib): Move around.
6349 * misc.c (gnat_handle_option): Fix formatting.
6350 (gnat_dwarf_name): Move around.
6351 * trans.c (Case_Statement_to_gnu): Fix formatting.
6352 (gnat_to_gnu): Likewise.
6353 * utils.c (aggregate_type_contains_array_p): Likewise.
6354 (create_subprog_decl): Likewise.
6355
6356 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6357
6358 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
6359 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
6360
6361 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6362
6363 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
6364 BIGGEST_ALIGNMENT when capping the alignment of records with
6365 strict alignment and size clause.
6366
6367 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6368
6369 * lang-specs.h: Pass -gnatwa if -Wall is passed.
6370 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
6371 and -Wuninitialized.
6372 (gnat_post_options): Clear warn_unused_parameter.
6373
6374 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6375
6376 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
6377 aligned bit-fields, bumping the alignment of the record type if deemed
6378 profitable.
6379 (value_factor_p): Return false instead of 0.
6380
6381 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6382
6383 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
6384 for scalar types with small alignment.
6385
6386 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6387
6388 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
6389 from that of the front-end's end label.
6390 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
6391 from that of the loop label.
6392
6393 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
6394
6395 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
6396 comment for the packed array type case.
6397 * utils.c (build_template): Use a loop to strip padding or
6398 containing records for justified modular types.
6399
6400 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
6401
6402 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
6403 large alignments specified for types.
6404 (validate_alignment): Minor cleanup.
6405
6406 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
6407
6408 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
6409 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
6410 the component for packing, if possible, as well as if a component
6411 size clause is specified.
6412 <E_Record_Subtype>: For an array type used to implement a packed
6413 array, get the component type from the original array type.
6414 Try to get a smaller form of the component for packing, if possible,
6415 as well as if a component size clause is specified.
6416 (round_up_to_align): New function.
6417 (make_packable_type): Add in_record parameter.
6418 For a padding record, preserve the size. If not in_record and the
6419 size is too large for an integral mode, attempt to shrink the size
6420 by lowering the alignment.
6421 Ditch the padding bits of the last component.
6422 Compute sizes and mode manually, and propagate the RM size.
6423 Return a BLKmode record type if its size has shrunk.
6424 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
6425 Use Original_Array_Type to retrieve the type in case of an error.
6426 Adjust call to make_packable_type.
6427 (gnat_to_gnu_field): Likewise.
6428 (concat_id_with_name): Minor tweak.
6429 * trans.c (larger_record_type_p): New predicate.
6430 (call_to_gnu): Compute the nominal type of the object only if the
6431 parameter is by-reference. Do the conversion actual type -> nominal
6432 type if the nominal type is a larger record.
6433 (gnat_to_gnu): Do not require integral modes on the source type to
6434 avoid the conversion for types with identical names.
6435 (addressable_p): Add gnu_type parameter. If it is specified, do not
6436 return true if the expression is not addressable in gnu_type.
6437 Adjust recursive calls.
6438 * utils.c (finish_record_type): Remove dead code.
6439
6440 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
6441
6442 PR ada/35186
6443 * decl.c (maybe_pad_type): Avoid padding an integral type when
6444 bumping its alignment is sufficient.
6445
6446 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6447
6448 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
6449 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
6450 statement.
6451 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
6452 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
6453 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
6454 code output strings.
6455 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
6456 system-vms_64.ads: Fix typos in ada source code comments.
6457 * sinfo-cn.adb: Remove incomplete sentence.
6458
6459 PR documentation/15479
6460 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
6461
6462 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
6463
6464 PR ada/22255
6465 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
6466
6467 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
6468
6469 PR ada/34799
6470 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
6471 that underlying type is present.
6472
6473 2008-02-26 Tom Tromey <tromey@redhat.com>
6474
6475 * misc.c (internal_error_function): Remove test of
6476 USE_MAPPED_LOCATION.
6477 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
6478 (Sloc_to_locus): Remove old location code.
6479
6480 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6481
6482 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
6483 `i.e.' by adding comma or `@:' as appropriate.
6484 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
6485 plain characters `C', use `@samp{C}'.
6486 * gnat_ugn.texi (File Naming Rules, About gnatkr)
6487 (Krunching Method): Likewise.
6488
6489 * gnat_ugn.texi (Conventions): List environment variables and
6490 metasyntactic variables.
6491 (Compiling Programs): Fix notation of metasyntactic variables.
6492 Add @file where appropriate. Use @file for file extensions,
6493 @samp for strings.
6494 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
6495 instead of @file, @env instead of @code.
6496
6497 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6498
6499 PR documentation/15479
6500 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
6501 and `...' with `@dots{}' or `@enddots{}'.
6502
6503 PR documentation/15479
6504 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
6505 use @command instead of @code, @option instead of @samp or @code,
6506 @code instead of @var, @samp instead of @file.
6507
6508 PR documentation/15479
6509 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
6510 in Makefile rules, by using `&&' rather than `;'.
6511
6512 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6513
6514 PR documentation/15479
6515 * gnat_ugn.texi: In non-code, avoid space before colon.
6516 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
6517 (Examples of gnatxref Usage): Use @command{vi} instead of
6518 @file{vi}.
6519 (Character Set Control): Do not use @code for UTF-8.
6520 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
6521 use @code for IEEE.
6522 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
6523 sample.
6524 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
6525
6526 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
6527
6528 PR ada/35143
6529 * env.c: Add __rtems__ to if defined.
6530 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
6531 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
6532 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
6533 pragma Convention as required.
6534 * gsocket.h: Make compile in and out of RTS.
6535 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
6536 Use g-soccon-rtems.ads.
6537 * g-soccon-rtems.ads, system-rtems.ads: New files.
6538
6539 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6540
6541 PR other/35107
6542 * Make-lang.in (gnat1): Add $(GMPLIBS).
6543
6544 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
6545
6546 * decl.c (components_to_record): Improve comment.
6547
6548 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
6549
6550 * decl.c (components_to_record): Do not reuse the empty union type
6551 if there is a representation clause on the record.
6552 * trans.c (addressable_p): Return true for INTEGER_CST.
6553
6554 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
6555
6556 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
6557 in pointer arithmetics.
6558 * utils2.c (build_allocator): Likewise.
6559
6560 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
6561
6562 * utils.c (build_function_stub): Properly build the call expression.
6563
6564 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
6565
6566 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
6567 before converting the expression to the type of the object.
6568 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
6569 Stabilize constructors for special wrapping types.
6570
6571 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
6572
6573 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6574 when necessary. Merge some conditional statements. Update comments.
6575 Rename unchecked_convert_p local variable to suppress_type_conversion.
6576 Do not suppress conversions in the In case.
6577 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
6578 into account on non strict-alignment platforms.
6579
6580 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
6581
6582 * utils.c (aggregate_type_contains_array_p): New predicate.
6583 (create_field_decl): In a packed record, force byte alignment
6584 for fields without specified position that contain an array.
6585
6586 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
6587
6588 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
6589
6590 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
6591
6592 PR ada/34466
6593 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
6594 sysconf call.
6595 (bit_field): New packed boolean type used by cpu_set_t.
6596 (cpu_set_t): New type corresponding to the C type with
6597 the same name. Note that on the Ada side we use a bit
6598 field array for the affinity mask. There is not need
6599 for the C macro for setting individual bit.
6600 (pthread_setaffinity_np): New imported routine.
6601
6602 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
6603
6604 PR ada/34647
6605 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6606 on OpenBSD as is done on other BSD systems.
6607
6608 PR ada/34645
6609 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
6610 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
6611 I/O.
6612
6613 PR ada/34644
6614 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
6615 clearenv().
6616
6617 PR ada/34646
6618 * init.c (__gnat_error_handler, __gnat_install_handler,
6619 __gnat_init_float): Define for OpenBSD.
6620
6621 * initialize.c (__gnat_initialize): Define for OpenBSD.
6622
6623 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
6624
6625 PR ada/34553
6626 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6627 instead of mktemp() or tmpnam() on NetBSD.
6628
6629 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
6630
6631 * trans.c (call_to_gnu): Make the temporary for non-addressable
6632 In parameters passed by reference.
6633 (addressable_p): Return true for STRING_CST and CALL_EXPR.
6634
6635 2007-12-19 Robert Dewar <dewar@adacore.com>
6636
6637 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
6638 Add pragma Warnings (Off) for unassigned IN OUT arguments
6639
6640 * sem_warn.adb (Output_Reference): Suppress messages for internal names
6641 (Check_References): Extensive changes to tune up warnings
6642 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
6643 (Has_Pragma_Unmodifed_Check_Spec): New function
6644 (Check_References): Implement pragma Unmodified
6645 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
6646
6647 * par-prag.adb: Dummy entry for pragma Unmodified
6648
6649 * sem_prag.adb: Implement pragma Unmodified
6650
6651 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
6652 (Proc_Next_Component_Or_Discriminant): Fix typo.
6653 Update comments.
6654
6655 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
6656 Unmodified.
6657 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
6658 because the former already takes care of discarding the result.
6659 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
6660 Add comment.
6661
6662 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
6663
6664 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
6665
6666 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
6667 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
6668 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
6669 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
6670 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6671 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6672 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6673 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6674 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6675 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
6676 (Dynamic_Trampolines_Used): Delete.
6677
6678 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
6679 Turn on stack probing mechanism on LynxOS.
6680
6681 2007-12-19 Bob Duff <duff@adacore.com>
6682
6683 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
6684 the resulting tail recursion by hand. This prevents running out of
6685 memory on deeply nested concatenations, since Field2 is where the left
6686 operand of concatenations is stored.
6687 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
6688 clarify that it can only return OK or Abandon.
6689
6690 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
6691 operand by iteration, in order to avoid running out of memory on
6692 deeply-nested concatenations. Use the Parent pointer to get back up the
6693 tree.
6694 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
6695 Resolve_Op_Concat_Rest): New procedures split out of
6696 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
6697 clearer.
6698
6699 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
6700 Traverse_Func, because the former already takes care of discarding the
6701 result.
6702
6703 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
6704 because the former already takes care of discarding the result.
6705 (Remove_Warning_Messages): Use appropriate subtype for Status and
6706 Discard
6707
6708 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6709
6710 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
6711 discriminants forces expansion of the aggregate into assignments.
6712 (Init_Record_Controller): If the type of the aggregate is untagged and
6713 is not inherently limited, the record controller is not limited either.
6714
6715 2007-12-19 Robert Dewar <dewar@adacore.com>
6716
6717 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
6718 handling compile time known size of record or array (case of front end
6719 layout active, e.g. in GNAAMP).
6720
6721 2007-12-19 Javier Miranda <miranda@adacore.com>
6722
6723 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
6724 that forces the construction of static dispatch tables in case of
6725 record subtypes.
6726
6727 2007-12-19 Robert Dewar <dewar@adacore.com>
6728
6729 * exp_ch9.adb (Null_Statements): Moved to library level
6730 (Trivial_Accept_OK): New function
6731 (Expand_Accept_Declaration): Use Trivial_Accept_OK
6732 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
6733
6734 2007-12-19 Robert Dewar <dewar@adacore.com>
6735
6736 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
6737 in complex case where array is Volatile.
6738
6739 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6740
6741 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
6742 properly the Ada2005 rules concerning when the current instance of a
6743 record type is aliased.
6744
6745 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6746
6747 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
6748 mangled declaration
6749 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
6750 declarations.
6751 (P_Variant_Part): Cleaner patch for parenthesized discriminant
6752
6753 2007-12-19 Vincent Celier <celier@adacore.com>
6754
6755 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
6756 package is not known
6757
6758 * prj-attr.ads (Unknown_Package): New constant
6759 Do not crash when an unknown package is in several projects
6760
6761 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
6762 ignored
6763
6764 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
6765 existing package Language_Processing.
6766
6767 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6768 Gary Dismukes <dismukes@adacore.com>
6769 Samuel Tardieu <sam@rfc1149.net>
6770
6771 PR ada/15803, ada/15805
6772 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
6773 illegal access subtypes when there is a constrained partial view.
6774 (Check_For_Premature_Usage): New procedure inside
6775 Access_Subprogram_Declaration for checking that an access-to-subprogram
6776 type doesn't reference its own name within any formal parameters or
6777 result type (including within nested anonymous access types).
6778 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
6779 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
6780 context is an access_to_variable, the expression cannot be an
6781 access_to_constant.
6782
6783 2007-12-19 Bob Duff <duff@adacore.com>
6784
6785 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
6786 (Analyze_Concatenation): Use iteration instead of recursion in order
6787 to avoid running out of stack space for deeply nested concatenations.
6788
6789 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6790 Gary Dismukes <dismukes@adacore.com>
6791
6792 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
6793 whose renamed entity is a subprogram that requires overriding.
6794 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
6795 issuing an error for premature usage and issue a message that says
6796 'type' rather than 'object'.
6797
6798 2007-12-19 Gary Dismukes <dismukes@adacore.com>
6799
6800 PR ada/34149
6801 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
6802 presence of a statically tagged operand (Present (Static_Tag)) with
6803 test for Indeterm_Ancestor_Call when determining whether to propagate
6804 the static tag to tag-indeterminate operands (which forces dispatching
6805 on such calls).
6806 (Check_Controlling_Formals): Ada2005, access parameters can have
6807 defaults.
6808 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
6809 not insert subprogram in list of primitive operations if already there.
6810
6811 2007-12-19 Tristan Gingold <gingold@adacore.com>
6812
6813 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
6814 global variable.
6815
6816 2007-12-19 Thomas Quinot <quinot@adacore.com>
6817
6818 Part of PR ada/33688
6819 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
6820 datagram info on Linux.
6821
6822 2007-12-19 Vincent Celier <celier@adacore.com>
6823
6824 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
6825 that the source path name is always found in the dependencies.
6826
6827 2007-12-19 Robert Dewar <dewar@adacore.com>
6828
6829 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
6830 Fix name of Wide_Wide_Latin_1/9 file names
6831 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
6832 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
6833 Add missing documentation for Ada.Command_Line.Response_File
6834 Update list of warning letters for Warnings pragma
6835 Add documentation for pragma Unmodified
6836
6837 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
6838
6839 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
6840
6841 2007-12-17 Arnaud Charlet <charlet@adacore.com>
6842
6843 * s-vxwork-alpha.ads: Removed, no longer used.
6844
6845 2007-12-15 Jakub Jelinek <jakub@redhat.com>
6846
6847 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
6848
6849 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
6850
6851 PR ada/34360
6852 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
6853 mlib-tgt-specific.adb.
6854
6855 2007-12-13 Bob Duff <duff@adacore.com>
6856
6857 * trans.c (Attribute_to_gnu): Check for violations of the
6858 No_Implicit_Dynamic_Code restriction. This checking used to be done in
6859 the front end, but is moved here so we can make it more accurate.
6860
6861 2007-12-13 Pascal Obry <obry@adacore.com>
6862
6863 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
6864 version is provided for older GNU/Linux distribution not
6865 supporting thread affinity sets.
6866
6867 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
6868 call.
6869 (bit_field): New packed boolean type used by cpu_set_t.
6870 (cpu_set_t): New type corresponding to the C type with
6871 the same name. Note that on the Ada side we use a bit
6872 field array for the affinity mask. There is not need
6873 for the C macro for setting individual bit.
6874 (pthread_setaffinity_np): New imported routine.
6875
6876 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
6877 no null.
6878 (Create_Task): Set the processor affinity mask if information
6879 is present.
6880
6881 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
6882
6883 2007-12-13 Robert Dewar <dewar@adacore.com>
6884
6885 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6886 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
6887 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
6888 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
6889 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
6890 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
6891 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
6892 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
6893 for subprogram pointers.
6894
6895 * g-ctrl_c.adb: New file.
6896
6897 * g-ctrl_c.ads (Install_Handler): New body.
6898
6899 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
6900 instead of obsolete function Is_Always_Inlined.
6901 (Freeze_Entity): check for tagged type in imported C subprogram
6902 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
6903 (Freeze_Entity): check for convention Ada subprogram pointer in
6904 imported C subprogram.
6905 (Freeze_Fixed_Point_Type): In the case of a base type where the low
6906 bound would be chopped off and go from negative to zero, force
6907 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
6908 bound) so that the size computation for the base type will take
6909 negative values into account.
6910
6911 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
6912 Bob Duff <duff@adacore.com>
6913 Tristan Gingold <gingold@adacore.com>
6914
6915 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
6916 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6917 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6918 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6919 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6920 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6921 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
6922 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
6923 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
6924 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
6925 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
6926 (Always_Compatible_Rep): New flag to control trampolines globally.
6927 (Dynamic_Trampolines_Used): New flag for implementing the
6928 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
6929 and not yet set correctly for some targets).
6930
6931 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
6932 Simply indirectly call s-stchop when a task is created.
6933
6934 * ali.ads:
6935 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
6936 appears as an argument (entries A) in an ALI file.
6937
6938 * fe.h (Stack_Check_Limits): Declare new target parameter.
6939 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
6940
6941 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6942 This variable is declared in C to be sure not subject to elaboration
6943 code.
6944 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6945 Storage_Error.
6946
6947 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6948 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6949
6950 * s-stchop.ads: Add comments.
6951
6952 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6953 limit method of stack checking.
6954
6955 * s-stchop-limit.ads: New file.
6956
6957 2007-12-13 Robert Dewar <dewar@adacore.com>
6958
6959 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
6960 a-cihama.adb, g-awk.adb,
6961 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6962 warnings
6963
6964 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6965
6966 * sem.adb: Update handling of assigned value/unreferenced warnings
6967
6968 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6969
6970 * lib-xref.ads: Improve documentation for k xref type
6971
6972 * lib-xref.adb:
6973 Update handling of assigned value/unreferenced warnings
6974 (Generate_Reference): Warning for reference to entity for which a
6975 pragma Unreferenced has been given should be unconditional.
6976 If the entity is a discriminal, mark the original
6977 discriminant as referenced.
6978
6979 * sem_warn.ads, sem_warn.adb
6980 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6981 no entities referenced in package
6982 (Check_One_Unit): Don't give message about no entities referenced in
6983 a package if a pragma Unreferenced has appeared.
6984 Handle new warning flag -gnatw.a/-gnatw.A
6985 Update handling of assigned value/unreferenced warnings
6986
6987 * atree.h: Add flags up to Flag247
6988 (Flag231): New macro.
6989
6990 2007-12-13 Jose Ruiz <ruiz@adacore.com>
6991
6992 * adaint.h: (__gnat_plist_init): Not defined for RTX.
6993
6994 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6995 RTX systems.
6996
6997 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6998 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6999 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7000 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7001
7002 * mingw32.h:
7003 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7004
7005 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7006 since we only have problems with Windows 95/98, which are not
7007 supported by RTX.
7008 (__gnat_ttyname): Return the empty string on Nucleus, just as
7009 done on vxworks.
7010
7011 2007-12-13 Robert Dewar <dewar@adacore.com>
7012
7013 * a-textio.adb, a-textio.ads:
7014 Extensive changes to private part for wide character encoding
7015
7016 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7017 (Look_Ahead): Fix mishandling of encoded sequences
7018 Move declaration of Wch_Con to private part (should not be visible)
7019
7020 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7021 UTF-8. Probably this is never used, but if it is, brackets is
7022 clearly correct.
7023
7024 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7025 setting wide character encoding for no main program case and when
7026 encoding is specified using -W?
7027 Initialize stack limit of environment task if stack limit method of
7028 stack checking is enabled.
7029 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7030 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7031 (Get_Main_Unit_Name): New function.
7032 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7033 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7034
7035 * bindusg.adb: Add line for -Wx switch
7036
7037 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7038 Add comments
7039 Add new useful constant WC_Longest_Sequences
7040
7041 * switch-b.adb: Clean up handling of -Wx switch
7042 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7043
7044 * switch-c.adb: -gnatg activates warning on assertion errors
7045 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7046
7047 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7048
7049 2007-12-13 Robert Dewar <dewar@adacore.com>
7050 Ed Schonberg <schonberg@adacore.com>
7051
7052 * a-ngcoty.adb: New pragma Fast_Math
7053
7054 * opt.adb: New pragma Fast_Math
7055
7056 * par-prag.adb:
7057 Add Implemented_By_Entry to the list of pragmas which do not require any
7058 special processing.
7059 (Favor_Top_Level): New pragma.
7060 New pragma Fast_Math
7061
7062 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7063 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7064 Expand_Allocator_Expression): Take into account VM_Target
7065 (Expand_Attribute, case 'Identity): Handle properly the case where
7066 the prefix is a task interface.
7067 New pragma Fast_Math
7068
7069 * par.adb (Next_Token_Is): New function
7070 (P_Pragma): Add Skipping parameter
7071 (U_Left_Paren): New procedure
7072 (U_Right_Paren): New procedure
7073 New pragma Fast_Math
7074
7075 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7076 subunit
7077 New pragma Fast_Math
7078
7079 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7080 Implemented_By_Entry.
7081 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7082 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7083 items, since it can apply to more than one overloadable entity. Set
7084 new flag Has_Pragma_Inline_Always for Inline_Always case.
7085 (Analyze_Pragma, case Complex_Representation): Improve error message.
7086 (Analyze_Pragma, case Assert): When assertions are disabled build the
7087 rewritten code with Sloc of expression rather than pragma, so new
7088 warning about failing is not deleted.
7089 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7090 protected types and update error message to reflect that. Test whether
7091 the protected type is allowed for the pragma (an error is issued if the
7092 type has any entries, or components that do not have preelaborable
7093 initialization).
7094 New pragma Fast_Math
7095 (Analyze_Pragma, case No_Return): Handle generic instance
7096
7097 * snames.h, snames.ads, snames.adb:
7098 Add new predefined name for interface primitive _Disp_Requeue.
7099 New pragma Fast_Math
7100
7101 * a-tags.ads, a-tags.adb: New calling sequence for
7102 String_To_Wide_[Wide_]String
7103 (Secondary_Tag): New subprogram.
7104
7105 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7106 from Exp_Attr
7107 New calling sequence for String_To_Wide_[Wide_]String
7108 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7109 the use of the secondary stack for image routines.
7110
7111 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7112 calling sequence for String_To_Wide_[Wide_]String
7113
7114 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7115 Ada 95 mode
7116 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7117 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7118
7119 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7120 (P_Formal_Part): Use Skipping parameter in P_Pragma call
7121 to improve error recovery
7122
7123 * par-util.adb (Next_Token_Is): New function
7124 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7125
7126 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7127 semicolon if missing
7128 (P_Pragma): Implement new Skipping parameter
7129 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7130 Fix location of flag for unrecognized pragma message
7131
7132 * par-tchk.adb (U_Left_Paren): New procedure
7133 (U_Right_Paren): New procedure
7134
7135 2007-12-13 Geert Bosch <bosch@adacore.com>
7136
7137 * a-tifiio.adb:
7138 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7139 the second or later Scaled_Divide would omit leading zeroes,
7140 resulting in too few digits produced and a Layout_Error as result.
7141 (Put): Initialize Pos.
7142
7143 2007-12-13 Robert Dewar <dewar@adacore.com>
7144
7145 atree.ads, atree.adb (Flag231..Flag247): New functions
7146 (Set_Flag231..Set_Flag247): New procedures
7147 (Basic_Set_Convention): Rename Set_Convention to be
7148 Basic_Set_Convention
7149 (Nkind_In): New functions
7150 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7151
7152 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7153 instead
7154 of obsolete function Is_Always_Inlined
7155 (Register_Predefined_DT_Entry): Initialize slots of the second
7156 secondary dispatch table.
7157 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7158 (Expand_N_Function_Call): Remove special provision for stack checking.
7159
7160 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7161 Include _Disp_Requeue in the list of predefined operations.
7162 (Find_Interface_ADT): Modified to fulfill the new specification.
7163 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7164
7165 * par-ch4.adb, nlists.ads, nlists.adb:
7166 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7167
7168 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7169 Fix location of flag for unrecognized pragma message
7170
7171 * sem_ch7.adb: Use Nkind_In
7172
7173 2007-12-13 Vincent Celier <celier@adacore.com>
7174
7175 * opt.ads:
7176 Indicate what flags are used by the Project Manager, gprbuild and
7177 gprclean.
7178 (Opt.Follow_Links_For_Dirs): New flag
7179 (Warn_On_Assertion_Failure): New flag
7180 (Wide_Character_Encoding_Method_Specified): New flag
7181 (Suppress_All_Inlining): New switch set by -fno-inline
7182 (Real_VMS_Target): New flag
7183 New pragma Fast_Math
7184
7185 2007-12-13 Robert Dewar <dewar@adacore.com>
7186
7187 * back_end.adb: Recognize -fno-inline
7188
7189 2007-12-13 Robert Dewar <dewar@adacore.com>
7190
7191 * checks.adb: Fix optimization problem with short-circuited form
7192
7193 2007-12-13 Bob Duff <duff@adacore.com>
7194
7195 * clean.adb (Usage): Add line for -aP
7196 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7197 with a parameter "procedure Usage", instead of passing a pointer to a
7198 procedure. This is to eliminate trampolines (since the Usage procedure
7199 is often nested in a main procedure, and it would be inconvenient to
7200 unnest it).
7201
7202 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7203 to be generic, with a parameter "procedure Callback (...)", instead of
7204 passing a pointer to a procedure. This is to eliminate trampolines
7205 (since the Callback procedure is usually nested).
7206
7207 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
7208 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7209 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7210
7211 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7212 Use the generic Heap_Sort_G instead of Heap_Sort_A.
7213
7214 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7215
7216 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7217 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7218 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7219 (Renamed_In_Spec): New flag
7220 (Has_Pragma_Inline_Always): New flag
7221 Add missing doc for pragma Obsolescent_Warning
7222 Add missing doc for 17 additional unused flags (230-247)
7223 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7224 Alphabetize with clauses.
7225 Separate Is_Thunk and Has_Thunks flags
7226 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7227 (Related_Interface): Renamed to Related_Type.
7228 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7229 (Set_Is_Flag): Restrict the assertion.
7230
7231 2007-12-13 Vincent Celier <celier@adacore.com>
7232
7233 * errout.adb (Output_Source_Line): Do not keep a trailing space after
7234 the source line number if the source line is empty.
7235
7236 2007-12-13 Geert Bosch <bosch@adacore.com>
7237
7238 * eval_fat.adb (Decompose_Int): Handle argument of zero.
7239 (Compose): Remove special casing of zero.
7240 (Exponent): Likewise.
7241 (Fraction): Likewise.
7242 (Machine): Likewise.
7243 (Decompose): Update comment.
7244
7245 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7246
7247 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7248 limited ancestor part, initialize controllers of enclosing record
7249 before expanding ancestor aggregate.
7250 (Gen_Assign): If a component of the aggregate is box-initialized, add
7251 code to call Initialize if the component is controlled, and explicit
7252 assignment of null if the component is an access type.
7253
7254 Handle properly aggregates for limited types that appear in object
7255 declarations when the aggregate contains controlled values such as
7256 protected types.
7257 When expanding limited aggregates into individual components, do not
7258 call Adjust on controlled components that are limited.
7259
7260 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7261
7262 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7263
7264 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7265
7266 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7267 predefined primitive _Disp_Requeue.
7268 (Make_Predefined_Primitive_Specs): Create the spec for predefined
7269 primitive _Disp_Requeue.
7270 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7271 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7272 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7273 an interface type. In case of limited interfaces we now declare all the
7274 predefined primitives associated with synchronized interfaces as
7275 abstract.
7276 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7277 declarations.
7278 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7279 tagged type is an interface type and there is no user-defined equality
7280 function.
7281 Add also bodies of predefined primitives associated with synchronized
7282 interfaces.
7283 (Freeze_Record_Type): Do not build bodies of predefined primitives of
7284 interface types because they are now defined abstract.
7285 Add missing documentation.
7286 (Expand_Record_Controller): Update occurrence of Related_Interface
7287 to Related_Type.
7288 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7289 (Expand_N_Object_Declaration): Take into account VM_Target when handling
7290 class wide interface object declaration.
7291 (Expand_Previous_Access_Type): Do not create a duplicate master entity
7292 if the access type already has one.
7293 (Expand_N_Object_Declaration): Defend against attempt to validity check
7294 generic types. Noticed for -gnatVcf specified with previous errors.
7295
7296 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7297
7298 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7299 Expand_Allocator_Expression): Take into account VM_Target
7300
7301 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
7302 secondary stack when VM_Target /= No_VM
7303
7304 2007-12-13 Javier Miranda <miranda@adacore.com>
7305 Ed Schonberg <schonberg@adacore.com>
7306
7307 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
7308 Is_Complation_Unit by Is_Library_Level_Entity in the code
7309 that decides if the static dispatch tables need to be built.
7310 (Wrap_Transient_Declaration): Do not generate a finalization call if
7311 this is a renaming declaration and the renamed object is a component
7312 of a controlled type.
7313
7314 2007-12-13 Gary Dismukes <dismukes@adacore.com>
7315
7316 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
7317 In the case where the renamed subprogram is a dereference, call
7318 Force_Evaluation on the prefix.
7319
7320 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7321 Ed Schonberg <schonberg@adacore.com>
7322
7323 * exp_ch9.adb (Expand_N_Asynchronous_Select,
7324 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
7325 comment reformatting.
7326 (Set_Privals): Inherit aliased flag from formal. From code reading.
7327 (Build_Simple_Entry_Call): Out parameters of an access type are passed
7328 by copy and initialized from the actual. This includes entry parameters.
7329 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
7330 and Ada 2005 models of requeue.
7331 (Null_Statements): Still connsider do-end block null if it contains
7332 Unreferenced and Warnings pragmas.
7333 (Expand_N_Accept_Statement): Do not optimize away null do end if
7334 dispatching policy is other than defaulted.
7335 (Expand_N_Timed_Entry_Call): When the triggering statement is a
7336 dispatching call, manually analyze the delay statement.
7337 (Find_Parameter_Type): Move subprogram to Sem_Util.
7338
7339 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7340 Javier Miranda <miranda@adacore.com>
7341
7342 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
7343 _Disp_Requeue occupies dispatch table slot number 15. Move
7344 _Disp_Timed_Select to slot 16.
7345 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
7346 generate the spec and body of _Disp_Reqeueue.
7347 (Make_DT): Build and initialize the second dispatch table.
7348 Handle initialization of RC_Offset when the parent
7349 is a private type with variable size components.
7350 (Make_Secondary_DT): Complete documentation. Add support to
7351 initialize the second dispatch table.
7352 (Make_Tags): Generate the tag of the second dispatch table.
7353 (Register_Primitive): Add support to register primitives in the
7354 second dispatch table.
7355
7356 2007-12-13 Pascal Obry <obry@adacore.com>
7357
7358 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
7359 Windows. This signal is used by gnatmake to kill child processes for
7360 example.
7361
7362 2007-12-13 Javier Miranda <miranda@adacore.com>
7363
7364 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7365 support for generic dispatching constructor calls in which we need to
7366 locate the tag of a secondary dispatch table associated with an
7367 interface type to properly dispatch the call.
7368 (Expand_N_Attribute_Reference [case Address],
7369 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
7370 handling of VM targets.
7371
7372 2007-12-13 Robert Dewar <dewar@adacore.com>
7373 Ed Schonberg <schonberg@adacore.com>
7374
7375 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
7376 assert fail
7377
7378 * ug_words: Add entries for -gnatw.a -gnatw.A
7379
7380 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
7381 literal is a subtype with non-static constraints, use the base type of
7382 the context as the base of the string subtype, to prevent type
7383 mismatches in gigi.
7384 (Resolve_Actuals): If the actual is an entity name, generate a
7385 reference before the actual is resolved and expanded, to prevent
7386 spurious warnings on formals of enclosing protected operations.
7387 (Analyze_Overloaded_Selected_Component): If type of prefix if
7388 class-wide, use visible components of base type.
7389 (Resolve_Selected_Component): Ditto.
7390 (Resolve_Short_Circuit): Detect case of pragma Assert argument
7391 evaluating to False, and issue warning message.
7392
7393 * usage.adb: Add lines for -gnatw.a and -gnatw.A
7394
7395 2007-12-13 Emmanuel Briot <briot@adacore.com>
7396
7397 * g-calend.ads (No_Time): New constant, to represent an uninitialized
7398 time value
7399
7400 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
7401 formats.
7402 (Month_Name_To_Number): New subprogram
7403
7404 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
7405 letter to upper-case.
7406
7407 2007-12-13 Robert Dewar <dewar@adacore.com>
7408 Ed Schonberg <schonberg@adacore.com>
7409
7410 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
7411
7412 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
7413 context is a limited view, use non-limited view when available. If the
7414 non-limited view is an unconstrained array, this enforces consistency
7415 requirements in 3.10.2 (27).
7416 (Layout_Type): For an access type whose designated type is a limited
7417 view, examine its declaration to determine if it is an unconstrained
7418 array, and size the access type accordingly.
7419 (Layout_Type): Do not force 32-bits for convention c subprogram
7420 pointers in -gnatdm mode, only if real vms target.
7421
7422 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
7423 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7424 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
7425 violations of the No_Implicit_Dynamic_Code restriction.
7426 (Resolve_Attribute, case 'Access): If designated type of context is a
7427 limited view, use non-limited view when available. If the non-limited
7428 view is an unconstrained array, this enforces consistency requirements
7429 in 3.10.2 (27).
7430 (Layout_Type): For an access type whose designated type is a limited
7431 view, examine its declaration to determine if it is an unconstrained
7432 array, and size the access type accordingly.
7433
7434 2007-12-13 Vincent Celier <celier@adacore.com>
7435
7436 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
7437 object directory of main project does not exist.
7438 On VMS, correctly set then environment variable for the source
7439 directories.
7440
7441 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
7442
7443 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
7444 set to True this procedure will create the value of type REG_EXPAND_SZ.
7445 It was only possible to create REG_SZ values before.
7446
7447 2007-12-13 Robert Dewar <dewar@adacore.com>
7448
7449 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
7450 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
7451 namet-sp.adb, namet-sp.ads: New files.
7452
7453 * g-speche.adb: Use generic routine in g-spchge
7454
7455 * s-wchcnv.ads, s-wchcnv.adb:
7456 Minor code cleanup (make formal type consistent with spec)
7457
7458 * namet.adb: Update comments.
7459
7460 * par-endh.adb (Evaluate_End_Entry): Use new
7461 Namet.Sp.Is_Bad_Spelling_Of function
7462
7463 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
7464
7465 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
7466 ancestor is an access type initialized with a box, set its type
7467 explicitly, for use in subsequent expansion.
7468 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
7469 function
7470
7471 2007-12-13 Robert Dewar <dewar@adacore.com>
7472
7473 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
7474 access Vstring)
7475
7476 2007-12-13 Robert Dewar <dewar@adacore.com>
7477
7478 * inline.adb (Back_End_Cannot_Inline): Use new flag
7479 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7480
7481 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
7482 Has_Pragma_Inline_Always instead.
7483 of obsolete function Is_Always_Inlined
7484 (Build_Body_To_Inline): Same change
7485 (Cannot_Inline): Same change
7486 Do not give warning on exception raise in No_Return function
7487
7488 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
7489 component has two inconsistent component clauses in the same record
7490 representation clause, favor the message that complains about
7491 duplication rather than inconsistency.
7492 Update comments.
7493 (Record_Representation_Clause): Do not warn on missing component
7494 clauses for inherited components of a type extension.
7495 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
7496 an overloadable item if it is a pragma that can apply to multiple
7497 overloadable entities (e.g. Inline) because a pragma cannot be on
7498 more than one chain at a time.
7499 (Validate_Unchecked_Conversion): Add code to warn on unchecked
7500 conversion where one of the operands is Ada.Calendar.Time.
7501 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
7502 For now, ignore Component_Size clause on VM targets, as done for
7503 pragma Pack.
7504
7505 2007-12-13 Emmanuel Briot <briot@adacore.com>
7506 Vincent Celier <celier@adacore.com>
7507
7508 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
7509 string
7510 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
7511 prj.ads
7512 (Hash): Move instantiation of System.HTable.Hash from spec to body
7513 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
7514 systems, since we do not need to recompute the Name_Id for the canonical
7515 file name.
7516 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
7517 as a parameter. This parameter is in fact always "ada" in all calls, and
7518 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
7519 while loading a project with 40000 files
7520
7521 * prj-attr.adb: Fix name of attribute Dependency_Driver
7522 Change the kind of indexing for attribute Root
7523
7524 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
7525 variables already declared, in case constructions.
7526
7527 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
7528 Current_Object_Path_File to No_Path.
7529
7530 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
7531 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
7532
7533 * prj-makr.adb: new parameter Current_Dir
7534
7535 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
7536 Ada sources when language is not Ada.
7537 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7538 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
7539 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
7540 (Locate_Directory): Always resolve links when computing Canonical_Path
7541 (Look_For_Sources): Make sure that Name_Buffer contains the file name
7542 in Source_Files before checking for the presence of a directory
7543 separator.
7544 Optimize calls to Name_Find when on case sensitive systems.
7545 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
7546 as a parameter.
7547 (Prj.Nmsc.Check): new parameter Current_Dir
7548 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
7549 cannot be empty and the spec suffix cannot be the same as the body or
7550 separate suffix.
7551 (Get_Unit): When a file name can be of several unit kinds (spec, body or
7552 subunit), always consider the longest suffix.
7553 (Check_Configuration): Do not issue an error if there is no compiler
7554 for a language. Just issue a warning and ignore the sources for the
7555 language.
7556 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
7557 not empty.
7558 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
7559 (Unit_Exceptions): New hash table
7560 (Check_Naming_Schemes): Check if a file that could be a unit because of
7561 the naming scheme is not in fact a source because there is an exception
7562 for the unit.
7563 (Look_For_Sources): Put the unit exceptions in hash table
7564 Unit_Exceptions
7565 (Get_Unit_Exceptions): Give initial value No_Source to local variable
7566 Other_Part to avoid exception when code is compiled with validity
7567 checking.
7568 (Get_Sources_From_File): Check that there is no directory information
7569 in the file names.
7570 (Look_For_Sources): Check that there is no directory information in the
7571 list of file names in Source_Files.
7572 (Look_For_Sources): In multi-language mode, do not allow exception file
7573 names that are excluded.
7574 (Excluded_Sources_Htable): New hash table
7575 (Search_Directories.Check_File): New procedure to simplify
7576 Search_Directories.
7577 (Search_Directories): Do not consider excluded sources
7578 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
7579 Search_Directories.
7580 (Get_Exceptions): Set component Lang_Kind of Source_Data
7581 (Get_Unit_Exceptions): Ditto
7582 (Search_Directories): Ditto
7583
7584 * prj-pars.adb: new parameter Current_Dir
7585
7586 * prj-part.ads, prj-part.adb:
7587 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7588 (Opt.Follow_Links_For_Dirs): New flag
7589 (Project_Path_Name_Of): Cache information returned by this routine as
7590 Locate_Regular_File is a costly routine. The code to output a log
7591 information and the effective call to Locate_Regular_File is now
7592 factorized into a routine (code clean-up).
7593 (Parse, Parse_Single_Project): new parameter Current_Dir
7594 When main project file cannot be found, indicate in the error
7595 message the project path that was used to do the search.
7596
7597 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
7598 (Prj.Proc.Process*): new parameter Current_Dir
7599
7600 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
7601
7602 2007-12-13 Bob Duff <duff@adacore.com>
7603
7604 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
7605 procedure to be called from the back end to check the
7606 No_Implicit_Dynamic_Code restriction.
7607
7608 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7609
7610 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
7611 Fixes another case where RTE_Available_Call was ignored instead of being
7612 taken into account.
7613 (Load_Fail): Ditto.
7614
7615 * rtsfind.ads: Add new entries.
7616
7617 2007-12-13 Robert Dewar <dewar@adacore.com>
7618
7619 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
7620 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
7621
7622 * scn.adb: Implement BOM recognition
7623
7624 2007-12-13 Thomas Quinot <quinot@adacore.com>
7625 Ed Schonberg <schonberg@adacore.com>
7626
7627 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
7628 subprogram body that acts as its own spec may not have a non-private
7629 WITH clause on a private sibling.
7630 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
7631 child unit is a renaming, create an implicit with_clause on that
7632 parent, and not on the unit it renames, to prevent visibility errors
7633 in the current unit.
7634
7635 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7636
7637 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
7638 renaming declaration, use the Slocs of the formal parameters from the
7639 declaration of the formal subprogram when creating the formal parameter
7640 entities in the renaming declaration.
7641 (Analyze_Formal_Type_Declaration): Change the placement of the error
7642 message concerning illegal known discriminants. It is now posted on the
7643 type rather than on the first discriminant. This change ensures early
7644 error report.
7645 (Freeze_Subprogram_Body): If the generic subprogram is nested within
7646 the package body that contains the instance, do not generate an
7647 out-of-place freeze node for the enclosing package.
7648 (Collect_Previous_Instantiations): Ignore internal instantiations
7649 generated for formal packages.
7650 (Validate_Derived_Type_Instance): Add a check that when a formal
7651 derived type is Known_To_Have_Preelab_Init then the actual type must
7652 have preelaborable initialization, and issue an error when this
7653 condition is violated.
7654
7655 2007-12-13 Robert Dewar <dewar@adacore.com>
7656
7657 * s-imenne.adb, s-imenne.ads: New files.
7658
7659 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
7660 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
7661 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
7662 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
7663 s-imgwch.ads: New calling sequence for Image routines to avoid sec
7664 stack usage.
7665
7666 2007-12-13 Javier Miranda <miranda@adacore.com>
7667 Ed Schonberg <schonberg@adacore.com>
7668
7669 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
7670 generation of spurious error if parent is an interface type; caused
7671 because predefined primitive bodies will be generated later by
7672 Freeze_Record_Type.
7673 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
7674 flag.
7675 (Derive_Subprograms): Handle derivations of predefined primitives
7676 after all the user-defined primitives to ensure that they are
7677 found in proper order in instantiations.
7678 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
7679 of Related_Interface to Related_Type.
7680 (Record_Type_Declaration): Minor reordering of calls to decorate the
7681 Tag component because the entity must have set its Ekind attribute
7682 before setting its Is_Tag attribute.
7683 (Analyze_Subtype_Declaration): In the case of subtypes with
7684 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
7685
7686 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7687 Ed Schonberg <schonberg@adacore.com>
7688
7689 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
7690 statement to the list of contexts where a selected component with a
7691 concurrent tagged type prefix should yield a primitive operation.
7692 (Find_Primitive_Operation): Handle case of class-wide types.
7693 (Analyze_Overloaded_Selected_Component): If type of prefix is
7694 class-wide, use visible components of base type.
7695 (Resolve_Selected_Component): Ditto.
7696 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
7697 formal of a generic subprogram. find candidate interpretations by
7698 scanning the list of generic formal declarations.:
7699 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
7700 type from a limited_with_clause, and the full view is available, use it
7701 for subsequent semantic checks.
7702 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
7703 (Find_Primitive_Operation): New function.
7704 (Analyze_Overloaded_Selected_Component): insert explicit dereference
7705 only once if several interpretations of the prefix yield an access type.
7706 (Try_Object_Operation): Code and comment cleanup.
7707 (Analyze_Selected_Component): Reorder local variables. Minot comment and
7708 code reformatting. When the type of the prefix is tagged concurrent, a
7709 correct interpretation might be available in the primitive and
7710 class-wide operations of the type.
7711
7712 2007-12-13 Robert Dewar <dewar@adacore.com>
7713 Ed Schonberg <schonberg@adacore.com>
7714
7715 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
7716 renaming entry as subprogram using rename-as-body if subprogram spec
7717 frozen.
7718 (Use_One_Type): The clause is legal on an access type whose designated
7719 type has a limited view.
7720 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7721 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7722 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
7723 operation denoted by a selected component.
7724 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
7725 it can be an expression, possibly overloaded, that returns a task or
7726 an access to one.
7727
7728 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7729 Gary Dismukes <dismukes@adacore.com>
7730
7731 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
7732 requeue statement is dispatching. Do not emit an error when the name is
7733 not an entry and the context is a dispatching select. Add code to
7734 perform subtype conformance between the formals of the current entry
7735 and those of the target interface primitive.
7736 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
7737 Timed_Entry_Call): Analyze the triggering statement as the first step of
7738 the processing. If this is a dispatching select, postpone the analysis
7739 of all select statements until the Expander transforms the select. This
7740 approach avoids generating duplicate identifiers after the Expander has
7741 replicated some of the select statements. In case the Expander is
7742 disabled, perform regular analysis.
7743 (Check_Triggering_Statement): New routine.
7744 (Analyze_Requeue): Exclude any interpretations that are not entries when
7745 checking overloaded names in a requeue. Also test type conformance for
7746 matching interpretations rather than requiring subtype conformance at
7747 that point to conform with the RM's resolution rule for requeues.
7748
7749 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7750
7751 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
7752 inherited operation is a defaulted tag-indeterminate call, and there is
7753 a statically tagged actual, use the static tag as a controlling actual
7754 for the defaulted actual.
7755
7756 2007-12-13 Geert Bosch <bosch@adacore.com>
7757
7758 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
7759 context, so do not call Check_Non_Static_Context.
7760
7761 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7762
7763 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
7764 whether formal E is an entity which may have parameters.
7765
7766 2007-12-13 Bob Duff <duff@adacore.com>
7767 Javier Miranda <miranda@adacore.com>
7768 Robert Dewar <dewar@adacore.com>
7769
7770 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
7771 (Set_Convention): New procedure to set the Convention flag, and in
7772 addition make sure the Favor_Top_Level flag is kept in sync (all
7773 foreign-language conventions require Favor_Top_Level = True).
7774 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
7775 to Related_Type.
7776 (Collect_Interfaces_Info): Minor update to handle the two secondary
7777 dispatch tables. Update occurrence of Related_Interface to Related_Type.
7778 (Generate_Parent_Ref): Add parameter to specify entity to check
7779 (Is_Preelaborable_Expression): Allow the name of a discriminant to
7780 initialize a component of a type with preelaborable initialization.
7781 This includes the case of a discriminal used in such a context.
7782 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
7783 latest Ada 2005 rules about renaming and 'Access of
7784 discriminant-dependent components.
7785 (Check_Nested_Access): Add handling when there are no enclosing
7786 subprograms (e.g. case of a package body).
7787 (Find_Parameter_Type): Factor routine from several other compiler files.
7788 Remove routine from Find_Overridden_Synchronized_Primitive.
7789
7790 2007-12-13 Thomas Quinot <quinot@adacore.com>
7791
7792 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
7793 an invalid access to an uninitialized slot in the
7794 Source_File_Index_Table.
7795
7796 2007-12-13 Thomas Quinot <quinot@adacore.com>
7797
7798 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
7799
7800 2007-12-13 Bob Duff <duff@adacore.com>
7801
7802 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
7803 access-to-subprogram types in this package.
7804
7805 2007-12-13 Olivier Hainque <hainque@adacore.com>
7806
7807 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
7808 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
7809 Stack_Overlay_Address and document that we are using an internal
7810 abstraction.
7811 (Byte_Size, Unsigned_32_Size): Remove, now useless.
7812 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
7813 consistently throughout the various implementation pieces.
7814
7815 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
7816 overlay we are using to fill the stack area with patterns.
7817 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
7818 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
7819 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
7820
7821 2007-12-13 Robert Dewar <dewar@adacore.com>
7822
7823 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
7824
7825 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7826
7827 * s-tassta.adb:
7828 (Create_Task): Take into account tasks created by foreign threads.
7829 Code clean up: use constants instead of hard coded values.
7830
7831 2007-12-13 Robert Dewar <dewar@adacore.com>
7832
7833 * styleg.adb (Check_Comment): More liberal rules for comment placement
7834
7835 2007-12-13 Olivier Hainque <hainque@adacore.com>
7836
7837 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
7838 of Procedure Value instead of Frame Pointer as the invocation
7839 identifier associated with the instruction pointer in each traceback
7840 entry.
7841
7842 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
7843 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
7844 Pointer as the invocation identifier passed to tbk$symbolize.
7845
7846 * s-traent-vms.ads, s-traent-vms.adb
7847 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
7848 Procedure Value instead of Frame Pointer as the invocation identifier
7849 passed to tbk$symbolize.
7850
7851 2007-12-13 Robert Dewar <dewar@adacore.com>
7852
7853 * tbuild.ads, tbuild.adb:
7854 Fix location of flag for unrecognized pragma message
7855
7856 2007-12-13 Robert Dewar <dewar@adacore.com>
7857
7858 * treepr.ads, treepr.adb: (pl): implement use of positive value
7859 shorthands
7860
7861 2007-12-13 Robert Dewar <dewar@adacore.com>
7862
7863 * xeinfo.adb: Remove warnings
7864 * xnmake.adb: Remove warnings
7865 * xsinfo.adb: Remove warnings
7866 * xtreeprs.adb: Remove warnings
7867 * xsnames.adb: Remove warnings
7868
7869 * a-ngcoar.adb: Fix typo.
7870 * s-interr.adb: Minor reformatting
7871 * env.c: Minor reformatting.
7872 * g-bytswa.adb: Minor reformatting.
7873 * g-rannum.ads: Minor documentation improvements
7874 * s-tasinf-mingw.adb: Minor header fix
7875 * a-clrefi.adb: Minor reformatting
7876 * g-sttsne.ads: Minor documentation improvement
7877 * g-sttsne-locking.ads: Minor documentation improvement
7878 * g-soliop-solaris.ads: Minor documentation improvement
7879 * g-soliop-mingw.ads: Minor documentation improvement
7880 * g-soliop.ads: Minor documentation improvement
7881 * exp_aggr.ads: Minor reformatting
7882 * debug.adb: Add documentation for the gprbuild debug flags
7883 * exp_ch2.adb: Use Nkind_In to simplify code throughout
7884 * exp_pakd.adb: Minor reformatting
7885
7886 * g-altive.ads, g-alleve.adb: Remove assertions.
7887 Add comment about minor differences between targets regarding
7888 floating-point operations.
7889
7890 * g-thread.adb: Remove pragma unreferenced.
7891 * lib.ads: Minor reformatting
7892 * par-ch9.adb: Minor reformatting of error messages
7893 * sem_case.adb: Minor reformatting
7894 * s-fileio.adb: Minor reformattinng
7895 * s-vmexta.ads: Minor typo
7896 * vxaddr2line.adb:
7897 Take into account 'Success' value as per new GNAT warning.
7898
7899 2007-12-13 Vincent Celier <celier@adacore.com>
7900
7901 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
7902 even on Windows
7903
7904 2007-12-13 Robert Dewar <dewar@adacore.com>
7905 Bob Duff <duff@adacore.com>
7906
7907 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
7908 Document that suffixes may be terminations of each others
7909 Add doc for -gnatw.a and -gnatw.A
7910 Document gnatbind -Wx switch
7911 Document BOM recognition
7912 Document pragma Implemented_By_Entry.
7913 Document new units.
7914
7915 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
7916 Add doc for pragma Unreferenced suppressing no entities referenced msg
7917 Add documentation of GNAT.Directory_Operations.Iteration
7918 Add documentation of GNAT.Random_Numbers
7919 Add documentation for pragma Shared.
7920 Correct documentation for Bit_Order
7921 Add documentation for the Pool_Address attribute.
7922 Fix and improve documentation of pragma machine_attribute.
7923 New pragma Fast_Math
7924 Document BOM recognition
7925
7926 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
7927 Add /Wide_Character_Encoding for binder
7928 Add qualifier for the new gnatpp option --no-separate-loop-then
7929
7930 2007-12-13 Matthew Heaney <heaney@adacore.com>
7931
7932 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
7933 which generic formal operations are called for each operation.
7934
7935 2007-12-13 Olivier Hainque <hainque@adacore.com>
7936
7937 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
7938 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
7939
7940 2007-12-13 Emmanuel Briot <briot@adacore.com>
7941
7942 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7943 Reference_Dir unless we actually need it.
7944
7945 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
7946 Tristan Gingold <gingold@adacore.com>
7947
7948 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7949
7950 * s-osprim-vms.adb,
7951 a-calend-vms.adb: Remove pragma warning off and add pragma
7952 unreferenced.
7953
7954 2007-12-13 Robert Dewar <dewar@adacore.com>
7955
7956 * impunit.adb: Add entries for missing units
7957
7958 * Makefile.rtl: Add new run-time units.
7959
7960 * Make-lang.in: Update dependencies.
7961
7962 2007-12-13 Bob Duff <duff@adacore.com>
7963
7964 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7965 types, set Can_Use_Internal_Rep appropriately, based on
7966 Always_Compatible_Rep_On_Target.
7967
7968 2007-12-13 Gary Dismukes <dismukes@adacore.com>
7969 Arnaud Charlet <charlet@adacore.com>
7970
7971 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7972 it to the front end and setting the aamp_target environment variable
7973 to the switch's argument to ensure that gnaampbind and gnaamplink will
7974 take the specified library into account.
7975 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7976 target, since the CIL compiler supports an "object" file (.il files).
7977
7978 2007-12-13 Vincent Celier <celier@adacore.com>
7979
7980 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7981 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7982
7983 2007-12-13 Geert Bosch <bosch@adacore.com>
7984
7985 * s-parame-vxworks.adb:
7986 Update comments to reflect usage of this package by Nucleus.
7987
7988 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7989
7990 * i-vxwork.ads: Kill new warning on Convention C, since changing the
7991 spec would break code.
7992
7993 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7994
7995 * system-vxworks-alpha.ads: Removed.
7996
7997 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
7998
7999 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8000
8001 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8002
8003 PR ada/34366
8004 * sem_ch3.adb (Designates_T): New function.
8005 (Mentions_T): Factor reusable part of the logic into Designates_T.
8006 Consider non-access parameters and access and non-access result.
8007 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8008 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8009
8010 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8011
8012 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8013
8014 PR ada/34361
8015 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8016 the new implementation of target-specific calls.
8017
8018 2007-12-07 Olivier Hainque <hainque@adacore.com>
8019
8020 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8021 the designated full view, only follow a second level Full_View link
8022 for Non_Limited_Views of from_limited_with references.
8023
8024 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
8025
8026 PR ada/15805
8027 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8028 to be initialized with an access to constant object.
8029
8030 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8031 when an access to constant is used to initialize an access
8032 value.
8033
8034 PR ada/21346
8035 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8036
8037 2007-12-07 Olivier Hainque <hainque@adacore.com>
8038
8039 PR ada/34173
8040 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8041 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8042 this is from an alignment clause on the GNAT entity.
8043 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8044 to distinguish the case where we set it from the type's alignment.
8045 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8046 whether this alignment was set from an explicit alignment clause.
8047
8048 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
8049
8050 * decl.c (make_packable_type): Revert last change.
8051 (gnat_to_gnu_field): Avoid setting size and position multiple times.
8052 * utils.c (finish_record_type): Retrieve the real name of the type.
8053
8054 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
8055
8056 * trans.c (lvalue_required_p): Take base node directly instead
8057 of its parent. Rename second parameter to 'gnu_type'.
8058 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8059 <N_Slice>: Likewise.
8060 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8061 Adjust calls to lvalue_required_p.
8062
8063 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
8064
8065 PR ada/21489
8066 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8067 parameters of an entry call.
8068
8069 2007-12-03 Robert Dewar <dewar@adacore.com>
8070 Samuel Tardieu <sam@rfc1149.net>
8071
8072 PR ada/34287
8073 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8074 of variables declared in a library-level package.
8075
8076 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
8077
8078 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8079 of Empty_String'Unchecked_Access.
8080
8081 * Makefile.in: Add support for sh4-linux.
8082
8083 * system-linux-sh4.ads: New file.
8084
8085 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
8086
8087 PR ada/33722
8088 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8089 and its argument must not be free()ed.
8090
8091 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
8092
8093 * decl.c (make_packable_type): Retrieve the real name of the type.
8094 (maybe_pad_type): Simplify similar code.
8095
8096 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
8097
8098 PR ada/15804
8099 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8100 than an identifier is used after "case" in a variant_part.
8101
8102 PR ada/17318
8103 * par-ch4.adb (Is_Parameterless_Attribute): New map.
8104 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8105 attribute name or not depending on the new map.
8106
8107 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8108 returning a string or a type will not be called with improper
8109 arguments.
8110
8111 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8112
8113 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8114
8115 PR ada/32792
8116 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8117 Signal an error when attribute argument is a fixed-point value of
8118 an unknown type.
8119
8120 PR ada/22559
8121 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8122 a derived ordinary fixed point type.
8123
8124 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8125 RM_Size when a Small clause is found.
8126
8127 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
8128
8129 PR 34081/C++
8130 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8131 Pass 'false' for the new allocate_struct_function parameter.
8132 * utils.c (build_function_stub): Likewise.
8133
8134 2007-11-25 Richard Guenther <rguenther@suse.de>
8135
8136 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8137 (gnat_poplevel): Likewise.
8138
8139 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
8140
8141 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8142 strict alignment, no alignment clause and a known static size, cap
8143 the type alignment to the greatest power of 2 factor of the size.
8144 (gnat_to_gnu_field): If the field has a component clause, is aliased
8145 or of a type with strict alignment, require that its size be equal to
8146 that of the type.
8147 (validate_size): Use the type size as the minimum size for a type with
8148 strict alignment.
8149
8150 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
8151
8152 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8153 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8154 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8155 Use 'Access instead of 'Unchecked_Access in second and third
8156 arguments of pthread_sigmask.
8157
8158 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
8159
8160 * decl.c (ceil_alignment): New function.
8161 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8162 (make_packable_type): Likewise.
8163
8164 2007-11-22 Olivier Hainque <hainque@adacore.com>
8165
8166 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8167 to fit in 80 columns.
8168
8169 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
8170
8171 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8172 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8173
8174 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
8175
8176 PR ada/34098
8177 * misc.c (gnat_adjust_rli): Delete.
8178 (gnat_init): Do not initialize the translation code here.
8179 Do not call set_lang_adjust_rli.
8180 * trans.c (init_code_table): Make static.
8181 (gnat_init_stmt_group): Delete.
8182 (gigi): Initialize the translation code entirely here.
8183 Emit debug info for the common types here instead of...
8184 * utils.c (gnat_init_decl_processing): ...here.
8185 * gigi.h (init_code_table): Delete.
8186 (gnat_init_stmt_group): Likewise.
8187
8188 2007-11-16 Olivier Hainque <hainque@adacore.com>
8189
8190 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8191 retrieving an allocator return value from a super-aligned address from
8192 here to ...
8193 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8194 expect a super-aligned address for a fat or thin pointer.
8195
8196 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
8197
8198 * trans.c (call_to_gnu): Always set the source location on the call
8199 expression. If the function returns-by-target, also set it on the
8200 address expression.
8201
8202 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
8203
8204 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8205 sections of non-supported Interix target.
8206
8207 * s-osinte-interix.ads: Removed.
8208
8209 * i-cstrin.ads (chars_ptr): Make it a C convention type.
8210
8211 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
8212
8213 * a-tasatt.adb: Add a comment at the beginning of the package
8214 explaining why in general 'Unchecked_Access must be used instead
8215 of 'Access.
8216
8217 * sem_prag.adb (Process_Convention): Move the test for the
8218 entity on which the Convention pragma applies down to also
8219 forbid pragma Convention on enumeration literals reached
8220 through renamings.
8221
8222 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
8223
8224 * a-tasatt.adb: Revert previous change for this file as it will
8225 generate an error when this package is instantiated from a
8226 local context.
8227
8228 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
8229
8230 * a-tasatt.adb: Type Wrapper should be declared in comment instead
8231 of already declared type Node_Access.
8232 Use 'Access instead of 'Unchecked_Access when applicable. Local
8233 lifetime is the one of the package.
8234 (Set_Value): W is allocated on the heap.
8235
8236 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8237 applicable.
8238 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8239 access type.
8240 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8241 access type.
8242
8243 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8244 applicable.
8245 (elaboration code): Timer_Queue lifetime is the one of the
8246 package.
8247
8248 * tracebak.c (i386 alternative): Remove useless comparaison
8249 which is always false; LOWEST_ADDRESS is 0 and is never greater
8250 than an unsigned integer.
8251
8252 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8253 embedded check for "Ada_Version >= Ada_05".
8254
8255 2007-11-07 Olivier Hainque <hainque@adacore.com>
8256
8257 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8258 craft and expand comment.
8259
8260 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
8261
8262 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8263
8264 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
8265
8266 * misc.c (gnat_handle_option): Replace call to abort with
8267 call to gcc_unreachable.
8268 (gnat_init): Likewise.
8269 (gnat_expand_expr): Likewise.
8270 (fp_prec_to_size): Likewise.
8271 (fp_size_to_prec): Likewise.
8272
8273 2007-10-23 Richard Guenther <rguenther@suse.de>
8274
8275 PR bootstrap/33608
8276 * tracebak.c: #undef abort after including system.h.
8277
8278 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
8279
8280 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8281 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8282 for win32 targets.
8283 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8284
8285 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
8286
8287 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8288 Set the protection status of the guard page based on the value of On.
8289
8290 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8291
8292 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
8293 (Exit_Task): Pass False to Hide_Yellow_Zone.
8294
8295 2007-10-15 Robert Dewar <dewar@adacore.com>
8296
8297 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
8298 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
8299 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
8300 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
8301 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
8302 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
8303 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
8304 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
8305 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
8306 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
8307 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
8308 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
8309 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
8310 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
8311 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
8312 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
8313 Minor reformatting.
8314 Add Unreferenced and Warnings (Off) pragmas for cases of
8315 variables modified calls where they are IN OUT or OUT parameters and
8316 the resulting values are not subsequently referenced. In a few cases,
8317 we also remove redundant code found by the new warnings.
8318
8319 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
8320 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
8321 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
8322 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
8323 warning controlled by -gnatw.o that warns on cases of out parameter
8324 values being ignored.
8325
8326 2007-10-15 Geert Bosch <bosch@adacore.com>
8327
8328 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
8329
8330 * expect.c: Initial port to arm-mentor-nucleus.
8331 Use kill for __gnat_kill() on VMS.
8332
8333 2007-10-15 Emmanuel Briot <briot@adacore.com>
8334
8335 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
8336 value.
8337 (Xref_Record): Change type for Line, since in the case of a reference to
8338 a predefined entity (as happens for array index types), the line is set
8339 to 0.
8340 Add support for parsing multiple array index types info, or
8341 multiple inherited interfaces info. This information cannot be stored
8342 in Xref_Entity_Record, which only supports a single instance of Tref_*,
8343 and is therefore stored in the list of references instead. It has a
8344 special treatement later on in tools that use this information.
8345
8346 2007-10-15 Tristan Gingold <gingold@adacore.com>
8347
8348 * debug.adb: Document use of -gnatd.a and -gnatd.I
8349
8350 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
8351
8352 2007-10-15 Javier Miranda <miranda@adacore.com>
8353
8354 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
8355 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
8356 care of access to class-wide interface types plus removal of bizarre
8357 conversion of tagged object to access type (reported by Gary
8358 Dismukes). After this patch there is no need to perform any
8359 additional management on these nodes in Expand_Interface_Actuals.
8360
8361 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
8362 that handles use of 'Access and 'Unchecked_Access applied to
8363 actuals covering interface types. Such code is now
8364 centralized in Expand_N_Attribute_Reference.
8365
8366 2007-10-15 Ed Schonberg <schonberg@adacore.com>
8367
8368 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
8369 of tagged types whose ultimate ancestor is a CPP type.
8370 (Freeze_Array_Type): For a packed array type, generate an initialization
8371 procedure if the type is public, to handle properly a client that
8372 specifies Normalize_Scalars.
8373
8374 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
8375
8376 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
8377 inside a generic body, retrieve the full view of the entry family
8378 discrete subtype if available.
8379
8380 2007-10-15 Thomas Quinot <quinot@adacore.com>
8381
8382 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
8383 attempt to generate stubs for hidden primitive operations.
8384
8385 2007-10-15 Vincent Celier <celier@adacore.com>
8386
8387 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
8388 returning None, used when there is no platform specific body for
8389 MLib.Tgt.Specific.
8390
8391 2007-10-15 Bob Duff <duff@adacore.com>
8392
8393 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
8394 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
8395 the generic Heap_Sort_G, in order to avoid trampolines.
8396
8397 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
8398 Jose Ruiz <ruiz@adacore.com>
8399
8400 * vx_stack_info.c: New file.
8401
8402 * i-forbla-unimplemented.ads: New file.
8403
8404 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
8405 for unsupported configurations; use it on VMS targets instead of the
8406 real one.
8407 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
8408 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
8409 used by VxWorks targets to have access to task-specific data and be
8410 able to extract the stack boundaries for stack checking.
8411 Use system-vms-ia64.ads on ivms.
8412
8413 * Make-lang.in: Update dependencies.
8414
8415 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
8416 (vx_stack_info.c).
8417
8418 2007-10-15 Vincent Celier <celier@adacore.com>
8419
8420 * snames.adb, snames.ads: Add new standard name runtime_library_dir
8421
8422 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
8423
8424 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
8425
8426 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
8427 the source is unknown.
8428
8429 * prj-ext.adb: Spelling error fix
8430
8431 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
8432 95 reserved word in its name.
8433 (Process_Project_Level_Array_Attributes): Process new attribute
8434 Runtime_Library_Dir.
8435
8436 * prj-part.adb (Parse_Single_Project): Do not check the name of the
8437 config project against the user project names.
8438
8439 * prj-proc.adb (Expression): In multi-language mode, indexes that do
8440 not include a dot are always case insensitive.
8441 (Process_Declarative_Items): Ditto
8442 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
8443 detected.
8444
8445 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
8446 True, compare both indexes in lower case.
8447
8448 2007-10-15 Robert Dewar <dewar@adacore.com>
8449
8450 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
8451
8452 2007-10-15 Gary Dismukes <dismukes@adacore.com>
8453
8454 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
8455 association for an access component, add an association with null as
8456 the expression. Remove testing for array subtypes and the setting in
8457 that case of Ctyp to the array component type, which prevented proper
8458 inclusion of an association for null-initialized arrays. Collapse
8459 condition that tests for array subtypes into just a test of
8460 Is_Partially_Initialized_Type (which already covers arrays anyway).
8461
8462 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
8463
8464 * sem_ch12.adb: Minor code reformatting.
8465 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
8466 find the parent package which may have been hidden by local
8467 declarations.
8468
8469 2007-10-15 Gary Dismukes <dismukes@adacore.com>
8470
8471 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
8472 flag of derived concurrent types, taking into account the flag setting
8473 on the parent subtype and any new set of discriminants.
8474
8475 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
8476
8477 * sem_ch4.adb: Minor code and comment reformatting.
8478 (Analyze_Allocator): When the designated type of an unconstrained
8479 allocator is a record with unknown discriminants or an array with
8480 unknown range bounds, emit a detailed error message depending on the
8481 compilation mode and whether the designated type is limited.
8482
8483 2007-10-15 Tristan Gingold <gingold@adacore.com>
8484
8485 * system-vms-ia64.ads: New file.
8486
8487 * system-vms_64.ads: Minor comment fix.
8488
8489 2007-10-15 Ed Schonberg <schonberg@adacore.com>
8490
8491 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
8492 body generated for a function with a controlling result that is a null
8493 extension, discard the generated body in favor of the current explicit
8494 one.
8495
8496 2007-10-15 Ed Schonberg <schonberg@adacore.com>
8497
8498 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
8499 examining its original form, to handle properly operator calls that
8500 have been rewritten.
8501
8502 2007-10-15 Olivier Hainque <hainque@adacore.com>
8503
8504 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
8505 instead of a procedure value in each traceback entry.
8506
8507 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
8508 instead of procedure value to TBK$SYMBOLIZE.
8509
8510 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
8511 field.
8512 (TB_Entry_For): Account for the PV/FP renaming.
8513
8514 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
8515 add comment.
8516 (Null_TB_Entry): Account for change of component name.
8517 (PV_For): Rename as FP_For.
8518
8519 2007-10-15 Tristan Gingold <gingold@adacore.com>
8520
8521 * trans.c (gnat_to_gnu): Remove the padding structure more often.
8522 This optimize assignment to over-aligned record.
8523
8524 2007-10-15 Emmanuel Briot <briot@adacore.com>
8525
8526 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
8527 interfaces.
8528
8529 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
8530 type, for dispatching calls.
8531
8532 2007-10-15 Vincent Celier <celier@adacore.com>
8533 Robert Dewar <dewar@adacore.com>
8534
8535 * gnat_ugn.texi: Add documentation for switches --version and --help
8536 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
8537 gnatxref, gnatfind, gnatls, and gnatclean.
8538 Document -gnatw.o.
8539 Mention attribute Excluded_Source_Dirs
8540 Replace obsolescent attribute Locally_Removed_Files with attribute
8541 Excluded_Source_Files.
8542 Improve documentation of -u (gnatbind)
8543 Document how to do reliable stack checking for the environmental task
8544 on iVMS.
8545
8546 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
8547 Document attribute Excluded_Source_Files and indicate that attribute
8548 Locally_Removed_Files is obsolescent.
8549
8550 2007-10-15 Thomas Quinot <quinot@adacore.com>
8551
8552 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
8553
8554 * gen-soccon.c:
8555 Update documentation to note that OpenVMS 8.3 or later must be used
8556 to generate g-soccon-vms.ads.
8557
8558 * atree.adb: Add ??? comment
8559
8560 * exp_util.adb: Minor reformatting.
8561 Add ??? comment in Kill_Dead_Code.
8562
8563 2007-10-15 Robert Dewar <dewar@adacore.com>
8564
8565 * errout.ads: Comment clarification
8566
8567 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8568 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
8569
8570 * lib.ads: Comment update
8571
8572 * init.c: Minor reformatting.
8573
8574 * sem_attr.adb: Minor formatting
8575
8576 * osint-b.ads: Minor reformatting
8577
8578 * sem_ch9.adb: Implement -gnatd.I switch
8579
8580 * g-comlin.adb: (Start): Fix handling of empty command line.
8581
8582 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
8583 even when -rules follows the -cargs section.
8584
8585 2007-10-08 Ollie Wild <aaw@google.com>
8586
8587 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
8588 gnat_return_tree.
8589 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
8590 gnat_return_tree.
8591 (gnat_eh_runtime_type): Removed.
8592 (gnat_return_tree): New function.
8593
8594 2007-10-08 Ben Elliston <bje@au.ibm.com>
8595
8596 PR ada/33454
8597 Revert:
8598 2007-08-31 Ben Elliston <bje@au.ibm.com>
8599
8600 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8601 when compiling for powerpc64-*-linux.
8602 * system-linux-ppc64.ads: New file.
8603
8604 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
8605
8606 Mapped location support
8607 * back_end.adb (Call_Back_End): Pass information about source
8608 files instead of units to gigi.
8609 * gigi.h (struct File_Info_Type): New.
8610 (gigi): Rename and change type of number_units parameter, change
8611 type of file_info_ptr parameter.
8612 * trans.c (number_files): New global variable.
8613 (gigi): Rename and change type of number_units parameter, change
8614 type of file_info_ptr parameter.
8615 If mapped location support is enabled, create the isomorphic mapping
8616 between source files and line maps.
8617 (Sloc_to_locus): If mapped location support is enabled, translate
8618 source location into mapped location.
8619 (annotate_with_node): Rename into set_expr_location_from_node.
8620 Call set_expr_location instead of annotate_with_locus.
8621 (Pragma_to_gnu): Adjust for above change.
8622 (Loop_Statement_to_gnu): Likewise.
8623 (call_to_gnu): Likewise.
8624 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
8625 (gnat_to_gnu): Likewise.
8626 (add_stmt_with_node): Likewise.
8627 (add_cleanup): Likewise.
8628 * utils.c (gnat_init_decl_processing): Do not set input_line.
8629
8630 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
8631
8632 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
8633 (Applicable_Use): Emit a warning when a package tries to use itself.
8634 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
8635 is already in use or the package where it is declared is in use or is
8636 declared in the current package.
8637 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
8638
8639 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
8640 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
8641 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
8642
8643 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
8644
8645 * a-calend-vms.adb, a-calend.adb:
8646 Add a section on leap seconds control along with two entities used to
8647 enable and disable leap seconds support. The array Leap_Second_Times is
8648 now constant and contains hard time values pre-generated. Remove
8649 all elaboration code used to populate the table of leap seconds.
8650
8651 * bindgen.adb:
8652 Add entity Leap_Seconds_Support to the list of global run-time variables
8653 along with a comment on its usage and values.
8654 (Gen_Adainit_Ada): Add code to generate the declaration and import of
8655 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
8656 or one (enabled) depending on the presence of binder switch "-y".
8657 (Gen_Adainit_C): Add code to generate the declaration of external int
8658 __gl_leap_seconds_support. Set is value to zero (disabled) or one
8659 (enabled) depending on the presence of binder switch "-y".
8660
8661 * init.c: Add __gl_leap_seconds_support to the list of global values
8662 computed by the binder.
8663
8664 2007-09-26 Jerome Guitton <guitton@adacore.com>
8665
8666 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8667 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
8668 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
8669 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
8670
8671 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
8672
8673 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
8674 function which can be called by the debugger to interrupt the tasks of
8675 an Ada application asynchronously, as needed on VxWorks.
8676 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
8677
8678 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
8679 renamed from Stop_All_Tasks. Update comments.
8680 (Stop_All_tasks): New function declaration.
8681
8682 2007-09-26 Olivier Hainque <hainque@adacore.com>
8683
8684 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
8685 #include <utime.h> and #define GCC_RESOURCE_H before
8686 #include <sys/wait.h>.
8687 Add more protections in __gnat_translate_vms.
8688
8689 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
8690 #include <sys/wait.h>.
8691
8692 2007-09-26 Thomas Quinot <quinot@adacore.com>
8693 Sergey Rybin <rybin@adacore.com>
8694
8695 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
8696
8697 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8698 where it belongs.
8699
8700 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8701
8702 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8703 where it belongs.
8704
8705 * sem_dist.ads: Minor comment fix
8706
8707 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8708
8709 2007-09-26 Javier Miranda <miranda@adacore.com>
8710 Eric Botcazou <ebotcazou@adacore.com>
8711
8712 * a-tags.adb:
8713 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
8714 indirection added to the HT_Link component of the TSD. This is required
8715 to statically allocate the TSD.
8716
8717 * a-tags.ads:
8718 Minor reordering of the declarations in the private part. Required to
8719 add a level of indirection to the contents of the TSD component HT_Link.
8720 This is required to statically allocate the TSD.
8721
8722 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
8723 Is_Statically_Allocated set from constant objects.
8724 Do not make exported constants created by the compiler volatile.
8725 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
8726 as read-only.
8727
8728 * trans.c (Identifier_to_gnu): For constants, unshare initializers
8729 before returning them.
8730
8731 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
8732 public part of the package.
8733 (Make_DT): Move HT_Link component out of the TSD record. For this
8734 purpose Make_DT now declares a separate object that stores the
8735 HT_Link value, and initializes the TSD component with the address
8736 of this new object. The addition of this level of indirection is
8737 required to statically allocate the TSD because the TSD cannot
8738 have variable components.
8739 (Expand_Interface_Conversion): Improve the expanded code.
8740 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
8741
8742 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
8743 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
8744 if we are building static dispatch tables then we must not generate
8745 extra code to register the primitive because the dispatch table will
8746 be built at the end of the library package; otherwise we notify that
8747 we cannot build the static dispatch table.
8748
8749 2007-09-26 Robert Dewar <dewar@adacore.com>
8750
8751 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
8752 overlays.
8753
8754 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
8755 (Analyze_Record_Representation_Clause): Suppress junk warning for
8756 missing component clause.
8757 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
8758 tests for controlled type overlay to composites with controlled
8759 components.
8760 (Analyze_Record_Representation_Clause): Add reference for component name
8761
8762 2007-09-26 Javier Miranda <miranda@adacore.com>
8763 Gary Dismukes <dismukes@adacore.com>
8764
8765 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
8766 for thunks associated with interface types.
8767
8768 * einfo.ads: Improve documentatation of Is_Internal
8769 (Is_Thunk): New attribute applicable to subprograms. True for thunks
8770 associated with interface types.
8771 Extensive comment fixes regarding flags that appear in all entities. The
8772 documentation is now consistent for all such flags (there were a number
8773 of errors in the documentation in this regard).
8774
8775 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
8776
8777 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
8778 of these procedures are passed a function call that already has
8779 build-in-place actuals (testing new flag
8780 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
8781 the case where processing continues.
8782 (Expand_Call): If the call is generated from a thunk body then we
8783 propagate the extra actuals associated with the accessibility
8784 level of the access type actuals.
8785
8786 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
8787 of each extra formal of a protected operation to reference the
8788 corresponding extra formal of the subprogram denoted by the
8789 operation's Protected_Body_Subprogram.
8790
8791 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
8792 N_Function_Call nodes.
8793
8794 2007-09-26 Robert Dewar <dewar@adacore.com>
8795
8796 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
8797
8798 * debug.adb: Add d.s flag.
8799
8800 2007-09-26 Gary Dismukes <dismukes@adacore.com>
8801
8802 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
8803 debug variable so that it won't be initialized when pragma
8804 Initialize_Scalars is in effect.
8805
8806 2007-09-26 Gary Dismukes <dismukes@adacore.com>
8807
8808 * freeze.adb (Freeze_Entity): Remove check for preelaborable
8809 initialization of a full view. This is moved to
8810 Analyze_Package_Specification.
8811
8812 * sem_ch7.adb (Analyze_Package_Specification): Add check for
8813 preelaborable initialization of a full view in entity loop.
8814 (Uninstall_Declarations): If entity is a use-visible compilation unit,
8815 its child units are use-visible only if they are visible child units.
8816
8817 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
8818 whether an expression can be used within a type declaration that
8819 requires preelaborable init.
8820 (Check_Components): Replace inline code that does partial checking for
8821 preelaborable default expressions with call to
8822 Is_Preelaborable_Expression.
8823 (Has_Preelaborable_Initialization): In the case of a generic actual
8824 subtype, (that is, Is_Generic_Actual is True), return the result of
8825 applying Has_Preelaborable_Initialization to the generic actual's base
8826 type.
8827
8828 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
8829
8830 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
8831 call to Jan_1_Day _Of_Week to optimize its performance.
8832 (Is_Leap): Move the routine to the scope of Week_In_Year.
8833 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
8834 weekday on which January 1 falls of Year - 1 and Year + 1. This function
8835 avoids calling Time_Of and Split, thus making it more efficent.
8836 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
8837
8838 * g-calend.ads (Week_In_Year): Change comment to reflect new
8839 implementation.
8840
8841 2007-09-26 Emmanuel Briot <briot@adacore.com>
8842
8843 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
8844 Command_Line): New types
8845 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
8846 support for defining how switches can be grouped on a command line (as
8847 is the case for -gnatw... for GNAT), and how simple switches can be
8848 used as aliases for more complex switches (-gnatwa is same as
8849 -gnatwbcef...)
8850 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
8851 (Start, Current_*): New subprograms
8852 Added support for parsing an array of strings in addition to the real
8853 command line.
8854 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
8855 be moved from the body to the private part of the spec.
8856 (*): All subprograms now have an extra parameter with default value to
8857 specify which parser should be used. For backward compatibility, it
8858 defaults to parsing the command line of the application. They were also
8859 modified to properly handle cases where each of the argument does not
8860 start at index 1 (which is always true for Ada.Command_Line, but not
8861 when processing any Argument_List).
8862 (Free): New subprogram
8863 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
8864 Argument): New subprograms
8865 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
8866 special characters like ':', '=',... are now handled in a single place,
8867 which makes the code more extensible eventually.
8868 (Getopt, Full_Switch): When the switch was returned as part of the
8869 special character '*', make sure it is prepended by the switch character
8870 ('-' in general), so that the application knows whether "foo" or "-foo"
8871 was specified on the command line.
8872
8873 2007-09-26 Florian Villoing <villoing@adacore.com>
8874
8875 * g-dirope.adb (Remove_Dir): In case we are removing directories
8876 recursively, make sure that if an exception is raised during the
8877 processing, the current working directory is reset to its initial
8878 value before propagating the exception.
8879
8880 2007-09-26 Vincent Celier <celier@adacore.com>
8881
8882 * gnatbind.adb: If there are several ALI files specified and there is
8883 a main program to bind, the first ALI is expected to contain the main
8884 subprogram and the names of the binder generated files will be derived
8885 from the first ALI file name.
8886 (Gnatbind): Fix insertion character in invocation of Error_Msg
8887
8888 2007-09-26 Vincent Celier <celier@adacore.com>
8889
8890 * gnatcmd.adb (Check_Files): Do not include sources that have been
8891 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
8892
8893 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8894
8895 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
8896 information about each of its index types, following the type
8897 reference for its component type.
8898
8899 2007-09-26 Vincent Celier <celier@adacore.com>
8900
8901 * make.adb: (Kill): New procedure (__gnat_kill imported)
8902 (Running_Compile, Outstanding_Compiles): Global variables that
8903 were previously local to procedure Compile_Sources.
8904 (Sigint_Intercepted): Send signal SIGINT to all outstanding
8905 compilation processes.
8906
8907 (Gnatmake): If project files are used, create the mapping of all the
8908 sources, so that the correct paths will be found.
8909
8910 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
8911
8912 2007-09-26 Vincent Celier <celier@adacore.com>
8913
8914 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
8915
8916 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
8917 Replace components Compiler_Min_Options and Binder_Min_Options with
8918 Compiler_Required_Switches and Binder_Required_Switches in record
8919 Language_Config.
8920 Remove components Default_Language and Config in Project_Tree_Data,
8921 no longer used.
8922
8923 * prj-attr.adb: New attributes Required_Switches (<language>) in
8924 packages Compiler and Binder.
8925
8926 * prj-nmsc.adb: Major rewrite of the processing of configuration
8927 attributes for gprbuild. No impact on GNAT tools.
8928
8929 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
8930 process configuration attributes: this is done in Prj.Nmsc.Check.
8931 (Recursive_Process): Make a full copy of packages inherited from project
8932 being extended, instead of a shallow copy.
8933 (Process_Project_Tree_Phase_1): New procedure
8934 (Process_Project_Tree_Phase_1): New procedure
8935 (Process): Implementation now uses the two new procedures
8936
8937 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
8938 from the project config, not the tree config that no longer exists.
8939
8940 2007-09-26 Vincent Celier <celier@adacore.com>
8941
8942 * Make-lang.in: Update dependencies..
8943
8944 2007-09-26 Vincent Celier <celier@adacore.com>
8945
8946 * osint.adb, osint.ads: Minor reformatting
8947
8948 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8949
8950 2007-09-26 Gary Dismukes <dismukes@adacore.com>
8951
8952 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8953 message to cite use of <> in aggregate component associations rather
8954 than wrongly indicating use of limited aggregates.
8955
8956 2007-09-26 Robert Dewar <dewar@adacore.com>
8957
8958 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8959 Address_Taken.
8960
8961 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8962
8963 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8964 ancestor of the derived type, the operations are inherited from the
8965 primary dispatch table of the parent.
8966 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8967 when the context is an explicit type conversion.
8968
8969 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8970
8971 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8972 rule for qualified expressions properly, to detect improper conversions
8973 and resolve some cases of overloading.
8974
8975 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8976
8977 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8978 proper kind of reference to the primitive operation, for better source
8979 navigation.
8980 (Valid_Conversion): A tagged conversion is legal if both operands are
8981 tagged.
8982
8983 2007-09-26 Robert Dewar <dewar@adacore.com>
8984
8985 * sem_warn.adb (Check_References): Catch more cases of unreferenced
8986 packages.
8987
8988 2007-09-26 Vincent Celier <celier@adacore.com>
8989
8990 * snames.adb, snames.ads: Change Include_Option to Include_Switches
8991
8992 2007-09-26 Robert Dewar <dewar@adacore.com>
8993
8994 * s-wchstw.adb: provide messages for run time unit exceptions
8995
8996 * a-witeio.adb: Minor reformatting
8997
8998 * exp_ch13.adb: Minor reformatting
8999
9000 2007-09-26 Sergey Rybin <rybin@adacore.com>
9001
9002 * vms_data.ads: Revise gnatmetric qualifiers.
9003 Add qualified for the new gnatbind option '-y'
9004
9005 * gnat_ugn.texi: Revise the gnatmetric section.
9006 Add entry for new gnatbind option '-y'.
9007
9008 * gnat_rm.texi: Minor spelling correction.
9009 Document restriction on overlaying controlled types
9010
9011 2007-09-26 Vincent Celier <celier@adacore.com>
9012
9013 * makegpr.adb (Link_Executables): Do not fail when the root project has
9014 no sources, but is an extending project.
9015
9016 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9017
9018 * trans.c: Fix misplaced #define.
9019
9020 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9021
9022 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9023 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9024
9025 2007-09-21 Olivier Hainque <hainque@adacore.com>
9026
9027 * utils.c (type_for_nonaliased_component_p): Return false for
9028 all AGGREGATE_TYPEs.
9029
9030 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9031
9032 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9033 object covered by 13.3(19) volatile.
9034
9035 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9036
9037 PR ada/26797
9038 PR ada/32407
9039 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9040 in the special VIEW_CONVERT_EXPR case.
9041
9042 2007-09-12 Robert Dewar <dewar@adacore.com>
9043
9044 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9045
9046 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9047 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9048 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9049 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9050 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9051 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9052 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9053 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9054 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9055 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9056 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9057 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9058 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9059 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9060 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9061 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9062 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9063 pragma Compiler_Unit and adds it to relevant library units.
9064
9065 2007-09-12 Ed Schonberg <schonberg@adacore.com>
9066
9067 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9068 a box need not correspond to any component.
9069
9070 2007-09-12 Robert Dewar <dewar@adacore.com>
9071
9072 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9073 the tasking version of the Ada run time when foreign threads are
9074 present and there are no explicit Ada tasks or tasking constructs.
9075
9076 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9077
9078 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
9079
9080 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9081 the usage of switch -y.
9082
9083 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9084 when switch -y is present.
9085
9086 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9087 leap seconds in Ada.Calendar and its children.
9088
9089 2007-09-12 Jose Ruiz <ruiz@adacore.com>
9090
9091 * a-extiti.ads (Timer): The discriminant is a "not null access
9092 constant" in the Reference Manual.
9093 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9094
9095 2007-09-12 Robert Dewar <dewar@adacore.com>
9096
9097 * a-swuwha.adb: Remove junk RM header
9098
9099 2007-09-12 Vincent Celier <celier@adacore.com>
9100
9101 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9102 indicator
9103
9104 * g-bytswa.ads: Minor reformatting
9105
9106 2007-09-12 Thomas Quinot <quinot@adacore.com>
9107
9108 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9109 Add new constant Thread_Blocking_IO, always True by default, set False
9110 on a per-runtime basis.
9111 (Need_Netdb_Buffer): New constant.
9112
9113 2007-09-12 Arnaud Charlet <charlet@adacore.com>
9114
9115 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9116 Added renames for corresponding functions in System.Partition_Interface.
9117
9118 2007-09-12 Doug Rupp <rupp@adacore.com>
9119
9120 * Makefile.in: Remove VMS specific System.CRTL packages which are no
9121 longer needed.
9122
9123 * s-crtl-vms64.ads: Removed.
9124
9125 2007-09-12 Olivier Hainque <hainque@adacore.com>
9126
9127 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9128 with discriminant constraints, generalize the code for BIT_FIELDs
9129 to PACKED fields of constant size and propagate DECL_PACKED.
9130
9131 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
9132
9133 * decl.c (array_type_has_nonaliased_component): New predicate.
9134 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9135 set the TYPE_NONALIASED_COMPONENT flag on the type.
9136 <E_Array_Subtype>: Likewise.
9137 * gigi.h (type_for_nonaliased_component_p): Declare.
9138 * utils.c (type_for_nonaliased_component_p): New predicate.
9139 (create_field_decl): Invoke the above predicate to set the
9140 DECL_NONADDRESSABLE_P flag on the field.
9141
9142 2007-09-11 Javier Miranda <miranda@adacore.com>
9143
9144 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9145 in library level record type entities if we are generating statically
9146 allocated dispatch tables.
9147
9148 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9149 importing/exporting the _tag declaration by new code
9150 importing/exporting the dispatch table wrapper. This change allows us
9151 to statically allocate of the TSD.
9152 (Make_DT.Export_DT): New procedure.
9153 (Build_Static_DT): New function.
9154 (Has_DT): New function.
9155
9156 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9157 True_Constant and Current_Value. Required to statically
9158 allocate the dispatch tables.
9159 (Check_Allocator): Make function iterative instead of recursive.
9160 Also return inner allocator node, when present, so that we do not have
9161 to look for that node again in the caller.
9162
9163 2007-09-11 Jan Hubicka <jh@suse.cz>
9164
9165 * misc.c (gnat_expand_body): Kill.
9166 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9167
9168 2007-09-10 Robert Dewar <dewar@adacore.com>
9169
9170 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9171 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9172 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9173 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9174 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9175 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9176 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9177 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9178 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9179 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9180 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9181 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9182 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9183 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9184 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9185 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9186 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9187 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9188 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9189 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9190 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9191 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9192 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9193 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9194 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9195 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9196 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9197 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9198 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9199 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9200 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9201 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9202 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9203 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9204 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9205 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9206 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9207 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9208 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9209 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9210 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9211 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9212 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9213 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9214 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9215 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9216 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9217 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9218 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9219 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9220 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9221 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9222 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9223 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9224 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9225 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9226 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9227 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9228 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9229 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9230 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9231 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9232 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9233 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9234 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9235 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9236 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9237 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9238 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9239 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9240 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9241 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9242 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9243 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9244 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9245 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9246 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9247 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9248 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9249 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9250 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9251 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9252 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9253
9254 2007-09-10 Emmanuel Briot <briot@adacore.com>
9255
9256 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9257 classes ("[]").
9258
9259 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
9260
9261 * adaint.c (__gnat_translate_vms): new function.
9262
9263 2007-09-10 Gary Dismukes <dismukes@adacore.com>
9264 Thomas Quinot <quinot@adacore.com>
9265
9266 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9267 create an abstract subprogram in the case of 'Input. For 'Output we now
9268 create a real spec/body when the type is abstract, since it can
9269 potentially be called.
9270 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9271 body for 'Output when the type is abstract (only the creation of the
9272 body for 'Input is excluded when the type is abstract).
9273 (Stream_Operation_OK): Add an additional condition in the return
9274 statement, so that False will be returned for TTS_Stream_Input if the
9275 associated tagged type is an abstract extension. Add comments for
9276 return statement.
9277 (Expand_N_Object_Declaration): For the case of a shared passive
9278 variable, insert init proc call only after the shared variable
9279 procedures have been processed, because the IP call needs to undergo
9280 shared passive variable reference expansion, which requires these
9281 procedures to be available (and elaborated).
9282
9283 2007-09-10 Vincent Celier <celier@adacore.com>
9284
9285 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9286 parameter Runtime_Project.
9287
9288 2007-09-10 Ed Schonberg <schonberg@adacore.com>
9289
9290 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
9291 given a box association, the type of the component is discriminated,
9292 and the value of the discriminant is the discriminant of the enclosing
9293 type, retrieve its value from the aggregate itself, where it must have
9294 been supplied.
9295
9296 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
9297 to remove other spurious ambiguities on arithmetic operations involving
9298 literals and addresses, on systems where Address is a visible integer
9299 type, when the operator is called in functional notation.
9300 (Try_Primitive_Operation): Within an instance, a call in prefixed form
9301 is legal when the types match, even if the operation is currently
9302 hidden.
9303
9304 2007-09-10 Ed Schonberg <schonberg@adacore.com>
9305
9306 * sem_ch12.adb (Build_Local_Package): A formal package with no
9307 associations is legal if all formals have defaults. It is not
9308 equivalent to a formal declared with a box.
9309
9310 2007-09-10 Sergey Rybin <rybin@adacore.com>
9311
9312 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
9313
9314 2007-09-10 Sergey Rybin <rybin@adacore.com>
9315
9316 * gnat_ugn.texi: Add description of the new '-lratio' option
9317 Update 7.3.1 section about availability of the feature.
9318
9319 2007-09-10 Thomas Quinot <quinot@adacore.com>
9320
9321 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
9322 inserted node.
9323
9324 2007-09-10 Olivier Hainque <hainque@adacore.com>
9325
9326 * Makefile.in: (mips-irix section): Activate build of libgmem.
9327
9328 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
9329
9330 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
9331 x87 registers.
9332
9333 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
9334
9335 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
9336 a debug renaming declaration specially.
9337
9338 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
9339
9340 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
9341 which a constant renaming is treated as a normal object declaration.
9342 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
9343 the N_Indexed_Component case.
9344 <N_Indexed_Component>: Fall through to above case.
9345 <N_Object_Renaming_Declaration>: Return true for all composite types.
9346
9347 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
9348
9349 * decl.c (make_packable_type): If the new type has been given BLKmode,
9350 try again to get an integral mode for it.
9351
9352 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
9353
9354 Re-apply accidentally reverted change:
9355
9356 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
9357
9358 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9359 get_action_description_for): Replace _Unwind_Word with _uleb128_t
9360 and _Unwind_SWord with _sleb128_t.
9361
9362 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
9363
9364 * trans.c (convert_with_check): Update call to real_2expN.
9365
9366 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
9367
9368 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
9369 * utils.c (end_subprog_body): Likewise.
9370
9371 2007-09-03 Nick Clifton <nickc@redhat.com>
9372
9373 * Make-lang.in: Change copyright header to refer to version 3 of
9374 the GNU General Public License and to point readers at the
9375 COPYING3 file and the FSF's license web page.
9376 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
9377 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
9378 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
9379 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
9380 Likewise.
9381
9382 2007-08-31 Vincent Celier <celier@adacore.com>
9383
9384 PR ada/4720
9385
9386 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
9387 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
9388 (Check_Version_And_Help): New procedure in package Switch to process
9389 switches --version and --help.
9390 Use Check_Version_And_Help in GNAT tools
9391
9392 * make.adb: Ditto.
9393 (Compile_Sources): Make sure that sources that are "excluded" are not
9394 compiled.
9395 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
9396 project file is used.
9397 (Version_Switch): Remove, moved to Switch
9398 (Help_Switch): Remove, moved to Switch
9399 (Display_Version): Remove, moved to Switch
9400
9401 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
9402 package Switch to process switches --version and --help.
9403 (Display_Version): New procedure
9404
9405 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
9406
9407 2007-08-31 Javier Miranda <miranda@adacore.com>
9408
9409 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
9410 internal tags.
9411
9412 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
9413
9414 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
9415 (Mark_Non_Null): If the node for which we just generated an access check
9416 is a reference to an *in* parameter and the reference appears in the
9417 declarative part of a subprogram body, mark the node as known non null.
9418
9419 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
9420
9421 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
9422 structure of E_Exception to reflect the new flag.
9423 (Is_Raised, Set_Is_Raised): New inlined routines.
9424 Update the usage of available flag to reflect the addition of Is_Raised.
9425 (Is_Raised, Set_Is_Raised): Bodies of new routines.
9426 (Write_Entity_Flags): Write the status of flag Is_Raised.
9427 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
9428 spurious ambiguities when integer literals appear in the context of an
9429 address type that is a visible integer type.
9430
9431 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
9432 exceptions never being raised.
9433 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
9434 explicitly raised.
9435
9436 2007-08-31 Javier Miranda <miranda@adacore.com>
9437
9438 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
9439 statement when compiling under restriction No_Exceptions_Proparation.
9440
9441 2007-08-31 Ed Schonberg <schonberg@adacore.com>
9442
9443 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
9444 initialization aggregate for the type, generate itype references for
9445 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
9446
9447 2007-08-31 Gary Dismukes <dismukes@adacore.com>
9448
9449 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
9450 library-level package renaming, pass the declaration associated with
9451 the renaming's special debug variable to Qualify_Entity_Names to ensure
9452 that its encoded name is properly qualified.
9453
9454 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
9455 occurring in the list of entities to qualify, and do not attempt to
9456 traverse an entity list in that case. Variables associated with
9457 ` library-level package renamings can now occur in the table.
9458
9459 * exp_dbug.ads: Revise documentation of the encoding for renaming
9460 declarations.
9461
9462 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9463
9464 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
9465 access type points to an unconstrained array.
9466
9467 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
9468
9469 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
9470 conversion.
9471
9472 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
9473 simple redundant qualifications. The check is performed whenever the
9474 expression is a non-overloaded identifier.
9475 (Resolve_Type_Conversion): Enchance the redundant type conversion check
9476 to include loop parameters.
9477 (Valid_Conversion): Avoid generation of spurious error message.
9478
9479 2007-08-31 Bob Duff <duff@adacore.com>
9480
9481 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
9482 concatenations of string literals into a single literal, in order to
9483 avoid very deep recursion in the front end, which was causing stack
9484 overflow.
9485
9486 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
9487 string, and the right operand is a string literal (the case of "" &
9488 "..."), optimize by avoiding copying the right operand -- just use the
9489 value of the right operand directly.
9490
9491 * stringt.adb (Store_String_Chars): Optimize by growing the
9492 String_Chars table all at once, rather than appending characters one by
9493 one.
9494 (Write_String_Table_Entry): If the string to be printed is very long,
9495 just print the first few characters, followed by the length. Otherwise,
9496 doing "pn(n)" in the debugger can take an extremely long time.
9497
9498 * sem_prag.adb (Process_Interface_Name): Replace loop doing
9499 Store_String_Char with Store_String_Chars.
9500
9501 2007-08-31 Vincent Celier <celier@adacore.com>
9502
9503 * prj-attr.adb: Add new attribute Excluded_Source_Files
9504
9505 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
9506 Locally_Removed_Files.
9507
9508 * snames.ads, snames.adb: New standard name Excluded_Source_Files
9509
9510 2007-08-31 Ed Schonberg <schonberg@adacore.com>
9511
9512 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
9513 clauses of subunits, ignore limited_with_clauses that are illegal and
9514 have not been fully analyzed.
9515
9516 2007-08-31 Ed Schonberg <schonberg@adacore.com>
9517
9518 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
9519 flag, for effiency. It is called when analyzing arithmetic operators
9520 and also for actuals in calls that are universal_integers. The flag is
9521 set for the predefined type address, and for any type or subtype
9522 derived from it.
9523
9524 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
9525 Universal_Integer, when the formal is a descendent of address and the
9526 call appears in user code.
9527 (Analyze_Selected_Component): if the prefix is a private extension, the
9528 tag component is visible.
9529
9530 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
9531 entity flag.
9532
9533 2007-08-31 Robert Dewar <dewar@adacore.com>
9534
9535 * s-fileio.adb (Open): Normalize file name to lower case in non-case
9536 sensitive file name systems to avoid unexpected mismatch in Vista.
9537
9538 2007-08-31 Vincent Celier <celier@adacore.com>
9539
9540 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
9541
9542 2007-08-31 Vincent Celier <celier@adacore.com>
9543
9544 * symbols-vms.adb (Initialize): Read symbol files with continuation
9545 lines
9546 (Finalize): If symbol is long, split the line
9547
9548 2007-08-31 Vincent Celier <celier@adacore.com>
9549
9550 * fmap.ads: Minor comment updates
9551
9552 2007-08-31 GNAT Script <nobody@adacore.com>
9553
9554 * Make-lang.in: Makefile automatically updated
9555
9556 2007-08-31 Bob Duff <duff@adacore.com>
9557
9558 * sinfo.ads: Minor comment fix.
9559
9560 2007-08-31 Thomas Quinot <quinot@adacore.com>
9561
9562 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
9563 with implementation.
9564 Documentation cleanup only.
9565
9566 2007-08-31 Sergey Rybin <rybin@adacore.com>
9567
9568 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
9569 gnatpp '--separate-stmt-name' option.
9570 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
9571 option.
9572
9573 * gnat_ugn.texi: Add description for the new gnatpp
9574 '--separate-stmt-name' and '--use-on-new-line' options.
9575
9576 2007-08-31 Ben Elliston <bje@au.ibm.com>
9577
9578 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9579 when compiling for powerpc64-*-linux.
9580 * system-linux-ppc64.ads: New file.
9581
9582 2007-08-22 Krister Walfridsson <cato@df.lth.se>
9583
9584 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
9585 NetBSD.
9586
9587 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9588
9589 * misc.c (gnat_type_max_size): Constify.
9590
9591 2007-08-16 Gary Dismukes <dismukes@adacore.com>
9592
9593 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
9594 associated with Standard_Debug_Renaming_Type, to be used as the type of
9595 the special variables whose names provide debugger encodings for
9596 renaming declarations.
9597
9598 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
9599 (Set_Debug_Renaming_Link): Change to set Node25.
9600 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
9601 (Write_Field25_Name): Add case for E_Variable to output
9602 "Debug_Renaming_Link".
9603 (Write_Field23_Name): Correct the output string for "Limited_View".
9604
9605 * exp_dbug.adb: Add with and use of Tbuild.
9606 (Debug_Renaming_Declaration): Replace creation of an enumeration type
9607 and literal with creation of a variable of type
9608 Standard_Debug_Renaming_Type whose name encodes both the renamed object
9609 and the entity of the renaming declaration.
9610 (Qualify_Entity_Name): Add the delayed qualification of the entity name
9611 part of the name of a variable that has a Debug_Renaming_Link.
9612
9613 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
9614 special type to be associated with variables that provide debugger
9615 encodings for renaming declarations.
9616
9617 2007-08-16 Gary Dismukes <dismukes@adacore.com>
9618 Ed Schonberg <schonberg@adacore.com>
9619 Javier Miranda <miranda@adacore.com>
9620
9621 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
9622 ancestor part given by an aggregate to test for an unchecked conversion,
9623 since this can occur in some cases when the ancestor part is a function
9624 call, and we don't want to fall into the recursive call to this
9625 procedure in that case.
9626
9627 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
9628 stream attributes on limited types to account for user-specified
9629 attributes as well as whether Input (resp. Output) becomes available
9630 due to Read (resp. Write) being available for the type. Change Boolean
9631 variable to the more accurate name
9632 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
9633 double-"not" predicate at beginning of return statement to more
9634 understandable form.
9635
9636 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
9637 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
9638 in a block statement and use that as the first statement of the
9639 expanded return rather than incorrectly using the handled sequence as
9640 the first statement.
9641
9642 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
9643 operation, generate an explicit freeze node for it rather than
9644 generating extra formals, to ensure that gigi has the proper order of
9645 elaboration for anonymous subtypes in the signature of the subprograms.
9646 (Build_In_Place_Formal): Move assertion to beginning of loop.
9647 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
9648 applied to a function call (occurs for some cases of 'Input).
9649 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
9650 applied to a function call (occurs for some cases of 'Input).
9651
9652 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
9653 2005, generate an extended return statement enclosing the result object
9654 and 'Read call.
9655
9656 * freeze.adb (Freeze_Record_Type): Extend the current management of
9657 components that are access type with an allocator as default value: add
9658 missing support to the use of qualified expressions of the
9659 allocator (which also cause freezing of the designated type!)
9660 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
9661 dispatching operation, since extra formals may be needed by calls to
9662 build-in-place functions (such as stream 'Input).
9663
9664 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
9665 formals for 'Constrained and accessibility level in the case of a
9666 predefined dispatching operation.
9667
9668 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
9669 point, no need to find the parent node.
9670
9671 2007-08-16 Javier Miranda <miranda@adacore.com>
9672
9673 * exp_attr.adb (Attribute_Priority): Add missing support for entries
9674 and entry barriers.
9675
9676 2007-08-16 Javier Miranda <miranda@adacore.com>
9677
9678 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
9679 is not really required and can introduce regression with the debugger.
9680 The original problem is fixed with the patch written for checks.adb.
9681
9682 2007-08-16 Thomas Quinot <quinot@adacore.com>
9683
9684 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
9685 Range_Check on Allocated_Table.
9686
9687 2007-08-16 Vincent Celier <celier@adacore.com>
9688
9689 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
9690 Including_Non_Switch set to False.
9691 (Gnatmake): For the compiler, call Test_If_Relative_Path with
9692 Including_Non_Switch set to False.
9693
9694 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
9695 parameter Including_Non_Switch, defaulted to True. When
9696 Including_Non_Switch is False, options that are not switches and
9697 appear as relative path are not converted to absolute paths.
9698
9699 2007-08-16 Nicolas Roche <roche@adacore.com>
9700
9701 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
9702 makefiles
9703
9704 * Make-lang.in: Update dependencies
9705
9706 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
9707
9708 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
9709 currently inspected is a selected component, retrieve the entity of
9710 its selector.
9711 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
9712 from the immediate ancestor of Main_Unit_Entity.
9713 (Install_Limited_Withed_Unit): Do not install the limited view of
9714 package P if P is reachable through an ancestor chain from package C
9715 and C also has a with clause for P in its body.
9716 (Has_Limited_With_Clause): New routine.
9717 (Has_With_Clause): New routine.
9718
9719 2007-08-16 Ed Schonberg <schonberg@adacore.com>
9720
9721 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
9722 generic for an enclosing instance is a global reference, even though
9723 its scope is the enclosing instance.
9724
9725 2007-08-16 Gary Dismukes <dismukes@adacore.com>
9726 Javier Miranda <miranda@adacore.com>
9727
9728 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
9729 initialize a limited object.
9730 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
9731 13/2 and 14/2.
9732 Make sure Has_Complex_Representation is inherited by derived type.
9733
9734 2007-08-16 Robert Dewar <dewar@adacore.com>
9735
9736 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
9737 exception case
9738
9739 2007-08-16 Ed Schonberg <schonberg@adacore.com>
9740
9741 * sem_disp.adb (Check_Dispatching_Operation): If the operation
9742 implements an operation inherited from a progenitor interface, verify
9743 that they are subtype-conformant.
9744
9745 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
9746 Bob Duff <duff@adacore.com>
9747 Nicolas Setton <setton@adacore.com>
9748
9749 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
9750 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
9751 the statement which is being resolved comes from a predefined library
9752 unit, all non-predefined library interpretations are skipped.
9753 (Resolve_Op_Concat): If string concatenation was folded in the parser,
9754 but the "&" is user defined, give an error, because the folding would
9755 be wrong.
9756
9757 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
9758 the parser has folded a long sequence of concatenations of string
9759 literals.
9760
9761 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
9762 and "JMP_BUF" variables as artificial.
9763 (N_String_Literal): Do not use alloca for very long string literals. Use
9764 xmalloc/free instead. Otherwise the stack might overflow.
9765
9766 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
9767 compiler.
9768
9769 2007-08-16 Vincent Celier <celier@adacore.com>
9770
9771 * vms_conv.adb (Process_Argument): Ensure that project related options
9772 are not put in the -cargs section when using GNAT COMPILE.
9773
9774 2007-08-16 Robert Dewar <dewar@adacore.com>
9775
9776 * gnat_ugn.texi: Add note on preprocessing (output file not written)
9777
9778 2007-08-16 Thomas Quinot <quinot@adacore.com>
9779
9780 * a-tags.adb: Minor reformatting.
9781
9782 2007-08-16 Bob Duff <duff@adacore.com>
9783
9784 * sem_type.ads, sem_ch4.adb: Minor reformatting.
9785
9786 2007-08-14 Thomas Quinot <quinot@adacore.com>
9787
9788 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
9789 s-osinte-interix.ads, system-interix.ads: Removed.
9790
9791 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9792
9793 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
9794 calls to Check_Within_Time_Bounds.
9795 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
9796 (Difference): Account for possible rounding of the resulting difference
9797
9798 2007-08-14 Robert Dewar <dewar@adacore.com>
9799
9800 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
9801 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
9802 s-osinte-solaris.adb, s-osinte-solaris.ads,
9803 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
9804
9805 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
9806 switch -gnatyS. Enable -gnatyS in GNAT style check mode
9807
9808 2007-08-14 Robert Dewar <dewar@adacore.com>
9809 Ed Schonberg <schonberg@adacore.com>
9810
9811 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
9812 Suppress unmodified in-out parameter warning in some cases
9813 This patch is a also fairly significant change to the way suppressible
9814 checks are handled.
9815
9816 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
9817 needed for access to concurrent record types generated by the expander.
9818 (Generate_Range_Check): When generating a temporary to capture the
9819 value of a conversion that requires a range check, set the type of the
9820 temporary before rewriting the node, so that the type is always
9821 properly placed for back-end use.
9822 (Apply_Float_Conversion_Check): Handle case where the conversion is
9823 truncating.
9824 (Get_Discriminal): Code reformatting. Climb the scope stack looking
9825 for a protected type in order to examine its discriminants.
9826
9827 2007-08-14 Robert Dewar <dewar@adacore.com>
9828 Gary Dismukes <dismukes@adacore.com>
9829 Ed Schonberg <schonberg@adacore.com>
9830 Thomas Quinot <quinot@adacore.com>
9831
9832 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
9833 a-stwisu.adb, a-strsup.adb: Fix warnings for range
9834 tests optimized out.
9835
9836 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
9837 (Get_Allocator_Final_List): For the case of an anonymous access type
9838 that has a specified Associated_Final_Chain, do not go up to the
9839 enclosing scope.
9840 (Expand_N_Type_Conversion): Test for the case of renamings of access
9841 parameters when deciding whether to apply a run-time accessibility
9842 check.
9843 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
9844 aggregate code before allocator, and ahead of declaration for
9845 temporary, to prevent access before elaboration when the allocator is
9846 an actual for an access parameter.
9847 (Expand_N_Type_Conversion): On an access type conversion involving an
9848 access parameter, do not apply an accessibility check when the
9849 operand's original node was an attribute other than 'Access. We now
9850 create access conversions for the expansion of 'Unchecked_Access and
9851 'Unrestricted_Access in certain cases and clearly accessibility should
9852 not be checked for those.
9853
9854 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
9855 includes a type conversion of a packed component that has been expanded,
9856 recover the original expression for the object, and use this expression
9857 in the post-call assignment statement, so that the assignment is made
9858 to the object and not to a back-end temporary.
9859 (Freeze_Subprogram): In case of primitives of tagged types not defined
9860 at the library level force generation of code to register the primitive
9861 in the dispatch table. In addition some code reorganization has been
9862 done to leave the implementation clear.
9863 (Expand_Call): When expanding an inherited implicit conversion,
9864 preserve the type of the inherited function after the intrinsic
9865 operation has been expanded.
9866
9867 * exp_ch2.ads, exp_ch2.adb
9868 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
9869 of an entry formal appearing in an assignment statement does not assign
9870 to the formal.
9871 (Expand_Current_Value): Instead of calling a routine to determine
9872 whether the prefix of an attribute reference should be optimized or
9873 not, prevent the optimization of such prefixes all together.
9874
9875 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
9876 component whose prefix is known to be of an access type is an implicit
9877 dereference and does not assign to the prefix.
9878
9879 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9880 Robert Dewar <dewar@adacore.com>
9881
9882 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
9883 itype is visited, make an entry into table to link associated node and
9884 new itype.
9885 Add comments and correct harmless error in Build_NCT_Hash_Tables
9886 (Array_Aggr_Subtype): Associate each itype created for an index type to
9887 the corresponding range construct, and not to the aggregate itself. to
9888 maintain a one-to-one correspondence between itype and its associated
9889 node, to prevent errors when complex expression is copied.
9890 Fix mishandling of multiple levels of parens
9891
9892 * sem_aggr.adb: Create a limited view of an incomplete type, to make
9893 treatment of limited views uniform for all visible declarations in a
9894 limited_withed package.
9895 (New_Copy_Tree): If hash table is being used and itype is visited,
9896 make an entry into table to link associated node and new itype.
9897 (Resolve_Record_Aggregate): Do not add an others box association for a
9898 discriminated record component that has only discriminants, when there
9899 is a box association for the component itself.
9900
9901 * par-ch4.adb: Fix mishandling of multiple levels of parens
9902
9903 2007-08-14 Robert Dewar <dewar@adacore.com>
9904
9905 * comperr.adb: Fix problem with suppressing warning messages from gigi
9906
9907 * erroutc.ads, erroutc.adb, errout.ads,
9908 errout.adb (Write_Eol): Remove trailing spaces before writing the line
9909 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9910 possible trailing spaces.
9911 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9912 Fix problem with suppressing warning messages from back end
9913 Improve handling of deleted warnings
9914
9915 * gnat1drv.adb:
9916 Fix problem with suppressing warning messages from back end
9917 Handle setting of Static_Dispatch_Tables flag.
9918
9919 * prepcomp.adb:
9920 Fix problem with suppressing warning messages from back end
9921
9922 * exp_intr.adb: Improve handling of deleted warnings
9923
9924 2007-08-14 Robert Dewar <dewar@adacore.com>
9925
9926 * debug.adb: Improve -gnatdI to cover all cases of serialization
9927 Add documentation of dZ, d.t
9928
9929 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
9930 serialization.
9931 (Sprint_Node_Actual): Generate new output associated with implicit
9932 importation and implicit exportation of object declarations.
9933
9934 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9935 Robert Dewar <dewar@adacore.com>
9936 Javier Miranda <miranda@adacore.com>
9937 Gary Dismukes <dismukes@adacore.com>
9938
9939 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
9940 to make treatment of limited views uniform for all visible declarations
9941 in a limited_withed package.
9942 Improve warnings for in out parameters
9943 (Set_Related_Interaface/Related_Interface): Allow the use of this
9944 attribute with constants.
9945 (Write_Field26_Name): Handle attribute Related_Interface in constants.
9946 Warn on duplicate pragma Preelaborable_Initialialization
9947
9948 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9949 generation of a freezing node to ensure proper management of null
9950 excluding access types in the backend.
9951 (Create_Extra_Formals): Test base type of the formal when checking for
9952 the need to add an extra accessibility-level formal. Pass the entity E
9953 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9954 originally being done in a couple of cases), to ensure that the
9955 Extra_Formals list gets set on the entity E when the first entity is
9956 added.
9957 (Conforming_Types): Add missing calls to Base_Type to the code that
9958 handles anonymous access types. This is required to handle the
9959 general case because Process_Formals builds internal subtype entities
9960 to handle null-excluding access types.
9961 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9962 functions that need it, even when not marked Requires_Overriding.
9963 Improve warnings for in out parameters
9964 (Analyze_Function_Return): Warn for disallowed null return
9965 Warn on return from procedure with unset out parameter
9966 Ensure consistent use of # in error messages
9967 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9968 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9969 the implicit conversion of the expression done for anonymous access
9970 types. This is required to generate the code of the null excluding
9971 check (if required).
9972
9973 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9974 A formal parameter is never publicly referenceable outside of its body.
9975 (Check_References): For an unreferenced formal parameter in an accept
9976 statement, use the same warning circuitry as for subprogram formal
9977 parameters.
9978 (Warn_On_Unreferenced_Entity): New subprogram, taken from
9979 Output_Unreferenced_Messages, containing the part of that routine that
9980 is now reused for entry formals as described above.
9981 (Goto_Spec_Entity): New function
9982 (Check_References): Do not give IN OUT warning for dispatching operation
9983 Improve warnings for in out parameters
9984 (Test_Ref): Check that the entity is not undefinite before calling
9985 Scope_Within, in order to avoid infinite loops.
9986 Warn on return from procedure with unset out parameter
9987 Improved warnings for unused variables
9988
9989 2007-08-14 Robert Dewar <dewar@adacore.com>
9990 Javier Miranda <miranda@adacore.com>
9991 Gary Dismukes <dismukes@adacore.com>
9992
9993 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9994 (Expand_N_Attribute_Reference): Further unify the handling of the
9995 three forms of access attributes, using common code now for all three
9996 cases. Add a test for the case of applying an access attribute to
9997 an explicit dereference when the context is an access-to-interface
9998 type. In that case we need to apply the conversion to the prefix
9999 of the explicit dereference rather than the prefix of the attribute.
10000 (Attribute_Version, UET_Address): Set entity as internal to ensure
10001 proper dg output of implicit importation.
10002 (Expand_Access_To_Type): Removed.
10003 (Expand_N_Attribute_Reference): Merge the code from the three cases
10004 of access attributes, since the processing is largely identical for
10005 these cases. The substantive fix here is to process the case of a
10006 type name prefix (current instance case) before handling the case
10007 of interface prefixes.
10008
10009 2007-08-14 Thomas Quinot <quinot@adacore.com>
10010 Ed Schonberg <schonberg@adacore.com>
10011 Javier Miranda <miranda@adacore.com>
10012 Robert Dewar <dewar@adacore.com>
10013
10014 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10015 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10016 type that is an anonymous access to controlled object, establish
10017 an associated finalization chain to avoid corrupting the global
10018 finalization list when a dynamically allocated object designated
10019 by such a component is deallocated.
10020 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10021 functions that need it, even when not marked Requires_Overriding.
10022 (Initialize_Tag): Replace call to has_discriminants by call to
10023 Is_Variable_Size_Record in the circuitry that handles the
10024 initialization of secondary tags.
10025 (Is_Variable_Size_Record): New implementation.
10026 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10027 Suppress_Initialization pragma for a derived type.
10028 (Is_Variable_Size_Record): New subprogram.
10029 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10030 initial version of this routine and also fixes problems causing
10031 incomplete initialization of the table of interfaces.
10032 (Build_Init_Procedure): Improve the generation of code to initialize the
10033 the tag components of secondary dispatch tables.
10034 (Init_Secondary_Tags): New implementation that simplifies the previous
10035 version of this routine.
10036 (Make_DT): Add parameter to indicate when type has been frozen by an
10037 object declaration, for diagnostic purposes.
10038 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10039 diagnose attemps to freeze a subprogram when some untagged type of its
10040 profile is a private type whose full view has not been analyzed yet.
10041 (Freeze_Array_Type): Generate init proc for packed array if either
10042 Initialize or Normalize_Scalars is set.
10043 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10044 constructing the new profile, copy the null_exclusion indicator for each
10045 parameter, to ensure full conformance of the new body with the spec.
10046
10047 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10048 Create wrappers for constructor functions that need it, even when not
10049 marked Requires_Overriding.
10050 (Covers): Handle properly designated types of anonymous access types,
10051 whose non-limited views are themselves incomplete types.
10052 (Add_Entry): Use an entity to store the abstract operation which hides
10053 an interpretation.
10054 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10055 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10056 initialization aggregate.
10057 (Function_Interp_May_Be_Hidden): Rename to
10058 Function_Interp_Has_Abstract_Op.
10059 (Has_Compatible_Type): Remove machinery that skips interpretations if
10060 they are labeled as potentially hidden by an abstract operator.
10061 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10062 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10063 (Write_Overloads): Output the abstract operator if present.
10064 (Add_Entry): Before inserting a new entry into the interpretation table
10065 for a node, determine whether the entry will be disabled by an abstract
10066 operator.
10067 (Binary_Op_Interp_May_Be_Hidden): New routine.
10068 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10069 aggregate.
10070 (Function_Interp_May_Be_Hidden): New routine.
10071 (Has_Compatible_Type): Do not consider interpretations hidden by
10072 abstract operators when trying to determine whether two types are
10073 compatible.
10074 (Has_Hidden_Interp): New routine.
10075 (Set_May_Be_Hidden_Interp): New routine.
10076 (Write_Overloads): Write the status of flag May_Be_Hidden.
10077
10078 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10079 Javier Miranda <miranda@adacore.com>
10080
10081 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10082 types declared in the declarative part of a nested package body or in
10083 the proper body of a stub.
10084 (Set_All_DT_Position): Add missing check to avoid wrong assignation
10085 of the same dispatch table slot to renamed primitives.
10086 (Make_Select_Specific_Data_Table): Handle private types.
10087 (Tagged_Kind): Handle private types.
10088 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10089 output of implicit importation and exportation.
10090 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10091 first formal of the thunk is always associated with the controlling
10092 type. In addition perform the following code cleanup: remove formal
10093 Thunk_Alias which is no longer required, cleanup evaluation of the
10094 the controlling type, and update the documentation.
10095 Replace occurrence of Default_Prim_Op_Count by
10096 Max_Predef_Prims. Addition of compile-time check to verify
10097 that the value of Max_Predef_Prims is correct.
10098 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10099 (Make_DT): Add parameter to indicate when type has been frozen by an
10100 object declaration, for diagnostic purposes.
10101 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10102 construction of statically allocated dispatch tables.
10103 (Make_DT): In case of library-level tagged types export the declaration
10104 of the primary tag. Remove generation of tags (now done by Make_Tags).
10105 Additional modifications to handle non-static generation of dispatch
10106 tables. Take care of building tables for asynchronous interface types
10107 (Make_Tags): New subprogram that generates the entities associated with
10108 the primary and secondary tags of Typ and fills the contents of Access_
10109 Disp_Table. In case of library-level tagged types imports the forward
10110 declaration of the primary tag that will be declared later by Make_DT.
10111 (Expand_Interface_Conversion): In case of access types to interfaces
10112 replace an itype declaration by an explicit type declaration to avoid
10113 problems associated with the scope of such itype in transient blocks.
10114
10115 2007-08-14 Robert Dewar <dewar@adacore.com>
10116 Ed Schonberg <schonberg@adacore.com>
10117 Javier Miranda <miranda@adacore.com>
10118
10119 * exp_util.ads, exp_util.adb:
10120 This patch replaces a number of occurrences of explicit tests for N_Null
10121 with calls to Known_Null. This improves tracking of null values, since
10122 Known_Null also catches null constants, and variables currently known to
10123 be null, so we get better tracking.
10124 (Ensure_Defined): create an itype reference only in the scope of the
10125 itype.
10126 (Side_Effect_Free): A selected component of an access type that
10127 denotes a component with a rep clause must be treated as not
10128 side-effect free, because if it is part of a linked structure its
10129 value may be affected by a renaming.
10130 (Expand_Subtype_From_Expr): For limited objects initialized with build
10131 in place function calls, do nothing; otherwise we prematurely introduce
10132 an N_Reference node in the expression initializing the object, which
10133 breaks the circuitry that detects and adds the additional arguments to
10134 the called function. Bug found working in the new patch for statically
10135 allocated dispatch tables.
10136 (Is_Library_Level_Tagged_Type): New subprogram.
10137 (Remove_Side_Effects): If the expression of an elementary type is an
10138 operator treat as a function call.
10139 (Make_Literal_Range): If the index type of the array is not integer, use
10140 attributes properly to compute the constraint on the resulting aggregate
10141 which is a string.
10142
10143 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10144 class-wide type whose base type is an incomplete private type, leave
10145 class-wide type unfrozen so that freeze nodes can be generated
10146 properly at a later point.
10147 (Freeze_Entity, array case): Handle case of pragma Pack and component
10148 size attributre clause for same array.
10149
10150 2007-08-14 Vincent Celier <celier@adacore.com>
10151
10152 * prj.ads, prj.adb: Update Project Manager to new attribute names for
10153 gprbuild.
10154 Allow all valid declarations in configuration project files
10155 (Reset): Initialize all tables and hash tables in the project tree data
10156 Major update of the Project Manager and of the project aware tools,
10157 including gprmake, so that the same sources in the GNAT repository
10158 can be used by gprbuild.
10159 (Slash_Id): Change type to be Path_Name_Type
10160 (Slash): Return a Path_Name_Type instead of a File_Name_Type
10161
10162 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10163 gprbuild.
10164 Update Project Manager to new attribute names for ghprbuild
10165 Allow all valid declarations in configuration project files
10166 Major update of the Project Manager and of the project aware tools,
10167 including gprmake, so that the same sources in the GNAT repository
10168 can be used by gprbuild.
10169
10170 * prj-com.ads:
10171 Major update of the Project Manager and of the project aware tools,
10172 including gprmake, so that the same sources in the GNAT repository
10173 can be used by gprbuild.
10174
10175 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10176 insensitive flag for attributes with optional index.
10177 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10178 array attribute, put the index in lower case.
10179 Update Project Manager to new attribute names for ghprbuild
10180 Allow all valid declarations in configuration project files
10181 Major update of the Project Manager and of the project aware tools,
10182 including gprmake, so that the same sources in the GNAT repository
10183 can be used by gprbuild.
10184
10185 * prj-env.ads, prj-env.adb:
10186 Major update of the Project Manager and of the project aware tools,
10187 including gprmake, so that the same sources in the GNAT repository
10188 can be used by gprbuild.
10189 (Get_Reference): Change type of parameter Path to Path_Name_Type
10190
10191 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10192 removing '-' from the path to start with the first character of the
10193 next directory.
10194 Major update of the Project Manager and of the project aware tools,
10195 including gprmake, so that the same sources in the GNAT repository
10196 can be used by gprbuild.
10197 Major update of the Project Manager and of the project aware tools,
10198 including gprmake, so that the same sources in the GNAT repository
10199 can be used by gprbuild.
10200
10201 * prj-nmsc.ads, prj-nmsc.adb:
10202 Update Project Manager to new attribute names for ghprbuild
10203 Allow all valid declarations in configuration project files
10204 (Search_Directories): Detect subunits that are specified with an
10205 attribute Body in package Naming. Do not replace a source/unit in the
10206 same project when the order of the source dirs are known. Detect
10207 duplicate sources/units in the same project when the order of the
10208 source dirs are not known.
10209 (Check_Ada_Name): Allow all identifiers that are not reserved words
10210 in Ada 95.
10211 Major update of the Project Manager and of the project aware tools,
10212 including gprmake, so that the same sources in the GNAT repository
10213 can be used by gprbuild.
10214 (Look_For_Sources): If the list of sources is empty, set the object
10215 directory of non extending project to nil.
10216 Change type of path name variables to be Path_Name_Type
10217 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10218 otherwise creating missing directories will fail.
10219
10220 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
10221 prj-part.ads, prj-part.adb:
10222 Major update of the Project Manager and of the project aware tools,
10223 including gprmake, so that the same sources in the GNAT repository
10224 can be used by gprbuild.
10225
10226 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10227 insensitive flag for attributes with optional index.
10228 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10229 array attribute, put the index in lower case.
10230 (Parse_Variable_Reference): Allow the current project name to be used in
10231 the prefix of an attribute reference.
10232
10233 * prj-util.ads, prj-util.adb
10234 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10235 defaulted to False. When True, always check against indexes in lower
10236 case.
10237
10238 * snames.ads, snames.h, snames.adb:
10239 Update Project Manager to new attribute names for gprbuild
10240 Allow all valid declarations in configuration project files
10241
10242 2007-08-14 Robert Dewar <dewar@adacore.com>
10243 Ed Schonberg <schonberg@adacore.com>
10244
10245 * opt.ads: Warning for non-local exception propagation now off by
10246 default
10247 New switch -gnatI to disable representation clauses
10248 Implement new pragma Implicit_Packing
10249
10250 * usage.adb:
10251 Warning for non-local exception propagation now off by default
10252 Add warning for unchecked conversion of pointers wi different
10253 conventions.
10254 New switch -gnatI to disable representation clauses
10255
10256 * usage.adb: new switch -gnatyS
10257
10258 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10259 note that aggregates of anonymous array types are not flagged.
10260 -gnatwc now includes membership tests optimized away
10261 -gnatw.x warnings are now off by default
10262 Added conditional compilation Appendix
10263 Add documentation of -gnatI
10264 Add documentation for new -gnatyS style check
10265 Update documentation about SAL and auto-init on Windows.
10266
10267 * gnat_rm.texi:
10268 Add documentation for pragma Check_Name and 'Enabled attribute
10269 Document that Eliminate on dispatching operation is ignored
10270 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10271 Document pragma Main
10272 Document pragma Implicit_Packing
10273
10274 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10275 different conventions
10276 New switch -gnatI to disable representation clauses
10277
10278 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10279 recognized, report the invalid characters including "-gnat" instead of
10280 just the first character in the switch.
10281 New switch -gnatI to disable representation clauses
10282 Set Warn_On_Object_Renames_Function true for -gnatg
10283
10284 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10285 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10286 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10287 to switch -aP (add directory to project search dir).
10288
10289 * par-prag.adb: Implement new pragma Implicit_Packing
10290
10291 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
10292 type as having a non-standard representation, to force expansion on
10293 conversion to related types.
10294 (Analyze_Pragma): Warn on misspelled pragma
10295 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
10296 Ensure consistent use of # in error messages
10297 Implement pragma Implicit_Packing
10298
10299 2007-08-14 Olivier Hainque <hainque@adacore.com>
10300 Eric Botcazou <ebotcazou@adacore.com>
10301
10302 * targtyps.c (get_target_maximum_default_alignment): New function.
10303 Maximum alignment
10304 that the compiler might choose by default for a type or object.
10305 (get_target_default_allocator_alignment): New function. Alignment known
10306 to be honored by the target default allocator.
10307 (get_target_maximum_allowed_alignment): New function. Maximum alignment
10308 we might accept for any type or object on the target.
10309 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
10310
10311 * gigi.h (get_target_maximum_default_alignment): Declare new function.
10312 (get_target_default_allocator_alignment): Likewise.
10313 (get_target_maximum_allowed_alignment): Likewise.
10314
10315 PR ada/19037
10316 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
10317 result of a function call, first try to use a stabilized reference for
10318 a constant renaming too.
10319 (validate_alignment): Use target_maximum_allowed_alignment instead of
10320 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
10321 (gnat_to_gnu_entity): Use common nodes directly.
10322 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
10323 alignment and size for the object.
10324 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
10325 and N_Procedure_Call_Statement.
10326 (takes_address): Rename to lvalue_required_p, add third parameter
10327 'aliased' and adjust recursive calls.
10328 <N_Indexed_Component>: Update 'aliased' from the array type.
10329 <N_Selected_Component>: New case.
10330 <N_Object_Renaming_Declaration>: New Likewise.
10331 (Identifier_to_gnu): Adjust for above changes.
10332 (maybe_stabilize_reference) <CONST_DECL>: New case.
10333
10334 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
10335 between type variants.
10336 (build_simple_component_ref): Likewise.
10337 (build_call_alloc_dealloc): Use target_default_allocator_alignment
10338 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
10339 aligning type circuitry for allocations from the default storage pool.
10340 (build_allocator): Likewise.
10341 (build_simple_component_ref): Manually fold the reference for a
10342 constructor if the record type contains a template.
10343
10344 * utils.c (value_zerop): Delete.
10345 (gnat_init_decl_processing): Emit debug info for common types.
10346 (rest_of_record_type_compilation): If a union contains a field
10347 with a non-constant qualifier, treat it as variable-sized.
10348 (finish_record_type): Give the stub TYPE_DECL a name.
10349 (rest_of_record_type_compilation): Likewise.
10350 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
10351 types are equivalent array types.
10352 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
10353 even if the type is not passed by reference.
10354 (static_ctors, static_dtors): Delete.
10355 (end_subprog_body): Do not record constructors and destructors.
10356 (build_global_cdtor): Delete.
10357 (gnat_write_global_declarations): Do not call build_global_cdtor.
10358
10359 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
10360 -fRTS=rtp is specified.
10361 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
10362 specified.
10363
10364 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
10365 of the personality function with SJLJ exceptions.
10366
10367 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
10368 the name of the personality function with SJLJ exceptions.
10369
10370 2007-08-14 Robert Dewar <dewar@adacore.com>
10371 Ed Schonberg <schonberg@adacore.com>
10372
10373 * par.ads, par.adb: Improve handling of extra right parens.
10374 (Par): Remove flag From_Limited_With_Clause.
10375
10376 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
10377 Improve handling of extra right parens.
10378
10379 2007-08-14 Robert Dewar <dewar@adacore.com>
10380
10381 * par-tchk.adb (TF_Semicolon): Improve error recovery
10382
10383 2007-08-14 Robert Dewar <dewar@adacore.com>
10384 Ed Schonberg <schonberg@adacore.com>
10385
10386 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
10387 enumeration type, mark all literals as referenced.
10388 (Eval_Attribute, case 'Image): If the argument is an enumeration
10389 literal and names are available, constant-fold but mark nevertheless as
10390 non-static.
10391 Clean up function names.
10392 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
10393 comment.
10394 (Requires_Simple_Name_Prefix): Removed.
10395
10396 2007-08-14 Robert Dewar <dewar@adacore.com>
10397 Ed Schonberg <schonberg@adacore.com>
10398
10399 * sem_ch11.adb: Improved warnings for unused variables
10400
10401 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
10402 is a synchronized interface, the derived type is limited.
10403 (Analyze_Object_Declaration): Mark the potential coextensions in the
10404 definition and expression of an object declaration node.
10405 (Build_Derived_Type): For the completion of a private type declaration
10406 with a derived type declaration, chain the parent type's representation
10407 items to the last representation item of the derived type (not the
10408 first one) if they are not present already.
10409 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
10410 object declaration of forward references to tags.
10411 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
10412 subprogram types can appear as access discriminants of synchronized
10413 types.
10414 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
10415 given in prefixed form as a selected component.
10416 (Process_Discriminants): If not all discriminants have defaults, place
10417 error message on a default that is present.
10418 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
10419 extend a synchronized tagged type.
10420 Improved warnings for unused variables
10421 (Is_Visible_Component): Fix a visibility hole on a component inherited
10422 by a private extension when parent is itself declared as a private
10423 extension, and the derivation is in a child unit.
10424 (Find_Hidden_Interface): Move spec from the package body.
10425
10426 2007-08-14 Robert Dewar <dewar@adacore.com>
10427 Ed Schonberg <schonberg@adacore.com>
10428
10429 * sem_ch5.adb: Improve warnings on redundant assignments
10430
10431 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
10432 parameter
10433 (Is_Synchronized_Tagged_Type): New subprogram that returns true
10434 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
10435 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
10436 is set to False. Improves handling of Known_[Not_]Null.
10437 (Wrong_Type): Special case address arithmetic attempt
10438 (Collect_Abstract_Interfaces): Add new formal to allow collecting
10439 abstract interfaces just using the partial view of private types.
10440 (Has_Abstract_Interfaces): Add new formal to allow checking types
10441 covering interfaces using the partial view of private types.
10442 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
10443 component still needs to be defined in this case, but is never
10444 initialized as VMs are using other dispatching mechanisms.
10445 (Abstract_Interface_List): For a protected type, use base type to get
10446 proper declaration.
10447 Improve warnings on redundant assignments
10448 (Is_Variable): Handle properly an implicit dereference of a prefixed
10449 function call.
10450 (Build_Actual_Subtype): If this is an actual subtype for an
10451 unconstrained formal parameter, use the sloc of the body for the new
10452 declaration, to prevent anomalises in the debugger.
10453
10454 2007-08-14 Robert Dewar <dewar@adacore.com>
10455
10456 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
10457 dispatching operation
10458
10459 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10460 Gary Dismukes <dismukes@adacore.com>
10461
10462 * exp_aggr.ads,
10463 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
10464 expanded aggregate code before allocator, and ahead of declaration for
10465 temporary, to prevent access before elaboration when the allocator is
10466 an actual for an access parameter.
10467 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
10468 the TSD and the table of interfaces.
10469 (Convert_To_Assignments): Augment the test for delaying aggregate
10470 expansion for limited return statements to include the case of extended
10471 returns, to prevent creation of an unwanted transient scope.
10472 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
10473 (Expand_Array_Aggregate): Handle aggregates associated with
10474 statically allocated dispatch tables.
10475 (Expand_Record_Aggregate): Handle aggregates associated with
10476 statically allocated dispatch tables.
10477 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
10478 of anonymous access type.
10479
10480 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10481
10482 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
10483 is a variable that renames a slice, use the variable itself in the
10484 expannsion when the renamed expression itself may be modified between
10485 the declaration of the renaming and the array assignment.
10486
10487 2007-08-14 Jerome Guitton <guitton@adacore.com>
10488
10489 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
10490 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
10491 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
10492 New functions; dummy implementations.
10493
10494 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
10495 functions, used to implement the multi-tasks mode routines on VxWorks.
10496
10497 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
10498 New functions, thin
10499 binding to the VxWorks routines which have changed between VxWorks 5
10500 and 6.
10501 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
10502 which are not callable from a RTP.
10503
10504 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
10505 implemented for the multi-tasks mode on VxWorks 5 and 6.
10506
10507 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
10508
10509 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
10510 functions.
10511
10512 2007-08-14 Vincent Celier <celier@adacore.com>
10513
10514 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
10515 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
10516 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
10517 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10518 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10519 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
10520 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
10521 procedure.
10522 (Major_Id_Name): New function.
10523 mlib-tgt.ads/mlib.tgt.adb:
10524 (Library_Major_Minor_Id_Supported): New function, default returns True
10525 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
10526 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
10527 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
10528 Implementation of Library_Major_Minor_Id_Supported returns False
10529 clean.adb:
10530 (Clean_Library_Directory): If major/minor ids are supported, clean all
10531 library files.
10532 Major update of the Project Manager and of the project aware tools,
10533 including gprmake, so that the same sources in the GNAT repository
10534 can be used by gprbuild.
10535
10536 2007-08-14 Olivier Hainque <hainque@adacore.com>
10537
10538 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
10539 (GCC_ZCX_Support): Switch to True.
10540
10541 * s-intman-solaris.adb (Notify_Exception): Call
10542 Adjust_Context_For_Raise before raising, as expected for signal
10543 handlers in general.
10544
10545 * s-intman-posix.adb (Notify_Exception): Remove declaration of
10546 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
10547 to other implementation bodies.
10548
10549 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
10550 be visible by multiple implementation bodies.
10551
10552 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
10553 only for conditions coming from hardware.
10554 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
10555 adjustments to signal context prior to exception raise from signal
10556 handler.
10557 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
10558 mode.
10559 Solaris section: (__gnat_adjust_context_for_raise): New function.
10560 Implementation of the machine context adjustments to perform prior to
10561 raise from a signal handler. Version for both sparc and x86.
10562 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
10563 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
10564 prior to raising as expected for any handler, before possible nested
10565 faults to make sure all the contexts in a chain have been adjusted by
10566 the time we propagate.
10567
10568 2007-08-14 Pascal Obry <obry@adacore.com>
10569
10570 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
10571 (SYSTEM_INFO): New record.
10572 (SetThreadIdealProcessor): New imported routine needed for supporting
10573 task_info pragma on Windows.
10574
10575 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
10576 info can be applied to the current host.
10577 (Create_Task): Set the ideal processor if information is present.
10578
10579 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
10580 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
10581
10582 2007-08-14 Olivier Hainque <hainque@adacore.com>
10583
10584 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
10585 stack size and initial stack pointer value for a given task.
10586 (Enter_Task): Get the stack attributes of the task we are entering and
10587 let the stack checking engine know about them.
10588
10589 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
10590 Let the stack-checking engine know about the initial sp value and stack
10591 size associated with the current task.
10592 (Set_Stack_Info): If a stack base has been notified for the current
10593 task, honor it. Fallback to the previous less accurate method otherwise.
10594
10595 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
10596
10597 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10598
10599 * sem_ch10.adb: Create a limited view of an incomplete type, to make
10600 treatment of limited views uniform for all visible declarations in a
10601 limited_withed package.
10602 Set flag indicating that a subprogram body for a child unit has a
10603 generated spec.
10604 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
10605 separate declaration, remove the unit name from visibility after
10606 compilation, so that environment is clean for subsequent compilations.
10607 (Install_Limited_Context_Clauses): Do not install a
10608 limited_private_with_clause unless the current unit is a body or a
10609 private child unit.
10610 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
10611 in the same fashion.
10612 (Install_Limited_Withed_Unit): Do not install a limited with clause if
10613 it applies to the declaration of the current package body.
10614 (Remove_Private_With_Clauses): If there is a regular with_clause for
10615 the unit, delete Private_With_Clause from context, to prevent improper
10616 hiding when processing subsequent nested packages and instantiations.
10617
10618 2007-08-14 Jose Ruiz <ruiz@adacore.com>
10619
10620 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
10621 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
10622 representing absolute path names.
10623 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
10624
10625 * cstreams.c (__gnat_full_name for VxWorks): Use
10626 __gnat_is_absolute_path to detect whether we need to add the current
10627 directory to normalize the path.
10628
10629 2007-08-14 Javier Miranda <miranda@adacore.com>
10630
10631 * a-tags.ads,
10632 a-tags.adb (Displace): Associate a message with the raised CE
10633 exception.
10634 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
10635 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
10636 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
10637 spec.
10638 (Default_Prim_Op_Count): Removed.
10639 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
10640 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
10641 Remove pragma Inline_Always.
10642
10643 * rtsfind.ads (Default_Prim_Op_Count): Removed
10644 (Max_Predef_Prims): New entity
10645 (RE_Expanded_Name): Removed
10646 (RE_HT_Link): Removed
10647 (RE_Iface_Tag): Remmoved
10648 (RE_Ifaces_Table): Removed
10649 (RE_Interfaces_Array): Removed
10650 (RE_Interface_Data_Element): Removed
10651 (RE_Nb_Ifaces): Removed
10652 (RE_RC_Offset): Removed
10653 (RE_Static_Offset_To_Top): Removed
10654
10655 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
10656 formal.
10657 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
10658 Prim_Op_Count by Max_Predef_Prims.
10659
10660 2007-08-14 Thomas Quinot <quinot@adacore.com>
10661 Vincent Celier <celier@adacore.com>
10662
10663 * binde.adb (Elab_All_Links): Remove unnecessary call to
10664 Generic_Separately_Compiled (if a unit satisfies this predicate, there
10665 won't be an associated Afile).
10666 (Elab_All_Links): Fail if a referenced unit cannot be found
10667
10668 * bindgen.adb:
10669 Fix comments in bindgen regarding consistency checks done in Bcheck:
10670 the checks are made across units within a partition, not across several
10671 partitions.
10672 Fix generation of C binder file for VxWorks.
10673
10674 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
10675 Generic_May_Lack_ALI, more descriptive of the current use of the
10676 predicate, and update documentation.
10677
10678 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
10679 reorganization and documentation update for the case of predefined
10680 library generics (for which we do not reference an Afile).
10681
10682 2007-08-14 Robert Dewar <dewar@adacore.com>
10683
10684 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
10685 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
10686 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
10687 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
10688 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
10689 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
10690 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
10691 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
10692 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
10693 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
10694 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
10695 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
10696 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
10697 g-altcon.adb: Minor reformatting
10698
10699 ada-tree.h: Delete empty line.
10700
10701 ali.ads: Minor reformatting
10702 Clarification of comments.
10703 Minor spelling correction
10704
10705 * exp_dbug.adb: Add Warnings Off to suppress new warning
10706
10707 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10708 formal
10709
10710 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
10711 value
10712
10713 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
10714
10715 * a-textio.ads: Reorder the standard input/output/error declarations
10716 for consistency.
10717
10718 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
10719
10720 * par-ch2.adb: Recognize RM specially in errout
10721 Change 'R'M to RM in all error messages
10722
10723 * scng.adb: Recognize RM specially in errout
10724
10725 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
10726 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
10727
10728 * s-direio.adb: Add missing routine header box.
10729
10730 * sem_attr.ads: Add ??? comments
10731
10732 * sem_eval.adb: Recognize RM specially in errout
10733 Change 'R'M to RM in all error messages
10734
10735 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
10736
10737 * s-tasinf.ads: Fix minor comment typo.
10738
10739 * a-cihama.adb: Minor comment addition
10740
10741 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10742 formal
10743
10744 * s-tasinf-tru64.ads: Fix minor comment typo.
10745
10746 * itypes.ads: Comment update.
10747
10748 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
10749 anymore.
10750
10751 * argv.c: Added protection against null gnat_argv and gnat_envp.
10752
10753 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
10754 warning message when Tolerate_Consistency_Errors is True.
10755
10756 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
10757 Any_Id, as this subprogram is only applicable to *type* entities (it
10758 sets RM_Size). Instead initialize just Esize and Alignment.
10759
10760 2007-08-14 Bob Duff <duff@adacore.com>
10761
10762 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
10763 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
10764 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
10765 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
10766 a-coorse.ads (Next): Applied pragma Inline.
10767 Make all Containers packages Remote_Types (unless they are already
10768 Pure).
10769 (Previous): applied pragma Inline
10770 (Elements_Type): is now a record instead of an array
10771
10772 2007-08-14 Thomas Quinot <quinot@adacore.com>
10773
10774 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
10775 of Set_Item.
10776 (Set_Item): When the new item is an element of the currently allocated
10777 table passed by reference, save a copy on the stack if we're going
10778 to reallocate. Also, in Table.Set_Item, make sure we test the proper
10779 variable to determine whether to call Set_Last.
10780
10781 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
10782 symbols-vms.adb, symbols-processing-vms-alpha.adb,
10783 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
10784 some occurrences of the pattern
10785 T.Increment_Last;
10786 T.Table (T.Last) := Value;
10787 with a cleaner call to
10788 T.Append (Value);
10789
10790 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10791 Gary Dismukes <dismukes@adacore.com>
10792 Thomas Quinot <quinot@adacore.com>
10793
10794 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
10795 derived type with interface progenitors use the analyzed formal as the
10796 parent of the actual, to create renamings for all the inherited
10797 operations in Derive_Subprograms.
10798 (Collect_Previous_Instances): new procedure within of
10799 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
10800 unit being loaded, to ensure that the generation of global symbols is
10801 consistent in different compilation modes.
10802 (Is_Tagged_Ancestor): New function testing the ancestor relation that
10803 takes progenitor types into account.
10804 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
10805 traversing over the primitives of the formal and actual types to locate
10806 any abstract subprograms of the actual type that correspond to a
10807 nonabstract subprogram of the formal type's ancestor type(s), and issue
10808 an error if such is found.
10809 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
10810 Instantiate_Package_Body, Instantiate_Subprogram_Body):
10811 Remove bogus guard around calls to Inherit_Context.
10812 (Reset_Entity): If the entity is the selector of a selected component
10813 that denotes a named number, propagate constant-folding to the generic
10814 template only if the named number is global to the generic unit.
10815 (Set_Instance_Env): Only reset the compilation switches when compiling
10816 a predefined or internal unit.
10817
10818 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10819
10820 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
10821 parameter to determine whether operation applies to the prefix.
10822 (Complete_Object_Operation): If actual has an access type and
10823 controlling formal is not an in_parameter, reject the actual if it is
10824 an access_to_constant type.
10825 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
10826 type, the candidate operations are found in the scope of declaration of
10827 the type, because the type has no primitive subprograms.
10828 (Analyze_Selected_Component): If prefix is class-wide, and root type is
10829 a private extension, only examine visible components before trying to
10830 analyze as a prefixed call.
10831 Change Entity_List to Type_To_Use, for better readability.
10832 (Has_Fixed_Op): Use base type when checking whether the type of an
10833 operator has a user-defined multiplication/division
10834 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
10835 user-defined operators are available for fixed-point types.
10836
10837 2007-08-14 Thomas Quinot <quinot@adacore.com>
10838 Ed Schonberg <schonberg@adacore.com>
10839
10840 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
10841 formal At_Any_Place indicating, when True, that we want to test for
10842 availability of the stream attribute at any place (as opposed to the
10843 current visibility context only).
10844 (Missing_Read_Write_Attributes): A stream attribute is missing for the
10845 purpose of enforcing E.2.2(8) only if it is not available at any place.
10846 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
10847 when checking the legality of an extension aggregate in a preelaborable
10848 package. Treat the literal null as a valid default expression in a
10849 component declaration for a type with preelaborable initialization.
10850 A limited interface is a legal progenitor for the designated type of a
10851 remote access to class-wide type.
10852
10853 2007-08-14 Thomas Quinot <quinot@adacore.com>
10854 Ed Schonberg <schonberg@adacore.com>
10855
10856 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
10857 reference): Use correct entity as denoted entity for the selector of
10858 the rewritten node.
10859 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
10860 setting the Referenced_As_LHS flag for entities that are implicitly
10861 dereferenced.
10862 (Find_Type): If the type is an internally generated incomplete type,
10863 mark the full view as referenced, to prevent spurious warnings.
10864 (Find_Selected_Component, Has_Components): Handle properly non-limited
10865 views that are themselves incomplete types.
10866 Handle interfaces visible through limited-with clauses.
10867 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
10868 subprogram generic actual for which we have generated a renaming.
10869 Warn when the renaming introduces a homonym of
10870 the renamed entity, and the renamed entity is directly visible.
10871
10872 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10873 Hristian Kirtchev <kirtchev@adacore.com>
10874
10875 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
10876 appear in the subtree to the current allocator if it is not a static
10877 coextension.
10878 (Resolve_Allocator): Perform cleanup if resolution has determined that
10879 the allocator is not a coextension.
10880 (Resolve): Skip an interpretation hidden by an abstract operator only
10881 when the type of the interpretation matches that of the context.
10882 (Resolve): When looping through all possible interpretations of a node,
10883 do not consider those that are hidden by abstract operators.
10884 (Resolve_Actuals): When verifying that an access to class-wide object
10885 is an actual for a controlling formal, ignore anonymous access to
10886 subprograms whose return type is an access to class_wide type.
10887 (Resolve_Slice): If the prefix of the slice is a selected component
10888 whose type depends on discriminants, build its actual subtype before
10889 applying range checks on the bounds of the slice.
10890 (Valid_Conversion): In an instance or inlined body, compare root types,
10891 to prevent anomalies between private and public views.
10892 (Resolve): Improve error message for ambiguous fixed multiplication
10893 expressions that involve universal_fixed multiplying operations.
10894
10895 2007-08-14 Javier Miranda <miranda@adacore.com>
10896 Hristian Kirtchev <kirtchev@adacore.com>
10897
10898 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
10899 location to allow the correct generation of errors in case of
10900 restrictions applied to the expanded code.
10901 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
10902 function if the condition does not reference them.
10903 (Expand_Entry_Body_Declarations): Mark the index constant as having a
10904 valid value.
10905
10906 2007-08-14 Thomas Quinot <quinot@adacore.com>
10907 Pablo Oliveira <oliveira@adacore.com>
10908
10909 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
10910 typecode parameters for a union (in a variant record), remove
10911 extraneous layer of Any wrapping for member label.
10912 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
10913 elabration statements, register the package with the name server
10914 at the beginning, not at the end, of the elaboration statements so
10915 that they can create remote access to subprogram values that designate
10916 remote subprograms from the package.
10917
10918 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10919
10920 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
10921 values to compute the number of seconds since the Unix Epoc in order to
10922 account for Daylight Savings Time. Perform special processing for dates
10923 that are earlier than the Unix Epoc to obtain a negative number.
10924
10925 2007-08-14 Emmanuel Briot <briot@adacore.com>
10926
10927 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
10928 switches.
10929
10930 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
10931
10932 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
10933 binder-generated file is not in Ada.
10934 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
10935 recorded in the ALI file.
10936 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
10937
10938 2007-08-14 Vincent Celier <celier@adacore.com>
10939
10940 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10941 (Output_Source): Do nothing if parameter is No_Sdep_Id
10942
10943 * make.adb (Gnatmake): Do not rebuild an archive simply because a
10944 shared library it imports has a later time stamp.
10945 (Check): Resolve the symbolic links in the path name of the object
10946 directory.
10947 Check that the ALI file is in the correct object directory
10948 Check if a file name does not correspond to the mapping of units
10949 to file names.
10950 (Display_Version): New procedure
10951 (Initialize): Process switches --version and --help
10952 Use type Path_Name_Type for path name
10953
10954 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
10955
10956 * impunit.adb: Re-organize System.Random_Numbers and
10957 GNAT.Random_Numbers and add to builds.
10958
10959 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10960
10961 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10962
10963 * a-assert.ads, a-assert.adb: New files.
10964
10965 2007-08-14 Gary Dismukes <dismukes@adacore.com>
10966
10967 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10968 if AAMP_On_Target is True, then the size of the type encompasses two
10969 addresses (a static link and a subprogram address), except in the case
10970 of library-level access types.
10971
10972 2007-08-14 Vincent Celier <celier@adacore.com>
10973
10974 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10975 writing the line.
10976 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10977 possible trailing spaces.
10978 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10979
10980 2007-08-14 Javier Miranda <miranda@adacore.com>
10981
10982 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10983 null-excluding access types.
10984
10985 2007-08-14 Javier Miranda <miranda@adacore.com>
10986
10987 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10988 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10989 of private types add missing check on matching interfaces in the
10990 partial and full declarations.
10991 (Analyze_Protected_Type): Code cleanup.
10992 (Analyze_Task_Type): Code cleanup.
10993
10994 2007-08-14 Javier Miranda <miranda@adacore.com>
10995
10996 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10997 generated interface thunk.
10998
10999 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11000
11001 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11002 obsolescent warning on application of 'Class to an incomplete type.
11003
11004 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11005 prevent obsolescent warning on application of 'Class to an incomplete
11006 type.
11007
11008 2007-08-14 Pascal Obry <obry@adacore.com>
11009
11010 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11011 file stream.
11012
11013 2007-08-14 Cyrille Comar <comar@adacore.com>
11014
11015 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11016 since it is potentially used in cases implying double finalization of
11017 the same object.
11018
11019 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11020
11021 * s-tasini.adb (Get_Stack_Info): Move this function to
11022 System.Soft_Links.Tasking because it is common to the full and the
11023 restricted run times.
11024 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11025 in SSL.Tasking.Init_Tasking_Soft_Links.
11026
11027 * s-solita.adb (Get_Stack_Info): Function moved from
11028 System.Tasking.Initialization because it is common to the full and the
11029 restricted run times.
11030 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11031
11032 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11033
11034 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11035 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11036 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11037 parameter.
11038
11039 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11040 guard to 12K.
11041
11042 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11043
11044 * s-veboop.adb (SU): New named number initialized to
11045 System.Storage_Unit.
11046 (True_Val): The initialization expression is revised to use SU (=
11047 Storage_Unit) rather than assuming 8 for the component size of an
11048 unpacked Boolean array.
11049
11050 2007-08-14 Tristan Gingold <gingold@adacore.com>
11051
11052 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11053
11054 * tb-ivms.c: New file.
11055
11056 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11057
11058 2007-08-14 Geert Bosch <bosch@adacore.com>
11059
11060 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11061 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11062 Add required linker pragmas for automatically linking with the gnalasup
11063 linear algebra support library, and the systems math library.
11064 Rename cdot to cdotu and zdot to zdotu.
11065 Update header comment to describe purpose of package.
11066
11067 2007-08-14 Thomas Quinot <quinot@adacore.com>
11068
11069 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11070 an explicitly specified Associated_Final_Chain, use that list.
11071 (Expand_N_Package_Body): Build dispatch tables of library level tagged
11072 types.
11073 (Expand_N_Package_Declaration): Build dispatch tables of library level
11074 tagged types. Minor code cleanup.
11075
11076 2007-08-14 Vincent Celier <celier@adacore.com>
11077
11078 * gnatchop.adb (Terminate_Program): Remove exception and use
11079 Types.Terminate_Program instead.
11080
11081 * osint.ads, osint.adb (Current_Exit_Status): New global variable
11082 (Find_Program_Name): Added protection against empty name.
11083 (OS_Exit_Through_Exception): New procedure
11084
11085 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11086 (OS_Exit_Default): New procedure that contains the previous
11087 implementation of procedure OS_Exit.
11088 (Final_Value): Remove obsolete Interix stuff.
11089
11090 2007-08-14 Thomas Quinot <quinot@adacore.com>
11091
11092 * g-socket.ads: Reorganize example code so that it also works on
11093 Windows XP.
11094
11095 2007-08-14 Tristan Gingold <gingold@adacore.com>
11096
11097 * g-trasym.ads: AIX now supports symbolic backtraces.
11098
11099 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11100
11101 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11102 units being loaded to detect circularities. A circularity may be
11103 present even if the current chain of pending units to load starts from
11104 a limited_with_clause.
11105
11106 * lib-load.ads: Change profile of Load_Unit to use a with_clause
11107 rather than a boolean flag, in order to detect circularities in
11108 with_clauses.
11109
11110 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11111 than propagating the From_Limited_With flag, in order to handle
11112 properly circularities involving with_clauses.
11113
11114 2007-08-14 Nicolas Setton <setton@adacore.com>
11115
11116 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11117 warnings.
11118
11119 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11120
11121 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11122 to build for libgnala.
11123 libgnat: Add rules to build libgnala.a
11124 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11125 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11126 Add s-osinte-vxworks-kernel.adb to the target pairs of the
11127 kernel run-time lib for VxWorks 6, which would provide a different
11128 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11129 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11130 running ZCX by default.
11131 Add g-sttsne-locking to LynxOS version.
11132 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11133 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11134
11135 * system-darwin-x86.ads: New file.
11136
11137 * Make-lang.in: Delete files before copying onto them, so if they are
11138 read-only, the copy won't fail.
11139 Update dependencies
11140
11141 2007-08-14 Pascal Obry <obry@adacore.com>
11142
11143 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11144 naming scheme.
11145
11146 2007-08-14 Vincent Celier <celier@adacore.com>
11147
11148 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11149 (Gcc): Initialize Gcc_Name at the first call
11150
11151 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11152
11153 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11154 with_clauses of the enclosing unit when analyzing the package
11155 specification of a nested instance.
11156
11157 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11158
11159 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11160 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11161 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11162 layout of N_Allocator.
11163
11164 2007-08-14 Thomas Quinot <quinot@adacore.com>
11165
11166 * rtsfind.adb (Check_RPC): Add PCS version check.
11167
11168 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11169 (Gnat_Free_Software): New function.
11170
11171 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11172 the PCS_Version value from s-parint, used to check that it is consistent
11173 with what exp_dist expects.
11174
11175 * s-parint.ads (PCS_Version): New entity for checking consistency
11176 between exp_dist and PCS.
11177
11178 * gen-soccon.c: (SO_REUSEPORT): New constant.
11179
11180 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11181
11182 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11183 variable Sub_Second to Duration in order to accomodate a larger range
11184 of arithmetic operations.
11185
11186 2007-08-14 Bob Duff <duff@adacore.com>
11187
11188 * g-sttsne-locking.ads: Move comments from spec to body.
11189 * g-sttsne-locking.adb: Move comments from spec to body.
11190 * g-sttsne-vxworks.ads: Removed.
11191 * g-sttsne-vxworks.adb: Removed.
11192
11193 2007-08-11 Ian Lance Taylor <iant@google.com>
11194
11195 * misc.c (gnat_get_alias_set): Change return type to
11196 alias_set_type.
11197
11198 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11199
11200 * decl.c, utils2.c: Fix whitespace in last change.
11201
11202 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11203
11204 * decl.c (compare_field_bitpos): Constify.
11205 * utils2.c (compare_elmt_bitpos): Likewise.
11206
11207 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
11208
11209 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
11210 anonymous access type.
11211 (pthread_sigmask): Now take an access sigset_t.
11212
11213 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11214
11215 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11216
11217 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
11218
11219 PR tree-optimization/25737
11220 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11221
11222 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
11223
11224 * trans.c (Attribute_to_gnu): When subtracting an
11225 offset from a pointer, use POINTER_PLUS_EXPR with
11226 NEGATE_EXPR instead of MINUS_EXPR.
11227 (gnat_to_gnu): Likewise.
11228 * utils.c (convert): When converting between
11229 thin pointers, use POINTER_PLUS_EXPR and sizetype
11230 for the offset.
11231 * utils2.c (known_alignment): POINTER_PLUS_EXPR
11232 have the same semantics as PLUS_EXPR for alignment.
11233 (build_binary_op): Add support for the semantics of
11234 POINTER_PLUS_EXPR's operands.
11235 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11236
11237 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
11238
11239 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11240 of get_signed_or_unsigned_type.
11241 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11242
11243 2007-06-11 Bob Duff <duff@adacore.com>
11244 Thomas Quinot <quinot@adacore.com>
11245
11246 * g-stsifd-sockets.adb (Create): Work around strange behavior of
11247 'bind' on windows that causes 'connect' to fail intermittently, by
11248 retrying the 'bind'.
11249 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11250
11251 2007-06-10 Duncan Sands <baldrick@free.fr>
11252
11253 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11254 than to void, for the fields when making a new fat pointer type.
11255 (gnat_substitute_in_type): Now substitute_in_type.
11256 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
11257 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11258 * utils.c (update_pointer_to): Update fat pointers by updating the
11259 dummy node pointers used for the fields.
11260
11261 2007-06-06 Thomas Quinot <quinot@adacore.com>
11262 Bob Duff <duff@adacore.com>
11263
11264 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11265 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11266 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
11267 constant Thread_Blocking_IO, always True by default, set False
11268 on a per-runtime basis.
11269 (Need_Netdb_Buffer): New constant.
11270
11271 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11272 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11273 files.
11274
11275 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11276 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11277 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11278 child package Task_Safe_NetDB
11279 (Host_Error_Messages): Add stub body.
11280 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11281
11282 * g-soccon-mingw.ads: Add Windows-specific constants.
11283 (Need_Netdb_Buffer): New constant.
11284 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11285 wrapper and import inet_addr(3) from the standard sockets library
11286 directly instead.
11287 (In_Addr): Add alignment clause.
11288 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11289
11290 2007-06-06 Robert Dewar <dewar@adacore.com>
11291
11292 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11293 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
11294 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
11295 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
11296 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
11297 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
11298 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
11299 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
11300 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
11301 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
11302 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
11303 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
11304 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
11305 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11306 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11307 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
11308 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
11309 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
11310 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
11311 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
11312 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
11313 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
11314 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
11315 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
11316 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
11317 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
11318 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
11319 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
11320 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
11321 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
11322 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
11323 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
11324 Unchecked_* by Ada.Unchecked_*
11325
11326 2007-06-06 Robert Dewar <dewar@adacore.com>
11327
11328 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
11329 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
11330 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
11331 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
11332 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11333 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
11334
11335 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
11336 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
11337 s-tasloc.adb, s-tasloc.ads: New files.
11338
11339 2007-06-06 Bob Duff <duff@adacore.com>
11340
11341 * g-expect-vms.adb:
11342 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
11343 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
11344 (Send_Signal, Close): Raise Invalid_Process if the process id is
11345 invalid.
11346 (Pattern_Matcher_Access): Is now a general access type to be able to
11347 use aliased string.
11348
11349 2007-06-06 Thomas Quinot <quinot@adacore.com>
11350 Arnaud Charlet <charlet@adacore.com>
11351
11352 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
11353 (SIGEMT is now used instead of SIGTERM on AIX).
11354
11355 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
11356 (Time_Slice_Supported): Set to True.
11357 Use SIGEMT instead of SIGTERM as SIGADAABORT.
11358
11359 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11360
11361 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
11362 (Time, Time)): Use To_Relative_Time rather than manual calculation to
11363 express the bounds of Duration as Time. Raise Time_Error when the
11364 result is greater or equal to the higher bound of Duration (on the
11365 margin case).
11366 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
11367 Ada_High_And_Leaps.
11368 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
11369 Ada_High_And_Leaps.
11370 ("-" (Time, Time)): Reorder code.
11371 (All_Leap_Seconds): Removed.
11372 (Arithmetic_Operations.Add): Remove sign related kludge.
11373 (Arithmetic_Operations.Difference): Control the leaps seconds processing
11374 with flag Leap_Support.
11375 (Arithmetic_Operations.Subtract): Remove sign related kludge.
11376 (Check_Within_Time_Bounds): New procedure.
11377 (Clock): Control the leap seconds processing with flag Leap_Support.
11378 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
11379 (Formatting_Operations.Split): Control the leap seconds processing with
11380 flag Leap_Support.
11381 (Formatting_Operations.Time_Of): Control the leaps seconds processing
11382 with flag Leap_Support. Adjust the year, month and day (if applicable)
11383 when the value of day seconds designates a new day.
11384 (Split): Use parameter associations for better readability. Integrate
11385 flag Is_Ada_05.
11386 (Time_Of): Use parameter associations for better readability. Integrate
11387 flag Is_Ada_05.
11388
11389 * a-calfor.adb (Split): Use parameter associations for better
11390 readability. Integrate flag Is_Ada_05.
11391 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
11392 better readability. Integrate flag Is_Ada_05.
11393
11394 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11395
11396 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
11397 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
11398 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
11399 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
11400 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
11401 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
11402 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
11403 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
11404 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
11405 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
11406 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
11407 time when entering this routine to detect a backward clock setting
11408 (manual setting or DST adjustment), to avoid waiting for a longer delay
11409 than needed.
11410 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
11411 Remove handling of deferred priority change, and replace by setting the
11412 task priority directly, as required by AI-188.
11413 Update comments.
11414 (Max_Task_Image_Length): New constant.
11415 Replace Warnings (Off) by Unreferenced pragma, cleaner.
11416 (Dynamic_Priority_Support): Removed, no longer needed.
11417 (Poll_Base_Priority_Change): Ditto.
11418 (Set_Ceiling): Add this procedure to change the ceiling priority
11419 associated to a lock. This is a dummy implementation because dynamic
11420 priority ceilings are not supported by the underlying system.
11421
11422 * a-dynpri.adb (Set_Priority): Take into account case where Target is
11423 accepting a RV with its priority boosted.
11424 Remove handling of deferred priority change, and replace by setting the
11425 task priority directly, as required by AI-188.
11426
11427 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
11428 Succeeded = True.
11429 Remove handling of deferred priority change, and replace by setting the
11430 task priority directly, as required by AI-188.
11431 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
11432 of Self_Id earlier.
11433
11434 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
11435 (Poll_Base_Priority_Change): Removed.
11436 Code clean up: use SSL.Current_Target_Exception.
11437
11438 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
11439 to run as this is a potentially dispatching point.
11440 (Call_Synchronous): Use Local_Defer_Abort.
11441 (Callable): Relax assertion.
11442 (Selective_Wait): Relax assertion in case abort is not allowed.
11443 Remove handling of deferred priority change, and replace by setting the
11444 task priority directly, as required by AI-188.
11445
11446 * s-tasuti.adb (Make_Passive): Adjust assertions.
11447 Remove handling of deferred priority change, and replace by setting the
11448 task priority directly, as required by AI-188.
11449
11450 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11451
11452 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
11453 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
11454 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
11455 system-vxworks-mips.ads, system-vxworks-alpha.ads,
11456 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
11457 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
11458 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
11459 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
11460 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
11461 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
11462 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
11463 This patch changes the largest non-binary modulus from 2**31-1 to
11464 2**32-1.
11465 (Compiler_System_Version): Removed, no longer used.
11466 Clean up system files by removing flags only used on a single target.
11467 Also remove obsolete flags, only used during bootstrap from system.ads
11468 (Address): Add a pragma Preelaborable_Initialization.
11469
11470 * system-aix.ads: Ditto.
11471 (GCC_ZCX_Support): Set to true.
11472 Update priority range on AIX and map Ada priorities to target
11473 priorities appropriately for different scheduling policies.
11474
11475 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
11476
11477 2007-06-06 Vincent Celier <celier@adacore.com>
11478
11479 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
11480 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
11481
11482 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
11483 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
11484 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
11485 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11486 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
11487 MLib.Tgt, containing the default versions of the exported subprograms.
11488 For each platform, create a specific version of the body of new child
11489 package MLib.Tgt.Specific that contains only the body of subprograms
11490 that are different from the default.
11491 (Archive_Builder_Append_Options): New function.
11492
11493 2007-06-06 Matthew Gingell <gingell@adacore.com>
11494
11495 * s-osinte-aix.adb: Map Ada priorities to target priorities
11496 appropriately for different scheduling policies.
11497
11498 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11499
11500 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
11501 its C counterpart.
11502 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
11503 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
11504
11505 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
11506
11507 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
11508 Noop on VMS, added for interface commonality.
11509
11510 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11511 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11512 Olivier Hainque <hainque@adacore.com>
11513
11514 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
11515 renamed expression of a full renaming at toplevel.
11516 (gnat_to_gnu_entity, case object): If not defining, do not look inside
11517 the values the constant is initialized to if it is an N_Allocator.
11518 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
11519 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
11520 (make_aligning_type): Accept an extra ROOM argument for storage to be
11521 made available before the aligned field, and an extra BASE_ALIGN
11522 argument for callers to pass the alignment guaranteed to be honored for
11523 the whole aligning object. Avoid call to finish_record_type, which only
11524 interferes with the sizes we want to set.
11525 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
11526 make_aligning_type for super-aligned objects on stack.
11527 (components_to_record): Pass the adjusted size of the type when creating
11528 fields in the qualified union for the variant part.
11529 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
11530 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
11531 packed array type.
11532 (maybe_pad_type): Set TYPE_USER_ALIGN.
11533 (make_aligning_type): Likewise.
11534 ALIGN argument is unsigned int.
11535 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
11536 (gnat_to_gnu_param): Likewise, for parameters.
11537 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
11538 if it is constant and stems from a function call.
11539 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
11540 of the record is specified. Adjust accordingly.
11541 (adjust_packed): New static function.
11542 (gnat_to_gnu_field): Use it to adjust the packedness setting.
11543 (components_to_record): Likewise.
11544 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
11545 side-effects if the object is deemed constant.
11546 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
11547 type instead of merely finalizing it. Tidy.
11548 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
11549 <E_Access_Type>: Likewise.
11550 (defer_debug_incomplete_list): Rename to defer_finalize_list.
11551 (defer_debug_level): Delete.
11552 (gnat_to_gnu_entity) <debug_deferred>: Likewise
11553 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
11554 type.
11555 <E_Record_Type>: Do not explicitly defer finalizing the type.
11556 Adjust for write_record_type_debug_info renaming.
11557 <E_Subprogram_Type>: Likewise.
11558 Finalize deferred types right after deferred incomplete types are
11559 expanded.
11560 (rest_of_type_decl_compilation): New global function.
11561 (components_to_record): Rename defer_debug parameter to do_not_finalize.
11562 (components_to_record): Propagate the packedness to the fields of the
11563 qualified union type if there is a variant part.
11564 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
11565 instead of inline code to adjust the XUT field offsets.
11566 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
11567 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
11568 and write the debug info if the type derives from a discriminated one.
11569 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
11570 <E_Array_Subtype>: Likewise.
11571 <E_String_Literal_Subtype>: Likewise.
11572 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
11573 an alignment clause.
11574 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
11575 before giving warning.
11576 (prepend_one_attribute_to): New function, helper to prepend an attribute
11577 to an attribute list.
11578 (gnat_to_gnu_entity) <E_Procedure>: Use it.
11579 (prepend_attributes): Likewise.
11580 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
11581 <E_Array_Type>: Declare the padding type for the element type, if any.
11582 <E_Array_Subtype>: Likewise.
11583 (defer_limited_with): New variable.
11584 (Gigi_Equivalent_Type): New function.
11585 (gnat_to_gnu_entity): Use it at start and use result throughout.
11586 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
11587 Gigi_Equivalent_Type, support Limited_With, allow two levels of
11588 indirection, precompute if unconstrained array to simplify logic, and
11589 use defer_limited_with to defer elaboration of some types from limited
11590 with.
11591 (finalize_from_with_types): New function.
11592
11593 2007-06-06 Gary Dismukes <dismukes@adacore.com>
11594 Eric Botcazou <ebotcazou@adacore.com>
11595 Tristan Gingold <gingold@adacore.com>
11596 Olivier Hainque <hainque@adacore.com>
11597
11598 * trans.c (Identifier_to_gnu): Change test for deferred constant by
11599 adding guard that the entity is an E_Constant before testing presence
11600 of Full_view (and remove unnecessary test that entity is not a type).
11601 For a CONST_DECL used by reference, manually retrieve
11602 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
11603 (struct language_function): Move from utils.c to here.
11604 (struct parm_attr): New structure.
11605 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
11606 (f_parm_attr_cache): New macro.
11607 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
11608 expressions for the 'First, 'Last and 'Length attributes of the
11609 unconstrained array IN parameters.
11610 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
11611 Allocate the information structure for the function earlier, as well
11612 as the language-specific part.
11613 If the parameter attributes cache has been populated, evaluate the
11614 cached expressions on entry.
11615 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
11616 N_Procedure_Call_Statement and N_Indexed_Component.
11617 (Pragma_to_gnu): Translate inspection_point to an asm statement
11618 containaing a comment and a reference to the object (either its address
11619 for BLKmode or its value).
11620 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
11621 to go to DECL_INITIAL. Together with the size constraint relaxation
11622 in create_var_decl, enlarges the set of situations in which an
11623 identifier may be used as an initializer without implying elaboration
11624 code.
11625 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
11626 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
11627 node.
11628 (maybe_stabilize_reference): Remove lvalues_only parameter.
11629 (gnat_stabilize_reference): Adjust for above change.
11630 (gnat_to_gnu): Do not set location information on the result
11631 if it is a reference.
11632 (add_cleanup): Add gnat_node parameter and set the location of the
11633 cleanup to it.
11634 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
11635 (Exception_Handler_to_gnu_zcx): Likewise.
11636 (gigi): Remove the cgraph node if the elaboration procedure is empty.
11637 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
11638 the former right after the latter.
11639 (start_stmt_group): Make global.
11640 (end_stmt_group): Likewise.
11641 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
11642 vars.
11643 (gnu_program_error_label_stack): Likewise.
11644 (gigi): Initialize them.
11645 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
11646 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
11647 New cases.
11648 (push_exception_label_stack): New function.
11649 (takes_address): New function.
11650
11651 * utils.c (struct language_function): Move to trans.c from here.
11652 (unchecked_convert): Do not wrap up integer constants in
11653 VIEW_CONVERT_EXPRs.
11654 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
11655 the latter for aggregate types, unexpected by later passes, and relax an
11656 arbitrary size constraint on the former.
11657 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
11658 to compare the sizes.
11659 (convert_vms_descriptor): When converting to a fat pointer type, be
11660 prepared for a S descriptor at runtime in spite of a SB specification.
11661 (shift_unc_components_for_thin_pointers): New function.
11662 (write_record_type_debug_info): For variable-sized fields, cap the
11663 alignment of the pointer to the computed alignment.
11664 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
11665 If REP_LEVEL is 2, do not compute the sizes.
11666 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
11667 (build_unc_object_type): Likewise.
11668 (declare_debug_type): New function.
11669
11670 * ada-tree.def: USE_STMT: removed (not emitted anymore).
11671
11672 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
11673 no statement is expandable anymore.
11674 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
11675 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
11676 when the user requested it explicitely.
11677 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
11678 to 0 for Ada.
11679 (get_alias_set): Return alias set 0 for a type if
11680 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
11681
11682 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
11683 (DECL_FUNCTION_STUB): New accessor macro.
11684 (SET_DECL_FUNCTION_STUB): New setter macro.
11685
11686 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
11687
11688 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
11689 declarations.
11690
11691 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11692
11693 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
11694 Rename to Abort_Task_Interrupt to be able to keep the same interface
11695 as the rest of the targets.
11696
11697 * s-osinte-vxworks.ads s-osinte-vxworks.adb
11698 (To_VxWorks_Priority): Remove explicit "in" mode indicator
11699
11700 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
11701 New files.
11702
11703 2007-06-06 Robert Dewar <dewar@adacore.com>
11704
11705 * a-chahan.ads: Remove obsolescent pragmas
11706
11707 * a-chlat1.ads: Minor reformatting
11708
11709 2007-06-06 Robert Dewar <dewar@adacore.com>
11710
11711 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
11712 for Errout
11713
11714 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
11715 implementation
11716
11717 * errout.ads (Finalize): Changed interface
11718 (Output_Messages): New procedure
11719 (Compilation_Errors): New Interface
11720
11721 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
11722 Finalize/Output_Messages interface for Errout
11723 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
11724 Errout.
11725
11726 2007-06-06 Thomas Quinot <quinot@adacore.com>
11727 Olivier Hainque <hainque@adacore.com>
11728 Robert Dewar <dewar@adacore.com>
11729
11730 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
11731 check.
11732 (Raise_Current_Excep): Call Debug_Raise_Exception just before
11733 propagation starts, to let debuggers know about the event in a reliable
11734 fashion.
11735 (Local_Raise): Moved to System.Exceptions
11736 More convenient to have this as a separate unit
11737
11738 * s-except.adb, s-except.ads: New files.
11739
11740 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
11741 Debug_Unhandled_Exception in System.Exceptions where it belongs
11742 together with a couple of other debug helpers.
11743 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
11744 the former Unhandled_Exception.
11745
11746 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
11747 (Warn_No_Exception_Propagation): New procedure
11748 (Warn_If_No_Propagation): Rewritten for new warning generation
11749 (Expand_Exception_Handlers): New warning generation
11750 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
11751 (Add_Exception_Label): Use Special_Exception_Package_Used for test
11752 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
11753 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
11754 even if restriction is set (makes life easier in Check_Returns)
11755 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
11756 checking exception identities.
11757 (Expand_Local_Exception_Handlers): Do not optimize when all others case
11758 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
11759 block for handler (used by Check_Returns)
11760 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
11761 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
11762 remove all exception handlers when optimizing local raise statements.
11763 (Find_Local_Handler): Use Get_Renamed_Entity
11764 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
11765 marked analyzed after expanding exception handlers, do not generate
11766 redundant cleanup actions, because they have been constructed already.
11767
11768 2007-06-06 Thomas Quinot <quinot@adacore.com>
11769
11770 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
11771 presence of this categorization pragma is mandated by the language.
11772 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
11773 for this type.
11774
11775 2007-06-06 Vincent Celier <celier@adacore.com>
11776 Robert Dewar <dewar@adacore.com>
11777
11778 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
11779 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
11780 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
11781 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
11782 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
11783 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
11784 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
11785 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
11786 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
11787 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
11788 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
11789 ali.ads, ali.adb:
11790 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
11791 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
11792 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
11793 Use variables of types File_Name_Type and Unit_Name_Type in error
11794 messages.
11795 (Get_Name): Add parameter Ignore_Special, and set it reading file name
11796 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
11797 here.
11798 Define flags Flag217-Flag230 with associated subprograms
11799 (Flag_Word5): New record type.
11800 (Flag_Word5_Ptr): New access type.
11801 (To_Flag_Word5): New unchecked conversion.
11802 (To_Flag_Word5_Ptr): Likewise.
11803 (Flag216): New function.
11804 (Set_Flag216): New procedure.
11805
11806 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11807
11808 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
11809 instead of 'Size.
11810
11811 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
11812
11813 2007-06-06 Javier Miranda <miranda@adacore.com>
11814
11815 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
11816 the package.
11817 (Object_Specific_Data_Array): This is now internal to the package.
11818 (Object_Specific_Data): This is now internal to the package.
11819 (Select_Specific_Data_Element): This is now internal to the package.
11820 (Select_Specific_Data_Array): This is now internal to the package.
11821 (Select_Specific_Data): This is now internal to the package.
11822 (Offset_To_Top_Function_Ptr): This is now public.
11823 (To_Offset_To_Top_Function_Ptr): Removed.
11824 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
11825 local to subprogram Offset_To_Top.
11826 (Predefined_DT): Removed.
11827 (Typeinfo_Ptr): Removed.
11828 (OSD): This function is now internal to this package.
11829 (SSD): This function is now internal to this package.
11830 (DT): New function that displaces the pointer to the table of primitives
11831 to get access to the enclosing wrapper record.
11832 (IW_Membership): Code cleanup.
11833 (Offset_To_Top): Code cleanup.
11834 (Predefined_DT): Removed.
11835 (Register_Interface_Tag): Removed.
11836 (Set_Interface_Table): Removed.
11837 (Set_Offset_Index): Removed.
11838 (Set_Offset_To_Top): Code cleanup.
11839 (Set_OSD): Removed.
11840 (Set_Signature): Removed.
11841 (Set_SSD): Removed.
11842 (Set_Tagged_Kind): Removed.
11843 (Typeinfo_Ptr): Removed.
11844 (TSD): Removed.
11845 (Displace): Add missing check on null actual.
11846
11847 * exp_disp.ads, exp_disp.adb
11848 (Select_Expansion_Utilities): Removed.
11849 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
11850 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
11851 the interface requires a new parameter.
11852 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
11853 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
11854 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
11855 Done to remove package Select_Expansion_Utilities.
11856 (Make_DT): New implementation for statically allocated dispatch tables.
11857 (Make_Secondary_DT): Moved to the scope of Make_DT.
11858 (Register_Primitive): Code cleanup plus incoporate the use of the new
11859 function DT_Address_Attribute.
11860 (Expand_Interface_Thunk): The profile of this subprogram has been
11861 changed to return the Thunk_Id and the corresponding code.
11862 (Fill_DT_Entry): Removed. Its functionality is now provided by
11863 subprogram Register_Primitive.
11864 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
11865 subprogram Register_Primitive.
11866 (Register_Primitive): New subprogram that incorporates the previous
11867 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
11868 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
11869 was only required to call Make_DT_Access_Action, which is now removed.
11870 (Ada_Actions): Removed
11871 (Action_Is_Proc): Removed
11872 (Action_Nb_Arg): Removed
11873 Replace all the calls to Make_DT_Access_Action by direct calls to
11874 Make_Procedure_Call_Statement or Make_Function_Call.
11875 (Set_DTC_Entity_Value): New subprogram.
11876 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
11877 (Expand_Interface_Thunk): Add missing support for primitives that are
11878 functions with a controlling result (case in which there is no need
11879 to generate the thunk).
11880
11881 * exp_atag.ads, exp_atag.adb
11882 (Build_DT): New subprogram that displaces the pointer to reference the
11883 base of the wrapper record.
11884 (Build_Typeinfo_Offset): Removed.
11885 (RTE_Tag_Node): Removed.
11886 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
11887 (Build_Get_RC_Offset): Removed.
11888 (Build_Inherit_Predefined_Prims): Removed.
11889 (Build_Inherit_TSD: Removed.
11890 (Build_New_TSD): Removed.
11891 (Build_Set_External_Tag): Removed.
11892 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
11893 (Build_Set_Prim_Op_Address): Add documentation.
11894 (Build_Set_TSD): Removed.
11895
11896 * rtsfind.ads, rtsfind.adb
11897 (Load_Fail): If load fails and we are not in configurable run-time
11898 mode, then raise Unrecoverable_Error.
11899 (Text_IO_Kludge): Generate an error message if a run-time library is
11900 not available in a given run-time (ie. zfp run-time).
11901 (RTE_Record_Component): Add code to check that the component we search
11902 for is not found in two records in the given run-time package.
11903 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
11904 (RE_DT_Predef_Prims_Offset): New entity
11905 (RE_Static_Offset_To_Top): New entity
11906 (RE_HT_Link): New entity.
11907 (System_Address_Image): Addition of this run-time package.
11908 (RE_Address_Image): New entity.
11909 (RE_Abstract_Interface): Removed.
11910 (RE_Default_Prim_Op_Count): Removed.
11911 (RE_DT_Entry_Size): Removed.
11912 (RE_DT_Min_Prologue_Size): Removed.
11913 (RE_DT_Prologue_Size): Removed.
11914 (RE_Ifaces_Table_Ptr): Removed.
11915 (RE_Interface_Data_Ptr): Removed.
11916 (RE_Type_Specific_Data): Removed.
11917 (RE_Primary_DT): Removed.
11918 (RE_Register_Interface_Tag): Removed.
11919 (RE_Set_Offset_Index): Removed.
11920 (RE_Set_OSD): Removed.
11921 (RE_Set_SSD): Removed.
11922 (RE_Set_Signature): Removed.
11923 (RE_Set_Tagged_Kind): Removed.
11924 (RE_Address_Array): New entity.
11925 (RE_DT): New entity.
11926 (RE_Iface_Tag): New entity.
11927 (RE_Interfaces_Table): New entity.
11928 (RE_No_Dispatch_Table): New entity.
11929 (RE_NDT_Prims_Ptr): New entity.
11930 (RE_NDT_TSD): New entity.
11931 (RE_Num_Prims): New entity.
11932 (RE_Offset_To_Top_Function_Ptr): New entity.
11933 (RE_OSD_Table): New entity.
11934 (RE_OSD_Num_Prims): New entity.
11935 (RE_Predef_Prims): New entity
11936 (RE_Predef_Prims_Table_Ptr): New entity.
11937 (RE_Primary_DT): New entity.
11938 (RE_Signature): New entity.
11939 (RE_SSD): New entity.
11940 (RE_TSD): New entity.
11941 (RE_Type_Specific_Data): New entity.
11942 (RE_Tag_Kind): New entity.
11943
11944 2007-06-06 Thomas Quinot <quinot@adacore.com>
11945
11946 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11947 C imported variable.
11948 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11949 on entry.
11950
11951 2007-06-06 Robert Dewar <dewar@adacore.com>
11952
11953 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11954 character
11955
11956 2007-06-06 Vincent Celier <celier@adacore.com>
11957
11958 * a-tifiio.adb (Put, internal): For negative numbers, check that there
11959 is room for at least one digit and the minus sign.
11960 (Put.Put_Character): Never put a character outside of the range of
11961 string To.
11962
11963 2007-06-06 Olivier Hainque <hainque@adacore.com>
11964 Eric Botcazou <ebotcazou@adacore.com>
11965
11966 * utils2.c (build_allocator): Provide the extra arguments to
11967 make_aligning_type for super-aligned objects allocated from the default
11968 pool. Leave enough room for a pointer before the aligning field, and
11969 store the system's allocator return value there.
11970 (build_call_alloc_dealloc): When releasing a super-aligned object,
11971 retrieve the system's allocator return value from where build_allocator
11972 has stored it, just ahead of the adjusted address we are passed.
11973 (build_call_raise): Handle properly the generation of line numbers when
11974 the node is marked No_Location.
11975 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
11976 by using DECL_UID on ties.
11977 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11978 main variant.
11979 (build_call_raise): Handle converting exception into goto; support new
11980 argument KIND.
11981 (build_component_ref): Add new arg to build_call_raise.
11982
11983 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11984
11985 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11986 "." in the case of nnn.xxx when nnn terminates with an underscore.
11987 Parse the remaining "#" or ":" in the case of nnn#.xxx#
11988
11989 2007-06-06 Robert Dewar <dewar@adacore.com>
11990
11991 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11992
11993 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11994 Vincent Celier <celier@adacore.com>
11995 Robert Dewar <dewar@adacore.com>
11996
11997 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11998 needed.
11999 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12000 ((destructor)) for adafinal, even when switch -a is used.
12001 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12002 used.
12003 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12004 Output_Linker_Option_List is set. Suppress this formatting when
12005 Zero_Formatting is set.
12006 Add case for CLI_Target.
12007 (System_Restrictions_Used): New flag, used to avoid generating with of
12008 System_Restrictions and initialization of the data unless there is
12009 some use of System.Restrictions in the partition.
12010 (Check_System_Restrictions_Used): New procedure
12011
12012 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12013 since we only with this unit in the binder file if it is used elsewhere
12014 in the partition.
12015
12016 2007-06-06 Vincent Celier <celier@adacore.com>
12017
12018 * bindusg.adb: Add line for @<response file>
12019 Add lines for new switches -R and -Z
12020
12021 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12022 hierarchy in the list of files of the closure when -R is used
12023 (Gnatbind): Accept arguments starting with '@' to indicate response
12024 files and take the arguments from the response files.
12025 If List_Closure is set, display the referenced files
12026
12027 2007-06-06 Javier Miranda <miranda@adacore.com>
12028 Robert Dewar <dewar@adacore.com>
12029 Ed Schonberg <schonberg@adacore.com>
12030
12031 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12032 which the address-clause is applied to in-mode actuals (allowed by
12033 13.1(22)).
12034 (Apply_Discriminant_Check): Do not generate a check if the type is
12035 constrained by a current instance.
12036 (Activate_Division_Check): New procedure
12037 (Activate_Overflow_Check): New procedure
12038 (Activate_Range_Check): New procedure
12039 Call these new Activate procedures instead of setting flags directly
12040 (Apply_Array_Size_Check): Removed, no longer needed.
12041 Code clean up: remove obsolete code related to GCC 2.
12042 (Get_E_Length): Protect against bomb in case scope is standard
12043 (Selected_Range_Checks): If the node to be checked is a conversion to
12044 an unconstrained array type, and the expression is a slice, use the
12045 bounds of the slice to construct the required constraint checks.
12046 Improve NOT NULL error messages
12047 (Apply_Constraint_Check): If the context is a null-excluding access
12048 type, diagnose properly the literal null.
12049
12050 2007-06-06 Pascal Obry <obry@adacore.com>
12051
12052 * clean.adb (Clean_Archive): Use untouched casing for the archive name
12053 and the corresponding .deps file.
12054 (Clean_Interface_Copy_Directory): Use untouched casing for the library
12055 src directory. Minor code-clean-up. Use untouched casing for files
12056 read into the library src dir.
12057 (Clean_Library_Directory): Idem.
12058 (Parse_Cmd_Line): Accept new switch -aP
12059
12060 2007-06-06 Javier Miranda <miranda@adacore.com>
12061 Ed Schonberg <schonberg@adacore.com>
12062 Robert Dewar <dewar@adacore.com>
12063 Eric Botcazou <ebotcazou@adacore.com>
12064 Arnaud Charlet <charlet@adacore.com>
12065
12066 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12067 applicable to types that have the With_Type flag set. Returns the
12068 non-limited view of the type, if available, otherwise the type itself.
12069 For class-wide types, there is no direct link in the tree, so we have
12070 to retrieve the class-wide type of the non-limited view of the Etype.
12071 New attributes Static_Initialization and Static_Elaboration_Desired.
12072 Remove the pragma Thread_Body, and the associated flag
12073 Is_Thread_Body in entities, and all related code.
12074 (Suppress_Value_Tracking_On_Call): New flag
12075 E_Exception has Esize and Alignment fields
12076 (Universal_Aliasing): New function.
12077 (Set_Universal_Aliasing): New procedure.
12078 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12079 (Check_Nested_Access): New procedure.
12080 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12081 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12082 (Related_Interface): New attribute. Present in dispatch table pointer
12083 components of records. Set to point to the entity of the corresponding
12084 interface type.
12085 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12086 (Original_Access_Type): Remove, not needed.
12087 (Root_Type): Handle properly subtypes of class-wide-types.
12088 Update comments.
12089
12090 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12091 class-wide types visible through limited-with clauses.
12092 (Try_Primitive_Operation): When examining all primitive operations of a
12093 tagged type, do not consider subprograms labeled as hidden unless they
12094 belong to a private generic type with a tagged parent.
12095 (Try_Object_Operation): Extensive rewriting, to handle properly various
12096 overloading cases, when several ancestors may have class-wide operations
12097 that are possible candidates, and when the overloaded functions return
12098 array types and have defaulted parameters so that the call may be
12099 interpreted as an indexing.
12100 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12101 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12102 successive actuals before analyzing the call itself.
12103 (Try_Primitive_Operation): A primitive operation is compatible with the
12104 prefix if the prefix has a synchronized type and the type of the formal
12105 is its corresponding record, as can be the case when the primitive
12106 operation is declared outside of the body of the type.
12107 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12108 perform homonym traversal, looking for class-wide operation matches
12109 (formerly done in statements of Try_Class_Wide_Operation). Matches on
12110 access parameters are now restricted to anonymous access types.
12111 (Mark_Allocator): An allocator with a discriminant association parent is
12112 a coextension.
12113 (Try_One_Prefix_Interpretation): If the type of the object is
12114 incomplete, as can be happen when it is a limited view obtained through
12115 a limited_with_clause, the selected component is not part of a prefixed
12116 call.
12117 (Complete_Object_Operation): Diagnose properly an object that is not
12118 aliased when the corresponding controlling formal is an access
12119 parameter.
12120 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12121 ambiguous calls in prefixed notation, where two primitives differ only
12122 in that the controlling argument of one is an access parameter.
12123
12124 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12125 whether a function that returns an unconstrained type can be inlined.
12126 (Process_Formals): Diagnose properly the illegal use of an incomplete
12127 type in the profile of an access_to_subprogram declaration.
12128 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12129 operations are attached to the corresponding record.
12130 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12131 When processing a primitive of a concurrent type which implements an
12132 interface change the type of all controlling formals to that of the
12133 corresponding record type.
12134 (Check_Synchronized_Overriding): Relax the conditional logic when trying
12135 to determine the tagged type to which a primitive belongs.
12136 (Check_Conventions): Capture condition to ignore a primitive operation
12137 (which is shared between the loop in Check_Conventions and the one in
12138 Check_Convention) in a new local function Skip_Check.
12139 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12140 confusion with Check_Conventions' own Prim_Op local variable.
12141 (Create_Extra_Formals): Test for a tagged result type rather than a
12142 controlling result when determining whether to add a BIP_Alloc_Form
12143 formal and a BIP_Final_List formal to the function.
12144 (Check_Conformance); For parameters that are anonymous access types,
12145 subtype conformance requires that the not null and the constant
12146 indicators must match
12147 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12148 to retrieve the appropriate type when processing a concurrent type
12149 declared within a generic. Minor comment reformatting. Change invocation
12150 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12151 mitive.
12152 (Analyze_Subprogram_Body): If the return type of a function is an
12153 anonymous access to the limited view of a class-wide type, and the
12154 non-limited view of the type is available, update the type of the
12155 function so that code can be generated.
12156 (Process_Formals): In case of access-subtype itype whose designated
12157 type is also an itype (situation that happens now with access to
12158 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12159 attribute to avoid backend problems.
12160 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12161 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12162 anonymous types' designated types are same before testing
12163 Subtypes_Statically_Match.
12164 (Create_Extra_Formals): Test for a named access parameter that is a
12165 controlling formal as an additional condition for adding an
12166 accessibility level formal. This can occur in the subp type created for
12167 dispatching calls in Expand_Dispatching_Call, and allows calling
12168 Create_Extra_Formals from that procedure rather than special-casing the
12169 extra formals there.
12170 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12171 when the function has a controlling result.
12172 (Check_Returns): Add much more knowledge of the optimization of local
12173 raise statements to gotos, to retain proper warnings in this case.
12174 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12175 nodes when looking for last statement.
12176
12177 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12178 class-wide types visible through limited with clauses.
12179 (Add_One_Interp): If the operands are anonymous access types, the
12180 predefined operator on universal_access is immediately visibles
12181 (Find_Unique_Type): Handle anonymous access to subprogram types just as
12182 other anonymous access types.
12183 (Disambiguate): Take into account CIL convention.
12184 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12185
12186 2007-06-06 Robert Dewar <dewar@adacore.com>
12187
12188 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12189 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12190 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12191 Fix lower bound of tables.
12192 Add rep clauses.
12193
12194 * nlists.adb: Ditto.
12195 (Prev_Node, Next_Node): Change index type to Int so that it properly
12196 covers the range First_Node_Id - 1 up.
12197
12198 2007-06-06 Javier Miranda <miranda@adacore.com>
12199 Ed Schonberg <schonberg@adacore.com>
12200 Bob Duff <duff@adacore.com>
12201 Hristian Kirtchev <kirtchev@adacore.com>
12202
12203 * exp_aggr.ads, exp_aggr.adb:
12204 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12205 in extension aggregates.
12206 (Flatten): Other conditions being met, an aggregate is static if the
12207 low bound given by component associations is different from the low
12208 bound of the base index type.
12209 (Packed_Array_Aggregate_Handled): If the component type is itself a
12210 packed array or record, the front-end must expand into assignments.
12211 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12212 Init_Pr, instead of Ancestor_Is_Expression.
12213 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12214 coextension chain root, either generate a list controller or use the
12215 already existing one.
12216 (Static_Array_Aggregate): New procedure to construct a positional
12217 aggregate that can be handled by the backend, when all bounds and
12218 components are compile-time known constants.
12219 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12220 types covering interface types into assignments.
12221 (Replace_Type): move to Build_Record_Aggr_Code.
12222 (Expand_Record_Aggr_Code): if the target of the aggregate is an
12223 interface type, convert to the definite type of the aggregate itself,
12224 so that needed components are visible.
12225 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12226 components and the context is an extended return statement do not
12227 create a transient block for it, to prevent premature finalization
12228 before the return is executed.
12229 (Gen_Assign): Do not generate a call to deep adjust routine if the
12230 component type is itself an array of controlled (sub)-components
12231 initialized with an inner aggregate.
12232 (Component_Check): New name for Static_Check. This name is now more
12233 appropriate, and documentation is added which was missing.
12234 (Component_Check): Add test for bit aligned component value
12235 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12236 Tagged_Comps, name is more appropriate given added function below.
12237 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12238
12239 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12240 Javier Miranda <miranda@adacore.com>
12241 Robert Dewar <dewar@adacore.com>
12242
12243 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12244 Terminated: Add unchecked type conversion from System.Address to
12245 System.Tasking.Task_Id when calling the predefined primitive
12246 _disp_get_task_id.
12247 Disable new Ada 05 accessibility check for JVM.NET targets, which
12248 cannot be implemented in a practical way.
12249 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12250 the sources always references the tag of the actual object. Therefore,
12251 if 'Tag is applied in the sources to class-wide interface objects we
12252 generate code that displaces "this" to reference the base of the object.
12253 (Expand_N_Attribute_Reference, case Size): Return specified size if
12254 known to front end.
12255 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12256 has code that displaces the pointer of the object to manage interface
12257 types. However this code must not be executed when the prefix is a
12258 subprogram. This bug caused the wrong expansion of the internally
12259 generated assignment that fills the dispatch table when the primitive
12260 is a function returning a class-wide interface type.
12261 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12262 Set_Attribute_Name for Name_Unaligned_Valid.
12263
12264 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12265 Gary Dismukes <dismukes@adacore.com>
12266
12267 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12268 If the initialization is the equivalent aggregate of the initialization
12269 procedure of the type, do not remove it.
12270 (Expand_N_Attribute_Definition_Clause): Exclude access variables
12271 initialized to null from having their expression reset to empty and
12272 note this exception in the comment.
12273
12274 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12275 Robert Dewar <dewar@adacore.com>
12276 Ed Schonberg <schonberg@adacore.com>
12277 Gary Dismukes <dismukes@adacore.com>
12278
12279 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12280 Add "with" and "use" clauses for Sem_Attr.
12281 (Expand_Current_Value): Do not replace occurences of attribute
12282 references where the prefix must be a simple name.
12283
12284 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12285 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12286 Attribute_Requires_Simple_Name_Prefix.
12287 (Name_Modifies_Prefix): Body of new function.
12288 (Requires_Simple_Name_Prefix): Body of new function.
12289 (Resolve_Attribute, case Access): Improve error message for case of
12290 mismatched conventions.
12291 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
12292 incomplete type.
12293 (Analyze_Attribute, case 'Access): If the type of the prefix is a
12294 constrained subtype for a nominal unconstrained type, use its base type
12295 to check for conformance with the context.
12296 (Resolve_Attribute): Remove test of the access type being associated
12297 with a return statement from condition for performing accessibility
12298 checks on access attributes, since this case is now captured by
12299 Is_Local_Anonymous_Access.
12300 (Analyze_Access_Attribute): Set Address_Taken on entity
12301 (Analyze_Attribute, case Address): Set Address_Taken on entity
12302 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
12303 validating an access attribute whose prefix is a current instance.
12304 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
12305 applied to dispatching operations, if freezing is required then we set
12306 the attribute Has_Delayed_Freeze in the prefix's entity.
12307 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
12308 current scope if access of local subprogram taken
12309 (Analyze_Access_Attribute): Check legality of self-reference even if the
12310 expression comes from source, as when a single component association in
12311 an aggregate has a box association.
12312 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
12313 the prefix if it is a protected operation and the attribute is
12314 Unrestricted_Access.
12315 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
12316 reference to the base type of the context, to force a constraint check
12317 when the context is an access subtype with an explicit constraint.
12318 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
12319 node is rewritten as an interface conversion. leave unanalyzed after
12320 resolution, to ensure that type checking against the context will take
12321 place.
12322
12323 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12324 Javier Miranda <miranda@adacore.com>
12325 Robert Dewar <dewar@adacore.com>
12326
12327 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
12328 wrapper when the full view of the controlling type of an inherited
12329 function that dispatches on result implements interfaces.
12330 (Expand_N_Object_Declaration): In cases where the type of the
12331 declaration is anonymous access, create finalization list for it.
12332 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
12333 if the object has no explicit initialization, to match description of
12334 functionality of pragam Persistent_BSS.
12335 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
12336 new function to build static aggregates, to replace initialization call
12337 when static initialization is desired.
12338 (Freeze_Type): Generate a list controller for an access type whenever
12339 its designated type has controlled anonymous access discriminants.
12340 (Build_Equivalent_Aggregate): New procedure to compute a static
12341 aggregate to be used as default initialization for composite types,
12342 instead of a generating a call to the initialization procedure for the
12343 type.
12344 (Build_Initialization_Call): When available, replace a call to the
12345 initialization procedure with a copy of the equivalent static aggregate
12346 for the type.
12347 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
12348 declarations for objects of a class-wide interface type, rather than
12349 just identifiers, to prevent visibility problems.
12350 (Expand_N_Object_Declaration): When expanding the declaration for an
12351 object of a class-wide interface type, preserve the homonym chain of
12352 the original entity before exchanging it with that of the generated
12353 renaming declaration.
12354 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
12355 active, because there is no way to handle the exception.
12356 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
12357 to do a minimum decoration of the Access_Disp_Table list.
12358 (Expand_Record_Controller): Avoid the addition of the controller between
12359 the component containing the tag of a secondary dispatch table and its
12360 adjacent component that stores the offset to the base of the object.
12361 This latter component is only generated when the parent type has
12362 discriminants ---documented in Add_Interface_Tag_Components).
12363 (Apply_Array_Size_Check): Removed, no longer needed.
12364 (Expand_N_Full_Type_Declaration): If the type has anonymous access
12365 components, create a Master_Entity for it only if it contains tasks.
12366 (Build_Init_Procedure): Suppress the tag assignment compiling under
12367 no run-time mode.
12368 (Freeze_Record_Type): Remove code associated with creation of dispatch
12369 table.
12370 (Init_Secondary_Tags): Update type of actuals when generating calls to
12371 Ada.Tags.Set_Offset_To_Top
12372 (Stream_Operation_OK): Disable use of streams compiling under no
12373 run-time mode
12374 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
12375 if Has_Init_Expression set.
12376 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
12377 Register_Primitive, which provides the same functionality.
12378 (Requires_Init_Proc): Return false in case of interface types.
12379 (Add_Secondary_Tables): Use the new attribute Related_Interface to
12380 cleanup the code.
12381 (Predefined_Primitive_Freeze): Do not assume that an internal entity
12382 is always associated with a predefined primitive because the internal
12383 entities associated with interface types are not predefined primitives.
12384 Therefore, the call to Is_Internal is replaced by a call to the
12385 function Is_Predefined_Dispatching_Operation.
12386 (Make_Eq_If): When generating the list of comparisons for the
12387 components of a given variant, omit the controller component that is
12388 present if the variant has controlled components.
12389
12390 2007-06-06 Javier Miranda <miranda@adacore.com>
12391 Hristian Kirtchev <kirtchev@adacore.com>
12392 Bob Duff <duff@adacore.com>
12393
12394 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
12395 handle the creation of finalization lists and calls for nested
12396 coextensions when the root of the chains is part of a return statement.
12397 (Inside_A_Return_Statement): New function inside Complete_Coextension_
12398 Finalization.
12399 (Expand_Record_Equality): Skip components that are interface types.
12400 (Displace_Allocator_Pointer): Add missing support for interface subtypes
12401 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
12402 with Rewrite_Coextension. Change the condition for detecting coextension
12403 root nodes.
12404 (Is_Local_Access_Discriminant): Removed.
12405 (Rewrite_Coextension): New routine which rewrites a static coextension
12406 as a temporary and uses its unrestricted access in the construction of
12407 the outer object.
12408 (Complete_Coextension_Finalization): New routine. Generate finalization
12409 attachment calls to all delayed coextensions.
12410 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
12411 the allocator is not a coextension itself and has delayed coextensions.
12412 If the current allocator is controlled, but also a coextension, delay
12413 the generation of the finalization attachment call.
12414 Rename local variable "Node" to "Nod" in order to avoid confusion with
12415 "Elists.Node".
12416 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
12417 limited types that are not inherently limited. Such an allocator is
12418 illegal, but is generated by the expander for a return statement, to
12419 copy the result onto the secondary stack. This is the only case where a
12420 limited object can be copied. Generate code to displace the pointer
12421 to the object if the qualified expression is a class-wide interface
12422 object. Such displacement was missing and hence the copy of the object
12423 was wrong.
12424 (Apply_Accessibility_Check): Handle allocated objects initialized in
12425 place.
12426 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
12427 and Expand_Allocator_Expression. Allocating class-wide interface objects
12428 this routine displaces the pointer to the allocated object to reference
12429 the component referencing the corresponding secondary dispatch table.
12430 Expand_Allocator_Expression): Add missing support to allocate class-wide
12431 interface objects initialized with a qualified expression.
12432 (Get_Allocator_Final_List): Test for an anonymous access type that is a
12433 function result type, and use the finalization list associated with the
12434 function scope in that case (such an anonymous type should not be
12435 treated like an access parameter's type).
12436
12437 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12438 Gary Dismukes <dismukes@adacore.com>
12439 Javier Miranda <miranda@adacore.com>
12440
12441 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
12442 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
12443 required exception handler.
12444 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
12445 properly the case of a function whose return type is a limited
12446 class-wide interface type. Modify the code of the accessibility
12447 check to handle class-wide interface objects. In this case we need to
12448 displace "this" to reference the primary dispatch table to get access
12449 to the TSD of the object (to evaluate its accessibility level).
12450 (Expand_N_Extended_Return_Statement): Test for a tagged result type
12451 rather than a controlling result as one of the conditions for
12452 generating tests of the implicit BIP_Alloc_Form formal. The
12453 initialization assignment is also handled according to whether the
12454 result is tagged instead of controlling.
12455 In the case where the init assignment is inserted in the "then" part of
12456 the allocation conditional, rewrite the target to be a dereference of
12457 the implicit BIP_Object_Access formal.
12458 If the returned value is unconstrained and created on the secondary
12459 stack, mark the enclosing block and function so that the secondary
12460 stack is not reclaimed on return.
12461 Treat returns from functions with controlling results similarly to
12462 returns from functions with unconstrained result subtypes.
12463 If the object returned is unconstrained, and an allocator must be
12464 created for it, analyze the allocator once the block for the extended
12465 return is installed, to ensure that finalizable components
12466 of the expression use the proper finalization list. Guard the call to
12467 Move_Final_List with a check that there is something to finalize.
12468 (Make_Tag_Ctrl_Assignment): Use "old" handling
12469 of controlled type assignment for virtual machines, since new code uses
12470 unsupported features (such as direct access to bytes in memory).
12471
12472 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12473 Ed Schonberg <schonberg@adacore.com>
12474
12475 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
12476 accessibility actual, check for the case of an aliased object that has
12477 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
12478 we fall into processing for the attribute rather than the name of the
12479 object.
12480 (Expand_Inline_Call): If an actual is a literal, and the corresponding
12481 formal has its address taken in the body, create a temporary to capture
12482 value. If the return type is a limited interface, do not treat the
12483 return value as Controlled.
12484 (Is_In_Place_Function): If the return type is a limited interface,
12485 treat as returning in place. The actual returned object may not always
12486 be limited, but the caller has to assume that it is returned in place.
12487 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
12488 context of an allocator, use the correct finalization chain (that is,
12489 the chain belonging to the access type, rather than the chain belonging
12490 to the current scope).
12491 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
12492 result type rather than a controlling result as a precondition for
12493 adding an allocation form actual to a build-in-place call.
12494 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
12495 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
12496 primitive in the dispatch tables. This work is now done by Make_DT when
12497 the type is frozen.
12498 (Register_Predefined_DT_Entry): Removed.
12499 (Add_Return): If end label is not present, use sloc of last statement
12500 for generated return statement in procedure, for better gdb behavior
12501 on expanded code.
12502 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
12503 object address nodes to ensure proper processing by routines like
12504 Insert_After*.
12505 (Expand_Call): Fix generation of validity check for parameter
12506 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
12507 the allocation form parameter if the result subtype is constrained,
12508 except when the function has a controlling result.
12509 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
12510 rather than Is_Controlled and Has_Controlled_Component, since we want to
12511 include class-wide result types in this treatment. Also test for a
12512 controlling result, since that also requires passing a finalization
12513 list.
12514 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
12515 even when the result subtype is constrained, to handle calls involving
12516 controlling results.
12517 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
12518 is now called even when the result subtype is constrained, to handle
12519 calls involving controlling results.
12520 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
12521 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
12522 now performs the test).
12523 (Make_Build_In_Place_Call_In_Object_Declaration):
12524 Add_Alloc_Form_Actual_* is now called even when the result subtype is
12525 constrained, to handle calls involving controlling results.
12526 (Add_Return): Accomodate rewritten pattern from local raise to goto
12527 transformation, so that we still recognize an transfer statement
12528 and do the right thing here in that case.
12529 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
12530 and end of subprogram code.
12531 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
12532 support for primitives that are functions (without formals) with a
12533 controlling result.
12534 (Inherited_From_Formal): If the actual subtype has not generic parent
12535 type, it is not an actual for a formal derived type, and there is no
12536 operation to inherit from the formal.
12537
12538 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12539 Thomas Quinot <quinot@adacore.com>
12540
12541 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
12542 inserted cleanup code appropriately for GDB use.
12543 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
12544 exception handler for Deep_Adjust or Deep_Finalize.
12545 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
12546 Raise_From_Controlled_Operation is available, use a call to that
12547 subprogram instead of a plain "raise Program_Error" node to raise
12548 Program_Error if an exception is propagated from an Adjust or Finalize
12549 operation.
12550 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
12551 appears in the optional statement list of a triggering alternative, the
12552 scope actions can be inserted directly there, and not in the list that
12553 includes the asynchronous select itself.
12554
12555 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12556 Robert Dewar <dewar@adacore.com>
12557 Hristian Kirtchev <kirtchev@adacore.com>
12558
12559 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
12560 generated exception handler appropriately when debugging generated code.
12561 Deal properly with No_Exception_Propagation restriction mode.
12562 (Expand_N_Abort_Statement): Add an unchecked type conversion from
12563 System.Address to System.Tasking.Task_Id when processing the result of
12564 the predefined primitive _disp_get_task_id.
12565 (Expand_N_Asynchronous_Select): Clarify comment.
12566 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
12567 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
12568 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
12569 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
12570 privals and for generated call to Complete_Entry_Body, for better gdb
12571 behavior.
12572 (Copy_Result_Type): Utility to construct a parameter and result profile
12573 for protected functions whose return type is an anonymous access to
12574 subprogram.
12575 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
12576 call the above.
12577 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
12578 point when the local-raise-to-goto transformation has taken place.
12579
12580 2007-06-06 Javier Miranda <miranda@adacore.com>
12581 Nicolas Setton <setton@adacore.com>
12582
12583 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
12584 functionality when the backend is generating code.
12585 Otherwise any serious error
12586 reported by the backend calling the frontend routine Error_Msg
12587 changes the Compilation_Mode to Check_Semantics, disables the
12588 functionality of this routine and causes the generation of
12589 spureous additional errors.
12590
12591 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
12592 debugging information now generated by the compiler for fat-pointer
12593 types.
12594 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
12595 DWARF2/3.
12596 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
12597
12598 2007-06-06 Thomas Quinot <quinot@adacore.com>
12599
12600 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
12601 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12602 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12603 For a remote call to a function with a classwide return type, apply an
12604 E.4(18) check to the returned value.
12605 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
12606 stream attributes of the designated type of an RACW, as they are not
12607 dispatching primitive operations.
12608
12609 2007-06-06 Geert Bosch <bosch@adacore.com>
12610
12611 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
12612 negative literal
12613 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
12614 positive
12615 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
12616 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
12617 positive
12618 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
12619
12620 2007-06-06 Javier Miranda <miranda@adacore.com>
12621
12622 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
12623 attribute compiling package Ada.Tags under No_Run_Time_Mode.
12624
12625 2007-06-06 Javier Miranda <miranda@adacore.com>
12626
12627 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
12628 deallocation of class-wide interface objects.
12629 (Expand_Dispatching_Constructor_Call): Take into account that if the
12630 result of the dispatching constructor is an interface type, the
12631 function returns a class-wide interface type; otherwise the returned
12632 object would be actual. The frontend previously accepted returning
12633 interface types because Expand_Interface_Actuals silently performed
12634 the management of the returned type "as if" it were a class-wide
12635 interface type.
12636 (Expand_Dispatching_Constructor_Call): Replace call to
12637 Make_DT_Access_Action by direct call to Make_Function_Call.
12638
12639 2007-06-06 Robert Dewar <dewar@adacore.com>
12640 Ed Schonberg <schonberg@adacore.com>
12641
12642 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
12643 compute masking constant, since we now set Esize properly to the
12644 underlying size.
12645 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
12646 to match the alignment.
12647 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
12648 packed arrays of 8 bits or less.
12649
12650 * freeze.adb (Freeze_Entity): When freezing the formals of a
12651 subprogram, freeze the designated type of a parameter of an access type
12652 only if it is an access parameter.
12653 Increase size of C convention enumeration object
12654 (Freeze_Entity, array type case): Make sure Esize value is properly
12655 adjusted for the alignment if it is known.
12656 (Freeze_Entity, array type case): When checking bit packed arrays for
12657 the size being incorrect, check RM_Size, not Esize.
12658 (Freeze_Record_Type): Check for bad discriminated record convention
12659 (In_Exp_Body): Return true if the body is generated for a subprogram
12660 renaming, either an attribute renaming or a renaming as body.
12661 (Check_Itype): If the designated type of an anonymous access component
12662 is a non-protected subprogram type, indicate that it is frozen, to
12663 prevent out-of-scope freeze node at some subsequent call.
12664 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
12665 only if the subprogram is neither imported nor exported, as well as the
12666 NCA descriptor class if the subprogram is exported.
12667
12668 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12669 Arnaud Charlet <charlet@adacore.com>
12670 Robert Dewar <dewar@adacore.com>
12671 Gary Dismukes <dismukes@adacore.com>
12672
12673 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
12674 default initialization on an imported object, when there is no
12675 initialization call generated for it.
12676 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
12677 restriction
12678
12679 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
12680 Static_Elaboration_Desired.
12681 Remove pragma Thread_Body.
12682 Implement a new pragma No_Body
12683 Removes the Explicit_Overriding pragma
12684 Remove Optional_Overriding pragma
12685 (Prag): Deal with Universal_Aliasing.
12686 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12687 Pragma_CIL_Constructor): New names.
12688
12689 * sem_cat.adb (Validate_Object_Declaration): An initialization that
12690 uses the equivalent aggregate of a type must be treated as an implicit
12691 initialization.
12692 (Get_Categorization): Check a unit for pragma Preelaborate only if it
12693 has none of the other categories.
12694 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
12695 to apply Import to an object renaming declaration.
12696
12697 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
12698 from a C++ class should be declared as limited and that it will be
12699 considererd limited.
12700 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
12701 should be declared as limited and that it will be considererd limited.
12702 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
12703 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
12704 (Analyze_Pragma): Deal with Universal_Aliasing.
12705 (Sig_Flags): Likewise.
12706 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
12707 (Overflow_Checks_Unsuppressed): New flag.
12708 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12709 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
12710 case of JVM or .NET targets, and compiling user code.
12711 Add debugging convenience routine rv
12712
12713 2007-06-06 Robert Dewar <dewar@adacore.com>
12714
12715 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
12716 are interface type.
12717 (Build_Elementary_Input_Call): For floating-point use right type in the
12718 absence of strange size or stream size clauses.
12719 (Build_Elementary_Write_Call): Same fix
12720 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
12721 set to value that does not match base type size.
12722
12723 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12724
12725 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
12726 object of a limited type can be initialized with a call to a function
12727 that returns in place. If the limited type has unknown discriminants,
12728 and the underlying type is a constrained composite type, build an actual
12729 subtype from the function call, as is done for private types.
12730 (Side_Effect_Free): An expression that is the renaming of an object or
12731 whose prefix is the renaming of a object, is not side-effect free
12732 because it may be assigned through the renaming and its value must be
12733 captured in a temporary.
12734 (Has_Controlled_Coextensions): New routine.
12735 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
12736 as is done for other limited types.
12737 (Non_Limited_Designated_Type): new predicate.
12738 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
12739 objects.
12740 Remove all handling of with_type clauses.
12741
12742 * par-ch10.adb: Remove all handling of with_type clauses.
12743
12744 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
12745 checksum if the main source could not be parsed.
12746 (Loat_Unit): When processing a child unit, determine properly whether
12747 the parent unit is a renaming when the parent is itself a child unit.
12748 Remove handling of with_type clauses.
12749
12750 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
12751 (Set_Is_Static_Coextension): New procedure.
12752 (Has_Local_Raise): New function
12753 (Set_Has_Local_Raise): New procedure
12754 (Renaming_Exception): New field
12755 (Has_Init_Expression): New flag
12756 (Delay_Finalize_Attach): Remove because flag is obsolete.
12757 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
12758 Remove all handling of with_type clauses.
12759 (Exception_Junk): Can now be set in N_Block_Statement
12760
12761 2007-06-06 Vincent Celier <celier@adacore.com>
12762 Robert Dewar <dewar@adacore.com>
12763
12764 * frontend.adb (Frontend): Return immediately if the main source could
12765 not be parsed, because of preprocessing errors.
12766
12767 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
12768 (Gnat1drv): Exit with errors if the main source could not be parsed,
12769 because of preprocessing errors.
12770 (Check_Rep_Info): New procedure
12771
12772 2007-06-06 Robert Dewar <dewar@adacore.com>
12773
12774 * g-hesorg.ads, g-heasor.ads,
12775 g-busorg.ads, g-bubsor.ads: Update documentation
12776 GNAT.Heap/Bubble_Sort_G is now pure
12777
12778 2007-06-06 Robert Dewar <dewar@adacore.com>
12779
12780 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
12781
12782 2007-06-06 Robert Dewar <dewar@adacore.com>
12783 Ed Schonberg <schonberg@adacore.com>
12784
12785 * g-comlin.ads, g-comlin.adb:
12786 Add new warning for renaming of function return objects
12787
12788 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
12789 (Tree_Read): Use size of object instead of type'object_size, since the
12790 latter is incorrect for packed array types.
12791 (Tree_Write): Same fix
12792
12793 * opt.ads: Add new warning for renaming of function return objects
12794 (Generating_Code): New boolean variable used to indicate that the
12795 frontend as finished its work and has called the backend to process
12796 the tree and generate the object file.
12797 (GCC_Version): Is now private
12798 (Static_Dispatch_Tables): New constant declaration.
12799 (Overflow_Checks_Unsuppressed): New flag.
12800 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12801 (List_Closure): New flag for gnatbind (-R)
12802 Zero_Formatting: New flag for gnatbind (-Z)
12803 (Special_Exception_Package_Used): New flag.
12804 (Warn_On_Unrepped_Components): New flag.
12805
12806 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
12807 unit is a compilation unit, rather than relying on its scope, so that
12808 Standard can be renamed.
12809 (Analyze_Object_Renaming): Add new warning for renaming of function
12810 return objects.
12811 Also reject attempt to rename function return object in Ada 83 mode.
12812 (Attribute_Renaming): In case of tagged types, add the body of the
12813 generated function to the freezing actions of the type.
12814 (Find_Type): A protected type is visible right after the reserved word
12815 "is" is encountered in its type declaration. Set the entity and type
12816 rather than emitting an error message.
12817 (New_Scope): Properly propagate Discard_Names to inner scopes
12818 (Check_Nested_Access): New procedure.
12819 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
12820 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12821
12822 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
12823 Add new warning for renaming of function return objects
12824 (Check_References): Suppress warnings for objects whose type or
12825 base type has Warnings suppressed.
12826 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
12827 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
12828
12829 2007-06-06 Vincent Celier <celier@adacore.com>
12830 Emmanuel Briot <briot@adacore.com>
12831 Olivier Hainque <hainque@adacore.com>
12832
12833 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
12834 absolute value of Header.Block_Size when displaying the freed physical
12835 memory in traces.
12836 (Allocate): Compute Storage_Address using Integer_Address, not
12837 Storage_Offset, because the range of Storage_Offset may not be large
12838 enough.
12839 (Configure): New parameter Low_Level_Traces
12840 (Allocate, Deallocation, Free_Physically): Added low-level traces
12841 (Configure): new parameter Errors_To_Stdout.
12842 (Output_File): new subprogram
12843 (Deallocate, Dereference): Send error messages to the proper stream
12844 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
12845 documented. Previous code would send it to the current output file
12846 defined in GNAT.IO, which might not be stdout
12847 (Is_Valid): Adjust comment to mention that a positive reply means that
12848 Header_Of may be used to retrieve the allocation header associated with
12849 the subprogram Storage address argument. Return False early if this
12850 address argument is misaligned.
12851
12852 2007-06-06 Vincent Celier <celier@adacore.com>
12853
12854 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
12855 switch -P
12856 (ASIS_Main): New global variable
12857 (Get_Closure): New procedure
12858 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
12859 check, metric or pretty. Call Get_Closure in this case.
12860 (Check_Files): For GNAT LIST, check all sources of all projects when
12861 All_Projects is True.
12862 (GNATCmd): Accept -U for GNAT LIST
12863
12864 2007-06-06 Vincent Celier <celier@adacore.com>
12865
12866 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
12867 has been specified
12868 Correct error message when invocation of the linker fails
12869 Add explicit size clause for the C imported variables
12870 Object_List_File_Supported and Using_GNU_Linker to emphasize that
12871 we expect char size.
12872 Read target parameters earlier, since this is needed to set
12873 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
12874 targets.
12875
12876 2007-06-06 Vincent Celier <celier@adacore.com>
12877
12878 * gnatls.adb:
12879 Add 3 spaces before the default project directory when displaying
12880 the project search path.
12881 Add new command line switch '-l' to display license information.
12882
12883 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12884
12885 * gmem.c: Add support for timestamps on memory operations.
12886
12887 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
12888 operations (not used currently, just foundation for future
12889 enhancements). Add possibility to perform full dump of gmem.out file.
12890 (Print_Back_Traces): Declare accesses to root arrays constants since
12891 they aren't modified.
12892 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
12893
12894 2007-06-06 Vincent Celier <celier@adacore.com>
12895
12896 * gnatsym.adb: Update Copyright notice
12897 (Parse_Cmd_Line): Accept new switch -D
12898 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
12899 file.
12900
12901 * prj.ads (Policy): New policy Direct
12902 (Yes_No_Unknown): New enumeration type
12903 (Project_Data): New component Libgnarl_Needed
12904
12905 * prj-nmsc.adb (Check_For_Source): When recording a source file make
12906 use the untouched pathname casing.
12907 (Get_Directories): Ensure that the Display_Exec_Directory is using the
12908 proper casing on non case-sensitive platforms like Windows.
12909 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
12910 on all platforms, as it is not possible to know which one is allowed
12911 before processing the project files.
12912 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
12913 specified when symbol policy is Direct. Check that when there is a
12914 symbol file defined (either by default or with attribute
12915 Library_Symbol_File) it is not the same as the reference symbol file.
12916 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
12917 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
12918 extending projects.
12919 (Record_Ada_Source): Record a source that has been locally removed in an
12920 imported project.
12921
12922 * symbols.ads (Policy): New policy Direct
12923
12924 * symbols-vms.adb (Initialize): Take new policy Direct in case
12925 statement
12926
12927 2007-06-06 Vincent Celier <celier@adacore.com>
12928
12929 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
12930 Correct obvious bug (return Dir; instead of return Directory;).
12931 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
12932
12933 2007-06-06 Thomas Quinot <quinot@adacore.com>
12934
12935 * g-pehage.adb (Produce): Open output files in Binary mode, so that
12936 they have UNIX line endings (LF only) even on Windows, and thus pass
12937 all GNAT style checks.
12938
12939 2007-06-06 Emmanuel Briot <briot@adacore.com>
12940
12941 * g-regpat.adb (Quote): Fix improper quoting of '.'
12942
12943 2007-06-06 Thomas Quinot <quinot@adacore.com>
12944
12945 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12946 default, set False on a per-runtime basis.
12947 (Need_Netdb_Buffer): New constant.
12948
12949 * g-socket.ads, g-socket.adb: Import new package
12950 GNAT.Sockets.Thin.Task_Safe_NetDB.
12951 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12952 binding to obtain proper message.
12953 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12954 Replace various occurrences of Arry (Arry'First)'Address with the
12955 equivalent Arry'Address (GNAT always follows implementation advice from
12956 13.3(14)).
12957 (Get_Host_By_Address, Get_Host_By_Name,
12958 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12959 instead, rely on platform-specific task safe netdb operations provided
12960 by g-socthi.
12961
12962 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12963 parameter Process_Blocking_IO.
12964 (Host_Error_Messages): Add stub body.
12965 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12966 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12967 Safe_Getservbyport): Move functions into new child package
12968 Task_Safe_NetDB.
12969 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12970 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12971 (In_Addr): Add alignment clause.
12972
12973 2007-06-06 Robert Dewar <dewar@adacore.com>
12974
12975 * g-trasym.ads, g-traceb.ads: Update list of supported targets
12976 Add note about symbolic traceback
12977
12978 2007-06-06 Pascal Obry <obry@adacore.com>
12979
12980 * hostparm.ads (Normalized_CWD): Use the host directory separator
12981 instead of the hardcoded forward slash which is not the proper
12982 character on Windows for example.
12983 (Java_VM): Removed.
12984
12985 2007-06-06 Vincent Celier <celier@adacore.com>
12986 Arnaud Charlet <charlet@adacore.com>
12987
12988 * a-clrefi.adb, a-clrefi.ads: New files
12989
12990 * impunit.adb: Add s-os_lib in the list of user visible units.
12991 (Non_Imp_File_Names_95): Add a-clrefi to this list
12992 Remove obsolete run-time entries.
12993 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12994 "a-exetim" -- Ada.Execution_Time
12995 "a-extiti" -- Ada.Execution_Time.Timers
12996
12997 * mlib-prj.ads, mlib-prj.adb
12998 (Build_Library): Use untouched object dir and library dir. At the
12999 same time makes sure that the checks are done using the canonical
13000 form. Removes hard-coded directory separator and use the proper host
13001 one instead.
13002 (Process_Project): Do not look in object directory to check if libgnarl
13003 is needed for a library, if there is no object directory.
13004 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13005 linking.
13006 (Build_Library): When invoking gnatbind, use a response file if the
13007 total size of the arguments is too large.
13008
13009 * Makefile.rtl: (g-sttsne): New object file.
13010 Add entry for a-clrefi, s-utf_32, System.Exceptions
13011
13012 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13013 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13014 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13015 Change g-string to s-string, g-os_lib to s-os_lib
13016 Change all g-utf_32 references to s-utf_32
13017
13018 2007-06-06 Tristan Gingold <gingold@adacore.com>
13019 Olivier Hainque <hainque@adacore.com>
13020
13021 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13022 LIB$STOP is called to raise an exception and the IP of the exception
13023 is the instruction right after the call.
13024 (__gnat_adjust_context_for_raise, AIX): Implement.
13025 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13026 adjust_context_for_raise before Raise_From_Signal_Hanler.
13027 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13028 siginfo is passed to the handler, necessary to let the zcx propagation
13029 engine unwind past it.
13030
13031 2007-06-06 Olivier Hainque <hainque@adacore.com>
13032
13033 * initialize.c (__gnat_initialize for vxworks): Update documentation
13034 on the ZCX support, using different sets of crtstuff objects than with
13035 GCC 3.4.
13036
13037 2007-06-06 Robert Dewar <dewar@adacore.com>
13038
13039 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13040 spec from body
13041 (Layout_Type): Fix recomputation of size from alignment.
13042
13043 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13044 Javier Miranda <miranda@adacore.com>
13045
13046 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13047 association in an instance.
13048 (Copy_Generic_Node): If the node is a string literal, no need to copy
13049 its descendants.
13050 (Is_Generic_Formal): For a formal subprogram, the declaration is the
13051 grandparent of the entity.
13052 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13053 to simplify handling of formal interfaces that derive from other formal
13054 interfaces.
13055 (Instantiate_Subprogram_Body): The defining unit name of the body of
13056 the instance should be a defining identifier.
13057 (Install_Formal_Packages): make global to the package, for use in
13058 instantiations of child units.
13059 (Analyze_Package_Instantiation): Do not attempt to set information on an
13060 enclosing master of an entry when expansion is disabled.
13061 (Instantiate_Type): If the actual is a tagged synchronized type and the
13062 generic ancestor is an interface, create a generic actual for the
13063 corresponding record.
13064 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13065 declaration, to ensure that the interface list is processed correctly.
13066 (Inline_Instance_Body): If enclosing scope is an instance body, remove
13067 its entities from visibiility as well.
13068 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
13069 given with a named association, analyze the expression only, not the
13070 discriminant association itself.
13071 (Reset_Entity): If the analysis of a selected component is transformed
13072 into an expanded name in the prefix of a call with parameters, do not
13073 transform the original node into an expanded name, to prevent visibility
13074 errors in the case of nested generics.
13075 (Check_Private_View): For an array type, check whether the index types
13076 may need exchanging.
13077
13078 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13079 Vincent Celier <celier@adacore.com>
13080
13081 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13082 since both are separated.
13083 Add support for imported CIL packages.
13084 Add further special handling of "value_type" for CIL.
13085 Add special handling of pragma Import for CIL.
13086
13087 * make.ads, make.adb: When switch -eS is used, direct all outputs to
13088 standard output instead of standard error, except errors.
13089 (Absolute_Path): Use untouched casing for the parent directory.
13090 (Add_Library_Search_Dir): Use the untouched directory name.
13091 (Add_Source_Search_Dir): Idem.
13092 (Change_To_Object_Directory): Update output to use proper casing.
13093 (Create_Binder_Mapping_File): Use the untouched filename to set
13094 ALI_Name.
13095 (Gnatmake): Use untouched library and executable directory names.
13096 (Insert_Project_Sources): Use untouched filename for spec and body.
13097 (Is_In_Object_Directory): Use untouched object directory.
13098 (Mark_Directory): Idem.
13099 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13100 contains the non-canonical filename in all cases.
13101 (Change_To_Object_Directory): In verbose mode, display the name of the
13102 object directory we're changing to.
13103 (Compile_Sources): Make sure, when a project file is used, to compile
13104 the body of the unit, when there is one, even when only the spec is
13105 recorded in an ALI file.
13106 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13107 spec to the body.
13108 (Report_Compilation_Failed): New procedure
13109 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13110 procedures moved from the spec to the body.
13111 (Extract_Failure): Removed, not used
13112 Replace explicit raises of exception Bind_Failed and Link_Failed with
13113 calls to Make_Failed with the proper message.
13114 Replace explicit raises of exception Compilation_Failed with calls to
13115 procedure Report_Compilation_Failed.
13116 (Initialize): Create mapping files unconditionally when using project
13117 files.
13118
13119 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13120 Pragma_CIL_Constructor): New names.
13121
13122 * targparm.ads, targparm.adb
13123 (Compiler_System_Version): Removed, no longer used.
13124 (Get_Target_Parameters): Relax checks on system.ads validity. Add
13125 handling of two new system flags: JVM and CLI.
13126
13127 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13128 Arnaud Charlet <charlet@adacore.com>
13129
13130 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13131 time, use the default s-interr body that provides interrupt support
13132 based on signals.
13133 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13134 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13135 g-soccon.ads, and s-taprop.adb for the marte run time.
13136 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13137 timers are supported on marte.
13138 (EH_MECHANISM for marte): Do not use ZCX.
13139 (THREADSLIB for marte): Use -lmarte.
13140 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13141 Add mlib-tgt-specific.o to gnatmake objects
13142 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13143 longer of MLib.Tgt.
13144 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13145 6, either kernel or rtp, use a specialized version of s-osinte.ads.
13146
13147 2007-06-06 Pascal Obry <obry@adacore.com>
13148
13149 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13150
13151 2007-06-06 Vincent Celier <celier@adacore.com>
13152
13153 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13154 separator, use instead the proper host directory separator.
13155 (Copy_ALI_Files): Make sure that an already existing ALI file in the
13156 ALI copy dir is writable, before doing the copy.
13157
13158 * mlib-utl.ads, mlib-utl.adb:
13159 (Gcc): If length of command line is too long, put the list of object
13160 files in a response file, if this is supported by the platform.
13161 (Ar): If invocation of the archive builder is allowed to be done in
13162 chunks and building it in one shot would go above an OS dependent
13163 limit on the number of characters on the command line, build the archive
13164 in chunks.
13165
13166 2007-06-06 Vincent Celier <celier@adacore.com>
13167
13168 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13169 of specified object file is not equal to base name of source.
13170
13171 2007-06-06 Javier Miranda <miranda@adacore.com>
13172 Hristian Kirtchev <kirtchev@adacore.com>
13173 Ed Schonberg <schonberg@adacore.com>
13174
13175 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13176 the full type declaration.
13177 (Analyze_Component_Declaration): Add local variable E to capture the
13178 initialization expression of the declaration. Replace the occurences of
13179 Expression (N) with E.
13180 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13181 limited interface object with a function call.
13182 (Array_Type_Declaration): If the declaration lacks subtype marks for
13183 indices, create a simple index list to prevent cascaded errors.
13184 (Is_Null_Extension): Ignore internal components created for secondary
13185 tags when checking whether a record extension is a null extension.
13186 (Check_Abstract_Interfaces): Add missing support for interface subtypes
13187 and generic formals.
13188 (Derived_Type_Declaration): Add missing support for interface subtypes
13189 and generic formals.
13190 (Analyze_Object_Declaration): If an initialization expression is
13191 present, traverse its subtree and mark all allocators as static
13192 coextensions.
13193 (Add_Interface_Tag_Component): When looking for components that may be
13194 secondary tags, ignore pragmas that can appear within a record
13195 declaration.
13196 (Check_Abstract_Overriding): an inherited function that dispatches on
13197 result does not need to be overriden if the controlling type is a null
13198 extension.
13199 (Mentions_T): Handle properly a 'class attribute in an anonymous access
13200 component declaration, when the prefix is an expanded name.
13201 (Inherit_Component): If the derivation is for a private extension,
13202 inherited components remain visible and their ekind should not be set
13203 to Void.
13204 (Find_Type_Of_Object): In the case of an access definition, always set
13205 Is_Local_Anonymous_Access. We were previously not marking the anonymous
13206 access type of a return object as a local anonymous type.
13207 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13208 range with character literal bounds.
13209 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13210 (Access_Subprogram_Declaration): Indicate that the type declaration
13211 depends on an incomplete type only if the incomplete type is declared
13212 in an open scope.
13213 (Analyze_Subtype_Declaration): Handle properly subtypes of
13214 synchronized types that are tagged, and that may appear as generic
13215 actuals.
13216 (Access_Subprogram_Declaration): An anonymous access to subprogram can
13217 appear as an access discriminant in a private type declaration.
13218 (Add_Interface_Tag_Components): Complete decoration of the component
13219 containing the tag of a secondary dispatch table and the component
13220 containing the offset to the base of the object (this latter component
13221 is only generated when the parent type has discriminants --as documented
13222 in this routine).
13223 (Inherit_Components): Use the new decoration of the tag components to
13224 improve the condition that avoids inheriting the components associated
13225 with secondary tags of the parent.
13226 (Build_Discriminanted_Subtype): Indicate to the backend that the
13227 size of record types associated with dispatch tables is known at
13228 compile time.
13229 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13230 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13231 to include task, protected, and synchronized interfaces as limited
13232 interfaces.
13233 (Process_Discriminants): Remove the setting of
13234 Is_Local_Anonymous_Access on the type of (anonymous) access
13235 discriminants of nonlimited types.
13236 (Analyze_Interface_Type_Declaration): Complete the decoration of the
13237 class-wide entity it is is already present. This situation occurs if
13238 the limited-view has been previously built.
13239 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13240 field.
13241 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13242 Related_Interface.
13243
13244 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13245
13246 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13247 of the type that specify the position of interface tags when the type
13248 inherits discriminated array components from the parent type.
13249 If a component is initialized with a box, check for the presence of a
13250 default expression in its declaration before using its default
13251 initialization procedure.
13252 (Resolve_Record_Aggregate): If a component is box-initialized, and the
13253 component type has a discriminants, create a partial aggregate for it
13254 by copying the discriminants of the component subtype.
13255 Reject attempt to initialize a discriminant with a box.
13256 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13257 associated with dispatch tables is known at compile time.
13258 (Get_Value): If an association in a record aggregate has a box
13259 association, and the corresponding record component has a default
13260 expression, always copy the default expression, even when the
13261 association has a single choice, in order to create a proper
13262 association for the expanded aggregate.
13263
13264 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13265 Robert Dewar <dewar@adacore.com>
13266
13267 * par-ch12.adb (P_Generic_Associations): The source position of an
13268 Others association is that of the others keyword, not that of the token
13269 that follows the box.
13270 (P_Formal_Type_Definition): Handle formal access types that carry a
13271 not null indicator.
13272
13273 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13274 multiple identifier are present, save Scan_State before scanning the
13275 colon, to ensure that separate trees are constructed for each
13276 declaration.
13277 (P_Identifier_Declarations): For object declaration, set new flag
13278 Has_Init_Expression if initialization expression present.
13279 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13280 Improve NOT NULL error messages
13281
13282 2007-06-06 Robert Dewar <dewar@adacore.com>
13283
13284 * par-ch4.adb: (P_Name): Recover from literal used as name
13285
13286 2007-06-06 Vincent Celier <celier@adacore.com>
13287
13288 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13289 defaulted to False.
13290 In the "not" case, recursive call with Complemented set to True.
13291 Do not allow "or" or "and" operators when Complemented is True.
13292
13293 2007-06-06 Vincent Celier <celier@adacore.com>
13294
13295 * prj.adb (Project_Empty): Gives default value for new component
13296 Libgnarl_Needed
13297
13298 * prj-attr.ads: Minor reformatting
13299
13300 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
13301 directory using the untouched casing.
13302 (For_All_Source_Dirs): Idem.
13303
13304 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
13305 directories specified with switches -aP.
13306 (Add_Search_Project_Directory): New procedure
13307 (Initialize_Project_Path): Put the directories in table
13308 Search_Directories in the project search path.
13309 (Initialize_Project_Path): For VMS, transform into canonical form the
13310 project path.
13311
13312 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13313
13314 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
13315 true if configurable run-time or No_Run_Time is set.
13316 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
13317 processing an unit which is not the one being compiled.
13318
13319 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13320
13321 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
13322 Replace UC by Ada.UC
13323
13324 * s-bitops.adb: Get rid of System.Pure_Exceptions.
13325 Replace UC by Ada.UC
13326
13327 2007-06-06 Robert Dewar <dewar@adacore.com>
13328
13329 * scng.adb: (Check_End_Of_Line): Deal with very long lines
13330
13331 2007-06-06 Robert Dewar <dewar@adacore.com>
13332
13333 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
13334 Remove no longer used nodes.
13335
13336 2007-06-06 Javier Miranda <miranda@adacore.com>
13337 Ed Schonberg <schonberg@adacore.com>
13338 Robert Dewar <dewar@adacore.com>
13339
13340 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
13341 on obsolescent withed unit in case of limited-withed units.
13342 (Analyze_Compilation_Unit): Add guard to code that removed an
13343 instantiation from visibility, to prevent compiler aborts when
13344 instantiation is abandoned early on.
13345 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
13346 current unit being analyzed, and Distinguish local incomplete types
13347 from limited views of types declared elsewhere.
13348 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
13349 to state that the class-wide entity is shared by the limited-view
13350 and the full-view.
13351 (Analyze_With_Clause): Improve placement of flag for case of
13352 unimplemented unit.
13353 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
13354 manner similar to GNAT.Current_Exception. This is a violation of
13355 restriction (No_Exception_Propagation), and also inhibits the
13356 optimization of local raise to goto.
13357 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
13358 and if so set Most_Recent_Exception_Used flag in Opt, and also check
13359 for violation of restriction No_Exception_Propagation.
13360
13361 2007-06-06 Javier Miranda <miranda@adacore.com>
13362 Hristian Kirtchev <kirtchev@adacore.com>
13363 Gary Dismukes <dismukes@adacore.com>
13364
13365 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
13366 use of entity Exception_Occurrence if it is not available in the
13367 target run-time.
13368
13369 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
13370 concurrent types are declared within an Ada 2005 generic, build their
13371 corresponding record types since they are needed for overriding-related
13372 semantic checks.
13373 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
13374 protected type does not implement a task interface or a nonlimited
13375 interface.
13376 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
13377 type does not implement a protected interface or a nonlimited interface.
13378 (Single_Task_Declaration, Single_Protected_Declaration): use original
13379 entity for variable declaration, to ensure that debugging information
13380 is correcty generated.
13381 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
13382 routines if the expander is not active.
13383 (Analyze_Task_Body): Mark all handlers to stop optimization of local
13384 raise, since special things happen for task exception handlers.
13385
13386 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
13387 concurrent types declared within a generic.
13388 (Check_Dispatching_Operation): Do not emit warning about late interface
13389 operations in the context of an instance.
13390 (Check_Dispatching_Call): Remove restriction against calling a
13391 dispatching operation with a limited controlling result.
13392 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
13393 Register_Interface_DT_Entry by calls to Register_Primitive.
13394 (Check_Dispatching_Formals): Handle properly a function with a
13395 controlling access result.
13396
13397 2007-06-06 Robert Dewar <dewar@adacore.com>
13398 Arnaud Charlet <charlet@adacore.com>
13399
13400 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
13401 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
13402 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
13403 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
13404 message when using a VM, since this attribute is not supported.
13405 (Analyze_Record_Representation_Clause): Give unrepped component warnings
13406
13407 * usage.adb: Add new warning for renaming of function return objects
13408 Indicate that -gnatwp and -gnatwP concern front-end inlining
13409 Add line for -gnatyg
13410 Add usage information for -gnatw.c/C
13411
13412 2007-06-06 Robert Dewar <dewar@adacore.com>
13413 Ed Schonberg <schonberg@adacore.com>
13414
13415 * sem_ch5.adb
13416 (Find_Var): Do not consider function call in test for infinite loop
13417 warning if warnings set off for function entity.
13418 (One_Bound): Do not create a temporary for a loop bound if it is a
13419 character literal.
13420 (Analyze_Assignment): Traverse the right hand side of an assignment and
13421 mark all allocators as static coextensions.
13422 (Analyze_Assignment): Exempt assignments involving a dispatching call
13423 to a function with a controlling access result from the check requiring
13424 the target to be class-wide.
13425
13426 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13427 Ed Schonberg <schonberg@adacore.com>
13428 Robert Dewar <dewar@adacore.com>
13429 Javier Miranda <miranda@adacore.com>
13430
13431 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
13432 chain of coextensions when an allocator serves as the root of such a
13433 chain.
13434 (Propagate_Coextensions): Remove the test for the root being an
13435 allocator.
13436 (Resolve_Allocator): Add condition to ensure that all future decoration
13437 occurs on an allocator node. Add processing and cleanup for static
13438 coextensions.
13439 (Valid_Conversion): If the operand type is the limited view of a
13440 class-wide type, use the non-limited view is available to determine
13441 legality of operation.
13442 (Ambiguous_Character): move to spec, for use elsewhere.
13443 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
13444 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
13445 character literals.
13446 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
13447 Do_Division_Check flag explicitly.
13448 (Resolve_Actuals): If the actual is of a synchronized type, and the
13449 formal is of the corresponding record type, this is a call to a
13450 primitive operation of the type, that is declared outside of the type;
13451 the actual must be unchecked-converted to the type of the actual
13452 (Resolve_Call): Kill all current values for any subprogram call if
13453 flag Suppress_Value_Tracking_On_Call is set.
13454 (Resolve_Type_Conversion): Generate error message the the operand
13455 or target of interface conversions come from a limited view.
13456 (Check_Infinite_Recursion): Ignore generated calls
13457 (Check_Allocator_Discrim_Accessibility): New procedure for checking
13458 that an expression that constrains an access discriminant in an
13459 allocator does not denote an object with a deeper level than the
13460 allocator's access type.
13461 (Resolve_Allocator): In the case of an allocator initialized by an
13462 aggregate of a discriminated type, check that associations for any
13463 access discriminants satisfy accessibility requirements by calling
13464 Check_Allocator_Discrim_Accessibility.
13465 (Resolve_Equality_Op): Handle comparisons of anonymous access to
13466 subprogram types in the same fashion as other anonymous access types.
13467 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
13468 message that is not a continuation message.
13469 (Resolve_Type_Conversion): Add missing support for conversion to
13470 interface type.
13471 (Resolve_Actuals): Introduce a transient scope around the call if an
13472 actual is a call to a function returning a limited type, because the
13473 resulting value must be finalized after the call.
13474 (Resolve_Actuals): If the call was given in prefix notations, check
13475 whether an implicit 'Access reference or implicit dereference must be
13476 added to make the actual conform to the controlling formal.
13477
13478 2007-06-06 Robert Dewar <dewar@adacore.com>
13479 Javier Miranda <miranda@adacore.com>
13480
13481 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
13482 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
13483 overriding of an inherited private subprogram now there is no need to
13484 inherit its dispatching slot and reduce the size of the dispatch table.
13485 Set_All_DT_Position now ensures that the same slot is now assigned to
13486 both entities. This is required to statically build the dispatch table.
13487 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
13488 of calling Set_All_DT_Position to re-evaluate the position of the
13489 entries in the dispatch table. Such reevaluation is not desired if
13490 the tagged type is already frozen.
13491
13492 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13493 Gary Dismukes <dismukes@adacore.com>
13494 Robert Dewar <dewar@adacore.com>
13495 Javier Miranda <miranda@adacore.com>
13496
13497 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
13498 reference acts as an lvalue when the attribute name modifies the prefix
13499 (Is_Coextension_Root): New routine.
13500 (Mark_Static_Coextensions): New routine.
13501 (Type_Access_Level): Revise code for checking the level of the
13502 anonymous access type of a return object.
13503 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
13504 (Matches_Prefixed_View_Profile): Remove the no longer necessary
13505 retrieval of the corresponding controlling record type.
13506 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
13507 concurrent types declared within a generic as well as class wide types.
13508 Emit a mode incompatibility error whenever a protected entry or routine
13509 override an interface routine whose first parameter is not of mode
13510 "out", "in out" or access to variable.
13511 (Overrides_Synchronized_Primitive): Rename to
13512 Find_Overridden_Synchronized_Primitive.
13513 (Collect_Interface_Components): New subprogram that collects all the
13514 components of a tagged record containing tags of secondary dispatch
13515 tables.
13516 (Add_Global_Declaration): New procedure
13517 (Abstract_Interface_List): Handle properly the case of a subtype of a
13518 private extension.
13519 (Type_Access_Level): In the case of a type whose parent scope is a
13520 return statement, call Type_Access_Level recursively on the enclosing
13521 function's result type to determine the level of the return object's
13522 type.
13523 (Build_Elaboration_Entity): Build name of elaboration entity from the
13524 scope chain of the entity, rather than the unit name of the file name.
13525 (Check_Nested_Access): New procedure.
13526 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13527 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13528 (Get_Renamed_Entity): Utility routine for performing common operation
13529 of chasing the Renamed_Entity field of an entity.
13530
13531 2007-06-06 Robert Dewar <dewar@adacore.com>
13532
13533 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
13534 elaboration model
13535 (Check_A_Call): Add check for entry call which was causing blowup
13536
13537 2007-06-06 Olivier Hainque <hainque@adacore.com>
13538
13539 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
13540 special code on ia64-vms to handle major incompatibilities between the
13541 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
13542 this routine with a very different set of arguments and expectations on
13543 the return value.
13544
13545 2007-06-06 Thomas Quinot <quinot@adacore.com>
13546
13547 * socket.c (__gnat_close_signalling_fd): New function.
13548 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
13549 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
13550 New supporting functions for task safe Netdb operations.
13551
13552 2007-06-06 Thomas Quinot <quinot@adacore.com>
13553 Olivier Hainque <hainque@adacore.com>
13554
13555 * a-except-2005.ads, a-except-2005.adb
13556 (Raise_From_Controlled_Operation): New procedure in
13557 (private part of) Ada.Exceptions (standard runtime version). Used to
13558 provide informational exception message when Program_Error is raised as
13559 a result of an Adjust or Finalize operation propagating an exception.
13560 (Rmsg_28): Fix description for E.4(18) check.
13561 (Raise_Current_Excep): Call Debug_Raise_Exception just before
13562 propagation starts, to let debuggers know about the event in a reliable
13563 fashion.
13564 Take the address of E and dereference to make sure it is homed on stack
13565 and prevent the stores from being deleted, necessary for proper
13566 debugger behavior on "break exception" hits.
13567 (Local_Raise): Moved to System.Exceptions
13568
13569 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
13570 exception message from the current occurrence and raise Program_Error
13571 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
13572
13573 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13574 Arnaud Charlet <charlet@adacore.com>
13575
13576 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
13577 lock, if needed.
13578
13579 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
13580 priority associated to a lock.
13581
13582 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
13583 assertion to take into account case of no abort restriction.
13584 (Initialize_Protection_Entries): Add initialization for the field
13585 New_Ceiling associated to the protected object.
13586 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
13587 needed.
13588
13589 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13590 since this function needs to be set consistently with Update_Exception.
13591
13592 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13593 since this function needs to be set consistently with Update_Exception.
13594
13595 * s-taskin.ads: Update comments on
13596 Interrupt_Server_Blocked_On_Event_Flag.
13597 (Unbind_Handler): Fix handling of server_task wakeup
13598 (Server_Task): Set self's state so that Unbind_Handler can take
13599 appropriate actions.
13600 (Common_ATCB): Now use a constant from System.Parameters to determine
13601 the max size of the Task_Image field.
13602
13603 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
13604 Initialize_Analyzer function.
13605 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
13606 take into account case of no abort restriction.
13607 ([Vulnerable_]Complete_Master): Modify assertion.
13608
13609 * s-tataat.adb (Finalize): Use the nestable versions of
13610 Defer/Undefer_Abort.
13611
13612 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
13613
13614 * s-tpobop.ads: Update comments.
13615
13616 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
13617 of locking the object manually, to avoid inconsistencies between
13618 Lock/Unlock_Entry assertions.
13619
13620 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
13621 terminating
13622 application and System.Parameters.No_Abort is True.
13623 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
13624 (Unbind_Handler): Fix handling of server_task wakeup
13625 (Server_Task): Set self's state so that Unbind_Handler can take
13626 appropriate actions.
13627
13628 2007-06-06 Thomas Quinot <quinot@adacore.com>
13629
13630 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
13631 declarations instead of an explicit null body, for conciseness.
13632
13633 2007-06-06 Robert Dewar <dewar@adacore.com>
13634
13635 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
13636 illegal aggregate and the type is still Any_Composite.
13637 (Subtypes_Statically_Match): Fix problem of empty discriminant list
13638
13639 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13640
13641 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
13642 to prevent subsequent expansion.
13643
13644 2007-06-06 Robert Dewar <dewar@adacore.com>
13645
13646 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
13647
13648 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13649 Robert Dewar <dewar@adacore.com>
13650
13651 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
13652 exceptions.
13653 (Write_Itype): Handle case of string literal subtype, which
13654 comes up in this context.
13655 (Update_Itype): when debugging expanded code, update sloc of itypes
13656 associated with defining_identifiers and ranges, for gdb use.
13657 (Sprint_Node_Actual): Add static keyword to object or exception
13658 declaration output if Is_Statically_Allocated is True.
13659 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
13660 or task body, so that the tree carries the proper Sloc information for
13661 debugging use.
13662 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
13663
13664 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13665
13666 * s-secsta.adb (Chunk): Ensure this object has a static size known at
13667 compile time, to avoid dynamic memory allocation
13668 (Elaboration code): Only use dynamic memory allocation when needed.
13669
13670 2007-06-06 Quentin Ochem <ochem@adacore.com>
13671
13672 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
13673 "Overflow_Guard".
13674 (Stack_Analyzer): Added field "Overflow_Guard"
13675 (Task_Result): Added field "Overflow_Guard".
13676 (Index_Str): New constant.
13677 (Task_Name_Str): New constant.
13678 (Actual_Size_Str): New constant.
13679 (Pattern_Array_Element_Size): New constant.
13680 (Get_Usage_Range): New subprogram.
13681 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
13682 Now align the output.
13683 Added comments.
13684 (Initialize): Added value for Overflow_Guard.
13685 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
13686 Update the value of the overflow guard according to the actual
13687 beginning of the pattern array.
13688 (Initialize_Analyzer): Added parameter Overflow_Guard.
13689 Take this parameter into accound when computing the max size.
13690 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
13691 (Report_Result): Removed extra useless procedure.
13692 Updated call to Output_Result.
13693 Moved full computation of the Task_Result here.
13694
13695 2007-06-06 Thomas Quinot <quinot@adacore.com>
13696
13697 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
13698 Thread_Blocking_IO, always True by default, set False on a per-runtime
13699 basis.
13700 Add Windows-specific constants
13701 Add new constant Need_Netdb_Buffer.
13702 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13703 not, whether to use getXXXbyYYY_r.
13704
13705 * gsocket.h: Add new constant Need_Netdb_Buffer.
13706 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13707 not, whether to use getXXXbyYYY_r.
13708
13709 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
13710
13711 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
13712 than their first call.
13713 Add type Dummy_Communication_Block used in the generation of the pre-
13714 defined dispatching primitive _disp_asynchronous_select.
13715 (Storage_Element): Put Pragma Universal_Aliasing on it.
13716
13717 2007-06-06 Vincent Celier <celier@adacore.com>
13718
13719 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
13720 function.
13721
13722 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
13723 letter if it is not followed by a '/' or a '\'.
13724 (Windows): New Boolean function
13725
13726 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
13727 Ada 2005.
13728 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
13729 drive letter.
13730 (Containing_Directory): Raise Use_Error when the directory is a root
13731 directory.
13732 (Extension): When returning the result, use a conversion to Result_Type,
13733 not a qualification.
13734
13735 2007-06-06 Robert Dewar <dewar@adacore.com>
13736
13737 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
13738 (Set_Style_Check_Options): Recognize new -gnatyg style switch
13739
13740 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
13741 Warn_On_Non_Local_Exception to False, to turn off warnings for
13742 No_Exception_Propagation in ZFP runtime.
13743 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
13744 back-ends.
13745 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
13746
13747 2007-06-06 Vincent Celier <celier@adacore.com>
13748
13749 * switch-b.adb (Scan_Binder_Switches): Add processing for new
13750 switches -R and -Z
13751
13752 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
13753 (Scan_Make_Switches): Recognize new switch -aP
13754
13755 2007-06-06 Matthew Gingell <gingell@adacore.com>
13756 Jose Ruiz <ruiz@adacore.com>
13757
13758 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
13759 VxWorks task descriptor in the Ada run time, call a C subprogram
13760 (__gnat_get_stack_info) that extracts the required information.
13761
13762 * sysdep.c: Back out temporary lynxos workaround.
13763 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
13764 time the stack information associated to the currently executing task.
13765 Only VxWorks systems require this function.
13766
13767 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
13768
13769 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
13770 add the stack bias if the offset is computed from a frame address.
13771 (__gnat_backtrace): Adjust for above change.
13772
13773 2007-06-06 Thomas Quinot <quinot@adacore.com>
13774
13775 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
13776 PE_Non_Transportable_Actual.
13777 (By_Descriptor_Last): New constant.
13778 (By_Copy_Return): Likewise.
13779
13780 2007-06-06 Vincent Celier <celier@adacore.com>
13781
13782 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
13783 is.
13784
13785 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
13786 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
13787 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
13788 Add missing comment for /OPTIMIZE=SPACE
13789 Add entry for OPTIMIZE=SPACE
13790 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
13791 Add documentation for new qualifiers corresponding to -gnatw.c/.C
13792
13793 2007-06-06 Vincent Celier <celier@adacore.com>
13794 Robert Dewar <dewar@adacore.com>
13795
13796 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
13797 -gnatw.C)
13798
13799 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
13800 Document gnatbind switch -a
13801 (case Constructions): Document that variables declarations are allowed
13802 for previously declared variables.
13803 Fix external lib project example
13804 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
13805 Indicate that "#if not X or Y then" is not allowed in input files to
13806 gnatprep.
13807 Document gnatw.x and gnatw.X warning flags
13808 Mention -Winline switch to activate warnings when back-end inlining is
13809 ineffective.
13810 Add gnatcheck rule descriptions
13811 Describe how to use the GNAT driver to call a tool on a closure.
13812 Describe how to run project-wide checks or metrics.
13813 Document gnatbind's -R option
13814 Updated to account for Ada 2005 support
13815
13816 * gnat_rm.texi (Case Construction): Allow variable declarations for
13817 previously declared variables.
13818 (Representation Clauses and Pragmas): Lift restriction on alignment
13819 clauses for record types.
13820 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
13821 Document No_Exception_Propagation restriction
13822 Document No_Body pragma
13823 Updated to account for Ada 2005 support; corrected some typos
13824 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
13825
13826 * gnat-style.texi: Make it clear that we never use mode IN for
13827 procedures or functions
13828
13829 * ug_words: Add entries for -gnatw.x and -gnatw.X
13830 Add entries for -gnatw.c/.C
13831
13832 2007-06-06 Pascal Obry <obry@adacore.com>
13833 Vincent Celier <celier@adacore.com>
13834
13835 * makegpr.adb (Add_Archive_Path): Use untouched object and library
13836 dirs and library name.
13837 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
13838 comments.
13839 (Build_Library): Idem.
13840 (Compile_Individual_Sources): Idem.
13841 (Compile_Link_With_Gnatmake): Idem.
13842 (Compile_Sources): Idem.
13843 (Get_Imported_Directories): Idem.
13844 (Link_Executables): Idem. Same change for the executable dir.
13845 (Check_Compilation_Needed): C_Source_Path new variable containing
13846 the canonical form of Source_Path to check against the source names
13847 in the dependency file.
13848 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
13849 verbose mode, display the name of the object directory we're changing
13850 to.
13851 (Saved_Switches): New name of table X_Switches
13852 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
13853 (Usage): New line for switch -aP
13854 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
13855 testing if a directory should be added to the search path.
13856
13857 2007-06-06 Javier Miranda <miranda@adacore.com>
13858
13859 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
13860 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
13861 declaration after freezing point of all its associated tagged types;
13862 otherwise such types are frozen too early.
13863
13864 2007-06-06 Robert Dewar <dewar@adacore.com>
13865
13866 * a-reatim.adb: Documentation addition
13867
13868 * g-cgideb.adb: Minor code reorganization
13869
13870 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
13871 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
13872 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
13873
13874 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
13875 function. Change name New_Scope to Push_Scope
13876 (Get_Debug_Flag_K): Remove unused obsolete function.
13877
13878 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
13879 Push_Scope.
13880
13881 * makeusg.adb: Update Copyright notice
13882 Add line for switch -aP
13883
13884 * makeusg.adb: Fix wording of some usage messages
13885
13886 * s-assert.adb (Raise_Assert_Failure): Add call to
13887 Debug_Raise_Assert_Failure.
13888
13889 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
13890 (2, Standard'Alignment) for compatibility with AAMP (where alignment
13891 is restricted to 1).
13892
13893 * s-wchjis.adb: Remove use of System.Pure_Exceptions
13894
13895 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
13896 node location to No_Location when we're not debugging the expanded
13897 code.
13898
13899 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
13900
13901 * misc.c (enumerate_modes): Consider log2_b to always be one.
13902
13903 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
13904
13905 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13906
13907 2007-05-02 Pascal Obry <obry@adacore.com>
13908
13909 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
13910 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
13911 encoding support of Stream_IO.
13912 (Write_Unit): Idem.
13913
13914 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
13915 filename and corresponding encoding to match the OS requirement.
13916 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
13917 routine will fail on specific devices like CON: AUX: ...
13918
13919 PR ada/29856: Add missing braces
13920
13921 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
13922
13923 PR ada/31660
13924 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
13925
13926 2007-04-21 Jan Hubicka <jh@suse.cz>
13927
13928 * misc.c (gnat_expand_body): Don't call target for destructors,
13929 avoid redundant check on syntax errors.
13930
13931 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
13932
13933 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
13934 instead of checking GIMPLE_STMT_P in chain_next.
13935
13936 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
13937
13938 PR ada/31576
13939 * system-linux-alpha.ads: Disable constant condition warning for the
13940 Default_Bit_Order variable.
13941 * system-linux-s390.ads: Likewise.
13942 * system-linux-s390x.ads: Likewise.
13943 * system-linux-sparc.ads: Likewise.
13944
13945 2007-04-06 Javier Miranda <miranda@adacore.com>
13946 Matt Heaney <heaney@adacore.com>
13947 Robert Dewar <dewar@adacore.com>
13948
13949 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13950 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13951 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13952 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13953 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13954 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13955 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13956 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13957 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13958 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13959 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13960 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13961 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13962 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13963 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13964 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13965 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13966 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13967 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13968 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13969 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13970 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13971 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13972 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13973 s-taprop-tru64.adb, s-taprop-irix.adb,
13974 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13975 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13976 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13977 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
13978 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
13979 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
13980 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
13981 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
13982 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
13983 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
13984 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
13985 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
13986 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
13987 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
13988 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
13989 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
13990 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
13991 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13992 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
13993 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13994 access types.
13995 Update documentation.
13996 Minor rewording.
13997
13998 2007-04-06 Robert Dewar <dewar@adacore.com>
13999
14000 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14001 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14002 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14003 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14004 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14005 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14006 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14007 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14008 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14009 system-hpux-ia64.ads, targparm.adb,
14010 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14011
14012 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14013 kept for bootstrap purposes only.
14014
14015 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14016
14017 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14018 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14019 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14020 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14021
14022 2007-04-06 Robert Dewar <dewar@adacore.com>
14023
14024 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14025 (Local_Raise): New dummy procedure called when a raise is converted
14026 to a local goto. Used for debugger to detect that the exception
14027 is raised.
14028
14029 * debug.adb: Document new d.g flag (expand local raise statements to
14030 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14031
14032 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14033
14034 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14035 suppress warnings for unused handlers.
14036 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14037 warnings for raise statements not handled locally.
14038 (Get_RT_Exception_Entity): New function
14039 (Get_Local_Call_Entity): New function
14040 (Find_Local_Handler): New function
14041 (Warn_If_No_Propagation): New procedure
14042 (Expand_At_End_Handler): Call Make_Implicit_Handler
14043 (Expand_Exception_Handlers): Major additions to deal with local handlers
14044 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14045 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14046 for local raise
14047
14048 * exp_ch11.ads (Get_RT_Exception_Entity): New function
14049 (Get_Local_Call_Entity): New function
14050
14051 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14052 of restrictions that the binder will never suggest adding.
14053
14054 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14055 to No_Elist.
14056
14057 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14058 be with'ed in the presence of pragma Restriction
14059 (No_Exception_Propagation).
14060
14061 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14062
14063 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14064 parameter, then the handler is not a suitable target for a local raise,
14065 and this is a violation of restriction No_Exception_Propagation.
14066 (Analyze_Handled_Statements): Analyze choice parameters in exception
14067 handlers before analyzing statement sequence (needed for proper
14068 detection of local raise statements).
14069 (Analyze_Raise_Statement): Reraise statement is a violation of the
14070 No_Exception_Propagation restriction.
14071
14072 * s-rident.ads: Add new restriction No_Exception_Propagation
14073
14074 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14075 function, like Make_Exception_Handler but sets Local_Raise_Statements
14076 to No_List.
14077 (Add_Unique_Serial_Number): Deal with case where this is called during
14078 processing of configuration pragmas.
14079
14080 2007-04-06 Thomas Quinot <quinot@adacore.com>
14081 Pat Rogers <rogers@adacore.com>
14082 Pascal Obry <obry@adacore.com>
14083
14084 * g-stsifd-sockets.adb: New file.
14085
14086 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14087 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14088 g-socthi-vms.adb: Move signalling
14089 fd management to a nested package, so that they can conveniently be
14090 moved to a subunit that is shared across Windows, VMS, and VxWorks
14091 (Ada implementation) or completed with imported bodies from socket.c
14092 (UNIX case).
14093 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14094 subprograms.
14095 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14096 the signalling file descriptor.
14097 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14098 signalling file descriptor.
14099 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14100 instead of creating a pair of sockets for signalling here.
14101
14102 * g-socthi.adb: Ditto.
14103 Set the runtime process to ignore SIGPIPEs on platforms that support
14104 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14105
14106 * g-socthi-mingw.adb: Ditto.
14107 (WS_Version): Use Windows 2.2.
14108 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14109
14110 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14111 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14112
14113 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14114 added GNAT byte swapping facility
14115 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14116
14117 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14118
14119 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14120 New subprograms.
14121 (__gnat_create_signalling_fds): New subprogram.
14122 Set the runtime process to ignore SIGPIPEs on platforms that support
14123 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14124
14125 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
14126 Vincent Celier <celier@adacore.com>
14127
14128 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14129 New version of Ada.Calendar which supports the new upper bound of Ada
14130 time (2399-12-31 86_399.999999999).
14131 The following modifications have been made to the package:
14132 - New representation of time as count of nanoseconds since the start of
14133 Ada time (1901-1-1 0.0).
14134 - Target independent Split and Time_Of routines which service both
14135 Ada 95 and Ada 2005 code.
14136 - Target independent interface to the Ada 2005 children of Calendar.
14137 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14138 - Handling of non-leap centenial years.
14139 - Updated clock function.
14140 - Updated arithmetic and comparison operators.
14141
14142 * a-caldel.adb (To_Duration): Add call to target independent routine in
14143 Ada.Calendar to handle the conversion of time to duration.
14144
14145 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14146 (UTC Offset).
14147 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14148 set off to 0.
14149 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14150 targets do not have a natural time zone, GMT is used as a default.
14151 (__gnat_get_task_options): New.
14152
14153 * a-direct.adb (Modification_Time): Add with and use clauses for
14154 Ada.Calendar and Ada.
14155 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14156 since it is no longer needed.
14157 (Duration_To_Time): Removed.
14158 (OS_Time_To_Long_Integer): Removed.
14159 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14160 Formatting Time_Of routines which automatically handle time zones,
14161 buffer periods and leap seconds.
14162
14163 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14164 target independent routines in Ada.Calendar.
14165
14166 * a-calfor.ads, a-calfor.adb:
14167 Code cleanup and addition of validity checks in various routines.
14168 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14169 Ada.Calendar.
14170
14171 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14172 independent routine in Ada.Calendar.
14173
14174 2007-04-06 Olivier Hainque <hainque@adacore.com>
14175
14176 * adaint.c:
14177 (convert_addresses): Adjust prototype and dummy definition to expect an
14178 extra file_name argument.
14179
14180 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14181 filling the now expected file_name argument with the appropriate
14182 argv[0] expansion.
14183 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14184 (tracebk): Array of void * instead of char *, corresponding to what
14185 convert_addresses expects.
14186 (exename): New static global, to hold the executable file name to be
14187 used in all convert_addresses invocations.
14188 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14189 change.
14190 (__gnat_gmem_a2l_initialize): Resolve exename.
14191 (__gnat_convert_addresses): Use exename as the convert_addresses
14192 file_name argument.
14193
14194 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14195 "convert_addresses", now expecting a filename argument. Import the
14196 necessary entities to compute the filename to use and pass it to
14197 convert_addresses.
14198
14199 2007-04-06 Matt Gingell <gingell@adacore.com>
14200
14201 * system-aix.ads: Back out previous change.
14202 (Functions_Return_By_DSP): Removed
14203
14204 2007-04-06 Pascal Obry <obry@adacore.com>
14205
14206 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14207 or the monotonic used by Ada.Real_Time) to compute the sleep duration
14208 on Windows.
14209
14210 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14211
14212 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14213 function. Its value changes in different VxWorks versions, and it is
14214 now handled by the function __gnat_get_task_options.
14215
14216 * s-taprop-vxworks.adb (Create_Task): Call the function
14217 __gnat_get_task_options to get the required options for creating a task.
14218
14219 2007-04-06 Pascal Obry <obry@adacore.com>
14220 Thomas Quinot <quinot@adacore.com>
14221
14222 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14223 dealing with filename.
14224 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14225 filename from a standard string to a wide-string depending on the
14226 encoding value.
14227 (__gnat_freopen): Idem.
14228 (__gnat_current_time): New function (wrapper for time(3) standard C
14229 function).
14230
14231 * g-os_lib.ads (Current_Time): New function. Returns the current
14232 system time as an OS_Time value.
14233
14234 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14235 (Monotonic_Clock): Same.
14236
14237 2007-04-06 Quentin Ochem <ochem@adacore.com>
14238
14239 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14240 not on a natural.
14241 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14242
14243 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14244
14245 * a-retide.adb: Add elaboration code to ensure that the tasking run
14246 time is initialized when using delay operations even when no task is
14247 created.
14248
14249 2007-04-06 Javier Miranda <miranda@adacore.com>
14250
14251 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14252 component Num_Prim_Ops.
14253 (Set_Num_Prim_Ops): Removed.
14254 Remove all the assertions because all the routines of this
14255 package are inline always.
14256 (Get_Offset_Index): Add support to primary dispatch tables.
14257 Move the documentation about the dispatch table to a-tags.ads
14258 (Set_External_Tag): Removed
14259 (Inherit_TSD): Removed.
14260 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14261 moved to a-tags.ads
14262 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14263 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14264 of the TSD field "Table" because this field has been renamed to
14265 "Ifaces_Table".
14266 (Inherit_CPP_DT): Removed.
14267 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14268 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14269 declarations have been moved to a-tags.ads
14270 (Check_Size): Removed.
14271 (Expanded_Name): Updated to get access to the new field of TSD
14272 containing the address of the expanded name.
14273 (Get_Access_Level/Set_Access_Level): Removed.
14274 (Get_Predefined_Prim_Op_Address): Removed.
14275 (Set_Predefined_Prim_Op_Address): Removed.
14276 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14277 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14278 (Set_Expanded_Name): Removed.
14279 (Inherit_DT): Removed.
14280 (Inherit_CPP_DT): Removed.
14281 (Set_RC_Offset): Removed.
14282 (Set_TSD): Removed.
14283 (Base_Address): New function that displaces "this" to point to the base
14284 of the object (that is, to point to the primary tag of the object).
14285
14286 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14287 Javier Miranda <miranda@adacore.com>
14288
14289 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
14290 anonymous access component, do not create a master_id if type already
14291 has one, as may happen if the type is a subcomponent of a packed array
14292 type.
14293 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
14294 Initialize_Tag): Remove code associated with the old CPP pragmas.
14295 CPP_Virtual and CPP_Vtable are no longer supported.
14296 (Build_Offset_To_Top_Internal): Add support for concurrent record types
14297 (Build_Offset_To_Top_Functions): Add support for concurrent record types
14298 (Freeze_Record_Type): Remove call to
14299 Init_Predefined_Interface_Primitives.
14300 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
14301 code required to initialize the tags of the secondary dispatch tables.
14302 This leaves the algoritm more clear.
14303 (Init_Secondary_Tags): Add support for concurrent record types
14304 (Make_Predefined_Primitive_Specs): Code cleanup.
14305 (Predefined_Primitive_Bodies): Code cleanup.
14306 (Build_Master_Renaming): New local subprogram.
14307 (Expand_N_Full_Type_Declaration): Build the master_id associated with
14308 anonymous access to task type components.
14309 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
14310 subtype indication are resolved during analysis, and must not be done
14311 here.
14312 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
14313
14314 2007-04-06 Geert Bosch <bosch@adacore.com>
14315 Ed Schonberg <schonberg@adacore.com>
14316 Javier Miranda <miranda@adacore.com>
14317 Bob Duff <duff@adacore.com>
14318
14319 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
14320 for conversion of a Float_Type'Truncation to integer.
14321
14322 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
14323 check if a node is an attribute that can be handled directly by the
14324 back end.
14325 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
14326 attributes that can be handled directly by the back end.
14327 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
14328 use new predicate Is_Access_Protected_Subprogram_Type.
14329 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
14330 and Unchecked_Union if it is generated as part of the default Output
14331 procedure for a type with default discriminants.
14332 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
14333 if we are compiling under restriction No_Dispatching_Calls.
14334 (Constrained): Use Underlying_Type, in case the type is private without
14335 discriminants, but the full type has discriminants.
14336 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
14337 call to Build_Get_Access_Level.
14338 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
14339 interface objects requires a call to the run-time subprogram that
14340 returns the base address of the object.
14341 (Valid_Conversion): Improve error message on illegal attempt to store
14342 an anonymous access to subprogram value into a record component.
14343
14344 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
14345 null".
14346 (Simplify_Type_Conversion): New procedure that performs simplification
14347 of Int_Type (Float_Type'Truncation (X)).
14348 (Resolve_Type_Conversion): Call above procedure after resolving operand
14349 and before performing checks. This replaces the existing ineffective
14350 code in Exp_Ch4.
14351 (Set_String_Literal_Subtype): When creating the internal static lower
14352 bound subtype for a string literal, use a newly created copy of the
14353 subtree representing the lower bound.
14354 (Resolve_Call): Exclude build-in-place function calls from transient
14355 scope treatment. Update comments to describe this exception.
14356 (Resolve_Equality_Op): In case of dispatching call check violation of
14357 restriction No_Dispatching_Calls.
14358 (Resolve_Call): If the call returns an array, the context imposes the
14359 component type of the array, and the function has one non-defaulted
14360 parameter, rewrite the call as the indexing of a call with a single
14361 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
14362 in prefix form.
14363 (Resolve_Actuals): If an actual is an allocator for an access parameter,
14364 the master of the created object is the innermost enclosing statement.
14365 (Remove_Conversions): For a binary operator, check if type of second
14366 formal is numeric, to check if an abstract interpretation is present
14367 in the case of exponentiation as well.
14368
14369 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14370 Bob Duff <duff@adacore.com>
14371
14372 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
14373 copying a parameter list in a call, set properly the First_Named_Formal
14374 and Next_Named_Formal fields in the new list and in the enclosing call.
14375 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
14376 names, to ease typing in the debugger. Improve comments.
14377 (Watch_Node): New variable, intended to be set in the debugger.
14378 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
14379 called when the watched node is created.
14380 (New_Node_Debugging_Output): Combined version of local procedures
14381 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
14382 with a parameter so that conditional breakpoints like "if Node = 12345"
14383 work.
14384 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
14385 Add Elist1 function
14386
14387 2007-04-06 Thomas Quinot <quinot@adacore.com>
14388 Ed Schonberg <schonberg@adacore.com>
14389 Gary Dismukes <dismukes@adacore.com>
14390
14391 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
14392 required for a conversion between two access-to-unconstrained-array
14393 types.
14394 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
14395 to discriminant constraints on discriminant objects. This rule must
14396 apply as well to discriminants of protected types in private components.
14397 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
14398 object of a null-excluding access type then don't require the
14399 the object declaration to have an expression and don't emit a
14400 run-time check.
14401
14402 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14403 Eric Botcazou <botcazou@adacore.com>
14404
14405 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
14406 and made constant.
14407
14408 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
14409 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
14410 carry any.
14411
14412 * fe.h (Compiler_Abort): Add third parameter.
14413
14414 * misc.c (internal_error_function): Build third argument from current
14415 input location and pass it to Compiler_Abort.
14416
14417 2007-04-06 Gary Dismukes <dismukes@adacore.com>
14418
14419 * cstand.adb (Create_Standard): When the target's storage unit size is
14420 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
14421 Standard_String.
14422
14423 2007-04-06 Nicolas Roche <roche@adacore.com>
14424
14425 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
14426 absolute path can have the following form: device:/a/b. In this case
14427 '/' should be inserted between the path and the filename.
14428
14429 2007-04-06 Olivier Hainque <hainque@adacore.com>
14430 Eric Botcazou <botcazou@adacore.com>
14431
14432 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
14433 VAR_DECL to a CONST_DECL we make for a public constant when we know the
14434 corresponding definition has created the so made visible variable.
14435 Handle anonymous access to protected subprogram.
14436 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
14437 object with an address clause volatile. Re-enable original fix.
14438 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
14439 too.
14440 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
14441 associated with either the Equivalent or Root type, instead of the
14442 naked type node.
14443 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
14444 subtree for every field of a global record type.
14445 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
14446 discriminants, invoke again variable_size on its newly computed sizes.
14447
14448 2007-04-06 Robert Dewar <dewar@adacore.com>
14449 Thomas Quinot <quinot@adacore.com>
14450 Ed Schonberg <schonberg@adacore.com>
14451 Bob Duff <duff@adacore.com>
14452
14453 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
14454 (Next_Component_Or_Discriminant): New function and procedure
14455 (First_Index, First_Literal, Master_Id,
14456 Set_First_Index, Set_First_Literal, Set_Master_Id):
14457 Add missing Ekind assertions.
14458 (Is_Access_Protected_Subprogram_Type): New predicate.
14459 (Has_RACW): New entity flag, set on package entities to indicate that
14460 the package contains the declaration of a remote accecss-to-classwide
14461 type.
14462 (E_Return_Statement): This node type has the Finalization_Chain_Entity
14463 attribute, in case the result type has controlled parts.
14464 (Requires_Overriding): Add this new flag, because "requires
14465 overriding" is subtly different from "is abstract" (see AI-228).
14466 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
14467 Is_Abstract_Type. Make sure these are called only when appropriate.
14468 (Has_Pragma_Unreferenced_Objects): New flag
14469
14470 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
14471 class-wide, the tag of the right-hand side must be an exact match, not
14472 an ancestor of that of the object on left-hand side.
14473 (Move_Activation_Chain): New procedure to create the call to
14474 System.Tasking.Stages.Move_Activation_Chain.
14475 (Expand_N_Extended_Return_Statement): Generate code to call
14476 System.Finalization_Implementation.Move_Final_List at the end of a
14477 return statement if the function's result type has controlled parts.
14478 Move asserts to Build_In_Place_Formal.
14479 (Move_Final_List): New function to create the call statement.
14480 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
14481 tagged type, replace generation of call to the run-time subprogram
14482 CW_Membership by call to Build_CW_Membership.
14483 (Expand_N_Return_Statement): Replace generation of call to the run-time
14484 subprogram Get_Access_Level by call to Build_Get_Access_Level.
14485 (Expand_N_Simple_Function_Return): Replace generation of call to the
14486 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14487
14488 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
14489 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
14490 access to protected operations.
14491 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
14492 master and chain actual parameters to a build-in-place function call
14493 involving tasks.
14494 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
14495 statement.
14496 (Make_Build_In_Place_Call_In_Allocator,
14497 Make_Build_In_Place_Call_In_Anonymous_Context,
14498 Make_Build_In_Place_Call_In_Assignment,
14499 Make_Build_In_Place_Call_In_Object_Declaration): Call
14500 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
14501 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
14502 stubbed procedure with a null body, replace the call with a null
14503 statement without using the full inlining machinery, for efficiency
14504 and to avoid invalid values in source file table entries.
14505
14506 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
14507 renamings of calls to build-in-place functions.
14508
14509 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
14510 provides the functionality of RTE_Available to record components.
14511 (RTU_Entity): The function Entity has been renamed to RTU_Entity
14512 to avoid undesired overloading.
14513 (Entity): New subprogram that returns the entity for the referened
14514 unit. If this unit has not been loaded, it returns Empty.
14515 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
14516 Remove no longer used entities.
14517 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
14518 (RE_Type_Specific_Data): New entity.
14519 (RE_Move_Any_Value): New entity.
14520 (RE_TA_A, RE_Get_Any_Type): New entities.
14521 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
14522 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
14523 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
14524 (Entity): New subprogram that returns the entity for the referened
14525 unit. If this unit has not been loaded, it returns Empty.
14526 (RTE): Addition of a new formal that extends the search to the scopes
14527 of the record types found in the chain of the package.
14528
14529 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
14530 "abstract subprograms must be visible" message, whether or not the type
14531 is an interface; that is, remove the special case for interface types.
14532 (Analyze_Function_Return): Remove error message "return of task objects
14533 is not yet implemented" because this is now implemented.
14534 (Create_Extra_Formals): Add the extra master and activation chain
14535 formals in case the result type has tasks.
14536 Remove error message "return of limited controlled objects is not yet
14537 implemented".
14538 (Create_Extra_Formals): Add the extra caller's finalization list formal
14539 in case the result type has controlled parts.
14540 (Process_Formals): In case of access formal types there is no need
14541 to continue with the analysis of the formals if we already notified
14542 errors.
14543 (Check_Overriding_Indicator): Add code to check overriding of predefined
14544 operators.
14545 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
14546 flags for formals that do not require them,.
14547 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
14548 hidden entity is use visible or directly visible.
14549 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
14550 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
14551 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
14552 New_Overloaded_Entity): Split Is_Abstract flag into
14553 Is_Abstract_Subprogram and Is_Abstract_Type.
14554
14555 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
14556 a return statement's finalization list to the caller's list, used for
14557 build-in-place functions with result type with controlled parts.
14558 Remove no longer used entities.
14559
14560 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
14561 longer needed, because the full type is now limited, and therefore a
14562 pass-by-reference type.
14563 (Foreign_Task_Level): New constant.
14564
14565 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
14566 move tasks from the activation chain belonging to a return statement to
14567 the one passed in by the caller, and update the master to the one
14568 passed in by the caller.
14569 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
14570 of unactivated tasks, so we don't kill the ones that are being returned
14571 by a build-in-place function.
14572 (Create_Task): Ignore AI-280 for foreign threads.
14573
14574 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14575 Robert Dewar <dewar@adacore.com>
14576 Bob Duff <duff@adacore.com>
14577 Gary Dismukes <dismukes@adacore.com>
14578
14579 * errout.adb (Unwind_Internal_Type): Use predicate
14580 Is_Access__Protected_Subprogram_Type.
14581
14582 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
14583 (Freeze_Entity, packed array case): Do not override explicitly set
14584 alignment and size clauses.
14585 (Freeze_Entity): An entity declared in an outer scope can be frozen if
14586 the enclosing subprogram is a child unit body that acts as a spec.
14587 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
14588 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
14589 Remove all code for DSP option
14590
14591 * layout.adb (Layout_Record_Type): Use First/
14592 Next_Component_Or_Discriminant
14593 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
14594 to handle properly the anonymous access case.
14595
14596 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
14597 for all access attributes, because overload resolution should work the
14598 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
14599 causes the error message for the ambiguous "X'Access = Y'Access" and
14600 "X'Unrestricted_Access = Y'Access" and so forth to match.
14601 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
14602 now that anonymous access to protected operations have their own kind.
14603 (Resolve_Attribute): In case of dispatching call check the violation of
14604 restriction No_Dispatching_Calls.
14605 (Check_Array_Type): Check new -gnatyA array index style option
14606
14607 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
14608 attempt to derive from a synchronized tagged type.
14609 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
14610 type, inherit the class-wide type already created, because it may
14611 already have been used in a self-referential anonymous access component.
14612 (Mentions_T): Recognize self-referential anonymous access components
14613 that use (a subtype of) the class-wide type of the enclosing type.
14614 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
14615 Derived_Type for Prev formal on call to
14616 Check_Anonymous_Access_Components rather than Empty.
14617 (Make_Incomplete_Type_Declaration): Add test for case where the type has
14618 a record extension in deciding whether to create a class-wide type,
14619 rather than just checking Tagged_Present.
14620 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
14621 to stand-alone object declarations as well as component declarations.
14622 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
14623 prevent accidental overwriting when enclosing package appears in
14624 a limited_with_clause.
14625 (Array_Type_Declaration): If the component type is an anonymous access,
14626 the associated_node for the itype is the type declaration itself.
14627 (Add_Interface_Tag_Components): Modified to support concurrent
14628 types with abstract interfaces.
14629 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
14630 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
14631 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
14632 to complete the decoration of synchronized interface types. Add also
14633 a call to Check_Abstract_Interfaces to verify the ARM rules.
14634 (Derive_Interface_Subprograms): Modified to support concurrent types
14635 with abstract interfaces.
14636 (Analyze_Subtype_Indication): Resolve the range with the given subtype
14637 mark, rather than delaying the full resolution depending on context.
14638 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
14639 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
14640 Array_Type_Declaration,Build_Derived_Record_Type,
14641 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
14642 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
14643 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
14644 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14645 called only when appropriate.
14646 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
14647 to private type.
14648 (Analyze_Subtype_Declaration): For an access subtype declaration, create
14649 an itype reference for the anonymous designated subtype, to prevent
14650 scope anonmalies in gigi.
14651 (Build_Itype_Reference): New utility, to simplify construction of such
14652 references.
14653
14654 2007-04-06 Vincent Celier <celier@adacore.com>
14655
14656 * errutil.adb (Initialize): Initialize warnings table, if all warnings
14657 are suppressed, supply an initial dummy entry covering all possible
14658 source locations.
14659
14660 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
14661 and start with only one, such as "-RTS=none".
14662 (Collect_Arguments): Do not check for sources outside of projects.
14663 Do not collect arguments if project is externally built.
14664 (Compile_Sources): Do nothing, not even check if the source is up to
14665 date, if its project is externally built.
14666 (Compile): When compiling a predefined source, add -gnatpg
14667 as the second switch, after -c.
14668 (Compile_Sources): Allow compilation of Annex J renames without -a
14669 (Is_In_Object_Directory): Check if the ALI file is in the object
14670 even if there is no project extension.
14671 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
14672 gnatbind if the ALI file effectively exists.
14673 (Initialize): Add the directory where gnatmake is invoked in front of
14674 the path if it is invoked from a bin directory, even without directory
14675 information, so that the correct GNAT tools will be used when spawned
14676 without directory information.
14677
14678 * makeusg.adb: Change switch -S to -eS
14679 Add lines for new switches -we, -wn and -ws
14680 Add line for new switch -p
14681
14682 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
14683 Treat_As_Error and there are warnings.
14684
14685 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
14686 -gnatww Change gnatmake switch -S to -eS
14687 (Scan_Make_Switches): Code reorganisation. Process separately multi
14688 character switches and single character switches.
14689 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
14690 False when switch is not recognized by gnatmake.
14691 (Scan_Make_Switches): Set Setup_Projects True when -p or
14692 --create-missing-dirs is specified.
14693
14694 * fname.adb (Is_Predefined_File_Name): Return True for annex J
14695 renamings Calendar, Machine_Code, Unchecked_Conversion and
14696 Unchecked_Deallocation only when Renamings_Included is True.
14697
14698 * par.adb: Allow library units Calendar, Machine_Code,
14699 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
14700 when -gnatg is not specified.
14701 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14702 there is no need to generate always a record_definition_node in case
14703 of synchronized interface types.
14704 (SIS_Entry_Active): Initialize global variable to False
14705 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
14706 indicate cases where AI-447 says "not null" is legal.
14707
14708 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
14709
14710 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
14711 files with with several lines starting with the object fileb name.
14712 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
14713 is specified.
14714 (Initialize): Add the directory where gprmake is invoked in front of the
14715 path, if it is invoked from a bin directory or with directory
14716 information, so that the correct GNAT tools will be used when invoked
14717 directly.
14718 (Check_Compilation_Needed): Process correctly backslashes on Windows.
14719
14720 * vms_data.ads: Update switches/qualifiers
14721
14722 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14723 Thomas Quinot <quinot@adacore.com>
14724
14725 * exp_aggr.adb:
14726 If the array component is a discriminated record, the array aggregate
14727 is non-static even if the component is given by an aggregate with
14728 static components.
14729 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
14730 (Convert_Aggr_In_Allocator): If the allocator is for an access
14731 discriminant and the type is controlled. do not place on a finalization
14732 list at this point. The proper list will be determined from the
14733 enclosing object.
14734 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
14735 initialize record controller if needed, before the components, to ensure
14736 that they are properly finalized.
14737 (Build_Record_Aggr_Code): For the case of an array component that has a
14738 corresponding array aggregate in the record aggregate, perform sliding
14739 if required.
14740
14741 2007-04-06 Javier Miranda <miranda@adacore.com>
14742 Gary Dismukes <dismukes@adacore.com>
14743 Ed Schonberg <schonberg@adacore.com>
14744
14745 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
14746 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
14747
14748 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
14749 accessibility on class-wide allocators if the allocator occurs at the
14750 same scope level as the allocator's type. The check is guaranteed to
14751 succeed in that case, even when the expression originates from a
14752 parameter of the containing subprogram.
14753 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
14754 under No_Dispatching_Calls restriction. During the semantic analysis
14755 we already notified such violation.
14756 (Tagged_Membership): Constant folding. There is no need to check
14757 the tag at run-time if the type of the right operand is non
14758 class-wide abstract.
14759 Replace call to Is_Ancestor by call to Is_Parent
14760 to support concurrent types with interface types.
14761 (Expand_N_Allocator): Add an assertion associated with the generation
14762 of the master_id.
14763 (Expand_N_Slice): Do not enable range check to nodes associated
14764 with the frontend expansion of the dispatch table.
14765 (Is_Local_Access_Discriminant): Subsidiary function to
14766 Expand_N_Allocator.
14767 (Tagged_Membership): Replace generation of call to the run-time
14768 subprogram CW_Membership by call to Build_CW_Membership.
14769 (Expand_Allocator_Expression): Replace generation of call to the
14770 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14771
14772 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
14773 initialize most the TSD components by means of an aggregate.
14774 Modify the declaration of the object containing the TSD
14775 because we now expand code that has a higher level of abstraction.
14776 The TSD has a discriminant containing the Inheritance Depth Level,
14777 value that is used in the membership test but also to fix the size
14778 of the table of ancestors.
14779 (Expand_Interface_Conversion): Insert function body at the closest place
14780 to the conversion expression, to prevent access-before-elaboration
14781 errors in the backend.
14782 Code improved to reduce the size of the dispatch table if
14783 compiling under restriction No_Dispatching_Calls plus code cleanup.
14784 Code reorganization plus removal of calls to Set_Num_Prim_Ops
14785 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
14786 (Expand_Dispatching_Call): Minor code reorganization plus addition of
14787 code to return immediately if compiling under No_Dispatching_Calls
14788 restriction.
14789 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
14790 CPP_Virtual and CPP_Vtable are no longer supported.
14791 (Expand_Interface_Conversion): Add missing support for interface type
14792 derivations.
14793 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
14794 Is_Parent to support concurrent types with interfaces.
14795 (Init_Predefined_Interface_Primitives): Removed.
14796 (Make_Secondary_DT): Modified to support concurrent record types.
14797 (Set_All_DT_Position): Modified to support concurrent record types.
14798 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14799 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
14800 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
14801 with CW_Membership.
14802 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14803 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
14804 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
14805 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
14806 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
14807 (Expand_Dispatching_Call): Replace generation of call to the run-time
14808 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
14809 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
14810 Address.
14811 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
14812 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
14813 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
14814 Build_Set_Prim_Op_Address.
14815 (Get_Remotely_Callable): Subprogram removed.
14816 (Init_Predefined_Interface_Primitives): Replace generation of call to
14817 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
14818 Prims.
14819
14820 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
14821 First (Parameter_Associations ()) with the call to First_Actual that
14822 returns an actual parameter expression for both named and positional
14823 associations.
14824
14825 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
14826 check violation of restriction No_Dispatching_Calls.
14827 (Check_Controlling_Type): A formal of a tagged incomplete type is a
14828 controlling argument.
14829
14830 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
14831 First/Next_Component_Or_Discriminant
14832 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
14833 (Find_Implemented_Interface): Removed. All the calls to this subprogram
14834 specify Any_Limited_Interface, and this functionality is already
14835 provided by the function Has_Abstract_Interfaces.
14836 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
14837 support concurrent types implementing interfaces.
14838 (Find_Implemented_Interface): Removed. All the calls to this subprogram
14839 specify kind Any_Limited_Interface, and this functionality is already
14840 provided by the function Has_Abstract_Interfaces.
14841 (Remove_Side_Effects): replace Controlled_Type by
14842 CW_Or_Controlled_Type whenever the issue is related to
14843 using or not the secondary stack.
14844
14845 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
14846 P_Interface_Type_Definition to fulfill the new interface (the formal
14847 Is_Synchronized is no longer required).
14848
14849 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
14850 Update dependencies.
14851
14852 * exp_atag.ads, exp_atag.adb: New file
14853
14854 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14855 Bob Duff <duff@adacore.com>
14856 Cyrille Comar <comar@adacore.com>
14857
14858 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
14859 anonymous, use finalization list of enclosing dynamic scope.
14860 (Expand_N_Package_Declaration): For a library package declaration
14861 without a corresponding body, generate RACW subprogram bodies in the
14862 spec (just as we do for the task activation call).
14863 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
14864 Is_Abstract_Type. Make sure these are called only when appropriate.
14865 Remove all code for DSP option
14866 (CW_Or_Controlled_Type): new subprogram.
14867
14868 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14869 Ed Schonberg <schonberg@adacore.com>
14870 Gary Dismukes <dismukes@adacore.com>
14871
14872 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
14873 parameter. If it is set to true, return a result capped according to
14874 the global upper bound for the index of an entry family.
14875 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
14876 (Build_Find_Body_Index): Adjust for above change.
14877 (Entry_Index_Expression): Likewise.
14878 (Is_Potentially_Large_Family): New function extracted from...
14879 (Collect_Entry_Families): ...here. Call it to detect whether the family
14880 is potentially large.
14881 (Build_Entry_Count_Expression): If the family is potentially large, call
14882 Family_Size with 'Cap' set to true.
14883 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
14884 a protected version of an operation declared in the private part of
14885 a protected object, because they may be invoked through a callback.
14886 (Set_Privals): If the type of a private component is an anonymous access
14887 type, do not create a new itype for each protected body.
14888 If the body of a protected operation creates
14889 controlled types (including allocators for class-widetypes), the
14890 body of the corresponding protected subprogram must include a
14891 finalization list.
14892 (Build_Activation_Chain_Entity): Build the chain entity for extended
14893 return statements.
14894 (Type_Conformant_Parameters): Use common predicate Conforming_Types
14895 to determine whether operation overrides an inherited primitive.
14896 (Build_Wrapper_Spec): Add code to examine the parents while looking
14897 for a possible overriding candidate.
14898 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
14899 hold an actual parameter value since its initialization is separated
14900 from the the declaration. Prevents errors on null-excluding access
14901 formals.
14902
14903 2007-04-06 Thomas Quinot <quinot@adacore.com>
14904 Pablo Oliveira <oliveira@adacore.com>
14905
14906 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
14907 Do an Unchecked_Conversion to handle the passage from the Underlying
14908 Type to the Base Type when calling Build_To_Any_Call and
14909 Build_From_Any_Call.
14910 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
14911 E_Constant, depending upon Variable formal.
14912 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14913 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
14914 parameter that requires an extra constrained parameter, declare
14915 temporary for actual as a variable, not a constant.
14916 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
14917 the unit being compiled is the one that contains the stub type.
14918 Change primitive operation name for the RACW associated with a RAS
14919 from Call to _Call so it cannot clash with any legal identifier.
14920 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
14921 Is_RAS.
14922 (Append_RACW_Bodies): New subprogram.
14923 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
14924 Add_Receiving_Stubs_To_Declarations functions.
14925 When expanding a package body, this list correspond to the
14926 statements in the HSS at the end of the pacakge.
14927 When expanding a package spec, this list correspond to the
14928 spec declarations.
14929 (Add_Receiving_Stubs_To_Declarations): Append the function
14930 registering the receiving stubs at the end of the 'Stmts' list.
14931 (RCI_Package_Locator): Pass the new Version generic formal when
14932 instantiating a RCI_Locator package.
14933 (Build_From_Any_Function): To compute the High bound for an
14934 unconstrained array actual, we add the Low bound with the length.
14935 Thus we must convert the low bound and the length to an appropriate
14936 type before doing the sum.
14937 (Build_Subprogram_Receiving_Stubs, PolyORB):
14938 * Retrieve the extra formals parameters at the
14939 end of the parameter stream.
14940 * Use Move_Any_Value to write back out parameters
14941 after executing the request as it is more efficient
14942 than Copy_Any_Value.
14943 * Build the any containing Extra Formals with the
14944 appropriate typecode.
14945 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14946 empty Component_List.
14947 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14948 the tree the declaration for an object that serves as actual parameter
14949 in server-side stubs.
14950 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14951 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14952 Use Build_Actual_Object_Declaration to prepare the actuals.
14953 (Add_Parameter_To_NVList): Set the parameter mode to In for
14954 Extra Constrained Parameters.
14955 (Build_General_Calling_Stubs): Set the parameter type to boolean for
14956 Extra Constrained parameters.
14957 (Build_To_Any_Function, Build_From_Any_Function,
14958 Built_TypeCode_Function): When Typ is implicit, call the correct
14959 function with the first not implicit parent type.
14960 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14961 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14962 typecode from the Etype. Therefore we retrieve the correct typecode
14963 with a call to Get_Any_Type.
14964 (Copy_Specification): Do controlling formal type substitution based on
14965 Is_Controlling_Formal flag, instead of caller-provided object type.
14966 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14967 a RACW primitive operation, we might get a subprogram declaration for an
14968 ancestor of the RACW designated type (not for the designated type
14969 itself), in the case where this operation is inherited. In this case we
14970 have no easy means of determining the original tagged type for which
14971 the primitive was declared, so instead we now rely on
14972 Copy_Specification to use the Is_Controlling_Formal flag to determine
14973 which formals require type substitution.
14974
14975 2007-04-06 Robert Dewar <dewar@adacore.com>
14976 Ed Schonberg <schonberg@adacore.com>
14977
14978 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14979 GNAT.Current_Exception are not allowed if pragma Restrictions
14980 (No_Exception_Propagation) is set and in any case make the associated
14981 handler unsuitable as a target for a local raise statement.
14982 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14983 run-time subprogram CW_Membership by call to Build_CW_Membership.
14984 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14985 by a function call, a temporary must be created before expanding the
14986 Constructor_Call itself, to prevent out-of-order elaboration in the
14987 back-end when stack checking is enabled..
14988
14989 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14990
14991 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14992 result are the bounds of the left operand, not the right.
14993
14994 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14995
14996 * exp_strm.adb
14997 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14998 discriminant defaults.
14999 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15000 (Make_Component_List_Attributes): Ditto.
15001
15002 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15003 Bob Duff <duff@adacore.com>
15004
15005 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15006 an association with a box as providing a value even though the
15007 initialization procedure for the type is not available.
15008 (Resolve_Record_Aggregate): Check that a choice of an association with a
15009 box corresponds to a component of the type.
15010 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15011 Is_Abstract_Subprogram and Is_Abstract_Type.
15012
15013 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15014 assert.
15015
15016 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15017 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15018 called only when appropriate.
15019
15020 2007-04-06 Olivier Hainque <hainque@adacore.com>
15021
15022 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15023 associated vector view instead of all to the unsigned char view.
15024
15025 * g-altcon.adb (Generic_Conversions): New internal generic package,
15026 offering facilities for all the Vector/View conversion routines
15027 implemented by this unit.
15028 (To_View/To_Vector - all versions): Reimplemented in a systematic
15029 manner, using the internal Generic_Conversions facilities.
15030
15031 2007-04-06 Pascal Obry <obry@adacore.com>
15032
15033 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15034 string.
15035 (Create): Free the source string before storing the new one.
15036
15037 2007-04-06 Vincent Celier <celier@adacore.com>
15038
15039 * g-debpoo.adb (Validity): New package with a complete new
15040 implementation of subprograms Is_Valid and Set_Valid.
15041 (Is_Valid): Move to local package Validity
15042 (Set_Valid): Move to local package Validity
15043
15044 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15045 Pablo Oliveira <oliveira@adacore.com>
15046
15047 * g-expect.adb (Get_Command_Output): When expanding the output buffer
15048 we must ensure that there is enough place for the new data we are going
15049 to copy in.
15050
15051 2007-04-06 Thomas Quinot <quinot@adacore.com>
15052
15053 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15054 computation.
15055
15056 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15057 Vincent Celier <celier@adacore.com>
15058
15059 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15060 (Stack_String): Add this String that contains the name of the Stack
15061 package in the project file.
15062 (Packages_To_Check_By_Stack): Add this list that contains the packages
15063 to be checked by gnatstack, which are the naming and the stack packages.
15064 (Check_Files): If no .ci files were specified for gnatstack we add all
15065 the .ci files belonging to the projects, including binder generated
15066 files.
15067 (Non_VMS_Usage): Document that gnatstack accept project file switches.
15068 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15069 Add gnatstack to the list of commands that use project file related
15070 switches, and get the single attribute Switches from the stack package
15071 in a project file when calling gnatstack. Parse the -U flag for
15072 processing files belonging to all projects in the project tree.
15073 Remove all processing for command Setup
15074
15075 * prj-attr.adb: Add new package Stack with single attribute Switches
15076
15077 * vms_conv.ads (Command_Type): Add command Stack.
15078 Move to body declarations that are only used in the body: types Item_Id,
15079 Translation_Type, Item_Ptr, Item and its subtypes.
15080
15081 * vms_conv.adb: (Initialize): Add data for new command Stack.
15082 Add declarations moved from the spec: types Item_Id, Translation_Type,
15083 Item_Ptr, Item and its subtypes.
15084 (Cargs_Buffer): New table
15085 (Cargs): New Boolean global variable
15086 (Process_Buffer): New procedure to create arguments
15087 (Place): Put character in table Buffer or Cargs_Buffer depending on the
15088 value of Cargs.
15089 (Process_Argument): Set Cargs when processing qualifiers for GNAT
15090 COMPILE
15091 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15092 empty, for table Cargs_Buffer.
15093 (Initialize): Remove component Setup in Command_List
15094
15095 2007-04-06 Vincent Celier <celier@adacore.com>
15096
15097 * gprep.adb (Process_Files.Process_One_File): Use full file name when
15098 issuing pragma Source_Reference.
15099
15100 2007-04-06 Emmanuel Briot <briot@adacore.com>
15101
15102 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15103 [[:xdigit:]] character class.
15104 Also raise an exception when an invalid character class is used.
15105
15106 2007-04-06 Pascal Obry <obry@adacore.com>
15107
15108 * i-cstrea.ads: (fopen): Add encoding parameter.
15109 (freopen): Idem.
15110 Change reference from a-sysdep.c to sysdep.c in comment.
15111 Update copyright notice.
15112 This set of patch add support for the encoding form parameter.
15113
15114 * mingw32.h (S2WSU): New macro to convert from a string to a
15115 wide-string using the UTF-8 encoding. The S2WS macro supports now only
15116 standard 8bits encoding.
15117 (WS2SU): As above but converting from wide-sring to string.
15118 This is needed as it is necessary to have access to both versions in the
15119 runtime for the form parameter encoding support.
15120 This set of patch add support for the encoding form parameter.
15121 (S2WS): Improve implementation to handle cases where the filename is not
15122 UTF-8 encoded. In this case we default to using the current code page
15123 for the conversion.
15124
15125 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15126 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15127 the constants defined in adaint.h.
15128 (fopen): Add encoding parameter.
15129 (freopen): Idem.
15130
15131 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15132 encoding. This is needed for the Reset routine (freopen low level-call).
15133
15134 * s-fileio.adb (Open): Decode encoding form parameter and set the
15135 corresponding encoding value into AFCB structure.
15136 (Reset): Pass the encoding value to freopen.
15137 (Close): Move the call to Lock_Task to the beginning of the procedure.
15138
15139 2007-04-06 Geert Bosch <bosch@adacore.com>
15140 Robert Dewar <dewar@adacore.com>
15141
15142 * i-fortra.ads: Add Double_Complex type.
15143
15144 * impunit.adb: (Is_Known_Unit): New function
15145 Add Gnat.Byte_Swapping
15146 Add GNAT.SHA1
15147 Add new Ada 2005 units
15148 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15149 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15150 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15151 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15152
15153 * impunit.ads (Is_Known_Unit): New function
15154
15155 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15156 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15157 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15158 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15159 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15160 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15161 New files.
15162
15163 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15164
15165 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15166
15167 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15168 Arnaud Charlet <charlet@adacore.com>
15169
15170 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15171 __gnat_adjust_context_for_raise.
15172 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15173 implementation of floating point operations as native x86 targets.
15174 So the FPU should be initialized in the same way using finit. Fix
15175 floating point operations accuracy issues.
15176 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15177 member in struct sigaction, so as to avoid warning for incompatible
15178 pointer types.
15179
15180 2007-04-06 Serguei Rybin <rybin@adacore.com>
15181
15182 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15183 switches from previously loaded tree
15184
15185 2007-04-06 Thomas Quinot <quinot@adacore.com>
15186
15187 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15188 cases where a given dependency has a body or not.
15189 (Write_With_File_Names): New subprogram, common code for the two cases
15190 above.
15191
15192 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15193 Javier Miranda <miranda@adacore.com>
15194
15195 * lib-xref.ads, lib-xref.adb:
15196 Modify the loop that collects type references, to include interface
15197 types that the type implements. List each of these interfaces when
15198 building the entry for the type.
15199 (Generate_Definition): Initialize component Def and Typ of new entry
15200 in table Xrefs, to avoid to have these components unitialized.
15201 (Output_References): Split Is_Abstract flag into
15202 Is_Abstract_Subprogram and Is_Abstract_Type.
15203 (Generate_Reference): Add barrier to do not generate the warning
15204 associated with Ada 2005 entities with entities generated by the
15205 expander.
15206
15207 2007-04-06 Robert Dewar <dewar@adacore.com>
15208 Arnaud Charlet <charlet@adacore.com>
15209 Vincent Celier <celier@adacore.com>
15210
15211 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15212 Update 'Exception Handling Control' chapter which was outdated.
15213 Minor fix to documentation of -gnatwq
15214 Remove section "Adapting the Run Time to a New C++ Compiler" because
15215 it is now obsolete.
15216 Add passage on need of -nostart-files in some non-ada-main cases.
15217 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15218 Update documentation about Interfacing with C++
15219 Add documentation for new gnatmake switch -p
15220 Add missing protocol part in URLs.
15221 Document -gnatyA
15222 Document pragma Compile_Time_Error
15223 Add documentation for Object_Size indicating that stand alone
15224 objects can have a larger size in some cases.
15225 Add node for GNAT.Byte_Swapping, GNAT.SHA1
15226 Update reference to the Ravenscar profile.
15227 Document pragma Unreferenced_Objects
15228
15229 * gnat-style.texi: Fix typo
15230
15231 2007-04-06 Vincent Celier <celier@adacore.com>
15232
15233 * mlib.adb (Building_Library): Only output "building a library..." in
15234 verbose mode
15235
15236 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15237 files in verbose mode.
15238
15239 * mlib-utl.adb (Ar): Only output the first object files when not in
15240 verbose mode.
15241 (Gcc): Do not display all the object files if not in verbose mode, only
15242 the first one.
15243
15244 2007-04-06 Robert Dewar <dewar@adacore.com>
15245
15246 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15247 it no longer destroys the contents of Name_Buffer or Name_Len and
15248 non-standard and invalid names are handled better.
15249 (Get_Decoded_Name_String): Improve performance by using
15250 Name_Has_No_Encodings flag in the name table.
15251 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15252 Used for debugging printouts.
15253
15254 2007-04-06 Robert Dewar <dewar@adacore.com>
15255 Javier Miranda <miranda@adacore.com>
15256 Bob Duff <duff@adacore.com>
15257
15258 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15259 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15260 there is no need to generate always a record_definition_node in case
15261 of synchronized interface types.
15262 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15263 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15264 illegal in Ada 95, in cases where it is legal. Change the warnings to
15265 errors in other cases. Don't give the error unless the "not null"
15266 parses properly. Correct the source position at which the error occurs.
15267 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15268 P_Null_Exclusion, to suppress "not null" warnings.
15269 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15270 associated goto statements.
15271
15272 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15273 of END RECORD
15274
15275 * scans.ads (Type_Token_Location): New flag
15276
15277 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15278 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15279 P_Null_Exclusion, to suppress "not null" warnings.
15280
15281 2007-04-06 Robert Dewar <dewar@adacore.com>
15282 Javier Miranda <miranda@adacore.com>
15283 Bob Duff <duff@adacore.com>
15284 Vincent Celier <celier@adacore.com>
15285
15286 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15287 (Extensions_Allowed): No longer sets Ada_Version
15288 Entry for pragma Unreferenced_Objects
15289
15290 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
15291 system.tasking if pragma priority used in a procedure
15292 (Analyze_Pragma, case Warning): Handle dot warning switches
15293 (Process_Compile_Time_Warning_Or_Error): New procedure
15294 (Analyze_Pragma): Add processing for Compile_Time_Error
15295 Add support for extra arguments External_Name and Link_Name.
15296 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
15297 (Process_Import_Or_Interface): Add support for the use of pragma Import
15298 with tagged types.
15299 (Extensions_Allowed): No longer affects Ada_Version
15300 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
15301 Is_Abstract_Type. Make sure these are called only when appropriate.
15302 Add processing for pragma Unreferenced_Objects
15303
15304 * snames.h, snames.ads, snames.adb: Add entry for pragma
15305 Compile_Time_Error
15306 Add new standard name Minimum_Binder_Options for new gprmake
15307 Add new standard names for gprmake: Archive_Suffix,
15308 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
15309 Library_Support, Library_Version_Options,
15310 Shared_Library_Minimum_Options,
15311 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
15312 Change Name_Call to Name_uCall so that it cannot clash with a legal
15313 subprogram name.
15314 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
15315 Append C_Plus_Plus to convention identifiers as synonym for CPP
15316 Add new standard names Stack and Builder_Switches
15317 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
15318 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
15319 Run_Path_Option, Toolchain_Version.
15320 Entry for pragma Unreferenced_Objects
15321
15322 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
15323 switches, without repetition of "eD". Make sure that last character of
15324 -gnatep= switch is not taken as -gnat switch character.
15325 Complete rewrite of circuit for handling saving compilation options
15326 Occasioned by need to support dot switchs for -gnatw, but cleans up
15327 things in general.
15328 -gnatX does not affect Ada_Version
15329 Include -gnatyA in -gnatg style switches
15330
15331 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
15332 warnings on return objects.
15333 (Warn_On_Useless_Assignment): Exclude warnings on return objects
15334 (Set_Dot_Warning_Switch): New procedure
15335 (Check_References): Add missing case of test for
15336 Has_Pragma_Unreferenced_Objects
15337 (Output_Unreferenced_Messages): Implement effect of new pragma
15338 Unreferenced_Objects, remove special casing of limited controlled
15339 variables.
15340
15341 2007-04-06 Vincent Celier <celier@adacore.com>
15342
15343 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
15344 the default project path, initially done during elaboration of the
15345 package.
15346 If the prefix returned by Sdefault is null, get the prefix from a call
15347 to Executable_Prefix_Path.
15348 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
15349 null.
15350
15351 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
15352 canonical directory name to open the directory from which files are
15353 retrieved.
15354 (Record_Other_Sources): Idem.
15355 (Locate_Directory): Add the possibility to create automatically missing
15356 directories when Setup_Projects is True.
15357 Call Locate_Directory so that the directory will be created when
15358 Setup_Projects is True, for object dir, library dir, library ALI dir,
15359 library source copy dir and exec dir.
15360
15361 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
15362 versions of GNAT.
15363
15364 2007-04-06 Robert Dewar <dewar@adacore.com>
15365
15366 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
15367 Use First/Next_Component_Or_Discriminant
15368 (Analyze_Record_Representation_Clause):
15369 Use First/Next_Component_Or_Discriminant
15370 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
15371 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
15372 definition if type is unconstrained.
15373 (Adjust_Record_For_Reverse_Bit_Order): New procedure
15374 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
15375 Is_Abstract_Subprogram and Is_Abstract_Type.
15376 (Adjust_Record_For_Reverse_Bit_Order): New procedure
15377
15378 * repinfo.adb (List_Record_Info): Use First/
15379 Next_Component_Or_Discriminant.
15380
15381 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
15382 New procedure.
15383
15384 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
15385 Include -gnatyA in default switches
15386
15387 * opt.ads: (Warn_On_Non_Local_Exception): New flag
15388 (Warn_On_Reverse_Bit_Order): New flag
15389 (Extensions_Allowed): Update the documentation.
15390 (Warn_On_Questionable_Missing_Parens): Now on by default
15391
15392 * usage.adb: Add documentation of -gnatw.x/X switches
15393 Document new -gnatyA style switch
15394 -gnatq warnings are on by default
15395
15396 2007-04-06 Ed Falis <falis@adacore.com>
15397
15398 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
15399 full word is no longer compared twice.
15400
15401 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15402
15403 * sem_ch10.adb (Install_Limited_Context_Clauses.
15404 Expand_Limited_With_Clause): Use a new copy of selector name in the
15405 call to Make_With_Clause. This fixes the tree structure for ASIS
15406 purposes. Nothing is changed in the compiler behaviour.
15407 (Process_Body_Clauses): Handle properly use clauses whose prefix is
15408 a package renaming.
15409 (Install_Limited_With_Clauses): Do not install non-limited view when it
15410 is still incomplete.
15411
15412 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15413 Gary Dismukes <dismukes@adacore.com>
15414
15415 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
15416 when capturing size information, instead of base type, which for a
15417 formal array type will be the unconstrained type.
15418 (Analyze_Formal_Object_Declaration): Add check for illegal default
15419 expressions for a formal in object of a limited type.
15420 (Instantiate_Object): Ditto.
15421 (Check_Formal_Package_Instance): Skip entities that are formal objects,
15422 because they were defaulted in the formal package and no check applies
15423 to them.
15424 (Check_Formal_Package_Instance): Extend conformance check to other
15425 discrete types beyond Integer.
15426 (Process_Default): Copy directly the unmatched formal. A generic copy
15427 has already been performed in Analyze_Formal_Package.
15428 (Analyze_Associations): If a formal subprogram has no match, check for
15429 partial parametrization before looking for a default, to prevent
15430 spurious errors.
15431 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
15432 not set the instantiation environment before analyzing the actuals.
15433 Fixes regression on 8515-003 with implementation of AI-133.
15434 Set_Instance_Env checks whether the generic unit is a predefined
15435 unit, in which case the instance must be analyzed with the latest Ada
15436 mode. This setting must take place after analysis of the actuals,
15437 because the actuals must be analyzed and frozen in the Ada mode extant
15438 outside of the current instantiation.
15439 (Save_Env, Restore_Env): Preserve and restore the configuration
15440 parameters so that predefined units can be compiled in the proper Ada
15441 mode.
15442 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
15443 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
15444 and Is_Abstract_Type.
15445 (Analyze_Formal_Package): For better error recovery, Add exception
15446 handler to catch Instantion_Error, which can be raised in
15447 Analyze_Associations
15448
15449 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15450 Bob Duff <duff@adacore.com>
15451 Gary Dismukes <dismukes@adacore.com>
15452
15453 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
15454 prefix type is a discriminated subtype of the type of the formal.
15455 (Analyze_Allocator): Collect all coextensions regardless of the context.
15456 Whether they can be allocated statically is determined in exp_ch4.
15457 (Analyze_Selected_Component): If the prefix is a limited view and the
15458 non-limited view is available, use the non-limited one.
15459 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
15460 therefore illegal), suggest a qualified expression rather than a type
15461 conversion, because a type conversion would be illegal in this context.
15462 (Anayze_Allocator): Trace recursively all nested allocators so that all
15463 coextensions are on the corresponding list for the root. Do no mark
15464 coextensions if the root allocator is within a declaration for a stack-
15465 allocated object, because the access discriminants will be allocated on
15466 the stack as well.
15467 (Analyze_Call): Remove restriction on calls to limited functions for the
15468 cases of generic actuals for formal objects, defaults for formal objects
15469 and defaults for record components.
15470 (Analyze_Allocator): Before analysis, chain coextensions on the proper
15471 element list. Their expansion is delayed until the enclosing allocator
15472 is processed and its finalization list constructed.
15473 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
15474 for an operation with the given name among the primitive operations of
15475 the corresponding record type.
15476 (Analyze_Selected_Component): If the prefix is a task type that
15477 implements an interface, and there is no entry with the given name,
15478 check whether there is another primitive operation (e.g. a function)
15479 with that name.
15480 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
15481 properly the indexing of a function call written in prefix form, where
15482 the function returns an array type, and all parameters of the function
15483 except the first have defaults.
15484 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
15485 the original operands, rather than relocating them, for efficiency and
15486 to work properly when an operand is overloaded.
15487 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
15488 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
15489 (Analyze_Selected_Component): If the prefix is a private extension, only
15490 scan the visible components, not those of the full view.
15491 (Try_Primitive_Operation): If the operation is a procedure, collect all
15492 possible interpretations, as for a function, because in the presence of
15493 classwide parameters several primitive operations of the type can match
15494 the given arguments.
15495
15496 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15497 Robert Dewar <dewar@adacore.com>
15498
15499 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
15500 tag-indeterminate call to an abstract function, when the left-hand side
15501 is not classwide.
15502 (Analyze_Loop_Statement): Improve detection of infinite loops
15503
15504 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15505 Thomas Quinot <quinot@adacore.com>
15506
15507 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
15508 out of Analyze_Package_Declaration, because processing must be applied
15509 to package bodies as well, for deferred constants completed by pragmas.
15510 (Analyze_Package_Declaration): When the package declaration being
15511 analyzed does not require an explicit body, call Check_Completion.
15512 (May_Need_Implicit_Body): An implicit body is required when a package
15513 spec contains the declaration of a remote access-to-classwide type.
15514 (Analyze_Package_Body): If the package contains RACWs, append the
15515 pending subprogram bodies generated by exp_dist at the end of the body.
15516 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
15517 Is_Abstract_Subprogram and Is_Abstract_Type.
15518 (Preserve_Full_Attributes): The full entity list is not an attribute
15519 that must be preserved from full to partial view.
15520
15521 * sem_dist.adb (Add_RAS_Dereference_TSS):
15522 Change primitive name to _Call so it cannot clash with any legal
15523 identifier, and be special-cased in Check_Completion.
15524 Mark the full view of the designated type for the RACW associated with
15525 a RAS as Comes_From_Source to get proper view switching when installing
15526 private declarations.
15527 Provite a placeholder nested package body along with the nested spec
15528 to have a place for Append_RACW_Bodies to generate the calling stubs
15529 and stream attributes.
15530
15531 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15532 Robert Dewar <dewar@adacore.com>
15533
15534 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
15535 that is a limited view, check the non-limited view if available.
15536 (Undefined): Refine error message for missing with of Text_IO
15537 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
15538 to distinguish real missing with cases.
15539 Fix format of all missing with messages
15540 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
15541 renaming as body when renamed entity is abstract.
15542
15543 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15544 Javier Miranda <miranda@adacore.com>
15545
15546 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
15547 predicate recursive, to handle complex expressions on literals whose
15548 spurious ambiguity comes from the abstract interpretation of some
15549 subexpression.
15550 (Interface_Present_In_Ancestor): Add support to concurrent record
15551 types.
15552 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
15553 Is_Abstract_Subprogram and Is_Abstract_Type.
15554
15555 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15556 Javier Miranda <miranda@adacore.com>
15557
15558 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
15559 dereference of a local object R created as a reference to another
15560 object O, use the access level of O.
15561 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
15562 rather than local Same_Formal_Type, to check whether protected operation
15563 overrides an inherited one.
15564 (Same_Formal_Type): New predicate, used when matching signatures of
15565 overriding synchronized operations, to handle the case when a formal
15566 has a type that is a generic actual.
15567 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
15568 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
15569 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
15570 syntactic ambiguities involving indexing of function calls that return
15571 arrays.
15572 (Abstract_Interface_List): New subprogram that returns the list of
15573 abstract interfaces associated with a concurrent type or a
15574 concurrent record type.
15575 (Interface_Present_In_Parent): New subprogram used to check if a
15576 given type or some of its parents implement a given interface.
15577 (Collect_Abstract_Interfaces): Add support for concurrent types
15578 with interface types.
15579 (Has_Abstract_Interfaces): Add support for concurrent types with
15580 interface types.
15581 (Is_Parent): New subprogram that determines whether E1 is a parent
15582 of E2. For a concurrent type its parent is the first element of its
15583 list of interface types; for other types this function provides the
15584 same result than Is_Ancestor.
15585 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
15586 (Collect_Synchronized_Interfaces): Removed because the subprogram
15587 Collect_Abstract_Interfaces provides this functionality.
15588 (Collect_Abstract_Interfaces): Minor update to give support to
15589 concurrent types and thus avoid undesired code duplication.
15590 (Get_Subprogram_Entity): Handle entry calls.
15591 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
15592 entry calls.
15593 (Enter_Name): Do not give -gnatwh hiding warning for record component
15594 entities, they never result in hiding.
15595
15596 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15597 Robert Dewar <dewar@adacore.com>
15598
15599 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
15600 to chain nested components that are allocators for access discriminants
15601 of the enclosing object.
15602 Add N_Push and N_Pop nodes
15603 New field Exception_Label added
15604 (Local_Raise_Statements): New field in N_Exception_Handler_Node
15605 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
15606 (Is_Coextension): New flag for allocators, to mark allocators that
15607 correspond to access discriminants of dynamically allocated objects.
15608 (N_Block_Statement): Document the fact that the corresponding entity
15609 can be an E_Return_Statement.
15610 (Is_Coextension): New flag for allocators.
15611 Remove all code for DSP option
15612
15613 * sprint.ads, sprint.adb: Display basic information for class_wide
15614 subtypes. Add handling of N_Push and N_Pop nodes
15615
15616 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15617
15618 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
15619 before propagating exception.
15620
15621 2007-04-06 Olivier Hainque <hainque@adacore.com>
15622
15623 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
15624 an address always within the call instruction from a return address.
15625
15626 2007-04-06 Olivier Hainque <hainque@adacore.com>
15627 Eric Botcazou <botcazou@adacore.com>
15628
15629 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
15630 expression with a COMPOUND_EXPR including the call instead of emitting
15631 the call directly here.
15632 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
15633 high bound is constant and the slice is empty. Tidy.
15634 (tree_transform, case N_Op_Not): Handle properly the case where the
15635 operation applies to a private type whose full view is a modular type.
15636 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
15637 Address_Clause, use the associated Expression as the GNAT tree
15638 representing the choice value to ensure the corresponding GCC tree is
15639 of the proper kind.
15640 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
15641 instead of just the operands, as the base GCC stabilize_reference does.
15642 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
15643 requested; otherwise fail.
15644 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
15645
15646 2007-04-06 Thomas Quinot <quinot@adacore.com>
15647
15648 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
15649 implementation of UI_Div.
15650 (UI_Div): Reimplement as a call to UI_Div_Rem.
15651 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
15652 remainder, avoiding the cost of a multiplication and a subtraction.
15653 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
15654 provides both quotient and remainder in a single computation.
15655 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
15656 functions for uint.
15657 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
15658 is undefined if the given n is not inversible.
15659
15660 2007-04-06 Olivier Hainque <hainque@adacore.com>
15661
15662 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
15663 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
15664 opcodes.
15665
15666 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15667 Olivier Hainque <hainque@adacore.com>
15668
15669 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
15670 when updating the contents of the old pointer to an unconstrained array.
15671 (end_subprog_body): Set error_gnat_node to Empty.
15672 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
15673 (unchecked_convert): For subtype to base type conversions, require that
15674 the source be a subtype if it is an integer type.
15675 (builtin_decls): New global, vector of available builtin functions.
15676 (gnat_pushdecl): Add global builtin function declaration nodes to the
15677 builtin_decls list.
15678 (gnat_install_builtins): Adjust comments.
15679 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
15680 calling gnat_pushdecl, so that it knows when it handed a builtin
15681 function declaration node.
15682 (builtin_decl_for): Search the builtin_decls list.
15683
15684 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15685
15686 * s-stchop-vxworks.adb:
15687 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
15688
15689 2007-04-06 Robert Dewar <dewar@adacore.com>
15690 Arnaud Charlet <charlet@adacore.com>
15691
15692 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
15693
15694 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
15695 of files
15696 Add mention of -Sev (set initialize_scalars option from environment
15697 variable at run time) in gnatbind usage message.
15698
15699 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
15700
15701 * fname-uf.ads: Minor comment fix
15702
15703 * osint.ads: Change pragma Elaborate to Elaborate_All
15704
15705 * par-load.adb: Add documentation.
15706
15707 * sem_cat.ads, sem_cat.adb: Minor code reorganization
15708
15709 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
15710
15711 * s-secsta.ads: Extra comments
15712
15713 * s-soflin.ads: Minor comment fixes
15714
15715 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
15716
15717 * s-wchcon.ads: Minor comment addition
15718
15719 * treepr.adb: Minor change in message
15720 (Print_Name,Print_Node): Make these debug printouts more robust: print
15721 "no such..." instead of crashing on bad input.
15722
15723 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
15724
15725 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
15726 instead of gnat_signed_or_unsigned_type.
15727 * utils.c (gnat_signed_or_unsigned_type): Remove.
15728 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
15729 * gigi.h (gnat_signed_or_unsigned_type): Remove
15730
15731 2007-03-09 Roger Sayle <roger@eyesopen.com>
15732
15733 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
15734 fold with the result of buildN.
15735 * decl.c (gnat_to_gnu_entity): Likewise.
15736 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
15737 * utils.c (finish_record_type, merge_sizes, max_size, convert):
15738 Likewise.
15739 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
15740 nonbinary_modular_operation, build_binary_op, build_unary_op,
15741 build_cond_expr): Likewise.
15742
15743 * utils.c (convert): Use fold_build1 when casting values to void.
15744 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
15745 fold_convert instead of convert when appropriate.
15746
15747 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
15748
15749 * Make-lang.in: Add install-pdf target as copied from
15750 automake v1.10 rules.
15751
15752 2007-02-28 Andreas Schwab <schwab@suse.de>
15753
15754 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
15755 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
15756 (doc/gnat-style.info): Likewise.
15757
15758 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
15759
15760 * gnat-style.texi: Standardize title page.
15761 * gnat_rm.texi: Likewise.
15762 * gnat_ugn.texi: Likewise.
15763
15764 2007-02-25 Mark Mitchell <mark@codesourcery.com>
15765
15766 * decl.c (annotate_value): Adjust for refactoring of tree_map
15767 hierarchy.
15768
15769 2007-02-24 Mark Mitchell <mark@codesourcery.com>
15770
15771 * decl.c (annotate_value): Adjust for refactoring of tree_map
15772 hierarchy.
15773
15774 2007-02-21 Ed Schonberg <schonberg@adacore.com>
15775
15776 PR ada/18819
15777 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
15778 untagged derived type, add hidden components to keep discriminant
15779 layout consistent, when a given discriminant of the derived type
15780 constraints several discriminants of the parent type.
15781
15782 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
15783 Sandra Loosemore <sandra@codesourcery.com>
15784
15785 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
15786 build the call expression.
15787 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
15788 * utils.c (max_size) <tcc_exceptional>: Delete.
15789 <tcc_vl_exp>: New case.
15790 <tcc_expression>: Delete CALL_EXPR subcase.
15791 (build_global_cdtor): Use build_call_nary instead of build3.
15792 * utils2.c (build_call_1_expr): Likewise.
15793 (build_call_2_expr): Likewise.
15794 (build_call_0_expr): Likewise.
15795 (build_call_alloc_dealloc): Likewise.
15796
15797 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
15798
15799 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
15800 get_action_description_for): Replace _Unwind_Word with _uleb128_t
15801 and _Unwind_SWord with _sleb128_t.
15802
15803 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
15804
15805 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
15806 * decl.c: Include gt-ada-decl.h.
15807 (annotate_value_cache): New.
15808 (annotate_value): Use it instead of TREE_COMPLEXITY.
15809
15810 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
15811
15812 * misc.c, utils2.c: Fix comment typos.
15813
15814 2007-01-24 Roger Sayle <roger@eyesopen.com>
15815
15816 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
15817 TREE_CONSTANT_OVERFLOW.
15818 (allocatable_size_p, annotate_value): Likewise.
15819 * trans.c (gnat_to_gnu): Likewise.
15820 * utils.c (unchecked_convert): Likewise.
15821 * utils2.c (build_simple_component_ref): Likewise.
15822
15823 2007-01-23 Richard Guenther <rguenther@suse.de>
15824
15825 PR bootstrap/30541
15826 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
15827 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
15828 (gnatboot3): Likewise.
15829 (GNATBIND): Do not define.
15830 * Makefile.in (GNATBIND): Do not define.
15831
15832 2007-01-08 Richard Guenther <rguenther@suse.de>
15833
15834 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
15835 * trans.c (gnat_to_gnu): Likewise.
15836
15837 2006-12-07 Geoffrey Keating <geoffk@apple.com>
15838
15839 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
15840 * adaint.c: Likewise.
15841
15842 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
15843
15844 Merge from gimple-tuples-branch:
15845 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
15846
15847 * ada-tree.h (lang_tree_node): Handle gimple tuples.
15848 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
15849 GIMPLE_MODIFY_STMT.
15850
15851 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
15852
15853 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
15854 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
15855 Fix typos.
15856
15857 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
15858
15859 PR ada/27936
15860 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
15861 if the initializer takes into account the padding.
15862
15863 2006-11-11 Richard Guenther <rguenther@suse.de>
15864
15865 * trans.c (maybe_stabilize_reference): Remove handling of
15866 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
15867
15868 2006-11-05 Arnaud Charlet <charlet@adacore.com>
15869
15870 PR ada/29707
15871 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
15872 (To_Target_Priority): New function.
15873
15874 2006-10-31 Robert Dewar <dewar@adacore.com>
15875
15876 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
15877 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
15878 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
15879 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
15880 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
15881 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
15882 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
15883 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
15884 a-szbzha.adb: Minor reformatting. Fix header.
15885
15886 * a-numaux-x86.adb: Add parentheses for use of unary minus
15887 * a-ngcefu.adb: Supply missing parentheses for unary minus
15888 * a-ngcoty.adb: Add parens for use of unary minus
15889 * a-ngelfu.adb: Add missing parens for unary minus
15890 * a-tifiio.adb: Add parentheses for uses of unary minus
15891
15892 2006-10-31 Robert Dewar <dewar@adacore.com>
15893 Bob Duff <duff@adacore.com>
15894 Ed Schonberg <schonberg@adacore.com>
15895
15896 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
15897 with multiplying operator.
15898 (Expected_Type_Is_Any_Real): New function to determine from the Parent
15899 pointer whether the context expects "any real type".
15900 (Resolve_Arithmetic_Op): Do not give an error on calls to the
15901 universal_fixed "*" and "/" operators when they are used in a context
15902 that expects any real type. Also set the type of the node to
15903 Universal_Real in this case, because downstream processing requires it
15904 (mainly static expression evaluation).
15905 Reword some continuation messages
15906 Add some \\ sequences to continuation messages
15907 (Resolve_Call): Refine infinite recursion case. The test has been
15908 sharpened to eliminate some false positives.
15909 Check for Current_Task usage now includes entry barrier, and is now a
15910 warning, not an error.
15911 (Resolve): If the call is ambiguous, indicate whether an interpretation
15912 is an inherited operation.
15913 (Check_Aggr): When resolving aggregates, skip associations with a box,
15914 which are priori correct, and will be replaced by an actual default
15915 expression in the course of expansion.
15916 (Resolve_Type_Conversion): Add missing support for conversion from
15917 a class-wide interface to a tagged type. Minor code cleanup.
15918 (Valid_Tagged_Converion): Add support for abstact interface type
15919 conversions.
15920 (Resolve_Selected_Component): Call Generate_Reference here rather than
15921 during analysis, and use May_Be_Lvalue to distinguish read/write.
15922 (Valid_Array_Conversion): New procedure, abstracted from
15923 Valid_Conversion, to incorporate accessibility checks for arrays of
15924 anonymous access types.
15925 (Valid_Conversion): For a conversion to a numeric type occurring in an
15926 instance or inlined body, no need to check that the operand type is
15927 numeric, since this has been checked during analysis of the template.
15928 Remove legacy test for scope name Unchecked_Conversion.
15929
15930 * sem_res.ads: Minor reformatting
15931
15932 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
15933 (PE_Current_Task_In_Entry_Body): New exception code
15934 (SE_Restriction_Violation): Removed, not used
15935
15936 * a-except.ads: Update comments.
15937
15938 * types.h, types.ads: Add definition for Validity_Check
15939 (PE_Current_Task_In_Entry_Body): New exception code
15940 (SE_Restriction_Violation): Removed, not used
15941
15942 2006-10-31 Thomas Quinot <quinot@adacore.com>
15943
15944 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15945 error status.
15946
15947 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15948 Jose Ruiz <ruiz@adacore.com>
15949
15950 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15951 part of Ada.Calendar: all subprogram raise Unimplemented.
15952 (Split_W_Offset): Temp function body, raising Unimplemented
15953
15954 * a-calend.ads, a-calend-vms.ads:
15955 Add imported variable Invalid_TZ_Offset used to designate targets unable
15956 to support time zones.
15957 (Unimplemented): Temporary function raised by the body of new
15958 subprograms below.
15959 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15960 unit provides handling of leap seconds and is used by the new Ada 2005
15961 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15962 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15963 version returns an extra value which is the offset to UTC.
15964
15965 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15966 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15967 (Split_W_Offset): New function body.
15968 (Time_Of): When a date is close to UNIX epoch, compute the time for
15969 that date plus one day (that amount is later substracted after
15970 executing mktime) so there are no problems with time zone adjustments.
15971
15972 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15973
15974 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15975 a-catizo.ads, a-catizo.adb: New files.
15976
15977 * impunit.adb: Add new Ada 2005 entries
15978
15979 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15980 Rename all occurences of "__gnat_localtime_r" to
15981 "__gnat_localtime_tzoff".
15982 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15983 zone data and calculate the GMT offset.
15984 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15985 Use the field "tm_gmtoff" to extract the GMT offset.
15986 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15987 the external variable "timezone" to calculate the GMT offset.
15988
15989 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15990 Jose Ruiz <ruiz@adacore.com>
15991
15992 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
15993 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
15994 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15995 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15996 System.Any_Priority to a POSIX priority on the target.
15997
15998 * system-linux-ia64.ads:
15999 Extend range of Priority types on Linux to use the whole range made
16000 available by the system.
16001
16002 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16003 function maps from System.Any_Priority to a POSIX priority on the
16004 target.
16005 (PTHREAD_PRIO_PROTECT): Set real value.
16006 (PTHREAD_PRIO_INHERIT): Now a function.
16007 (SIGCPUFAIL): New signal.
16008 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16009 are documented as reserved by the OS.
16010
16011 * system-aix.ads: Use the full range of priorities provided by the
16012 system on AIX.
16013
16014 * s-taprop-posix.adb: Call new function To_Target_Priority.
16015 (Set_Priority): Take into account Task_Dispatching_Policy and
16016 Priority_Specific_Dispatching pragmas when determining if Round Robin
16017 must be used for scheduling the task.
16018
16019 * system-linux-x86_64.ads, system-linux-x86.ads,
16020 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16021 the whole range made available by the system.
16022
16023 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16024 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16025 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16026 when deallocating the TCB in order to avoid potential references to
16027 deallocated data.
16028 (Set_Priority): Take into account Task_Dispatching_Policy and
16029 Priority_Specific_Dispatching pragmas when determining if Round Robin
16030 or FIFO within priorities must be used for scheduling the task.
16031
16032 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16033 the Thread field (to be used internally by the run-time system) and the
16034 kernel-level task id in the LWP field (to be used by the debugger).
16035 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16036 instance, and propagate the current task options to the spawned task.
16037 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16038 (Initialize): Set Round Robin dispatching when the corresponding pragma
16039 is in effect.
16040
16041 2006-10-31 Robert Dewar <dewar@adacore.com>
16042
16043 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16044 system-linux-hppa.ads, system-hpux-ia64.ads,
16045 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16046 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16047 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16048 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16049 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16050 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16051 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16052 Default_Bit_Order) to kill constant condition warnings for references
16053 to this switch.
16054
16055 2006-10-31 Vincent Celier <celier@adacore.com>
16056 Eric Botcazou <ebotcazou@adacore.com>
16057
16058 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16059 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16060 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16061 Ext_To, when building the library file name
16062
16063 * mlib-tgt-vxworks.adb: ditto.
16064 (Get_Target_Suffix): Add support for x86 targets.
16065
16066 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16067
16068 * mlib-tgt-darwin.adb:
16069 Use Append_To, instead of Ext_To, when building the library file name
16070 (Flat_Namespace): New global variable.
16071 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16072 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16073 (Link_Shared_Libgcc): Delete.
16074 (Build_Dynamic_Library): Adjust for above changes.
16075 Use Opt package.
16076 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16077
16078 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16079
16080 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16081 (Initialize): Add type conversions required by above change.
16082
16083 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16084
16085 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16086 (getpid): New body for this function that uses the underlying taskIdSelf
16087 function for VxWorks 5 and VxWorks 6 in kernel mode.
16088 (unsigned_int): New type, modular to allow logical bit operations.
16089 (taskOptionsGet): New imported function.
16090
16091 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16092 field to be compliant with the type used by the corresponding operating
16093 system primitive.
16094
16095 2006-10-31 Pascal Obry <obry@adacore.com>
16096 Eric Botcazou <ebotcazou@adacore.com>
16097 Vincent Celier <celier@adacore.com>
16098
16099 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16100 ASCII version of the registry API. This is needed as the GNAT runtime
16101 is now UNICODE by default.
16102 Include version.h.
16103 (get_gcc_version): Do not hardcode the return value.
16104 (__gnat_file_time_name): On Windows properly set the default returned
16105 value to -1 which corresponds to Invalid_Time.
16106 (__gnat_fopen): New routine. A simple wrapper on all plateforms
16107 except on Windows where it does conversion for unicode support.
16108 (__gnat_freopen): Idem.
16109 (__gnat_locate_exec_on_path): If environment variable PATH does not
16110 exist, return a NULL pointer
16111
16112 * adaint.h: (__gnat_fopen): Declare.
16113 (__gnat_freopen): Likewise.
16114
16115 * mingw32.h (_tfreopen): Define this macro here for older MingW
16116 version.
16117 Activate the unicode support on platforms using a MingW runtime
16118 version 3.9 or newer.
16119
16120 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16121 This is needed for proper unicode support on Windows.
16122 (freopen): Idem.
16123
16124 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16125 Nicolas Setton <setton@adacore.com>
16126 Olivier Hainque <hainque@adacore.com>
16127 Gary Dismukes <dismukes@adacore.com>
16128
16129 * gigi.h: (tree_code_for_record_type): Declare.
16130 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16131 (get_global_renaming_pointers): Rename to
16132 invalidate_global_renaming_pointers.
16133 (static_ctors): Delete.
16134 (static_dtors): Likewise.
16135 (gnat_write_global_declarations): Declare.
16136 (create_var_decl): Adjust descriptive comment to indicate that the
16137 subprogram may return a CONST_DECL node.
16138 (create_true_var_decl): Declare new function, similar to
16139 create_var_decl but forcing the creation of a VAR_DECL node.
16140 (get_global_renaming_pointers): Declare.
16141 (add_global_renaming_pointer): Likewise.
16142
16143 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16144
16145 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16146 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16147 processing.
16148 (gnat_to_gnu_entity): Remove From_With_Type from computation for
16149 imported_p.
16150 <E_Access_Type>: Use the Non_Limited_View as the full view of the
16151 designated type if the pointer comes from a limited_with clause. Make
16152 incomplete designated type if it is in the main unit and has a freeze
16153 node.
16154 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16155 Underlying_Full_View similarly. Return earlier if the full view already
16156 has an associated tree.
16157 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16158 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16159 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16160 reference type built for objects with an address clause.
16161 Use create_true_var_decl with const_flag set for
16162 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16163 TREE_READONLY set.
16164 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16165 for Character and Wide_Character types. This info is read by the
16166 dwarf-2 writer, and is needed to be able to use the command "ptype
16167 character" in the debugger.
16168 (gnat_to_gnu_entity): When generating a type representing
16169 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16170 so that debug writers can distinguish it from ordinary integers.
16171 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16172 addition to TREE_READONLY to assert the constantness of variables for
16173 elaboration purposes.
16174 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16175 parameters to call new Einfo function First_Formal_With_Extras.
16176 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16177 protected type with its corresponding discriminant, to obtain a usable
16178 declaration
16179 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16180 for a multiple elaboration of the "equivalent" type.
16181 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16182 into record_global_renaming_pointer.
16183 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16184 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16185 <E_Array_Subtype>: Likewise.
16186 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16187 incomplete subtypes and incomplete subtypes of incomplete types visible
16188 through a limited with clause.
16189 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16190 the base index type for the maximum size of the array only if they are
16191 constant.
16192 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16193 expression into a SAVE_EXPR if stabilization failed.
16194
16195 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16196 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16197 by lower level compilation passes.
16198 (gnat_genericize): New function, lowering a function body to GENERIC.
16199 Turn the type of RESULT_DECL into a real reference type if the decl
16200 has been marked DECL_BY_REFERENCE, and adjust references to the latter
16201 accordingly.
16202 (gnat_genericize_r): New function. Tree walking callback for
16203 gnat_genericize.
16204 (convert_from_reference, is_byref_result): New functions. Helpers for
16205 gnat_genericize_r.
16206 (create_type_decl): Call gnat_pushdecl before calling
16207 rest_of_decl_compilation, to make sure that field TYPE_NAME of
16208 type_decl is properly set before calling the debug information writers.
16209 (write_record_type_debug_info): The heuristics which compute the
16210 alignment of a field in a variant record might not be accurate. Add a
16211 safety test to make sure no alignment is set to a smaller value than
16212 the alignment of the field type.
16213 (make_dummy_type): Use the Non_Limited_View as the underlying type if
16214 the type comes from a limited_with clause. Do not loop on the full view.
16215 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16216 (dummy_node_table): New global variable, moved from decl.c.
16217 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16218 (save_gnu_tree): Use above macros.
16219 (get_gnu_tree): Likewise.
16220 (present_gnu_tree): Likewise.
16221 (init_dummy_type): New function, moved from decl.c. Use above macros.
16222 (make_dummy_type): Likewise.
16223 (tree_code_for_record_type): New function extracted from make_dummy_type
16224 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16225 (static_ctors): Change it to a vector, make static.
16226 (static_dtors): Likewise.
16227 (end_subprog_body): Adjust for above change.
16228 (build_global_cdtor): Moved from trans.c.
16229 (gnat_write_global_declarations): Emit global constructor and
16230 destructor, and call cgraph_optimize before emitting debug info for
16231 global declarations.
16232 (global_decls): New global variable.
16233 (gnat_pushdecl): Store the global declarations in global_decls, for
16234 later use.
16235 (gnat_write_global_declarations): Emit debug information for global
16236 declarations.
16237 (create_var_decl_1): Former create_var_decl, with an extra argument to
16238 state whether the creation of a CONST_DECL is allowed.
16239 (create_var_decl): Behavior unchanged. Now a wrapper around
16240 create_var_decl_1 allowing CONST_DECL creation.
16241 (create_true_var_decl): New function, similar to create_var_decl but
16242 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16243 (create_field_decl): Do not always mark the field as addressable
16244 if its type is an aggregate.
16245 (global_renaming_pointers): New static variable.
16246 (add_global_renaming_pointer): New function.
16247 (get_global_renaming_pointers): Likewise.
16248
16249 * misc.c (gnat_dwarf_name): New function.
16250 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16251 (gnat_post_options): Add comment about structural alias analysis.
16252 (gnat_parse_file): Do not call cgraph_optimize here.
16253 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16254
16255 * trans.c (process_freeze_entity): Don't abort if we already have a
16256 non dummy GCC tree for a Concurrent_Record_Type, as it might
16257 legitimately have been elaborated while processing the associated
16258 Concurrent_Type prior to this explicit freeze node.
16259 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16260 exception handler volatile if it is of variable size.
16261 (process_type): Remove bypass for types coming from a limited_with
16262 clause.
16263 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16264 actual, convert the corresponding gnu_actual to the real destination
16265 type when necessary.
16266 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16267 originally TREE_READONLY but whose elaboration cannot be performed
16268 statically.
16269 Part of fix for F504-021.
16270 (tree_transform, subprogram cases): Change loops on formal parameters to
16271 call new Einfo function First_Formal_With_Extras.
16272 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16273 stemming from type conversion for the lhs.
16274 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16275 number of bits per unit for components of records.
16276 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16277 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16278 with At_End_Proc after the SJLJ EH cleanup.
16279 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16280 compilation unit.
16281 (elaborate_all_entities): Do not retest type_annotate_only.
16282 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16283 result type of an abstract subprogram, which may be an itype associated
16284 with an anonymous access result (related to AI-318-02).
16285 (build_global_cdtor): Move to utils.c.
16286 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16287 this choice is not a null tree nor an integer constant.
16288 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16289 on the body of elaboration routines instead of mark_unvisited.
16290 (add_stmt): Do not mark the tree.
16291 (add_decl_expr): Tweak comment.
16292 (mark_unvisited): Delete.
16293 (unshare_save_expr): New static function.
16294 (call_to_gnu): Issue an error when making a temporary around a
16295 procedure call because of non-addressable actual parameter if the
16296 type of the formal is by_reference.
16297 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
16298 after building the elaboration routine.
16299
16300 2006-10-31 Bob Duff <duff@adacore.com>
16301
16302 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
16303 as finalization-started, so we can raise Program_Error on 'new'.
16304
16305 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
16306 collection has already started.
16307
16308 * s-finimp.ads (Collection_Finalization_Started): Added new special
16309 flag value for indicating that a collection's finalization has started.
16310
16311 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
16312 create a task whose master has already waited for dependent tasks.
16313
16314 2006-10-31 Robert Dewar <dewar@adacore.com>
16315
16316 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
16317
16318 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
16319 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
16320 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
16321 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
16322 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
16323 a-except-2005.ads: Add pragma Preelaborable_Warning
16324
16325 2006-10-31 Robert Dewar <dewar@adacore.com>
16326 Jose Ruiz <ruiz@adacore.com>
16327
16328 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
16329
16330 * ali.adb (Get_Name): Properly handle scanning of wide character names
16331 encoded with brackets notation.
16332 (Known_ALI_Lines): Add S lines to this list.
16333 (Scan_ALI): Acquire S (priority specific dispatching) lines.
16334 New flag Elaborate_All_Desirable in unit table
16335
16336 * ali.ads (Priority_Specific_Dispatching): Add this range of
16337 identifiers to be used for Priority_Specific_Dispatching table entries.
16338 (ALIs_Record): Add First_Specific_Dispatching and
16339 Last_Specific_Dispatching that point to the first and last entries
16340 respectively in the priority specific dispatching table for this unit.
16341 (Specific_Dispatching): Add this table for storing each S (priority
16342 specific dispatching) line encountered in the input ALI file.
16343 New flag Elaborate_All_Desirable in unit table
16344
16345 * bcheck.adb: (Check_Configuration_Consistency): Add call to
16346 Check_Consistent_Dispatching_Policy.
16347 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
16348 verifying that the use of Priority_Specific_Dispatching,
16349 Task_Dispatching_Policy, and Locking_Policy is consistent across the
16350 partition.
16351
16352 * bindgen.adb: (Public_Version_Warning): function removed.
16353 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
16354 required information from ALI files in order to initialize the table
16355 containing the specific dispatching policy.
16356 (Gen_Adainit_Ada): Generate the variables required for priority specific
16357 dispatching entries (__gl_priority_specific_dispatching and
16358 __gl_num_specific_dispatching).
16359 (Gen_Adainit_C): Generate the variables required for priority specific
16360 dispatching entries (__gl_priority_specific_dispatching and
16361 __gl_num_specific_dispatching).
16362 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
16363 pragma entries.
16364 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
16365 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
16366 (Tab_To): Removed.
16367 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
16368 a call to gnat_set_globals.
16369 Generate a string containing settings from
16370 Priority_Specific_Dispatching pragma entries.
16371 (Gen_Object_Files_Options): Do not include the runtime libraries when
16372 pragma No_Run_Time is specified.
16373
16374 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
16375 consistency with s-intman-posix.adb.
16376 (__gnat_error_handler, case FreeBSD): Account for the fact that the
16377 handler is installed with SA_SIGINFO.
16378 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
16379 FreeBSD ZCX support, copied from Linux version.
16380 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
16381 sigfillset, and sigemptyset so the routines defined by MaRTE.
16382 (__gl_priority_specific_dispatching): Add this variable that stores the
16383 string containing priority specific dispatching policies in the
16384 partition.
16385 (__gl_num_specific_dispatching): Add this variable that indicates the
16386 highest priority for which a priority specific dispatching pragma
16387 applies.
16388 (__gnat_get_specific_dispatching): Add this routine that returns the
16389 priority specific dispatching policy, as set by a
16390 Priority_Specific_Dispatching pragma appearing anywhere in the current
16391 partition. The input argument is the priority number, and the result
16392 is the upper case first character of the policy name.
16393 (__gnat_set_globals): Now a dummy function.
16394 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
16395 mechargs instead of sigargs, as the latter can be retrieved from the
16396 former and sigargs is not what we want on ia64.
16397 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
16398 mechargs argument.
16399 (__gnat_adjust_context_for_raise, ia64-vms): New function.
16400 (tasking_error): Remove unused symbol.
16401 (_abort_signal): Move this symbol to the IRIX specific part since this
16402 is the only target that uses this definition.
16403 (Check_Abort_Status): Move this symbol to the IRIX specific part since
16404 this is the only target that uses this definition.
16405 (Lock_Task): Remove unused symbol.
16406 (Unlock_Task): Remove unused symbol.
16407
16408 * lib-writ.adb (Write_ALI): Output new S lines for
16409 Priority_Specific_Dispatching pragmas.
16410 Implement new flag BD for elaborate body desirable
16411
16412 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
16413 (Specific_Dispatching): Add this table for storing the entries
16414 corresponding to Priority_Specific_Dispatching pragmas.
16415 Document new BD flag for elaborate body desirable
16416
16417 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
16418 of known pragmas.
16419
16420 2006-10-31 Javier Miranda <miranda@adacore.com>
16421
16422 * a-tags.ads, a-tags.adb:
16423 (Predefined_DT): New function that improves readability of the code.
16424 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
16425 Inherit_DT): Use the new function Predefined_DT to improve code
16426 readability.
16427 (Register_Interface_Tag): Update assertion.
16428 (Set_Interface_Table): Update assertion.
16429 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
16430 determining progenitor interfaces in Tags.
16431 (Inherit_CPP_DT): New subprogram.
16432
16433 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
16434 analysis of the thunk code.
16435 (Expand_Interface_Conversion): Handle run-time conversion of
16436 access to class wide types.
16437 (Expand_Dispatching_Call): When generating the profile for the
16438 subprogram itype for a dispatching operation, properly terminate the
16439 formal parameters chaind list (set the Next_Entity of the last formal
16440 to Empty).
16441 (Collect_All_Interfaces): Removed. This routine has been moved to
16442 sem_util and renamed as Collect_All_Abstract_Interfaces.
16443 (Set_All_DT_Position): Hidden entities associated with abstract
16444 interface primitives are not taken into account in the check for
16445 3.9.3(10); this check is done with the aliased entity.
16446 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
16447 interfacing with CPP by default.
16448 (Expand_Interface_Conversion): Add missing support for static conversion
16449 from an interface to a tagged type.
16450 (Collect_All_Interfaces): Add new out formal containing the list of
16451 abstract interface types to cleanup the subprogram Make_DT.
16452 (Make_DT): Update the code to generate the table of interfaces in case
16453 of abstract interface types.
16454 (Is_Predefined_Dispatching_Alias): New function that returns true if
16455 a primitive is not a predefined dispatching primitive but it is an
16456 alias of a predefined dispatching primitive.
16457 (Make_DT): If the ancestor of the type is a CPP_Class and we are
16458 compiling under full ABI compatibility mode we avoid the generation of
16459 calls to run-time services that fill the dispatch tables because under
16460 this mode we currently inherit the dispatch tables in the IP subprogram.
16461 (Write_DT): Emit an "is null" indication for a null procedure primitive.
16462 (Expand_Interface_Conversion): Use an address as the type of the formal
16463 of the internally built function that handles the case in which the
16464 target type is an access type.
16465
16466 2006-10-31 Robert Dewar <dewar@adacore.com>
16467
16468 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
16469
16470 2006-10-31 Robert Dewar <dewar@adacore.com>
16471
16472 * bindusg.ads, bindusg.adb:
16473 Change to package and rename procedure as Display, which
16474 now ensures that it only outputs usage information once.
16475
16476 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16477
16478 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
16479 using RTPs.
16480
16481 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
16482 when using RTPs.
16483
16484 2006-10-31 Robert Dewar <dewar@adacore.com>
16485 Ed Schonberg <schonberg@adacore.com>
16486
16487 * treepr.adb: Use new subtype N_Membership_Test
16488
16489 * checks.ads, checks.adb: Add definition for Validity_Check
16490 (Range_Or_Validity_Checks_Suppressed): New function
16491 (Ensure_Valid): Test Validity_Check suppressed
16492 (Insert_Valid_Check): Test Validity_Check suppressed
16493 (Insert_Valid_Check): Preserve Do_Range_Check flag
16494 (Validity_Check_Range): New procedure
16495 (Expr_Known_Valid): Result of membership test is always valid
16496 (Selected_Range_Checks): Range checks cannot be applied to discriminants
16497 by themselves. Disabling those checks must also be done for task types,
16498 where discriminants may be used for the bounds of entry families.
16499 (Apply_Address_Clause_Check): Remove side-effects if address expression
16500 is non-static and is not the name of a declared constant.
16501 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
16502 Code cleanup and new error messages.
16503 (Enable_Range_Check): Test for some cases of suppressed checks
16504 (Generate_Index_Checks): Suppress index checks if index checks are
16505 suppressed for array object or array type.
16506 (Apply_Selected_Length_Checks): Give warning for compile-time detected
16507 length check failure, even if checks are off.
16508 (Ensure_Valid): Do not generate a check on an indexed component whose
16509 prefix is a packed boolean array.
16510 * checks.adb: (Alignment_Checks_Suppressed): New function
16511 (Apply_Address_Clause_Check): New procedure, this is a completely
16512 rewritten replacement for Apply_Alignment_Check
16513 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
16514 we request a discriminal value only in case of discriminants.
16515 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
16516 assignments where the target subtype is unconstrained and the target
16517 object is a parameter or dereference (other aliased cases are known
16518 to be unconstrained).
16519
16520 2006-10-31 Robert Dewar <dewar@adacore.com>
16521
16522 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
16523 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
16524 vms_conv.adb: Fix bad table increment values (much too small)
16525
16526 * table.adb (Realloc): Make sure we get at least some new elements
16527 Defends against silly small values for table increment
16528
16529 2006-10-31 Robert Dewar <dewar@adacore.com>
16530 Ed Schonberg <schonberg@adacore.com>
16531 Bob Duff <duff@adacore.com>
16532
16533 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
16534 entities. Move other fields around to make this possible
16535 (Is_Derived_Type): Add missing call to Is_Type.
16536 (Extra_Formals): New function for subprograms, entries, subprogram
16537 types.
16538 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
16539 (First_Formal_With_Extras): New function for subprogs, entries, subp
16540 types.
16541 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
16542 Add node information for E_Return_Statement.
16543 (Elaborate_Body_Desirable): New flag
16544 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
16545 to be Is_Inherently_Limited_Type, because return-by-reference has
16546 no meaning in Ada 2005.
16547 (E_Return_Statement): New entity kind.
16548 (Return_Applies_To): Field of E_Return_Statement.
16549 (Is_Return_Object): New flag in object entities.
16550 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
16551 (Must_Have_Preelab_Init): New flag
16552 (Known_To_Have_Preelab_Init): New flag
16553 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
16554 (Is_Visible_Formal): New flag on entities in formal packages.
16555 (Low_Bound_Known): New flag
16556 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
16557 Incomplete_Kind.
16558 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
16559 output when Id is an incomplete subtype.
16560
16561 2006-10-31 Robert Dewar <dewar@adacore.com>
16562
16563 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
16564 Avoid abbreviation Creat
16565 (Finalize): List all sources in extended mail source if -gnatl
16566 switch is active.
16567 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
16568 (Finalize): Implement new -gnatl=xxx switch to output listing to file
16569 (Set_Specific_Warning_On): New procedure
16570 (Set_Specific_Warning_Off): New procedure
16571 Add implementation of new insertion \\
16572 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
16573 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
16574 types.
16575 (Error_Msg_Internal): Make sure that we set Last_Killed to
16576 True when a message from another package is suppressed.
16577 Implement insertion character ~ (insert string)
16578 (First_Node): Minor adjustments to get better placement.
16579
16580 * frontend.adb:
16581 Implement new -gnatl=xxx switch to output listing to file
16582
16583 * gnat1drv.adb:
16584 Implement new -gnatl=xxx switch to output listing to file
16585
16586 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
16587 (Commands_To_Stdout): New flag
16588 Implement new -gnatl=xxx switch to output listing to file
16589 New switch Dump_Source_Text
16590 (Warn_On_Deleted_Code): New warning flag for -gnatwt
16591 Define Error_Msg_Line_Length
16592 (Warn_On_Assumed_Low_Bound): New switch
16593
16594 * osint.ads, osint.adb
16595 (Normalize_Directory_Name): Fix bug.
16596 Implement new -gnatl=xxx switch to output listing to file
16597 (Concat): Removed, replaced by real concatenation
16598 Make use of concatenation now allowed in compiler
16599 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
16600 we find the 'lib' or 'bin' directory even when the tool has been
16601 invoked with a relative path.
16602 (Executable_Name): New function taking string parameters.
16603
16604 * osint-c.ads, osint-c.adb:
16605 Implement new -gnatl=xxx switch to output listing to file
16606
16607 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
16608
16609 * switch-c.adb:
16610 Implement new -gnatl=xxx switch to output listing to file
16611 Recognize new -gnatL switch
16612 (no longer keep in old warning about old style usage)
16613 Use concatenation to simplify code
16614 Recognize -gnatjnn switch
16615 (Scan_Front_End_Switches): Clean up handling of -gnatW
16616 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
16617
16618 2006-10-31 Robert Dewar <dewar@adacore.com>
16619
16620 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
16621 (Set_Specific_Warning_Off): New procedure
16622 (Warning_Specifically_Suppressed): New function
16623 (Validate_Specific_Warnings): New procedure
16624 (Output_Msg_Text): Complete rewrite to support -gnatjnn
16625
16626 * err_vars.ads: Implement insertion character ~ (insert string)
16627
16628 2006-10-31 Bob Duff <duff@adacore.com>
16629 Ed Schonberg <schonberg@adacore.com>
16630
16631 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
16632 the parent part is a build-in-place function call, generate assignments.
16633 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
16634 are build-in-place function calls.
16635 (Replace_Self_Reference): New subsidiary of
16636 Make_OK_Assignment_Statement, to replace an access attribute that is a
16637 self-reference into an access to the appropriate component of the
16638 target object. Generalizes previous mechanism to handle self-references
16639 nested at any level.
16640 (Is_Self_Referential_Init): Remove, not needed.
16641 (Is_Self_Referential_Init): New predicate to simplify handling of self
16642 referential components in record aggregates.
16643 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
16644 check for presence of entity before checking for self-reference.
16645 (Has_Default_Init_Comps): Return True if a component association is a
16646 self-reference to the enclosing type, which can only come from a
16647 default initialization.
16648 (Make_OK_Assignment_Statement): If the expression is of the form
16649 Typ'Acc, where Acc is an access attribute, the expression comes from a
16650 default initialized self-referential component.
16651 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
16652 that has been derived from several abstract interfaces we must also
16653 initialize the tags of the secondary dispatch tables.
16654
16655 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16656 Thomas Quinot <quinot@adacore.com>
16657 Javier Miranda <miranda@adacore.com>
16658 Robert Dewar <dewar@adacore.com>
16659
16660 * exp_attr.adb:
16661 (Expand_Access_To_Protected_Op): If the context indicates that an access
16662 to a local operation may be transfered outside of the object, create an
16663 access to the wrapper operation that must be used in an external call.
16664 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
16665 target, pass the Valid attribute applied to a floating-point prefix on
16666 to the back end without expansion.
16667 (Storage_Size): Use the new run-time function Storage_Size to retrieve
16668 the allocated storage when it is specified by a per-object expression.
16669 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
16670 Nothing to do here, the attribute has been rewritten during semantic
16671 analysis.
16672 (Expand_Attribute_Reference): Handle expansion of the new Priority
16673 attribute
16674 (Find_Fat_Info): Handle case of universal real
16675 (Expand_Access_To_Protected_Op): Fix use of access to protected
16676 subprogram from inside the body of a protected entry.
16677 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
16678 'Access and 'Unrestricted_Access, to transform the attribute reference
16679 into a fat pointer.
16680 (Is_Constrained_Aliased_View): New predicate to help determine whether a
16681 subcomponent's enclosing variable is aliased with a constrained subtype.
16682 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
16683 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
16684 an aliased prefix must be known to be constrained in order to use True
16685 for the attribute value, and now it's possible for some aliased views
16686 to be unconstrained.
16687
16688 2006-10-31 Robert Dewar <dewar@adacore.com>
16689
16690 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
16691 (Expand_Entity_Reference): Correct error of not handling subprogram
16692 formals in current_value processing.
16693
16694 2006-10-31 Javier Miranda <miranda@adacore.com>
16695 Robert Dewar <dewar@adacore.com>
16696 Ed Schonberg <schonberg@adacore.com>
16697 Gary Dismukes <dismukes@adacore.com>
16698
16699 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
16700 register in the final list objects containing class-wide interfaces;
16701 otherwise we incorrectly register the tag of the interface in the final
16702 list.
16703 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
16704 generate the wrapper if the parent primitive is abstract. This is
16705 required to report the correct error message.
16706 (Expand_N_Subtype_Indication): Do validity checks on range
16707 (Clean_Task_Names): If an initialization procedure includes a call to
16708 initialize a task (sub)component, indicate that the procedure will use
16709 the secondary stack.
16710 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
16711 compatibility for interfacing with CPP by default.
16712 (Expand_N_Object_Declaration): Only build an Adjust call when the
16713 object's type is a nonlimited controlled type.
16714 * exp_ch3.adb: Add with and use of Exp_Ch6.
16715 (Expand_N_Object_Declaration): Check for object initialization that is a
16716 call to build-in-place function and apply Make_Build_In_Place_Call_In_
16717 Object_Declaration to the call.
16718 (Freeze_Type): When the designated type of an RACW was not frozen at the
16719 point where the RACW was declared, validate the primitive operations
16720 with respect to E.2.2(14) when it finally is frozen.
16721 (Build_Initialization_Call,Expand_Record_Controller): Rename
16722 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
16723 return-by-reference has no meaning in Ada 2005.
16724 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
16725 to register tag of the immediate ancestor interfaces in the
16726 run-time structure.
16727 (Init_Secondary_Tags): Moved to the specification to allow the
16728 initialization of extension aggregates with abstract interfaces.
16729 (Build_Master_Renaming): Make public, for use by function declarations
16730 whose return type is an anonymous access type.
16731 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
16732 Insert_List_Before_And_Analyze after the generation of the specs
16733 associated with null procedures.
16734 (Expand_Tagged_Root): Update documentation in its specification.
16735 (Init_Secondary_Tags): Update documentation.
16736 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
16737 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
16738 then generate code to inherit the contents of the dispatch table
16739 directly from the ancestor.
16740 (Expand_Record_Controller): Insert controller component after tags of
16741 implemented interfaces.
16742 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
16743 create null procedure overridings when null procedures are inherited
16744 from interfaces.
16745 (Make_Null_Procedure_Specs): New procedure to generate null procedure
16746 declarations for overriding null primitives inherited from interfaces.
16747 (Is_Null_Interface_Procedure): New function in
16748 Make_Null_Procedure_Specs.
16749 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
16750 immediate ancestor of a tagged type is an abstract interface type we
16751 must generate the specification of the predefined primitives associated
16752 with controlled types (because the dispatch table of the ancestor is
16753 null and hence these entries cannot be inherited). This is required to
16754 elaborate well the dispatch table.
16755
16756 2006-10-31 Javier Miranda <miranda@adacore.com>
16757 Ed Schonberg <schonberg@adacore.com>
16758 Bob Duff <duff@adacore.com>
16759 Gary Dismukes <dismukes@adacore.com>
16760 Robert Dewar <dewar@adacore.com>
16761
16762 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
16763 conversion.
16764 (Expand_N_In): Do validity checks on range
16765 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
16766 (Expand_N_Allocator): For "new T", if the object is constrained by
16767 discriminant defaults, allocate the right amount of memory, rather than
16768 the maximum for type T.
16769 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
16770 when the allocator is initialized by a build-in-place call, since the
16771 allocator is already rewritten as a reference to the function result,
16772 and this prevents an unwanted duplication of the function call.
16773 Add with and use of Exp_Ch6.
16774 (Expand_Allocator_Expresssion): Check for an allocator whose expression
16775 is a call to build-in-place function and apply
16776 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
16777 untagged designated types).
16778 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
16779 optimization if source or target is biased.
16780 (Expand_N_Allocator): Add comments for case of an allocator within a
16781 function that returns an anonymous access type designating tasks.
16782 (Expand_N_Allocator): apply discriminant checks for access
16783 discriminants of anonymous access types (AI-402, AI-416)
16784
16785 2006-10-31 Bob Duff <duff@adacore.com>
16786 Robert Dewar <dewar@adacore.com>
16787 Gary Dismukes <dismukes@adacore.com>
16788 Ed Schonberg <schonberg@adacore.com>
16789
16790 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
16791
16792 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
16793 (Expand_N_Assignment_Statement): Call
16794 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
16795 build-in-place function call. Currently, this can happen only for
16796 assignments that come from aggregates.
16797 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16798 in order to alleviate the upward compatibility introduced by AI-318.
16799 (Expand_N_Extended_Return_Statement): Add support for handling the
16800 return object as a build-in-place result.
16801 (Expand_Non_Function_Return): Implement simple return statements nested
16802 within an extended return.
16803 (Enable_New_Return_Processing): Turn on the new processing of return
16804 statements.
16805 (Expand_Non_Function_Return): For a return within an extended return,
16806 don't raise Program_Error, because Sem_Ch6 now gives a warning.
16807 (Expand_N_Extended_Return_Statement): Implement AI-318
16808 (Expand_Simple_Function_Return): Ditto.
16809 (Expand_N_If_Statement): Handle new -gnatwt warning
16810 (Expand_N_Case_Statement): Handle new -gnatwt warning
16811 (Expand_N_Assignment): Handle assignment to the Priority attribute of
16812 a protected object.
16813 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
16814 validity checking of assignments to elementary record components.
16815 (Expand_N_Return_Statement): return Class Wide types on the secondary
16816 stack independantly of their controlled status since with HIE runtimes,
16817 class wide types are not potentially controlled anymore.
16818
16819 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
16820 node kind.
16821
16822 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
16823 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
16824 it expects a block, procedure, or task. The return statement will get
16825 turned into a block, and Expand_Cleanup_Actions will happen then.
16826
16827 2006-10-31 Robert Dewar <dewar@adacore.com>
16828 Ed Schonberg <schonberg@adacore.com>
16829 Bob Duff <duff@adacore.com>
16830 Gary Dismukes <dismukes@adacore.com>
16831
16832 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
16833 capability.
16834 (Expand_Inlined_Call): Tagged types are by-reference types, and
16835 therefore should be replaced by a renaming declaration in the expanded
16836 body, as is done for limited types.
16837 (Expand_Call): If this is a call to a function with dispatching access
16838 result, propagate tag from context.
16839 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
16840 CPP by default.
16841 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
16842 build-in-place when the right-hand side of an assignment is a
16843 build-in-place function call.
16844 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
16845 of the explicit dereference of the allocator to the result subtype of
16846 the build-in-place function. This is needed to satisfy type checking
16847 in cases where the caller's return object is created by an allocator for
16848 a class-wide access type and the type named in the allocator is a
16849 specific type.
16850 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
16851 conversion of the reference to the declared object to the result subtype
16852 of the build-in-place function. This is needed to satisfy type checking
16853 in cases where the declared object has a class-wide type. Also, in the
16854 class-wide case, change the type of the object entity to the specific
16855 result subtype of the function, to avoid passing a class-wide object
16856 without explicit initialization to the back end.
16857 (Register_Interface_DT_Entry): Moved outside the body of
16858 Freeze_Subprogram because this routine is now public; it is called from
16859 Check_Dispatching_Overriding to handle late overriding of abstract
16860 interface primitives.
16861 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
16862 adding an implicit access actual on a call to a build-in-place function.
16863 (Expand_Actuals): Test for an actual parameter that is a call to a
16864 build-in-place function and apply
16865 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
16866 (Is_Build_In_Place_Function): New function to determine whether an
16867 entity is a function whose calls should be handled as build-in-place.
16868 (Is_Build_In_Place_Function_Call): New function to determine whether an
16869 expression is a function call that should handled as build-in-place.
16870 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
16871 calls to build-in-place functions as the initialization of an allocator.
16872 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
16873 handling calls to build-in-place functions in contexts that do not
16874 involve init of a separate object (for example, actuals of subprogram
16875 calls).
16876 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
16877 handling calls to build-in-place functions as the initialization of an
16878 object declaration.
16879 (Detect_Infinite_Recursion): Add explicit parameter Process to
16880 instantiation of Traverse_Body to avoid unreferenced warning.
16881 (Check_Overriding_Inherited_Interfaces): Removed.
16882 (Register_Interface_DT_Entry): Code cleanup.
16883 (Register_Predefined_DT_Entry): Code cleanup.
16884 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
16885 inlined statements if within a transient scope.
16886 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
16887 formal parameters with occurrences of actuals in inlined body, establish
16888 visibility on the proper view of the actual's subtype for the body's
16889 context.
16890 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
16891 compatibility mode and we have an imported CPP subprogram because
16892 for now we assume that imported CPP primitives correspond with
16893 objects whose constructor is in the CPP side (and therefore we
16894 don't need to generate code to register them in the dispatch table).
16895 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
16896 aligned selected component.
16897 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
16898 the actual of an in-mode parameter is a type conversion.
16899 (Expand_Actuals): If the call does not come from source and the actual
16900 is potentially misaligned, let gigi handle it rather than rejecting the
16901 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
16902 Class Wide types as returning by reference independantly of their
16903 controlled status since with HIE runtimes class wide types are not
16904 potentially controlled anymore.
16905
16906 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16907
16908 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
16909 references that are private components of the protected object.
16910 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
16911 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
16912 instantiation to deal with warnings.
16913 (Initialize_Protection): If expression for priority is non-static, use
16914 System_Priority as its expected type, in case the expression has not
16915 been analyzed yet.
16916
16917 2006-10-31 Robert Dewar <dewar@adacore.com>
16918
16919 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
16920 initialization of Homonym_Len.
16921 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
16922 names from fully qualified name. Fixes problem of duplicate
16923 external names differing only in the presence of such a block name.
16924
16925 2006-10-31 Thomas Quinot <quinot@adacore.com>
16926 Pablo Oliveira <oliveira@adacore.com>
16927
16928 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
16929 subprogram Ids, even if they are not yet assigned.
16930 (Build_Subprogram_Id): It is now this function that will take care of
16931 calling Assign_Subprogram_Ids if necessary.
16932 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
16933 should be done only once they are assigned.
16934 (Build_From_Any_Function, case of tagged types): Add missing call to
16935 Allocate_Buffer.
16936 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
16937 type for an RACW type.
16938 (Add_RACW_Features): When processing an RACW declaration for which the
16939 designated type is already frozen, enforce E.2.2(14) rules immediately.
16940 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16941 special reordering of controlling formals.
16942
16943 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16944 associated stub type for an RACW type.
16945
16946 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16947
16948 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16949 fixed-point operations in an integer context, i.e. as operands of a
16950 conversion to an integer type, indicate that result must be rounded.
16951
16952 2006-10-31 Robert Dewar <dewar@adacore.com>
16953
16954 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16955 cases, pass the encoding method, since it is now required by the run
16956 time.
16957
16958 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16959 assumption that Str'First = 1.
16960 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16961 it on to the Value_Wide_Wide_Character call.
16962 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16963 properly handles a string of the form quote-encoded_wide_char-quote.
16964
16965 * s-wchcnv.adb: Minor reformatting
16966
16967 2006-10-31 Javier Miranda <miranda@adacore.com>
16968
16969 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16970 run-time membership test to ensure that the constructed object
16971 implements the target abstract interface.
16972
16973 2006-10-31 Robert Dewar <dewar@adacore.com>
16974
16975 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16976 Machine_Attribute pragma internally to implement the user pragma.
16977 Add processing for pragma Interface so that it is now completely
16978 equivalent to pragma Import.
16979
16980 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16981 so that it can be applied to all entities, including record components
16982 and enumeration literals.
16983 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16984 priority ranges are correct, verify compatibility against task
16985 dispatching and locking policies, and if everything is correct an entry
16986 is added to the table containing priority specific dispatching entries
16987 for this compilation unit.
16988 (Delay_Config_Pragma_Analyze): Delay processing
16989 Priority_Specific_Dispatching pragmas because when processing the
16990 pragma we need to access run-time data, such as the range of
16991 System.Any_Priority.
16992 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16993 Allow pragma Unreferenced as a context item
16994 Add pragma Preelaborable_Initialization
16995 (Analyze_Pragma, case Interface): Interface is extended so that it is
16996 now syntactically and semantically equivalent to Import.
16997 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16998 insertion characters.
16999 Add handling for Pragma_Wide_Character_Encoding
17000 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17001 never supercedes a real restriction, and that a real restriction
17002 always supercedes a warning.
17003 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17004 appropriate form.
17005
17006 2006-10-31 Bob Duff <duff@adacore.com>
17007 Ed Schonberg <schonberg@adacore.com>
17008 Robert Dewar <dewar@adacore.com>
17009
17010 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17011 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17012 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17013 in Ada 2005.
17014 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17015 type of the function containing a return statement, because the
17016 Return_Type field was removed. We now use the Return_Applies_To field.
17017
17018 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17019 (Build_Task_Image_Decl): If procedure is not called from an
17020 initialization procedure, indicate that function that builds task name
17021 uses the sec. stack. Otherwise the enclosing initialization procedure
17022 will carry the indication.
17023 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17024 N_Object_Declaration instead.
17025 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17026 conditional dead code killed, and change implementation accordingly.
17027 (Insert_Actions): Add N_Return_Object_Declaration case.
17028 Correct comment to mention N_Extension_Aggregate node.
17029 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17030 attempts to save information for global variables which cannot be
17031 safely tracked.
17032 (Get_Current_Value_Condition): Handle conditions the other way round
17033 (constant on left). Also handle right operand of AND and AND THEN
17034 (Set_Current_Value_Condition): Corresponding changes
17035 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17036 (Get_Current_Value_Condition): Handle simple boolean operands
17037 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17038 (Get_Current_Value_Condition): If the variable reference is within an
17039 if-statement, does not appear in the list of then_statments, and does
17040 not come from source, treat it as being at unknown location.
17041 (Get_Current_Value_Condition): Enhance to allow while statements to be
17042 processed as well as if statements.
17043 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17044 come from source.
17045 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17046 of loop. This is safe now that we fixed Kill_Current_Values.
17047 (OK_To_Do_Constant_Replacement): Check whether current scope is
17048 Standard, before examining outer scopes.
17049
17050 2006-10-31 Vincent Celier <celier@adacore.com>
17051
17052 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17053 When True, apply VMS treatment to children of packages A, G, I and S.
17054 For F320-016
17055
17056 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17057
17058 2006-10-31 Robert Dewar <dewar@adacore.com>
17059 Ed Schonberg <schonberg@adacore.com>
17060
17061 * freeze.adb: Add handling of Last_Assignment field
17062 (Warn_Overlay): Supply missing continuation marks in error msgs
17063 (Freeze_Entity): Add check for Preelaborable_Initialization
17064
17065 * g-comlin.adb: Add Warnings (Off) to prevent new warning
17066
17067 * g-expect.adb: Add Warnings (Off) to prevent new warning
17068
17069 * lib-xref.adb: Add handling of Last_Assignment field
17070 (Generate_Reference): Centralize handling of pragma Obsolescent here
17071 (Generate_Reference): Accept an implicit reference generated for a
17072 default in an instance.
17073 (Generate_Reference): Accept a reference for a node that is not in the
17074 main unit, if it is the generic body corresponding to an subprogram
17075 instantiation.
17076
17077 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17078
17079 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17080 -gnatwq/Q.
17081 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17082 exception handler.
17083 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17084 use clauses, to avoid messages on packages used to qualify, and also
17085 to avoid messages from obsolescent units.
17086 (Warn_On_Useless_Assignments): Don't generate messages for imported
17087 and exported variables.
17088 (Warn_On_Useless_Assignments): New procedure
17089 (Output_Obsolescent_Entity_Warnings): New procedure
17090 (Check_Code_Statement): New procedure
17091
17092 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17093 Change name Is_Ada_2005 to Is_Ada_2005_Only
17094 (Last_Assignment): New field for useless assignment warning
17095
17096 2006-10-31 Olivier Hainque <hainque@adacore.com>
17097
17098 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17099 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17100
17101 2006-10-31 Bob Duff <duff@adacore.com>
17102 Robert Dewar <dewar@adacore.com>
17103 Ed Schonberg <schonberg@adacore.com>
17104
17105 * g-awk.adb (Default_Session, Current_Session): Compile this file in
17106 Ada 95 mode, because it violates the new rules for AI-318.
17107
17108 * g-awk.ads: Use overloaded subprograms in every case where we used to
17109 have a default of Current_Session. This makes the code closer to be
17110 correct for both Ada 95 and 2005.
17111
17112 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17113 code, relying on the fact that the compiler generates a warning
17114 instead of an error in -gnatg mode.
17115
17116 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17117 E_Return_Statement entity kind.
17118 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17119
17120 * par.adb (P_Interface_Type_Definition): Addition of one formal to
17121 report an error if the reserved word abstract has been previously found.
17122 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17123
17124 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17125 parenthesized range attribute usage
17126 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17127
17128 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17129 in the syntax for extended_return_statement. This is not in the latest
17130 RM, but the ARG is expected to issue an AI allowing this.
17131 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17132 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17133 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17134 P_Return_Statement): Parse the new syntax for extended_return_statement.
17135
17136 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17137 Output_End_Missing): Add error-recovery code for the new
17138 extended_return_statement syntax; that is, the new E_Return entry on
17139 the scope stack.
17140
17141 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17142 limited to nonlimited, because otherwise we violate the new Ada 2005
17143 rules about returning limited types in function Create_AST_Handler in
17144 s-asthan.adb.
17145
17146 * sem.adb (Analyze): Add cases for new node kinds
17147 N_Extended_Return_Statement and N_Return_Object_Declaration.
17148
17149 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17150 type is in the same category as type of context before applying check,
17151 to prevent anomalies in instantiations.
17152 (Resolve_Aggregate): Remove test for limited components in aggregates.
17153 It's unnecessary in Ada 95, because if it has limited components, then
17154 it must be limited. It's wrong in Ada 2005, because limited aggregates
17155 are now allowed.
17156 (Resolve_Record_Aggregate): Move check for limited types later, because
17157 OK_For_Limited_Init requires its argument to have been resolved.
17158 (Get_Value): When copying the component default expression for a
17159 defaulted association in an aggregate, use the sloc of the aggregate
17160 and not that of the original expression, to prevent spurious
17161 elaboration errors, when the expression includes function calls.
17162 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17163 were missing. We also didn't handle qualified expressions. Now also
17164 allow function calls. Use new common routine OK_For_Limited_Init.
17165 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17166 with space can upper case letter).
17167
17168 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17169 Has_Static_Discriminants flag
17170 (Record_Type_Declaration): Diagnose an attempt to declare an interface
17171 type with discriminants.
17172 (Process_Range_Expr_In_Decl): Do validity checks on range
17173 (Build_Discriminant_Constraints): Use updated form of
17174 Denotes_Discriminant.
17175 (Process_Subtype): If the subtype is a private subtype whose full view
17176 is a concurrent subtype, introduce an itype reference to prevent scope
17177 anomalies in gigi.
17178 (Build_Derived_Record_Type, Collect_Interface_Primitives,
17179 Record_Type_Declaration): The functionality of the subprograms
17180 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17181 is now performed by a single routine.
17182 (Build_Derived_Record_Type): If the type definition includes an explicit
17183 indication of limitedness, then the type must be marked as limited here
17184 to ensure that any access discriminants will not be treated as having
17185 a local anonymous access type.
17186 (Check_Abstract_Overriding): Issue a detailed error message when an
17187 abstract subprogram was not overridden due to incorrect mode of its
17188 first parameter.
17189 (Analyze_Private_Extension_Declaration): Add support for the analysis of
17190 synchronized private extension declarations. Verify that the ancestor is
17191 a limited or synchronized interface or in the generic case, the ancestor
17192 is a tagged limited type or synchronized interface and all progenitors
17193 are either limited or synchronized interfaces.
17194 Derived_Type_Declaration): Check for presence of private extension when
17195 dealing with synchronized formal derived types.
17196 Process_Full_View): Enchance the check done on the usage of "limited" by
17197 testing whether the private view is synchronized.
17198 Verify that a synchronized private view is completed by a protected or
17199 task type.
17200 (OK_For_Limited_Init_In_05): New function.
17201 (Analyze_Object_Declaration): Move check for limited types later,
17202 because OK_For_Limited_Init requires its argument to have been resolved.
17203 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17204 in order to alleviate the upward compatibility introduced by AI-318.
17205 (Constrain_Corresponding_Record): If the constraint is for a component
17206 subtype, mark the itype as frozen, to avoid out-of-scope references to
17207 discriminants in the back-end.
17208 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17209 this subprogram against wrong sources.
17210 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17211 discriminant of limited type completed with a protected type, when the
17212 discriminant is used to constrain a private component of the type, and
17213 expansion is disabled.
17214 (Find_Type_Of_Object): Do not treat a return subtype that is an
17215 anonymous subtype as a local_anonymous_type, because its accessibility
17216 level is the return type of the enclosing function.
17217 (Check_Initialization): In -gnatg mode, turn the error "cannot
17218 initialize entities of limited type" into a warning.
17219 (OK_For_Limited_Init): Return true for generated nodes, since it
17220 sometimes violates the legality rules.
17221 (Make_Incomplete_Declaration): If the type for which an incomplete
17222 declaration is created happens to be the currently visible entity,
17223 preserve the homonym chain when removing it from visibility.
17224 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17225 inherited subprograms.
17226 (Access_Definition): If this is an access to function that is the return
17227 type of an access_to_function definition, context is a type declaration
17228 and the scope of the anonymous type is the current one.
17229 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17230 incomplete subtype to the set of private dependents of the original
17231 incomplete type.
17232 (Constrain_Discriminated_Type): Emit an error message whenever an
17233 incomplete subtype is being constrained.
17234 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17235 corresponding subtype of the full view of the original incomplete type.
17236 (Check_Incomplete): Properly detect invalid usage of incomplete types
17237 and subtypes.
17238
17239 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17240
17241 * g-catiio.ads, g-catiio.adb (Value): New function.
17242 Given an input String, try and parse a valid Time value.
17243
17244 2006-10-31 Vincent Celier <celier@adacore.com>
17245
17246 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17247 Integer_Address arithmetic, as in Set_Valid.
17248
17249 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17250 Robert Dewar <dewar@adacore.com>
17251
17252 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17253 handling executable extension manually and duplicating code.
17254
17255 * make.adb: Implement new -S switch
17256 (Gnatmake): Use new function Osint.Executable_Name instead
17257 of handling executable extension manually.
17258
17259 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17260 is specified, the executable name ends with this suffix.
17261 Take advantage of Osint.Executable_Name instead of duplicating code.
17262
17263 * switch-m.adb: Recognize new gnatmake -S switch
17264
17265 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17266 variable.
17267 (Get_Target_Parameters): Set Executable_Extension_On_Target if
17268 available.
17269
17270 * makeusg.adb: Add line for gnatmake -S switch
17271
17272 2006-10-31 Vincent Celier <celier@adacore.com>
17273
17274 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17275 call it with -static-libgcc, as there are some platforms, such as
17276 Darwin, where one of these two switches is compulsory to link.
17277
17278 2006-10-31 Vincent Celier <celier@adacore.com>
17279
17280 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17281 instead of ADA_PROJECT_PATH, for the project path.
17282 (Gnatls): When displaying the project path directories, use host dir
17283 specs.
17284
17285 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17286 names in the project path, as absolute paths may correspond to
17287 multi-valued VMS logical names.
17288
17289 2006-10-31 Vincent Celier <celier@adacore.com>
17290
17291 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
17292 absolute path name.
17293 (Locate_Regular_File): Ditto
17294 (Change_Dir): Remove, no longer used
17295 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
17296 on Windows. Get it calling Get_Current_Dir.
17297 (OpenVMS): Remove imported boolean, no longer needed.
17298 (Normalize_Pathname)[VMS]: Do not resolve directory names.
17299 (Pid_To_Integer): New function to convert a Process_Id to Integer
17300
17301 2006-10-31 Thomas Quinot <quinot@adacore.com>
17302
17303 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
17304 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
17305 to No_Socket.
17306 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
17307 W_Sig_Socket.
17308
17309 2006-10-31 Robert Dewar <dewar@adacore.com>
17310
17311 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
17312 initial letter o as a zero.
17313
17314 2006-10-31 Robert Dewar <dewar@adacore.com>
17315
17316 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
17317
17318 2006-10-31 Robert Dewar <dewar@adacore.com>
17319
17320 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
17321 variant records
17322 (Layout_Variant_Record): Retrieve the discriminants from the entity
17323 rather than from the type definition, because in the case of a full
17324 type for a private type we need to take the discriminants from the
17325 partial view.
17326 (Layout_Component_List): When applying the Max operator to variants with
17327 a nonstatic size, check whether either operand is static and scale that
17328 operand from bits to storage units before applying Max.
17329 (Layout_Type): In VMS, if a C-convention access type has no explicit
17330 size clause (and does not inherit one in the case of a derived type),
17331 then the size is reset to 32 from 64.
17332
17333 2006-10-31 Vincent Celier <celier@adacore.com>
17334
17335 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
17336 its file has already been loaded, according to the unit being loaded,
17337 not to the current value of Multiple_Unit_Index.
17338
17339 2006-10-31 Thomas Quinot <quinot@adacore.com>
17340 Eric Botcazou <ebotcazou@adacore.com>
17341 Arnaud Charlet <charlet@adacore.com>
17342
17343 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
17344 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
17345 possible.
17346 (a-except.o): Pass it to the compiler.
17347 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
17348 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
17349 a-calend-mingw.adb version.
17350
17351 * Makefile.rtl: Added s-dsaser.
17352 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
17353 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
17354 Ada.Dispatching.Round_Robin.
17355 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
17356
17357 * Make-lang.in: Remove all references to gt-ada-decl.h.
17358 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
17359 sources.
17360 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
17361 Update dependencies.
17362
17363 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
17364
17365 2006-10-31 Vincent Celier <celier@adacore.com>
17366
17367 * mlib-utl.adb (Initialized): Remove, no longer used
17368 (Initialize): Remove, no longer used
17369 (Ar): If Ar_Exec is null, get the location of the archive builder and,
17370 if there is one, the archive indexer. Fail if the archive builder cannot
17371 be found.
17372 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
17373 be found.
17374
17375 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17376
17377 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
17378 Process_Body_Clauses): If the context of a body includes a use clause
17379 for P.Q then a with_clause for P in the same body is not redundant,
17380 even if the spec also has a with_clause on P.
17381 Add missing continuation mark to error msg
17382 (Build_Limited_Views): A limited view of a type is tagged if its
17383 declaration includes a record extension.
17384 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
17385 node, even if the subunit has errors. This avoids malfunction by
17386 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
17387 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
17388 generation of obsolescent messages for with statements (cannot do
17389 this too early, or we cannot implement avoiding the messages in the
17390 case of obsolescent units withing obsolescent units).
17391 (Install_Siblings): If the with_clause is on a remote descendant of
17392 an ancestor of the current compilation unit, find whether there is
17393 a sibling child unit that is immediately visible.
17394 (Remove_Private_With_Clauses): New procedure, invoked after completing
17395 the analysis of the private part of a nested package, to remove from
17396 visibility the private with_clauses of the enclosing package
17397 declaration.
17398 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
17399 now centralized in Generate_Reference.
17400 (Install_Limited_Context_Clauses): Remove superfluous error
17401 message associated with unlimited view visible through use
17402 and renamings. In addition, at the point in which the error
17403 is reported, we add the backslash to the text of the error
17404 to ensure that it is reported as a single error message.
17405 Use new // insertion for some continuation messages
17406 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
17407 to create implicit with_clause for parent unit mentioned in original
17408 limited_with_clause.
17409 (Install_Limited_With_Unit): Set entity of parent identifiers if the
17410 unit is a child unit. For ASIS queries.
17411 (Analyze_Subunit): If the subunit appears within a child unit, make all
17412 ancestor child units directly visible again.
17413
17414 2006-10-31 Robert Dewar <dewar@adacore.com>
17415
17416 * par-ch10.adb (P_Context_Clause): Minor error message fix
17417
17418 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17419 Javier Miranda <miranda@adacore.com>
17420
17421 * par-ch12.adb: Grammar update and cleanup.
17422 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
17423 support for synchronized derived type definitions.
17424 Add the new actual Abstract_Present to every call to
17425 P_Interface_Type_Definition.
17426 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
17427 a formal object declaration with an access definition or a subtype mark
17428 with a null exclusion.
17429 (P_Generic_Association): Handle association with box, and others_choice
17430 with box, to support Ada 2005 partially parametrized formal packages.
17431
17432 2006-10-31 Robert Dewar <dewar@adacore.com>
17433 Javier Miranda <miranda@adacore.com>
17434
17435 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
17436 (P_Type_Declaration): Remove barrier against the reserved word "limited"
17437 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
17438 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
17439 private extensions.
17440 (P_Type_Declaration): Add the new actual Abstract_Present to every call
17441 to P_Interface_Type_Definition.
17442 (P_Interface_Type_Definition): Addition of one formal to report an error
17443 if the reserved word abstract has been previously found.
17444 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
17445 object renaming declaration with an access definition or subtype mark
17446 with a possible null exclusion.
17447
17448 * par-ch9.adb: Minor error msg fix
17449
17450 * par-load.adb: Add missing continuation mark to error msg
17451
17452 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
17453
17454 2006-10-31 Vincent Celier <celier@adacore.com>
17455
17456 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
17457 unknown attribute in unknown package or in package that does not need
17458 to be checked.
17459 (Parse_Package_Declaration): Do not issue warning for unknown package in
17460 quiet output.
17461
17462 2006-10-31 Vincent Celier <celier@adacore.com>
17463
17464 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
17465 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
17466 Packages_To_Check.
17467
17468 2006-10-31 Vincent Celier <celier@adacore.com>
17469
17470 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
17471 on VMS, change "__" to '.' before checking the name.
17472 (Record_Ada_Source): Always add the source file name in the list of
17473 of sources, even if it is not the first time, as it is for another
17474 source index.
17475 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
17476 dot, instead of replacing only the first '_'.
17477
17478 * prj-part.adb (Parse): Convert project file path to canonical form
17479
17480 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
17481 extended, the project id of the project extending it is recorded in its
17482 data, even when it has already been processed as an imported project.
17483
17484 2006-10-31 Robert Dewar <dewar@adacore.com>
17485
17486 * repinfo.adb (List_Entities): Don't list entities from renaming
17487 declarations.
17488
17489 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17490 Robert Dewar <dewar@adacore.com>
17491
17492 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
17493 only a restriction warning is active for the given restriction. This is
17494 desirable because we do not want to modify code in the case where only
17495 a warning is set.
17496 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
17497 causes overriding of real restrictions.
17498 Take advantage of new No_Restrictions constant.
17499
17500 * raise.h: (__gnat_set_globals): Change profile.
17501
17502 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17503
17504 * rtsfind.adb: Remove s-polint from comment as it exists no more.
17505
17506 * rtsfind.ads:
17507 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
17508 Move all the entities in obsolete package System.PolyORB_Interface to
17509 System.Partition_Interface.
17510 (RE_Storage_Size): New function in System.Tasking.
17511 (RE_Get_Ceiling): New entity.
17512 (RE_Set_Ceiling): New entity.
17513 (RO_PE_Get_Ceiling): New entity.
17514 (RO_RE_Set_Ceiling): New entity.
17515 (Inherit_CPP_DT): New entity
17516
17517 2006-10-31 Robert Dewar <dewar@adacore.com>
17518
17519 * scng.adb (Scan, case of numeric literal): Better msg for identifier
17520 starting with a digit.
17521
17522 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17523 Thomas Quinot <quinot@adacore.com>
17524 Javier Miranda <miranda@adacore.com>
17525 Gary Dismukes <dismukes@adacore.com>
17526
17527 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
17528 properly an attempt to apply Unchecked_Access to a protected operation.
17529 (OK_Self_Reference): New subprogram to check the legality of an access
17530 attribute whose prefix is the type of an enclosing aggregate.
17531 Generalizes previous mechanism to handle attribute references nested
17532 arbitrarily deep within the aggregate.
17533 (Analyze_Access_Attribute): An access attribute whose prefix is a type
17534 can appear in an aggregate if this is a default-initialized aggregate
17535 for a self-referential type.
17536 (Resolve_Attribute, case Access): Ditto.
17537 Add support for new implementation defined attribute Stub_Type.
17538 (Eval_Attribute, case Attribute_Stub_Type): New case.
17539 (Analyze_Attribute, case Attribute_Stub_Type): New case.
17540 (Stream_Attribute_Available): Implement using new subprogram from
17541 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
17542 Has_Specified_Stream_Attribute flag.
17543 Disallow Storage_Size and Storage_Pool for access to subprogram
17544 (Resolve_Attribute, case 'Access et al): Take into account anonymous
17545 access types of return subtypes in extended return statements. Remove
17546 accessibility checks on anonymous access types when Unchecked_Access is
17547 used.
17548 (Analyze_Attribute): Add support for the use of 'Class to convert
17549 a class-wide interface to a tagged type.
17550 Add support for the attribute Priority.
17551 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
17552 whether the designated type is discriminated with a constrained partial
17553 view and require static matching in that case.
17554 Add local variable Des_Btyp. The Designated_Type
17555 of an access to incomplete subtype is either its non-limited view if
17556 coming from a limited with or its etype if regular incomplete subtype.
17557
17558 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
17559 Fix predicate to identify and allow cases of (expander-generated)
17560 references to tag of designated object of a RACW.
17561 (Validate_Static_Object_Name): In Ada 2005, a formal object is
17562 non-static, and therefore cannot appear as a primary in a preelaborable
17563 package.
17564 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
17565 Has_Read_Write_Attributes.
17566 (Has_Read_Write_Attributes): Reimplement in termes of
17567 Has_Stream_Attribute_Definition.
17568 (Missing_Read_Write_Attributes): When checking component types in a
17569 record, unconditionally call Missing_Read_Write_Attributes recursively
17570 (remove guard checking for Is_Record_Type / Is_Access_Type).
17571
17572 2006-10-31 Robert Dewar <dewar@adacore.com>
17573
17574 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
17575 useless assignments here and conditionalize it on absence of exception
17576 handlers.
17577 (Analyze_Exception_Handlers): Small code reorganization of error
17578 detection code, for new handling of formal packages.
17579
17580 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17581 Hristian Kirtchev <kirtchev@adacore.com>
17582
17583 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
17584 that has been constant-folded, preserve information of original tree,
17585 for ASIS uses.
17586 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
17587 generated private extension declaration if the formal derived type is
17588 synchronized. Carry synchronized present over to the generated private
17589 extension.
17590 (Validate_Derived_Type_Instance): Ensure that the actual of a
17591 synchronized formal derived type is a synchronized tagged type.
17592 (Instantiate_Formal_Package): When creating the instantiation used to
17593 validate the actual package of a formal declared without a box, check
17594 whether the formal itself depends on a prior actual.
17595 (Instantiate_Formal_Subprogram): Create new entities for the defining
17596 identifiers of the formals in the renaming declaration, for ASIS use.
17597 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
17598 a renaming declaration or a subtype declaration for an actual in an
17599 instance, capture location information of declaration in generic, for
17600 ASIS use.
17601 (Instantiate_Formal_Package): Add comments on needed additional tests.
17602 AI-317 (partial parametrization) is fully implemented.
17603 (Validate_Private_Type_Instance): Add check for actual which
17604 must have preelaborable initialization
17605 Use new // insertion for some continuation messages
17606 (Analyze_Formal_Object_Declaration): Change usage of Expression to
17607 Default_Expression. Add type retrieval when the declaration has an
17608 access definition. Update premature usage of incomplete type check.
17609 (Check_Access_Definition): New subsidiary routine. Check whether the
17610 current compilation version is Ada 05 and the supplied node has an
17611 access definition.
17612 (Instantiate object): Alphabetize local variables. Handle the creation
17613 of new renaming declarations with respect to the kind of definition
17614 used - either an access definition or a subtype mark. Guard against
17615 unnecessary error message in the context of anonymous access types after
17616 they have been resolved. Add check for required null exclusion in a
17617 formal object declaration.
17618 (Switch_View): A private subtype of a non-private type needs to be
17619 switched (the base type can have been switched without its private
17620 dependents because of the last branch of Check_Private_View.
17621 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
17622 value from BT.
17623 (Instantiate_Type): Emit an error message whenever a class-wide type of
17624 a tagged incomplete type is used as a generic actual.
17625 (Find_Actual_Type): Extend routine to handle a component type in a child
17626 unit that is imported from a formal package in a parent.
17627 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
17628 agree on constrainedness, rather than checking against ultimate ancestor
17629 (Instantiate_Subprogram_Body): Create a cross-reference link to the
17630 generic body, for navigation purposes.
17631
17632 2006-10-31 Robert Dewar <dewar@adacore.com>
17633 Thomas Quinot <quinot@adacore.com>
17634
17635 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
17636 type.
17637 (New_Stream_Subprogram): When processing an attribute definition clause
17638 for a stream-oriented subprogram, record an entity node occurring at
17639 the point of clause to use for checking the visibility of the clause,
17640 as defined by 8.3(23) as amended by AI-195.
17641 (New_Stream_Subprogram): New procedure, factoring behaviour from both
17642 New_Stream_Function and New_Stream_Procedure.
17643 (New_Stream_Function, New_Stream_Procedure): Removed.
17644 (Analyze_Attribute_Definition_Clause, case Address): Check new
17645 Alignment_Check check
17646
17647 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17648 Javier Miranda <miranda@adacore.com>
17649 Robert Dewar <dewar@adacore.com>
17650
17651 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
17652 generate the same errors compiling under -gnatc.
17653 (Try_Object_Operation): If no candidate interpretation succeeds, but
17654 there is at least one primitive operation with the right name, report
17655 error in call rather than on a malformed selected component.
17656 (Analyze_Selected_Component): If the prefix is an incomplete type from
17657 a limited view, and the full view is available, use the full view to
17658 determine whether this is a prefixed call to a primitive operation.
17659 (Operator_Check): Verify that a candidate interpretation is a binary
17660 operation before checking the type of its second formal.
17661 (Analyze_Call): Add additional warnings for function call contexts not
17662 yet supported.
17663 (Analyze_Allocator): Move the check for "initialization not allowed for
17664 limited types" after analyzing the expression. This is necessary,
17665 because OK_For_Limited_Init looks at the structure of the expression.
17666 Before analysis, we don't necessarily know what sort of expression it
17667 is. For example, we don't know whether F(X) is a function call or an
17668 indexed component; the former is legal in Ada 2005; the latter is not.
17669 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
17670 were missing. We also didn't handle qualified expressions. Now also
17671 allow function calls. Use new common routine OK_For_Limited_Init.
17672 (Analyze_Type_Conversion): Do not perform some legality checks in an
17673 instance, because the error message will be redundant or spurious.
17674 (Analyze_Overloaded_Selected_Component): Do not do style check when
17675 setting an entity, since we do not know it is the right entity yet.
17676 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
17677 (Analyze_Overloaded_Selected_Component): Same change
17678 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
17679 since regular incomplete subtypes are transformed into corresponding
17680 subtypes of their full views.
17681 (Complete_Object_Operation): Treat name of transformed subprogram call
17682 as coming from source, for browsing purposes.
17683 (Try_Primitive_Operation): If formal is an access parameter, compare
17684 with base type of object to determine whether it is a primitive
17685 operation.
17686 (Operator_Check): If no interpretation of the operator matches, check
17687 whether a use clause on any candidate might make the operation legal.
17688 (Try_Class_Wide_Operation): Check whether the first parameter is an
17689 access type whose designated type is class-wide.
17690
17691 2006-10-31 Robert Dewar <dewar@adacore.com>
17692 Ed Schonberg <schonberg@adacore.com>
17693 Gary Dismukes <dismukes@adacore.com>
17694
17695 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
17696 warn on infinite loops.
17697 Add \\ to some continuation messages
17698 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
17699 (Process_Bounds): If the bounds are integer literals that result from
17700 constant-folding, and they carry a user-defined type, preserve that type
17701 rather than treating this as an integer range.
17702 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
17703 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
17704 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
17705 left hand side of assignment.
17706 (Analyze_Assignment): Add suport to manage assigments to the attribute
17707 priority of a protected object.
17708 (Check_Possible_Current_Value_Condition): Allow fully qualified names
17709 not just identifiers.
17710 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
17711 or AND THEN for possible tracking.
17712 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
17713 case of while loops so we can track values in the loop body.
17714
17715 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17716 Hristian Kirtchev <kirtchev@adacore.com>
17717 Bob Duff <duff@adacore.com>
17718
17719 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
17720 procedure cannot be a protected operation (it is a basic_declaration,
17721 not a subprogram_declaration).
17722 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
17723 Subp. Add logic for entry processing.
17724 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
17725 Determine whether an entry or subprogram of a protected or task type
17726 override an inherited primitive of an implemented interface.
17727 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
17728 Update the actual used in calls to Check_Overriding_Indicator.
17729 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
17730 generate the proper reference to the parent unit, for cross-reference.
17731 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
17732 Is_Formal.
17733 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17734 (Add_Extra_Formal): Revise procedure to allow passing in associated
17735 entity, scope, and name suffix, and handle setting of the new
17736 Extra_Formals field.
17737 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
17738 pass new parameters. Add support for adding the new extra access formal
17739 for functions whose calls are treated as build-in-place.
17740 (Analyze_A_Return_Statement): Correct casing in error message.
17741 Move Pop_Scope to after Analyze_Function_Return, because an extended
17742 return statement really is a full-fledged scope. Otherwise, visibility
17743 doesn't work right. Correct use of "\" for continuation messages.
17744 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
17745 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
17746 the node doesn't get properly marked as analyzed.
17747 (Analyze_Subprogram_Body): If subprogram is a function that returns
17748 an anonymous access type that denotes a task, build a Master Entity
17749 for it.
17750 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
17751 proper usage of null exclusion in a result definition.
17752 (Process_Formals): Code cleanup and new error message.
17753 (Process_Formals): Detect incorrect application of null exclusion to
17754 non-access types.
17755 (Conforming_Types): Handle conformance between [sub]types and itypes
17756 generated for entities that have null exclusions applied to them.
17757 (Maybe_Primitive_Operation): Add an additional type retrieval when the
17758 base type is an access subtype. This case arrises with null exclusions.
17759 (New_Overloaded_Entity): Do not remove the overriden entity from the
17760 homonym chain if it corresponds with an abstract interface primitive.
17761 (Process_Formals): Replace membership test agains Incomplete_Kind with a
17762 call to the synthesized predicate Is_Incomplete_Type.
17763 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
17764 primitives.
17765 (Analyze_Subprogram_Declaration): Check that abstract interface
17766 primitives are abstract or null.
17767 (Analyze_Subprogram_Specification): Remove previous check for abstract
17768 interfaces because it was not complete.
17769 (Has_Interface_Formals): Removed.
17770
17771 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17772 Javier Miranda <miranda@adacore.com>
17773
17774 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
17775 of Analyze_Package_Body, to create Itype references for anonymous
17776 access types created in the package declaration, whose designated types
17777 may have only a limited view.
17778 (Analyze_Package_Specification): For the private part of a nested
17779 package, install private_with_clauses of enclosing compilation unit if
17780 we are in its visible part.
17781 (Declare_Inherited_Private_Subprograms): Complete barrier
17782 to ensure that the primitive operation has an alias to some parent
17783 primitive. This is now required because, after the changes done for the
17784 implementation of abstract interfaces, the contents of the list of
17785 primitives has entities whose alias attribute references entities of
17786 such list of primitives.
17787 (Analyze_Package_Specification): Simplify code that handles parent units
17788 of instances and formal packages.
17789 (Uninstall_Declarations): Check the convention consistency among
17790 primitive overriding operations of a tagged record type.
17791
17792 2006-10-31 Robert Dewar <dewar@adacore.com>
17793 Hristian Kirtchev <kirtchev@adacore.com>
17794 Javier Miranda <miranda@adacore.com>
17795 Ed Schonberg <schonberg@adacore.com>
17796
17797 * sem_ch8.adb: Minor error msg rewording
17798 (Undefined): When checking for misspellings, invert arguments (to get
17799 expected and found set right)
17800 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
17801 (Analyze_Generic_Renaming): Same fix
17802 (Use_One_Package): Do not take into account the internal entities of
17803 abstract interfaces during the analysis of entities that are marked
17804 as potentially use-visible.
17805 (Find_Type): Handle the case of an attribute reference for
17806 implementation defined attribute Stub_Type (simply let the analysis of
17807 the attribute reference rewrite it).
17808 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
17809 type that appears in a Use_Type clause.
17810 (Analyze_Object_Renaming): Add support for renaming of the Priority
17811 attribute.
17812 (Find_Type): In Ada 2005, a task type can be used within its own body,
17813 when it appears in an access definition.
17814 (Analyze_Object_Renaming): Remove warning on null_exclusion.
17815 (Analyze_Object_Renaming): Introduce checks for required null exclusion
17816 in a formal object declaration or in a subtype declaration.
17817 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
17818 (Check_Null_Exclusion): New local routine to
17819 Analyze_Subprogram_Renaming. Check whether the formals and return
17820 profile of a renamed subprogram have required null exclusions when
17821 their counterparts of the renaming already impose them.
17822 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
17823 Determine whether an entity is inside a generic scope.
17824 (In_Open_Scope): First pass of documentation update.
17825 (Find_Expanded_Name): Add support for shadow entities associated with
17826 limited withed packages. This is required to handle nested packages.
17827 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
17828 that makes a renaming of a limited withed package illegal.
17829
17830 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17831 Ed Schonberg <schonberg@adacore.com>
17832
17833 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
17834 Check_Overriding_Indicator.
17835 (Analyze_Task_Definition): Ditto.
17836 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
17837 (Check_Overriding_Indicator): To find overridden interface operation,
17838 examine only homonyms that have an explicit subprogram declaration, not
17839 inherited operations created by an unrelated type derivation.
17840 (Check_Overriding_Indicator): When checking for the presence of "null"
17841 in a procedure, ensure that the queried node is a procedure
17842 specification.
17843 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
17844 type when the formal is an access to variable.
17845 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
17846 (Analyze_Task_Type): Same addition
17847 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
17848 provide navigation capabilities for entries.
17849
17850 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17851 Ed Schonberg <schonberg@adacore.com>
17852 Javier Miranda <miranda@adacore.com>
17853 Gary Dismukes <dismukes@adacore.com>
17854
17855 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
17856 inherited from an interface ancestor by another interface in the
17857 context of an instance as 'late'.
17858 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
17859 of a call to a function that dispatches on access result.
17860 (Check_Dispatching_Operation): In case of late overriding of a primitive
17861 that covers abstract interface subprograms we register it in all the
17862 secondary dispatch tables associated with abstract interfaces.
17863 (Check_Dispatching_Call): Add check that a dispatching call is not made
17864 to a function with a controlling result of a limited type. This is a
17865 current implementation restriction.
17866 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
17867 (Check_Dispatching_Operation): Do no emit a warning if the controlling
17868 argument is an interface type that is a generic formal.
17869 (Is_Interface_Subprogram): Removed.
17870 (Check_Dispatching_Operation): If the subprogram is not a dispatching
17871 operation, check the formals to handle the case in which it is
17872 associated with an abstract interface type.
17873
17874 2006-10-31 Robert Dewar <dewar@adacore.com>
17875 Ed Schonberg <schonberg@adacore.com>
17876
17877 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
17878 Add new calls to this procedure during traversal
17879 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
17880 another unit if expansion is disabled.
17881
17882 2006-10-31 Robert Dewar <dewar@adacore.com>
17883
17884 * sem_eval.adb (Compile_Time_Compare): Make use of information from
17885 Current_Value in the conditional case, to evaluate additional
17886 comparisons at compile time.
17887
17888 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17889 Hristian Kirtchev <kirtchev@adacore.com>
17890 Javier Miranda <miranda@adacore.com>
17891
17892 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
17893 subprogram type to provide better diagnostics in case of ambiguity.
17894 (Covers): Handle coverage of formal and actual anonymous access types in
17895 the context of generic instantiation.
17896 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
17897 abstract interface types; this is required to handle concurrent types
17898 with discriminants and abstract interface types.
17899 (Covers): Include type coverage of both regular incomplete subtypes and
17900 incomplete subtypes of incomplete type visibles through a limited with
17901 clause.
17902
17903 2006-10-31 Robert Dewar <dewar@adacore.com>
17904 Hristian Kirtchev <kirtchev@adacore.com>
17905 Ed Schonberg <schonberg@adacore.com>
17906
17907 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
17908 messages for entities in packages which are not used.
17909 (Collect_Synchronized_Interfaces): New procedure.
17910 (Overrides_Synchronized_Primitive): New function.
17911 (Denotes_Discriminant): Extend predicate to apply to task types.
17912 Add missing continuation marks in error msgs
17913 (Unqualify): New function for removing zero or more levels of
17914 qualification from an expression. There are numerous places where this
17915 ought to be used, but we currently only deal properly with zero or one
17916 level.
17917 (In_Instance); The analysis of the actuals in the instantiation of a
17918 child unit is not within an instantiation, even though the parent
17919 instance is on the scope stack.
17920 (Safe_To_Capture_Value): Exclude the case of variables that are
17921 renamings.
17922 (Check_Obsolescent): Removed
17923 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
17924 is an aliased view, even when rewritten as a reference to the target
17925 object in an assignment.
17926 (Get_Subprogram_Entity): New function
17927 (Known_To_Be_Assigned): New function
17928 (Type_Access_Level): Compute properly the access level of a return
17929 subtype that is an anonymous access type.
17930 (Explain_Limited_Type): Correct use of "\" for continuation messages.
17931 (Is_Transfer): The new extended_return_statement causes a transfer of
17932 control.
17933 (Has_Preelaborable_Initialization): New function
17934 (Has_Null_Exclusion): New function. Given a node N, determine whether it
17935 has a null exclusion depending on its Nkind.
17936 Change Is_Lvalue to May_Be_Lvalue
17937 (May_Be_Lvalue): Extensive additional code to deal with subprogram
17938 arguments (IN parameters are not Lvalues, IN OUT parameters are).
17939 (Safe_To_Capture_Value): Extend functionality so it can be used for
17940 the current value condition case.
17941 (Has_Compatible_Alignment): New function
17942 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17943 objects to handle the Ada 2005 case, where aliasedness no longer implies
17944 that the object is constrained. In particular, for dereferenced names,
17945 the designated object must be assumed to be unconstrained.
17946 (Kill_Current_Values): Properly deal with the case where we encounter
17947 a loop in the scope chain.
17948 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17949 a value.
17950 (Compile_Time_Constraint_Error): Improve error message in error case
17951
17952 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17953 associated with entities of abstract interface primitives.
17954 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17955
17956 2006-10-31 Robert Dewar <dewar@adacore.com>
17957
17958 * s-osinte-tru64.adb:
17959 Mark Asm statements Volatile to prevent warnings (seems a
17960 reasonable change anyway)
17961 Fixes new warnings
17962
17963 * s-mastop-irix.adb: Add Volatile to Asm statements
17964 Suppresses warning, and seems appropriate in any case
17965
17966 * s-osinte-vms.adb: Add Volatile to Asm statement
17967
17968 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17969
17970 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17971 returned.
17972 Add call to Check_Code_Statement
17973
17974 2006-10-31 Robert Dewar <dewar@adacore.com>
17975 Ed Schonberg <schonberg@adacore.com>
17976 Bob Duff <duff@adacore.com>
17977
17978 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17979 Synchronized_Present): Add Formal_Derived_Type_Definition and
17980 Private_Extension_Declaration to the list of assertions.
17981 (Is_Entry_Barrier_Function): New flag
17982 (Has_Self_Reference): New flag on aggregates, to indicate that they
17983 contain a reference to the enclosing type, inserted through a default
17984 initialization.
17985 (Next_Rep_Item): Move from Node4 to Node5.
17986 (Entity): Add this field for N_Attribute_Definition_Clause.
17987 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17988 (N_Return_Object_Declaration): Remove this node kind. We now use
17989 N_Object_Declaration instead.
17990 (Actual_Designated_Subtype): Move to a different place to make room in
17991 N_Extended_Return_Statement.
17992 (Procedure_To_Call): Move to a different place to make room in
17993 N_Extended_Return_Statement.
17994 (Return_Type): Removed this field to make room in return statements
17995 (both kinds).
17996 (Return_Statement_Entity): New field in return statements, in part to
17997 replace Return_Type, and in part to support the fact that return
17998 statements are now pushed on the scope stack during semantic analysis.
17999 (Return_Object_Declarations): New field to support extended return
18000 statements.
18001 (N_Extended_Return_Statement): New node for extended_return_statement
18002 nonterminal.
18003 (N_Return_Object_Declaration): New node for part of
18004 extended_return_statement nonterminal. Needed because all the necessary
18005 fields won't fit in N_Extended_Return_Statement.
18006 Generic_associations now carry the Box_Present flag, to indicate a
18007 default for an actual in a partially parametrized formal package.
18008
18009 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18010 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18011 and for the new predefined dispatching policies: EDF_Across_Priorities,
18012 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18013 Introduce new name Stub_Type for implementation defined attribute.
18014 Add pragma Preelaborable_Initialization
18015 Add entry for Priority attribute.
18016 Add Pragma_Wide_Character_Encoding
18017 (Get_Convention_Name): Given a convention id, this function returns the
18018 corresponding name id from the names table.
18019
18020 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18021 Robert Dewar <dewar@adacore.com>
18022 Bob Duff <duff@adacore.com>
18023
18024 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18025 print null exclusion twice in the case of an access definition,
18026 Implement new -gnatL switch
18027 Remove N_Return_Object_Declaration. We now use
18028 N_Object_Declaration instead. Implement the case for
18029 N_Extended_Return_Statement. Alphabetize the cases.
18030 Add cases for new nodes N_Extended_Return_Statement and
18031 N_Return_Object_Declaration. The code is not yet written.
18032 Update the output for N_Formal_Object_Declaration
18033 and N_Object_Renaming_Declaration.
18034 (Write_Itype): Account for the case of a modular integer subtype whose
18035 base type is private.
18036
18037 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18038
18039 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18040 Remove elaboration code, now done in the binder.
18041
18042 * s-rident.ads: Make this unit Preelaborate.
18043 (No_Restrictions): New constant used to clean up code and follow
18044 preelaborate constraints.
18045
18046 * s-stalib.adb:
18047 Add System.Restrictions dependence, referenced directly from the
18048 binder generated file.
18049
18050 2006-10-31 Gary Dismukes <dismukes@adacore.com>
18051
18052 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18053 True when AAMP extended floating-point is in use (48-bit). Change type
18054 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18055 the two byte array types on AFloat. Change type of IV_Ilf overlay
18056 variable from Byte8 to ByteLF. Add appropriate initializations of
18057 floating-point overlays for AAMP cases.
18058
18059 2006-10-31 Javier Miranda <miranda@adacore.com>
18060
18061 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18062 (Get_Ceiling): New subprogram that returns
18063 the ceiling priority of the protected object.
18064 (Set_Ceiling): New subprogram that sets the new ceiling priority of
18065 the protected object.
18066
18067 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18068
18069 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18070
18071 2006-10-31 Jose Ruiz <ruiz@adacore.com>
18072
18073 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18074 requeuing to the same protected object to give higher priority tasks
18075 the opportunity to execute.
18076
18077 2006-10-31 Robert Dewar <dewar@adacore.com>
18078
18079 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18080 add more precise check for the character sequence that follows '[' to
18081 avoid possible confusion in case if '[' is the last character of a
18082 string literals.
18083 (Scan_Wide): Always allow brackets encoding
18084
18085 2006-10-31 Olivier Hainque <hainque@adacore.com>
18086
18087 * s-stchop.ads: make this unit preelaborate. This is desirable in
18088 general and made mandatory by the use of this unit by s-taprop which
18089 is itself preelaborate.
18090
18091 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18092 Td_Events component.
18093
18094 2006-10-31 Vincent Celier <celier@adacore.com>
18095
18096 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18097 in file names.
18098
18099 2006-10-31 Vincent Celier <celier@adacore.com>
18100
18101 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18102
18103 2006-10-31 Vincent Celier <celier@adacore.com>
18104
18105 * makegpr.adb (Check_Compilation_Needed): Take into account path names
18106 with spaces.
18107 (Check_Compilation_Needed): When checking a C or C++ source, do not
18108 resolve symbolic links.
18109 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18110 When not in verbose mode and Ellipse is True, display "..." for the
18111 first argument with Display set to False.
18112 (Build_Global_Archive): Always set Display True for the first object
18113 file. Call Display_Command with Ellipse set to True.
18114
18115 2006-10-31 Matt Heaney <heaney@adacore.com>
18116
18117 * a-crbtgo.ads: Commented each subprogram
18118
18119 * a-crbtgo.adb: Added reference to book from which algorithms were
18120 adapted.
18121
18122 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18123 indicate which child.
18124 (Generic_Conditional_Insert): changed parameter name from "Success" to
18125 "Inserted".
18126 (Generic_Unconditional_Insert_With_Hint): improved algorithm
18127
18128 * a-coorse.adb (Replace_Element): changed parameter name in call to
18129 conditional insert operation.
18130
18131 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18132
18133 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18134 Generic_Iteration
18135
18136 * a-ciorse.adb (Replace_Element): changed parameter name in call to
18137 conditional insert operation.
18138
18139 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18140 Generic_Iteration.
18141
18142 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18143 instead of mode inout.
18144
18145 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18146 draft
18147 (Generic_Read): preserve existing buckets array if possible
18148 (Generic_Write): don't send buckets array length anymore
18149
18150 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18151 instead of mode inout.
18152
18153 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18154 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18155
18156 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18157 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18158 (Replace_Element): local operation is now an instantiation
18159
18160 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18161 check current length.
18162 (Generic_Replace_Element): new operation
18163
18164 2006-10-31 Doug Rupp <rupp@adacore.com>
18165
18166 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18167 Call TBK$SYMBOLIZE without omitting parameters.
18168
18169 2006-10-31 Vincent Celier <celier@adacore.com>
18170
18171 * symbols-processing-vms-ia64.adb,
18172 symbols-processing-vms-alpha.adb (Process): Do not include symbols
18173 that come from generic instantiations in bodies.
18174
18175 2006-10-31 Pat Rogers <rogers@adacore.com>
18176
18177 * a-rttiev.ads, a-rttiev.adb:
18178 This is a significant redesign primarily for the sake of automatic
18179 timer task termination but also to fix a design flaw.
18180 Therefore we are now using an RTS lock, instead of a protected
18181 object, to provide mutual exclusion to the queue of pending events
18182 and the type Timing_Event is no longer a protected type.
18183
18184 2006-10-31 Robert Dewar <dewar@adacore.com>
18185 Cyrille Comar <comar@adacore.com>
18186 Ben Brosgol <brosgol@adacore.com>
18187
18188 * debug.adb: Update flags documentation
18189
18190 * gnat_ugn.texi: Add documentation for new -gnatwq switch
18191 Clean up documentation for several other warning switches
18192 Clarify how task stack size can be specified with various
18193 versions of Windows.
18194 Add note that -gnatVo includes ranges including loops
18195 Add documentation for -gnatL switch
18196 Add note on elaboration warning for initializing variables
18197 Add documentation for new -gnatwt warning switch
18198 Document new form of pragma Warnings (On|Off, string)
18199 Add comment on use of pragma Warnings to control warnings
18200 Add documentation for -gnatjnn switch
18201 Modify section on interfacing with C for VMS 64-bit.
18202 Add doc for -gnatVe/E
18203 Add documentation of new warning flags -gnatww/-gnatwW
18204 Add warnings about address clause overlays to list of warnings
18205 (Exception Handling Control): Document that the option --RTS must be
18206 used consistently for gcc and gnatbind.
18207 Clarify that inlining is not always possible
18208 Update documentation on pragma Unchecked_Union.
18209
18210 * gnat_rm.texi:
18211 Add documentation for new extended version of pragma Obsolescent
18212 Add documentation for implementation defined attribute 'Stub_Type.
18213 Add note on use of Volatile in asm statements
18214 Add documentation on use of pragma Unreferenced in context clause
18215 Document new form of pragma Warnings (On|Off, pattern)
18216 Document pragma Wide_Character_Encoding
18217 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18218 enforced if code generation is active.
18219 Add section on pragma Suppress to document GNAT specific check
18220 Alignment_Check
18221 Clarify difference between No_Dispatching_Calls & No_Dispatch.
18222 Add documentation for pragma Restrictions (No_Elaboration_Code)
18223
18224 * gnat-style.texi:
18225 Add comments on layout of subprogram local variables in the
18226 presence of nested subprograms.
18227
18228 * ug_words: Resync.
18229
18230 * elists.ads: Minor reformatting
18231 Node returns Node_Or_Entity_Id (doc change only)
18232
18233 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18234
18235 * g-arrspl.ads (Create): Update comments.
18236
18237 * sem.ads: Add details on the handling of the scope stack.
18238
18239 * usage.adb: Update documentation.
18240
18241 * validsw.ads, validsw.adb:
18242 Add definition of Validity_Check_Components and implement -gnatVe/E
18243
18244 * vms_data.ads: Add missing VMS qualifiers.
18245
18246 * s-addope.ads: Add documentation on overflow and divide by zero
18247
18248 2006-10-31 Robert Dewar <dewar@adacore.com>
18249 Thomas Quinot <quinot@adacore.com>
18250 Arnaud Charlet <charlet@adacore.com>
18251
18252 * fmap.adb: Put routines in alpha order
18253
18254 * g-boumai.ads: Remove redundant 'in' keywords
18255
18256 * g-cgi.adb: Minor reformatting
18257
18258 * g-cgi.ads: Remove redundant 'in' keywords
18259
18260 * get_targ.adb: Put routines in alpha order
18261
18262 * prj-attr.ads: Minor reformatting
18263
18264 * s-atacco.ads: Minor reformatting
18265
18266 * scn.adb: Put routines in alpha order
18267
18268 * sinput-l.adb: Minor comment fix
18269
18270 * sinput-p.adb: Minor comment fix
18271
18272 * s-maccod.ads: Minor reformatting
18273
18274 * s-memory.adb: Minor reformatting
18275
18276 * s-htable.adb: Fix typo in comment.
18277
18278 * s-secsta.adb: Minor comment update.
18279
18280 * s-soflin.adb: Minor reformatting
18281
18282 * s-stoele.ads:
18283 Add comment about odd qualification in Storage_Offset declaration
18284
18285 * s-strxdr.adb:
18286 Remove unnecessary 'in' keywords for formal parameters.
18287
18288 * treeprs.adt: Minor reformatting
18289
18290 * urealp.adb: Put routines in alpha order
18291
18292 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
18293 taking string.
18294
18295 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18296
18297 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
18298
18299 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
18300 workaround as on other platforms.
18301
18302 * g-eacodu-vms.adb: Remove redundant 'in' keywords
18303 * g-expect-vms.adb: Remove redundant 'in' keywords
18304
18305 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
18306 clear error message if the list-of-files file cannot be opened.
18307
18308 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
18309 equality operator is always visible.
18310
18311 * lang.opt: Woverlength-strings: New option.
18312
18313 * nmake.adt:
18314 Update copyright, since nmake.ads and nmake.adb have changed.
18315
18316 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
18317 (Binder_Output_Time_Stamps_Set): removed.
18318 (Old_Binder_Output_Time_Stamp): idem.
18319 (New_Binder_Output_Time_Stamp): idem.
18320 (Recording_Time_From_Last_Bind): idem.
18321 (Recording_Time_From_Last_Bind): Make constant.
18322
18323 * output.ads, output.adb (Write_Str): Allow LF characters
18324 (Write_Spaces): New procedure
18325
18326 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
18327
18328 * inline.adb: Minor reformatting
18329
18330 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18331
18332 * s-mastop-vms.adb: Remove redundant 'in' keywords
18333
18334 * s-osprim-vms.adb: Remove redundant 'in' keywords
18335
18336 * s-trafor-default.adb: Remove redundant 'in' keywords
18337
18338 * 9drpc.adb: Remove redundant 'in' keywords
18339
18340 * s-osinte-mingw.ads: Minor reformatting
18341
18342 * s-inmaop-posix.adb: Minor reformatting
18343
18344 * a-direio.ads: Remove quotes from Compile_Time_Warning message
18345
18346 * a-exexda.adb: Minor code reorganization
18347
18348 * a-filico.adb: Minor reformatting
18349
18350 * a-finali.adb: Minor reformatting
18351
18352 * a-nudira.ads: Remove quote from Compile_Time_Warning message
18353
18354 * a-numeri.ads: Minor reformatting
18355
18356 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
18357
18358 * exp_pakd.ads: Fix obsolete comment
18359
18360 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
18361 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
18362 Probably not a bug, but certainly neater and more efficient.
18363
18364 * a-tienio.adb: Minor reformatting
18365
18366 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
18367 Avoid assuming low bound of string is 1.
18368
18369 * gnatbind.adb: Change Bindusg to package and rename procedure as
18370 Display, which now ensures that it only outputs usage information once.
18371 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
18372
18373 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
18374 Table'First.
18375
18376 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
18377 warning.
18378 (Match): Add pragma Assert to ensure that Matches'First is zero
18379
18380 * g-regpat.ads (Match): Document that Matches lower bound must be zero
18381
18382 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
18383 documented preconditions (also kills warnings about bad indexes).
18384
18385 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
18386 is 1.
18387 (Build_Import_Library): Ditto;
18388
18389 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
18390
18391 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
18392
18393 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
18394 lower bound of choice table is 1.
18395
18396 * sem_case.ads (Analyze_Choices): Document that lower bound of
18397 Choice_Table is 1.
18398
18399 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
18400 string is 1.
18401
18402 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
18403 and add appropriate Assert pragma to suppress warnings.
18404
18405 * atree.h, atree.ads, atree.adb
18406 Change Elist24 to Elist25
18407 Add definitions of Field28 and Node28
18408 (Traverse_Field): Use new syntactic parent table in sinfo.
18409
18410 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18411
18412 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18413
18414 * exp_tss.adb: Put routines in alpha order
18415
18416 * fe.h: Remove redundant declarations.
18417
18418 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
18419
18420 * utils.c (builtin_function): Rename to gnat_builtin_function.
18421 Move common code to add_builtin_function.
18422 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
18423 gnat_builtin_function.
18424 * gigi.h (builtin_function): Rename to gnat_builtin_function.
18425 Change the signature.
18426
18427 2006-10-16 Brooks Moses <bmoses@stanford.edu>
18428
18429 * Makefile.in: Add TEXI2PDF definition.
18430 * Make-lang.in: Add "ada.pdf" target.
18431
18432 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
18433
18434 * decl.c, utils.c: Fix comment typos.
18435 * utils.c: Fix a typo.
18436
18437 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
18438
18439 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
18440 on "pure" Ada subprograms if SJLJ exceptions are used.
18441 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
18442 on the declaration node of JMPBUF_SAVE.
18443 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
18444 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
18445 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
18446
18447 2006-08-20 Laurent Guerby <laurent@guerby.net>
18448
18449 PR ada/28716
18450 g-socket.adb (Bind_Socket): Call Set_Address.
18451
18452 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
18453
18454 PR ada/15802
18455 * decl.c (same_discriminant_p): New static function.
18456 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
18457 subtype and we have discriminants, fix up the COMPONENT_REFs
18458 for the discriminants to make them reference the corresponding
18459 fields of the parent subtype after it has been built.
18460
18461 2006-09-15 Roger Sayle <roger@eyesopen.com>
18462
18463 PR ada/18817
18464 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
18465 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
18466
18467 2006-09-13 Olivier Hainque <hainque@adacore.com>
18468
18469 PR ada/29025
18470 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
18471 of a SAVE_EXPR, just make the operand addressable/not-readonly and
18472 let the common gimplifier code make and propagate a temporary copy.
18473 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
18474 out/in-out actuals and defer setting the addressable/readonly bits
18475 to the gimplifier.
18476
18477 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
18478
18479 PR ada/28591
18480 * decl.c (components_to_record): Defer emitting debug info for the
18481 record type associated with the variant until after we are sure to
18482 actually use it.
18483
18484 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
18485
18486 PR ada/21952
18487 * gigi.h (gnat_internal_attribute_table): Declare.
18488 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
18489 * utils.c (gnat_internal_attribute_table): New global variable.
18490 (builtin_function): Always call decl_attributes on the builtin.
18491 (handle_const_attribute): New static function.
18492 (handle_nothrow_attribute): Likewise.
18493
18494 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18495
18496 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
18497
18498 2006-06-23 Olivier Hainque <hainque@adacore.com>
18499
18500 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
18501 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
18502
18503 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
18504 Eric Botcazou <ebotcazou@adacore.com>
18505
18506 PR ada/18692
18507 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
18508 check-gnat into check-acats.
18509
18510 2006-06-17 Karl Berry <karl@gnu.org>
18511
18512 * gnat-style.texi (@dircategory): Use "Software development"
18513 instead of "Programming", following the Free Software Directory.
18514
18515 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18516
18517 PR ada/27944
18518 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
18519
18520 2006-06-06 Laurent Guerby <laurent@guerby.net>
18521
18522 PR ada/27769
18523 mlib-utl.adb: Use Program_Name.
18524
18525 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
18526
18527 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
18528 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
18529 trans.c, utils.c: Fix comment typos. Follow spelling
18530 conventions.
18531 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
18532 conventions.
18533
18534 2006-05-19 Nicolas Setton <setton@adacore.com>
18535
18536 * misc.c (gnat_dwarf_name): New function.
18537 (LANG_HOOKS_DWARF_NAME): Define to it.
18538
18539 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
18540
18541 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
18542 (ada/misc.o): Likewise.
18543 (ada/utils.o): Likewise.
18544
18545 2006-04-08 Aurelien Jarno <aurel32@debian.org>
18546
18547 * Makefile.in: Add Ada support for GNU/kFreeBSD.
18548 * s-osinte-kfreebsd-gnu.ads: New file.
18549
18550 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
18551
18552 * Make-lang.in: Rename docdir to gcc_docdir.
18553
18554 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
18555
18556 * gigi.h (get_ada_base_type): Delete.
18557 * utils2.c (get_ada_base_type): Likewise.
18558 * trans.c (convert_with_check): Operate in the real base type.
18559
18560 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18561
18562 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
18563
18564 2006-03-02 Richard Sandiford <richard@codesourcery.com>
18565
18566 * utils.c (create_var_decl): Use have_global_bss_p when deciding
18567 whether to make the decl common.
18568
18569 2006-02-20 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
18570
18571 * Make-lang.in (Ada): Remove.
18572 (.PHONY): Remove Ada
18573
18574 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18575
18576 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
18577 aggregate, check the interpretations of the other operand to find one
18578 that may be a boolean array.
18579
18580 (Analyze_Selected_Component): Fix flow-of-control typo in case where
18581 the prefix is a private extension.
18582
18583 2006-02-17 Eric Botcazou <botcazou@adacore.com>
18584
18585 PR ada/26315
18586 * utils2.c (find_common_type): If both input types are BLKmode and
18587 have the same constant size, keep using the first one.
18588
18589 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
18590
18591 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
18592
18593 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
18594
18595 2006-02-17 Jose Ruiz <ruiz@adacore.com>
18596
18597 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
18598 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
18599 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
18600 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
18601 Abort_Defer/Undefer pairs to avoid the possibility of a task being
18602 aborted while owning a lock.
18603
18604 2006-02-17 Javier Miranda <miranda@adacore.com>
18605 Robert Dewar <dewar@adacore.com>
18606
18607 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
18608 through an access to class-wide interface we force the displacement of
18609 the pointer to the allocated object to reference the corresponding
18610 secondary dispatch table.
18611 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
18612 if Long_Shifts are supported on the target, even if 64 bit divides
18613 are not supported (configurable run time mode).
18614 (Expand_N_Type_Conversion): Do validity check if validity checks on
18615 operands are enabled.
18616 (Expand_N_Qualified_Expression): Do validity check if validity checks
18617 on operands are enabled.
18618
18619 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18620
18621 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
18622 must be materialized when the renamed expression is an explicit
18623 dereference.
18624
18625 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18626
18627 * freeze.adb (Statically_Discriminated_Components): Return false if
18628 the bounds of the type of the discriminant are not static expressions.
18629
18630 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
18631 the bounds of the discriminant type are not static.
18632
18633 2006-02-17 Robert Dewar <dewar@adacore.com>
18634
18635 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
18636 then we close To if it is valid.
18637
18638 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
18639
18640 * init.c (facility_resignal_table): new array
18641 (__gnat_default_resignal_p): enhance default predicate to resignal if
18642 VMS condition has one of the predefined facility codes.
18643
18644 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
18645
18646 * Makefile.in: Use VMS64 specialized versions of several units in
18647 Interfaces.C hierarchy to be compatible with HP C default size choices.
18648 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
18649
18650 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18651
18652 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
18653 instantiation, the corresponding entity is the related_instance of the
18654 wrapper package created for the instance.
18655
18656 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18657
18658 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
18659 the current instance is nested within another instance in a child unit.
18660
18661 2006-02-17 Javier Miranda <miranda@adacore.com>
18662 Ed Schonberg <schonberg@adacore.com>
18663
18664 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
18665 type we cannot inherit the primitive operations; we inherit the
18666 Corresponding_Record_Type (which has the list of primitive operations).
18667 (Check_Anonymous_Access_Types): When creating anonymous access types for
18668 access components, use Rewrite in order to preserve the tree structure,
18669 for ASIS use.
18670 (Analyze_Object_Declaration): For limited types with access
18671 discriminants with defaults initialized by an aggregate, obtain
18672 subtype from aggregate as for other mutable types.
18673 (Derived_Type_Declaration): If the derived type is a limited interface,
18674 set the corresponding flag (Is_Limited_Record is not sufficient).
18675
18676 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18677
18678 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
18679 to inline a function that returns an unconstrained type, the return
18680 expression must be the first variable declared in the body of the
18681 function.
18682
18683 2006-02-17 Javier Miranda <miranda@adacore.com>
18684
18685 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
18686 abstract interface type, the static analysis is not enough to know if
18687 the interface is implemented or not by the source tagged type. Hence
18688 we must pass the work to the expander to generate the required code to
18689 evaluate the conversion at run-time.
18690 (Resolve_Equality_Op): Do not apply previous
18691 transformation if expansion is disasbled, to prevent anomalies when
18692 locating global references in a generic unit.
18693
18694 2006-02-17 Vincent Celier <celier@adacore.com>
18695
18696 * snames.ads, snames.adb: New standard names for new project attributes:
18697 archive_builder, archive_indexer, compiler_pic_option,
18698 config_body_file_name, config_body_file_name_pattern,
18699 config_file_switches, config_file_unique, config_spec_file_name,
18700 config_spec_file_name_pattern, default_builder_switches,
18701 default_global_compiler_switches, default_language,
18702 dependency_file_kind, global_compiler_switches, include_path,
18703 include_path_file, language_kind, linker_executable_option,
18704 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
18705 roots, runtime_project.
18706
18707 2006-02-17 Matthew Heaney <heaney@adacore.com>
18708
18709 * a-convec.ads, a-convec.adb:
18710 (operator "&"): handle potential overflow for large index types
18711 (Insert): removed Contraint_Error when using large index types
18712 (Insert_Space): removed Constraint_Error for large index types
18713 (Length): moved constraint check from Length to Insert
18714
18715 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
18716 as not null access.
18717 Explicit raise statements now include an exception message.
18718 (operator "&"): handle potential overflow for large index types
18719 (Insert): removed Contraint_Error when using large index types
18720 (Insert_Space): removed Constraint_Error for large index types
18721 (Length): moved constraint check from Length to Insert
18722
18723 2006-02-17 Robert Dewar <dewar@adacore.com>
18724
18725 * s-wchcnv.adb: Document handling of [ on output (we do not change
18726 this to ["5B"] and the new comments say why not.
18727
18728 * gnat_ugn.texi:
18729 Add note for -gnatVo that this now includes the cases of type
18730 conversions and qualified expressions.
18731 Add comments on handling of brackets encoding for Text_IO
18732
18733 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
18734 Thomas Quinot <quinot@adacore.com>
18735 Robert Dewar <dewar@adacore.com>
18736 Javier Miranda <miranda@adacore.com>
18737
18738 * expander.adb: Fix typo in comment
18739
18740 * exp_pakd.adb: Fix typo
18741 Minor comment reformatting.
18742
18743 * g-dyntab.adb: Minor reformatting
18744
18745 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
18746 aliased subprograms to look for the abstract interface subprogram.
18747
18748 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
18749
18750 * env.c (__gnat_setenv): Use size_t.
18751 (__gnat_unsetenv): Likewise.
18752 (__gnat_clearenv): Likewise.
18753
18754 2006-02-16 Arnaud Charlet <charlet@adacore.com>
18755
18756 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
18757
18758 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18759
18760 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
18761 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
18762 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
18763 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
18764 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
18765 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
18766 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
18767 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
18768 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
18769 no longer used.
18770
18771 2006-02-13 Jose Ruiz <ruiz@adacore.com>
18772
18773 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
18774 protection against race conditions is not needed.
18775 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
18776 fallback handler.
18777 (Set_Specific_Handler): Add mutual exclusive access to the specific
18778 handler.
18779 (Specific_Handler): Add mutual exclusive access for retrieving the
18780 specific handler.
18781
18782 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
18783 back handler.
18784
18785 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
18786 Fall_Back_Handler and Specific_Handler.
18787
18788 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
18789 termination handlers.
18790 Set two different owerflow depending on the maximal stack size.
18791
18792 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
18793 protection against race conditions is not needed when executing the
18794 task termination handler.
18795
18796 2006-02-13 Robert Dewar <dewar@adacore.com>
18797
18798 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
18799 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
18800 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18801 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
18802 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
18803 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
18804 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
18805 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
18806 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
18807 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18808 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
18809 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
18810 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
18811 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
18812 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
18813 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
18814 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
18815 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
18816 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
18817 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
18818 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
18819 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
18820 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
18821 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
18822 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
18823 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
18824 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
18825 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
18826 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
18827 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
18828 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
18829 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
18830 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
18831 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
18832 reformatting.
18833
18834 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18835
18836 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
18837 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
18838 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
18839 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
18840 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
18841 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
18842 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
18843 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
18844 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
18845
18846 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18847
18848 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
18849 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
18850 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
18851 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
18852 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
18853 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
18854 replaced by anonymous access type.
18855 (pthread_sigmask): Now take an access sigset_t
18856
18857 * s-osinte-hpux.ads: Ditto.
18858 (pthread_mutex_t, pthread_cond_t): Update definitions to support
18859 properly 32 and 64 bit ABIs.
18860
18861 2006-02-13 Pascal Obry <obry@adacore.com>
18862
18863 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
18864 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
18865 s-taprop-linux.adb, s-taprop-solaris.adb,
18866 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
18867 adjustement is already done when calling this routine.
18868
18869 2006-02-13 Pascal Obry <obry@adacore.com>
18870
18871 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
18872 table to take advantage of the 16 priority levels available on Windows
18873 2000 and XP. On NT4 there are only 7 priority levels, this is properly
18874 supported by this new mapping.
18875
18876 2006-02-13 Nicolas Setton <setton@adacore.com>
18877
18878 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
18879 (get_encoding): New subprogram. Extracts the encodings from an encoded
18880 Ada name.
18881
18882 2006-02-13 Pascal Obry <obry@adacore.com>
18883 Nicolas Roche <roche@adacore.com>
18884 Arnaud Charlet <charlet@adacore.com>
18885
18886 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
18887 support.
18888 (__gnat_try_lock): Add unicode support by using a specific section on
18889 Windows.
18890 (__gnat_get_current_dir): Idem.
18891 (__gnat_open_read): Idem.
18892 (__gnat_open_rw): Idem.
18893 (__gnat_open_create): Idem.
18894 (__gnat_create_output_file): Idem.
18895 (__gnat_open_append): Idem.
18896 (__gnat_open_new): Idem.
18897 (__gnat_file_time_name): Idem.
18898 (__gnat_set_file_time_name): Idem.
18899 (__gnat_stat): Idem.
18900 (win32_no_block_spawn): Idem.
18901 (__gnat_locate_exec_on_path): Idem.
18902 (__gnat_opendir): New routine.
18903 (__gnat_closedir): Idem.
18904 (__gnat_readdir): Add new parameter length (pointer to int). Update
18905 implementation to use it and add specific Win32 code for Unicode
18906 support.
18907 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
18908 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
18909 (convert_addresses): Do not define this dummy routine on VMS.
18910
18911 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
18912 runtime Unicode support will be activated.
18913 (S2WS): String to Wide-String conversion. This version just copy a
18914 string in non Unicode version.
18915 (WS2S): Wide-String to String conversion. This version just copy a
18916 string in non Unicode version.
18917
18918 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
18919 (Open): Now import __gnat_opendir from adaint.c.
18920 (Read): Change the implementation to support unicode characters. It is
18921 not possible to use strlen() on Windows as this version supports only
18922 standard ASCII characters. So the length of the directory entry is now
18923 returned from the imported __gnat_readdir routine.
18924 Update copyright notice.
18925
18926 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
18927 (opendir): Moved to adaint.c.
18928
18929 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
18930 (Get_Directory): Fix wrong indexing.
18931 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
18932 __gnat_getenv from env.c
18933 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
18934 from env.c
18935
18936 * env.h, env.c: New file.
18937
18938 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
18939 adaint.c by __gnat_getenv from env.c
18940
18941 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18942 adaint.c by __gnat_getenv from env.c
18943
18944 * Make-lang.in: Add env.o in the list of C object needed by gnat1
18945 and gnatbind.
18946 Update dependencies.
18947
18948 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18949 Olivier Hainque <hainque@adacore.com>
18950 Eric Botcazou <ebotcazou@adacore.com>
18951
18952 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18953
18954 * gigi.h (value_factor_p): Add prototype and description, now public.
18955
18956 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18957 promotion for field with rep clause if the associated size was proven
18958 to be in error.
18959 Expand comments describing attempts to use a packable type.
18960 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18961 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18962 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18963 necessary since these are not different types and pointers may
18964 actually designate any subtype in this hierarchy.
18965 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18966 discriminants but put them into record only if not Unchecked_Union;
18967 pass flag to components_to_record showing Unchecked_Union.
18968 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18969 components before variants; don't set TYPE_UNCHECKED_UNION_P.
18970 (components_to_record): New argument UNCHECKED_UNION.
18971 Remove special case code for Unchecked_Union and instead use main code
18972 with small changes.
18973
18974 PR ada/26096
18975 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18976 variable with the expression being built, only its inner field.
18977
18978 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18979 emit_sequence_entry_statements.
18980 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18981 (establish_gnat_vms_condition_handler): Move before
18982 Subprogram_Body_to_gnu.
18983 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18984 for a subprogram if it has a foreign convention or is exported.
18985 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18986 substituted for a CONST_DECL.
18987 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18988 Etype to assoc_to_constructor.
18989 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18990 discriminants of Unchecked_Union.
18991 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18992 don't need cluttering preprocessor directives.
18993 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18994 condition handler as current in the compiled function.
18995 (body_with_handlers_p): New function. Tell whether a given sequence of
18996 statements node is attached to a package or subprogram body and involves
18997 exception handlers possibly nested within inner block statements.
18998 (emit_sequence_entry_statements): New function, to emit special
18999 statements on entry of sequences when necessary. Establish GNAT
19000 condition handler in the proper cases for VMS.
19001 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19002 emit_sequence_entry_statements.
19003
19004 * utils2.c (find_common_type): If both input types are BLKmode and
19005 have a constant size, use the smaller one.
19006 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19007 the same.
19008
19009 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19010 units.
19011 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19012 (convert, case UNION_TYPE): Remove special treatment for unchecked
19013 unions.
19014
19015 PR ada/18659
19016 (update_pointer_to): Update variants of pointer types to unconstrained
19017 arrays by attaching the list of fields of the main variant.
19018
19019 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19020 Robert Dewar <dewar@adacore.com>
19021
19022 * a-exexpr.adb, a-exexpr-gcc.adb
19023 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19024 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19025 Remove code unused for exception propagation for the compiler itself
19026 from a-except.adb and update to still share separate packages.
19027
19028 * a-except.ads, a-except.adb: Ditto.
19029 Add comments that this version is now used only by the compiler and
19030 other basic tools. The full version that includes the Ada 2005 stuff
19031 is in separate files a-except-2005.ads/adb. The reason is that we do
19032 not want to cause bootstrap problems with compilers not recognizing
19033 Wide_Wide_String.
19034 Add exception reason code PE_Implicit_Return
19035 Add new exception reason code (Null Exception_Id)
19036
19037 * a-except-2005.adb, a-except-2005.ads: New files.
19038
19039 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19040
19041 * s-wchcon.adb: New file.
19042
19043 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19044 (traceback.o deps): Likewise.
19045 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19046 Activate build of GMEM instrumentation library on VMS targets.
19047 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19048 Use a-except-2005.ads/adb for all run-time library builds unless
19049 specified otherwise.
19050 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19051 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19052 Use s-parame.adb on all native platforms.
19053 Use s-parame-vxworks.adb on all vxworks platforms.
19054 Add env.c env.h in LIBGNAT_SRCS
19055 Add env.o in LIBGNAT_OBJS
19056 (GNATMAKE_OBJS): Remove ctrl_c.o object.
19057 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19058 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19059 supports VxWorks 6 RTPs.
19060 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19061 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19062
19063 * types.h, types.ads (Terminate_Program): New exception
19064 Add comment on modifying multiple versions of a-except.adb when the
19065 table of exception reasons is modified.
19066 Add exception reason code PE_Implicit_Return
19067 Add new exception reason code (Null Exception_Id)
19068
19069 * clean.adb (Initialize): Get the target parameters before checking
19070 if target is OpenVMS. Move the OpenVMS specific code here from package
19071 body elaboration code.
19072
19073 2006-02-13 Thomas Quinot <quinot@adacore.com>
19074 Vincent Celier <celier@adacore.com>
19075 Robert Dewar <dewar@adacore.com>
19076
19077 * ali-util.adb (Get_File_Checksum): Update to account for change in
19078 profile of Initialize_Scanner.
19079
19080 * gprep.adb (Gnatprep): Update to account for change in profile of
19081 Initialize_Scanner.
19082 (Process_One_File): Same.
19083
19084 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19085 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19086 that behaviour using the new Unit information recorded in the source
19087 files table, rather than going through all units every time.
19088 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19089 (Get_Source_Unit): Same.
19090
19091 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19092 change in profile of Initialize_Scanner.
19093 (Prepare_To_Preprocess): Same.
19094
19095 * lib.ads: Fix typo in comment (templace -> template).
19096
19097 * prj-part.adb (Parse_Single_Project): Update to account for change in
19098 profile of Initialize_Scanner.
19099
19100 * scn.adb (Initialize_Scanner): Account for change in profile of
19101 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19102 Also record the association of the given Source_File_Index to the
19103 corresponding Unit_Number_Type.
19104
19105 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19106 procedure.
19107 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19108 Remove Unit formal for generic scanner: this formal
19109 is only relevant to Scn (the scanner instance used to parse Ada source
19110 files), not to other instances. Update comment accordingly.
19111 (Scan): Use new function Snames.Is_Keyword_Name.
19112
19113 * sinfo-cn.adb: Fix typo in comment.
19114
19115 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19116 Unit.
19117
19118 * sinput.ads (Source_File_Record): New component Unit, used to capture
19119 the unit identifier (if any) associated to a source file.
19120
19121 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19122 Unit in Source_File_Record.
19123
19124 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19125 in profile of Initialize_Scanner.
19126
19127 * scans.adb (Initialize_Ada_Keywords): New procedure
19128
19129 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19130 Ada keywords in the Namet table, without the need to call
19131 Initialize_Scanner.
19132
19133 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19134 (Is_Keyword_Name): New function
19135
19136 * snames.ads: Add subtype Configuration_Pragma_Names
19137 Add pragma Ada_2005 (synonym for Ada_05)
19138 (Is_Keyword_Name): New function
19139
19140 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19141
19142 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19143
19144 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19145 index.
19146
19147 * a-stwima.adb (To_Set): Add extra check when N = 0.
19148
19149 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19150
19151 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19152
19153 * s-parame-mingw.adb, s-parame-linux.adb,
19154 s-parame-solaris.adb: Removed, replaced by s-parame.adb
19155
19156 * s-parame-vxworks.ads: Fix typo.
19157
19158 * s-parame-vxworks.adb: New file.
19159
19160 * s-parame.adb: Version now used by all native platforms.
19161 (Default_Stack_Size): Use 2 megs for default stack size and use
19162 __gl_default_stack_size when available.
19163 (Minimum_Stack_Size): Use 12K.
19164
19165 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19166 (Create_Task): Refine implementation taking advantage of the XP stack
19167 size support. On XP, we now create the thread using the flag
19168 STACK_SIZE_PARAM_IS_A_RESERVATION.
19169
19170 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19171
19172 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19173 XP and 0 on older Windows versions.
19174
19175 * interfac-vms.ads: Removed, no longer used.
19176
19177 2006-02-13 Matthew Heaney <heaney@adacore.com>
19178
19179 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
19180 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
19181 a-cohase.adb: All explicit raise statements now include an exception
19182 message.
19183
19184 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19185 (Update_Element_Preserving_Key): renamed op to just Update_Element.
19186 Explicit raise statements now include an exception message
19187
19188 * a-cihase.ads, a-cohase.ads: Removed comment.
19189
19190 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19191 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19192 a-szbzha.adb, a-szfzha.ads: New files.
19193
19194 2006-02-13 Matthew Heaney <heaney@adacore.com>
19195
19196 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19197 quicksort.
19198
19199 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19200
19201 * lang.opt: Wvariadic-macros: New option.
19202 Wold-style-definition: Likewise.
19203 Wmissing-format-attribute: Likewise.
19204
19205 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19206 -Wold-style-definition and -Wmissing-format-attribute.
19207
19208 2006-02-13 Robert Dewar <dewar@adacore.com>
19209
19210 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19211
19212 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19213
19214 2006-02-13 Nicolas Roche <roche@adacore.com>
19215
19216 * a-envvar.adb, a-envvar.ads: New files.
19217
19218 2006-02-13 Douglas Rupp <rupp@adacore.com>
19219
19220 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19221
19222 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19223
19224 2006-02-13 Pat Rogers <rogers@adacore.com>
19225
19226 * a-rttiev.adb, a-rttiev.ads: New files.
19227
19228 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19229
19230 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19231 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
19232
19233 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19234
19235 2006-02-13 Robert Dewar <dewar@adacore.com>
19236
19237 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
19238 sem_case.adb: Minor code reorganization (not Present should be No)
19239
19240 2006-02-13 Geert Bosch <bosch@adacore.com>
19241 Gary Dismukes <dismukes@adacore.com>
19242
19243 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19244 0, since the lower bound of the actual string may be greater than one.
19245
19246 PR ada/20753
19247 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19248 layout is requested.
19249
19250 2006-02-13 Vincent Celier <celier@adacore.com>
19251
19252 * back_end.adb (Scan_Compiler_Arguments): Check if
19253 Search_Directory_Present is True and, if it is, add the argument in
19254 the source search directory path.
19255
19256 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19257 Search_Directory_Present to True.
19258
19259 2006-02-13 Joel Brobecker <brobecke@adacore.com>
19260
19261 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19262 volatile, to tell the compiler to preserve this variable at any level
19263 of optimization.
19264 (Gen_Versions_Ada): Temporarily work around codegen bug.
19265
19266 2006-02-13 Vincent Celier <celier@adacore.com>
19267
19268 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19269 gcc to link with option -shared-libgcc.
19270 (Gnatlink): Remove duplicate switches -shared-libgcc
19271
19272 2006-02-13 Robert Dewar <dewar@adacore.com>
19273
19274 * gnatvsn.ads (Current_Year): New constant, used to easily update
19275 copyright on all GNAT tools.
19276
19277 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19278 copyright notice.
19279
19280 2006-02-13 Robert Dewar <dewar@adacore.com>
19281
19282 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19283 after hyphen (small aesthetic change useful for a range of numbers
19284 using ^-^.
19285 Suppress range checks for a couple of assignments which otherwise
19286 cause validity checks with validity checking turned on.
19287
19288 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19289 Improvement in error message for object.
19290 (Rep_Item_Too_Late): Remove '!' in warning message.
19291
19292 2006-02-13 Robert Dewar <dewar@adacore.com>
19293 Eric Botcazou <ebotcazou@adacore.com>
19294
19295 * err_vars.ads: Suppress range checks for a couple of assignments
19296 which otherwise cause validity checks with validity checking turned on.
19297 Update comments.
19298
19299 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
19300 Make message unconditional if it is a warning.
19301 (Error_Msg_NEL): Always output warning messages.
19302 Suppress range checks for a couple of assignments which otherwise
19303 cause validity checks with validity checking turned on.
19304
19305 * errout.ads (Message Insertion Characters): Document that '!' is
19306 implied by '?' in error messages.
19307
19308 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
19309 (Gnat1drv): Use a goto to end of main subprogram instead of
19310 Exit_Program (E_Success) so that finalization can occur normally.
19311
19312 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19313
19314 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
19315 wrapped around.
19316
19317 2006-02-13 Vincent Celier <celier@adacore.com>
19318
19319 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
19320 Unchecked_Conversion functions.
19321 (Modification_Time): Use direct conversion of OS_Time to Calendar time
19322 when OpenVMS returns False.
19323
19324 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
19325 a-dirval.adb (OpenVMS): New Boolean function
19326
19327 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19328 Thomas Quinot <quinot@adacore.com>
19329
19330 * checks.adb (Build_Discriminant_Checks): If the expression being
19331 checks is an aggregate retrieve the values of its discriminants to
19332 generate the check, rather than creating a temporary and a reference
19333 to it.
19334 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
19335 (Install_Null_Excluding_Check): Ditto
19336 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
19337 not for the renamed object, so that the actual itype is attached in the
19338 proper context.
19339
19340 2006-02-13 Robert Dewar <dewar@adacore.com>
19341 Vincent Celier <celier@adacore.com>
19342
19343 * debug.adb: Eliminate numeric switches for binder/gnatmake
19344
19345 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
19346 switches for the compiler.
19347 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
19348 (Scan_Make_Switches): When failing with an illegal switch, output an
19349 error message with the full switch.
19350 Eliminate numeric switches for binder/gnatmake
19351
19352 * switch.ads, switch.adb (Bad_Switch): New procedure
19353
19354 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
19355 Remove 0-9 as debug flag character possibilities
19356 -d is now controlling the primary stack size when its value is a
19357 positive. Also add checks against invalid values, and support for kb,
19358 mb. Ditto for -D switch.
19359
19360 2006-02-13 Robert Dewar <dewar@adacore.com>
19361 Serguei Rybin <rybin@adacore.com>
19362
19363 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
19364 save/restore routines.
19365 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19366 were not always properly handled previously.
19367 Since we are changing the tree format anyway, also get rid of the
19368 junk obsolete Immediate_Errors flag.
19369 (Tree_Read): Change the way of reading Tree_Version_String - now we
19370 read the version string from the tree even if its length is not the
19371 same as the length of the version string computed from Gnatvsn.
19372 (Search_Directory_Present): New Boolean flag for the compiler.
19373 Define Tree_Version_String as a dynamic string.
19374 (Default_Stack_Size): new variable, used to handle switch -d.
19375
19376 * par-prag.adb:
19377 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
19378 only for main unit.
19379 Add pragma Ada_2005 (synonym for Ada_05)
19380 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19381 were not always properly handled previously.
19382
19383 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
19384 explicit Ada_95 to Ada_2005.
19385
19386 2006-02-13 Javier Miranda <miranda@adacore.com>
19387 Robert Dewar <dewar@adacore.com>
19388 Ed Schonberg <schonberg@adacore.com>
19389
19390 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
19391 against errors in the source program: a private types for which the
19392 corresponding full type declaration is missing and pragma CPP_Virtual
19393 is used.
19394 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
19395 (Is_Known_Null): New flag
19396 (Has_Pragma_Pure): New flag
19397 (No_Return): Present in all entities, set only for procedures
19398 (Is_Limited_Type): A type whose ancestor is an interface is limited if
19399 explicitly declared limited.
19400 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
19401 entities. Only used for component marked Is_Tag. If present it stores
19402 the Offset_To_Top function used to provide this value in tagged types
19403 whose ancestor has discriminants.
19404
19405 * exp_ch2.adb: Update status of new Is_Known_Null flag
19406
19407 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
19408
19409 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
19410 the categorization sense if Is_Pure was set by pragma Pure_Function.
19411
19412 2006-02-13 Quentin Ochem <ochem@adacore.com>
19413 Olivier Hainque <hainque@adacore.com>
19414
19415 * bindusg.adb: Updated documentation for -d and -D switches.
19416
19417 * raise.h (__gnat_set_globals): added new parameter for
19418 Default_Stack_Size.
19419
19420 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
19421 (__gnat_handle_vms_condition): Adjust context before raise.
19422 (__gnat_install_handler): Restore the global vector setup for GCC
19423 versions before 3.4, as the frame based circtuitry is not available
19424 in this case.
19425 (__gnat_set_globals): added a parameter default_stack_size
19426 (__gl_default_stack_size): new variable.
19427
19428 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19429
19430 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
19431 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
19432 does not exist in the Ada RM.
19433 (Compatible_Int_Bounds): Determine whether two integer range bounds
19434 are of equal length and have the same start and end values.
19435 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
19436 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
19437 aggregate when it is part of an object declaration.
19438 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
19439 constrains discriminants of its parent, add explicitly the discriminant
19440 constraints of the ancestor by retrieving them from the
19441 stored_constraint of the parent.
19442
19443 2006-02-13 Robert Dewar <dewar@adacore.com>
19444
19445 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
19446 attribute Mechanism_Code is applied to renamed subprogram, modify
19447 prefix to point to base subprogram.
19448 Max/Min attributes now violate Restriction No_Implicit_Conditionals
19449
19450 * sinfo.ads: Document that Mechanism_Code cannot be applied to
19451 renamed subprograms so that the front-end must replace the prefix
19452 appropriately.
19453
19454 2006-02-13 Javier Miranda <miranda@adacore.com>
19455 Gary Dismukes <dismukes@adacore.com>
19456
19457 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
19458 availability of RE_Interface_Tag.
19459 (Build_Initialization_Call): Fix wrong access to the discriminant value.
19460 (Freeze_Record_Type): Do not generate the tables associated with
19461 timed and conditional dispatching calls through synchronized
19462 interfaces if compiling under No_Dispatching_Calls restriction.
19463 When compiling for Ada 2005, for a nonabstract
19464 type with a null extension, call Make_Controlling_Function_Wrappers
19465 and insert the wrapper function declarations and bodies (the latter
19466 being appended as freeze actions).
19467 (Predefined_Primitive_Bodies): Do not generate the bodies of the
19468 predefined primitives associated with timed and conditional
19469 dispatching calls through synchronized interfaces if we are
19470 compiling under No_Dispatching_Calls.
19471 (Build_Init_Procedure): Use RTE_Available to check if a run-time
19472 service is available before generating a call.
19473 (Make_Controlling_Function_Wrappers): New procedure.
19474 (Expand_N_Full_Type_Declaration): Create a class-wide master for
19475 access-to-limited-interfaces because they can be used to reference
19476 tasks that implement such limited interface.
19477 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
19478 procedure spec and body of the Offset_To_Top function that is generated
19479 when the parent of a type with discriminants has secondary dispatch
19480 tables.
19481 (Init_Secondary_Tags): Handle the case in which the parent of the type
19482 containing secondary dispatch tables has discriminants to generate the
19483 correct arguments to call Set_Offset_To_Top.
19484 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
19485
19486 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
19487 Add Wide_[Wide_]Expanded_Name.
19488 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
19489 the same functionality of Get_Prim_Op_Address but applied to predefined
19490 primitive operations because the pointers to the predefined primitives
19491 are now saved in a separate table.
19492 (Parent_Size): Modified to get access to the separate table of primitive
19493 operations or the parent type.
19494 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
19495 functionality of Set_Prim_Op_Address but applied to predefined primitive
19496 operations.
19497 (Set_Signature): New subprogram used to store the signature of a DT.
19498 (Displace): If the Offset_To_Top value is not static then call the
19499 function generated by the expander to get such value; otherwise use
19500 the value stored in the table of interfaces.
19501 (Offset_To_Top): The type of the actual has been changed to Address to
19502 give the correct support to tagged types with discriminants. In this
19503 case this value is stored just immediately after the tag field.
19504 (Set_Offset_To_Top): Two new formals have been added to indicate if the
19505 offset_to_top value is static and hence pass this value to the run-time
19506 to store it in the table of interfaces, or else if this value is dynamic
19507 and then pass to the run-time the address of a function that is
19508 generated by the expander to provide this value for each object of the
19509 type.
19510
19511 * rtsfind.ads (Default_Prin_Op_Count): Removed.
19512 (Default_Prim_Op_Count): New entity
19513 (Get_Predefined_Prim_Op_Address): New entity
19514 (Set_Predefined_Prim_Op_Address): New entity
19515 (RE_Set_Signature): New entity
19516
19517 2006-02-13 Thomas Quinot <quinot@adacore.com>
19518 Ed Schonberg <schonberg@adacore.com>
19519
19520 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
19521 Make_Adjust_Call done for a newly-allocated object.
19522
19523 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
19524 in a subprogram are wrapped in a cleanup block, indicate that the
19525 subprogram contains an inner block with an exception handler.
19526 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
19527 Adjust call is for a newly-allocated object. In that case we must not
19528 assume that the finalization list chain pointers are correct (since they
19529 come from a bit-for-bit copy of the original object's pointers) so if
19530 the attach level would otherwise be zero (no change), we set it to 4
19531 instead to cause the pointers to be reset to null.
19532
19533 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
19534 reset chain pointers to null.
19535
19536 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19537
19538 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
19539 string, and the context requires a loop for the assignment (e.g.
19540 because the left-hand side is packed), generate a unique name for the
19541 temporary that holds the string, to prevent spurious name clashes.
19542
19543 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19544 Javier Miranda <miranda@adacore.com>
19545 Robert Dewar <dewar@adacore.com>
19546 Gary Dismukes <dismukes@adacore.com>
19547
19548 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
19549 return unconstrained arrays.
19550 Update comments.
19551 (Expand_Call): An indirect call through an access parameter of a
19552 protected operation is not a protected call.
19553 Add circuit to raise CE in Ada 2005 mode following call
19554 to Raise_Exception.
19555 (Register_DT_Entry): Do nothing if
19556 the run-time does not give support to abstract interfaces.
19557 (Freeze_Subprogram): In case of dispatching operations, do not generate
19558 code to register the operation in the dispatch table if the source
19559 is compiled with No_Dispatching_Calls.
19560 (Register_Predefined_DT_Entry): Generate code that calls the new
19561 run-time subprogram Set_Predefined_Prim_Op_Address instead of
19562 Set_Prim_Op_Address.
19563
19564 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
19565 on array assignments if the right-hand side is a function call that has
19566 been inlined. Check is performed on the assignment in the block.
19567 (Process_Bounds): If bounds and range are overloaded, apply preference
19568 rule for root operations to disambiguate, and diagnose true ambiguity.
19569 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
19570 a tag-indeterminate right-hand side even when Expander_Active is True.
19571 Needed to ensure that dispatching calls to T'Input are allowed and
19572 get the tag of the target class-wide object.
19573
19574 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
19575 an inherited primitive operation that already overrides several
19576 abstract interface primitives. For transitivity, the new entity must
19577 also override all the abstract interface primitives covered by the
19578 inherited overriden primitive.
19579 Emit warning if new entity differs from homograph in same scope only in
19580 that one has an access parameter and the other one has a parameter of
19581 a general access type with the same designated type, at the same
19582 position in the signature.
19583 (Make_Inequality_Operator): Use source locations of parameters and
19584 subtype marks from corresponding equality operator when creating the
19585 tree structure for the implicit declaration of "/=". This does not
19586 change anything in behaviour except that the decoration of the
19587 components of the subtree created for "/=" allows ASIS to get the
19588 string images of the corresponding identifiers.
19589 (Analyze_Return_Statement): Remove '!' in warning message.
19590 (Check_Statement_Sequence): Likewise.
19591 (Analyze_Subprogram_Body): For an access parameter whose designated type
19592 is an incomplete type imported through a limited_with clause, use the
19593 type of the corresponding formal in the body.
19594 (Check_Returns): Implicit return in No_Return procedure now raises
19595 Program_Error with a compile time warning, instead of beging illegal.
19596 (Has_Single_Return): Function returning unconstrained type cannot be
19597 inlined if expression in unique return statement is not an identifier.
19598 (Build_Body_To_Inline): It is possible to inline a function call that
19599 returns an unconstrained type if all return statements in the function
19600 return the same local variable. Subsidiary procedure Has_Single_Return
19601 verifies that the body conforms to this restriction.
19602
19603 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
19604 same type, and one of them is of an anonymous access type, convert
19605 the other operand to it, so that this is a valid binary operation for
19606 gigi.
19607 (Resolve_Type_Conversion): Handle subtypes of protected types and
19608 task types when accessing to the corresponding record type.
19609 (Resolve_Allocator): Add '\' in 2-line warning message.
19610 Remove '!' in warning message.
19611 (Resolve_Call): Add '\' in 2-line warning message.
19612 (Valid_Conversion): Likewise.
19613 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
19614 resulting type may be an access type with an implicit dereference.
19615 Obtain the proper component from the designated type.
19616 (Make_Call_Into_Operator): Handle properly a call to predefined equality
19617 given by an expanded name with prefix Standard, when the operands are
19618 of an anonymous access type.
19619 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
19620 Explicit_Dereference and Resolve_Selected_Component, to verify that the
19621 prefix of the expression is not of an incomplete type. Allows full
19622 diagnoses of all semantic errors.
19623 (Resolve_Actuals): If the actual is an allocator whose directly
19624 designated type is a class-wide interface we build an anonymous
19625 access type to use it as the type of the allocator. Later, when
19626 the subprogram call is expanded, if the interface has a secondary
19627 dispatch table the expander will add a type conversion to force
19628 the displacement of the pointer.
19629 (Resolve_Call): If a function that returns an unconstrained type is
19630 marked Inlined_Always and inlined, the call will be inlined and does
19631 not require the creation of a transient scope.
19632 (Check_Direct_Boolean_Op): Removed
19633 (Resolve_Comparison_Op): Remove call to above
19634 (Resolve_Equality_Op): Remove call to above
19635 (Resolve_Logical_Op): Inline above, since this is only call.
19636 (Valid_Conversion): Handle properly conversions between arrays of
19637 convertible anonymous access types.
19638
19639 PR ada/25885
19640 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
19641 the literal in an unchecked conversion, because GCC 4.x needs a static
19642 value for a string bound.
19643
19644 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19645 Hristian Kirtchev <kirtchev@adacore.com>
19646
19647 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
19648 components of the corresponding record, take into account component
19649 definitions that are access definitions.
19650 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
19651 procedure is not considered a dispatching call and will be expanded
19652 properly.
19653
19654 2006-02-13 Javier Miranda <miranda@adacore.com>
19655
19656 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
19657 controlling argument of the dispatching call is an abstract interface
19658 class-wide type then we use it directly.
19659 Check No_Dispatching_Calls restriction.
19660 (Default_Prim_Op_Position): Remove the code that looks for the last
19661 entity in the list of aliased subprograms. This code was wrong in
19662 case of renamings.
19663 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
19664 when the source is compiled with the No_Dispatching_Calls restriction.
19665 (Init_Predefined_Interface_Primitives): No need to inherit primitives
19666 if we are compiling with restriction No_Dispatching_Calls.
19667 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
19668 subprograms if we are compiling under No_Dispatching_Calls restriction.
19669 (Make_DT): Generate a dispatch table with a single dummy entry if
19670 we are compiling with the No_Dispatching_Calls restriction. In
19671 addition, in this case we don't generate code that calls to the
19672 following run-time subprograms: Set_Type_Kind, Inherit_DT.
19673 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
19674 of this subprogram if compiling with the No_Dispatching_Calls
19675 restriction.
19676 (Expand_Type_Conversion): Instead of using the actual parameter,
19677 the argument passed as parameter to the conversion function was
19678 erroneously referenced by the expander.
19679 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
19680 Set_Predefined_Primitive_Op_Address and Set_Signature.
19681 (Expand_Dispatching_Call): Generate call to
19682 Get_Predefined_Prim_Op_Address for predefined primitives.
19683 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
19684 predefined primitives.
19685 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
19686 primitives we reserve one dummy entry to ensure that the tag does not
19687 point to some memory that is associated with some other object. In
19688 addition, remove all the old code that generated the assignments
19689 associated with the signature of the dispatch table and replace them
19690 by a call to the new subprogram Set_Signature.
19691 (Set_All_DT_Position): Change the algorithm because now we have a
19692 separate dispatch table associated with predefined primitive operations.
19693 (Expand_Interface_Conversion): In case of non-static offset_to_top
19694 add explicit dereference to get access to the object after the call
19695 to displace the pointer to the object.
19696 (Expand_Interface_Thunk): Modify the generation of the actual used
19697 in the calls to the run-time function Offset_To_Top to fulfil its
19698 new interface.
19699 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
19700
19701 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19702
19703 * exp_dist.adb (Copy_Specification): For access parameters, copy
19704 Null_Exclusion flag, which will have been set for stream subprograms
19705 in Ada2005 mode.
19706
19707 2006-02-13 Pascal Obry <obry@adacore.com>
19708
19709 * expect.c (__gnat_expect_portable_execvp): New implementation. The
19710 previous implementation was using the C runtime spawnve routine but
19711 the corresponding wait was using directly the Win32 API. This was
19712 causing some times a lock when waiting for an event using
19713 WaitForSingleObject in __gnat_waitpid. This new implementation uses
19714 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
19715 API fixes this problem.
19716
19717 2006-02-13 Robert Dewar <dewar@adacore.com>
19718
19719 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
19720 call.
19721
19722 2006-02-13 Thomas Quinot <quinot@adacore.com>
19723
19724 * exp_pakd.ads: Fix typos in comments.
19725
19726 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
19727 array reference that is an explicit dereference, mark the converted
19728 (packed) array reference as analyzed to prevent a forthcoming
19729 reanalysis from resetting its type to the original (non-packed) array
19730 type.
19731
19732 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19733 Javier Miranda <miranda@adacore.com>
19734 Eric Botcazou <ebotcazou@adacore.com>
19735
19736 * exp_util.ads, exp_util.adb (Find_Prim_Op,
19737 Is_Predefined_Primitive_Operation): When
19738 searching for the predefined equality operator, verify that operands
19739 have the same type.
19740 (Is_Predefined_Dispatching_Operation): Remove the code that looks
19741 for the last entity in the list of aliased subprograms. This code
19742 was wrong in case of renamings.
19743 (Set_Renamed_Subprogram): New procedure
19744 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
19745 Exp_Type constant computed when entering this subprogram.
19746 (Known_Null): New function
19747 (OK_To_Do_Constant_Replacement): New function
19748 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
19749 (Side_Effect_Free): An attribute reference 'Input is not free of
19750 side effect, unlike other attributes that are functions. (from code
19751 reading).
19752 (Remove_Side_Effects): Expressions that involve packed arrays or records
19753 are copied at the point of reference, and therefore must be marked as
19754 renamings of objects.
19755 (Is_Predefined_Dispatching_Operation): Return false if the operation is
19756 not a dispatching operation.
19757
19758 PR ada/18819
19759 (Remove_Side_Effects): Lift enclosing type conversion nodes for
19760 elementary types in all cases.
19761
19762 2006-02-13 Javier Miranda <miranda@adacore.com>
19763
19764 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
19765 task types when accessing to the corresponding record type.
19766 Remove '!' in warning message.
19767
19768 2006-02-13 Olivier Hainque <hainque@adacore.com>
19769
19770 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
19771 to avoid useless and space inefficient overalignments on targets where
19772 Max_Alignment is larger than 16.
19773
19774 2006-02-13 Pascal Obry <obry@adacore.com>
19775
19776 * g-catiio.adb (Sec_Number): New type used to compute the number of
19777 seconds since 1-1-1970.
19778 (Image) [Natural]: The parameter was an Integer, as we can't deal with
19779 negative numbers (years, months...) it is better to have a Natural here.
19780 Code clean-up.
19781 (Image) [Number]: Change parameter from Long_Integer to Number.
19782 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
19783 overflow for dates past year 2038.
19784
19785 2006-02-13 Matthew Heaney <heaney@adacore.com>
19786
19787 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
19788 Constraint_Error.
19789
19790 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19791
19792 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
19793 native platforms.
19794 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
19795 finalization can occur normally.
19796
19797 2006-02-13 Vincent Celier <celier@adacore.com>
19798
19799 * gnatcmd.adb (Rules_Switches): New table
19800 (Add_To_Rules_Switches): New procedure
19801 (GNATCmd): For command CHECK, put all options following "-rules" in the
19802 Rules_Switches table. Append these -rules switches after the -cargs
19803 switches.
19804
19805 2006-02-13 Robert Dewar <dewar@adacore.com>
19806
19807 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
19808 These two cases were generating incorrect output, and if this unit
19809 was built with checks on, generated a discriminant mismatch constraint
19810 error.
19811
19812 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19813 Robert Dewar <dewar@adacore.com>
19814
19815 * lib-xref.adb (Get_Type_Reference): For a private type whose full
19816 view is an array type, indicate the component type as well, for
19817 navigation purposes.
19818 (Generate_Reference): Don't consider array ref on LHS to be a case
19819 of violating pragma Unreferenced.
19820 Do not give Ada 2005 warning except on real reference.
19821
19822 2006-02-13 Vincent Celier <celier@adacore.com>
19823
19824 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
19825 main source, add switch -mdebug-main=_ada_ so that the executable can
19826 be debugged by the standard VMS debugger.
19827 (Gnatmake): Set No_Main_Subprogram to True when there is no main
19828 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
19829 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
19830 of the last source, as the binding and linking phases are never
19831 performed.
19832 Set all executable obsolete when rebuilding a library.
19833
19834 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
19835 options.
19836
19837 2006-02-13 Javier Miranda <miranda@adacore.com>
19838
19839 PR ada/23973
19840 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
19841 code to improve the error message reported when the program has
19842 declarations of abstract interface types and it is not compiled with
19843 the -gnat05 switch.
19844 (P_Access_Definition): Reorganize the code to improve the error
19845 message reported when the new Ada 2005 syntax for anonymous
19846 access types is used and the program is not compiled with the
19847 -gnat05 switch.
19848
19849 2006-02-13 Robert Dewar <dewar@adacore.com>
19850
19851 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
19852 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
19853 (MODE_IN)
19854
19855 2006-02-13 Javier Miranda <miranda@adacore.com>
19856
19857 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
19858 against source containing syntax errors.
19859
19860 2006-02-13 Vincent Celier <celier@adacore.com>
19861
19862 * prj.adb (Reset): Initialize the first element of table Namings with
19863 the standard naming data.
19864
19865 2006-02-13 Vincent Celier <celier@adacore.com>
19866
19867 * prj.ads (Error_Warning): New enumeration type
19868
19869 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
19870 unknown, use the location of the project to report the error.
19871 (When_No_Sources): New global variable
19872 (Report_No_Ada_Sources): New procedure
19873 (Check): New parameter When_No_Sources. Set value of global variable
19874 When_No_Sources,
19875 (Find_Sources): Call Report_No_Ada_Sources when appropriate
19876 (Get_Sources_From_File): Ditto
19877 (Warn_If_Not_Sources): Better warning messages indicating the unit name
19878 and the file name.
19879
19880 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
19881 Call Prj.Proc.Process with parameter When_No_Sources.
19882
19883 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
19884 Call Recursive_Check with parameter When_No_Sources.
19885 (Recursive_Check): New parameter When_No_Sources. Call itself and
19886 Prj.Nmsc.Check with parameter When_No_Sources.
19887 (Process): New parameter When_No_Sources. Call Check with parameter
19888 When_No_Sources.
19889 (Copy_Package_Declarations): New procedure to copy renamed parameters
19890 and setting the location of the declared attributes to the location
19891 of the renamed package.
19892 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
19893 packages.
19894
19895 2006-02-13 Vincent Celier <celier@adacore.com>
19896
19897 * prj-makr.adb (Make): Preserve the comments from the original project
19898 file.
19899 When removing nodes (attributes Source_Dirs, Source_Files,
19900 Source_List_File and package Naming), save the comments and attach the
19901 saved comments to the newly created nodes.
19902 Do not add a with clause for the naming package if one already exists.
19903
19904 2006-02-13 Javier Miranda <miranda@adacore.com>
19905 Gary Dismukes <dismukes@adacore.com>
19906 Robert Dewar <dewar@adacore.com>
19907
19908 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
19909
19910 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
19911 aliased entities to look for the overriden abstract interface
19912 subprogram.
19913 (Is_Interface_Subprogram): Complete documentation.
19914 (Check_Dispatching_Operation): Do not generate code to register the
19915 operation in the dispatch table if the source is compiled with
19916 restriction No_Dispatching_Calls.
19917 (Override_Dispatching_Operation): Check for illegal attempt to override
19918 No_Return procedure with procedure that is not No_Return
19919 (Check_Dispatching_Call): Suppress the check for an abstract operation
19920 when the original node of an actual is a tag-indeterminate attribute
19921 call, since the attribute, which must be 'Input, can never be abstract.
19922 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
19923 call to the Input attribute (even when rewritten).
19924 (Propagate_Tag): Augment comment to indicate the possibility of a call
19925 to an Input attribute.
19926
19927 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
19928 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
19929
19930 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
19931 No_Wide_Characters is no longer partition-wide
19932 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
19933 rather than GNAT
19934
19935 2006-02-13 Douglas Rupp <rupp@adacore.com>
19936
19937 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
19938
19939 2006-02-13 Javier Miranda <miranda@adacore.com>
19940
19941 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19942 handles default-initialized components to keep separate the management
19943 of this feature but also avoid the unrequired resolution and
19944 expansion of components that do not have partially initialized
19945 values.
19946 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19947 (Check_Bounds): Likewise.
19948 (Check_Length): Likewise.
19949
19950 2006-02-13 Javier Miranda <miranda@adacore.com>
19951 Ed Schonberg <schonberg@adacore.com>
19952
19953 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19954 abstract interface type call analyze_and_resolve to expand the type
19955 conversion into the corresponding displacement of the
19956 reference to the base of the object.
19957 (Eval_Attribute, case Width): For systems where IEEE extended precision
19958 is supported, the maximum exponent occupies 4 decimal digits.
19959 (Accessibility_Message): Add '\' in 2-line warning message.
19960 (Resolve_Attribute): Likewise.
19961 (case Attribute_Access): Significantly revise checks
19962 for illegal access-to-subprogram Access attributes to properly enforce
19963 the rules of 3.10.2(32/2).
19964 Diagnose use of current instance with an illegal attribute.
19965
19966 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19967 to a Node_Id.
19968 (Enclosing_Generic_Unit): New function to return a node's innermost
19969 enclosing generic declaration node.
19970 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19971 (Type_Access_Level): The accessibility level of anonymous acccess types
19972 associated with discriminants is that of the current instance of the
19973 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19974 (Compile_Time_Constraint_Error): Handle case of conditional expression.
19975 (Kill_Current_Values_For_Entity): New function
19976 (Enter_Name): Change formal type to Entity_Id
19977
19978 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19979 Ed Schonberg <schonberg@adacore.com>
19980 Gary Dismukes <dismukes@adacore.com>
19981
19982 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19983 Analyze_Compilation_Unit.
19984 Detect and warn on redundant with clauses detected in a package spec
19985 and/or body when -gnatwr is used.
19986 (Analyze_Context): Analyze config pragmas before other items
19987 (Install_Context_Items): Don't analyze config pragmas here
19988 (Install_Limited_Withed_Unit): Set limited entity of package in
19989 with_clause so that cross-reference information or warning messages on
19990 unused packages can be properly generated
19991 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19992 has Error_Posted set. Prevent infinite loops in illegal programs.
19993 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19994 to the point of the error test requiring the current unit to be private.
19995 This ensures that private with clauses are not exempted from the basic
19996 checking for being a descendant of the same library unit parent as a
19997 withed private descendant unit.
19998 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19999 handle private with clauses properly, as well as to account for cases
20000 where the withed unit is a public descendant of a private ancestor
20001 (in which case the current unit must be a descendant of the private
20002 ancestor's parent). The spec comments were updated accordingly. Also,
20003 the old error message in this subprogram was replaced with error
20004 messages that mirror the errors tested and reported by
20005 Check_Private_Child_Unit.
20006 Parameter and variable names improved for readability.
20007 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20008 private as the precondition for calling
20009 Check_Private_Limited_Withed_Unit since that subprogram has been
20010 revised to test public units as well as private units.
20011
20012 2006-02-13 Thomas Quinot <quinot@adacore.com>
20013 Robert Dewar <dewar@adacore.com>
20014 Ed Schonberg <schonberg@adacore.com>
20015 Javier Miranda <miranda@adacore.com>
20016
20017 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20018 that Scope_Stack.First = 1.
20019 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20020 were not always properly handled previously.
20021 (Formal_Entity): Complete rewrite, to handle properly some complex case
20022 with multiple levels of parametrization by formal packages.
20023 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20024 to the corresponding derived type declaration for proper semantics.
20025
20026 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20027 (Check_Component): Enforce restriction on components of
20028 unchecked_unions: a component in a variant cannot contain tasks or
20029 controlled types.
20030 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20031 conform to AI-216.
20032 Add pragma Ada_2005 (synonym for Ada_05)
20033 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20034 were not always properly handled previously.
20035 Document that pragma Propagate_Exceptions has no effect
20036 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20037 (Set_Convention_From_Pragma): Check that if a convention is
20038 specified for a dispatching operation, then it must be
20039 consistent with the existing convention for the operation.
20040 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20041 longer required to specify an vtable-ptr component in the record. For
20042 compatibility reasons we leave the support for the previous definition.
20043 (Analyze_Pragma, case No_Return): Allow multiple arguments
20044
20045 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20046 non-overrideen inherited operation with a controlling result as
20047 illegal only its implicit declaration comes from the derived type
20048 declaration of its result's type.
20049 (Check_Possible_Deferred_Completion): Relocate the object definition
20050 node of the subtype indication of a deferred constant completion rather
20051 than directly analyzing it. The analysis of the generated subtype will
20052 correctly decorate the GNAT tree.
20053 (Record_Type_Declaration): Check whether this is a declaration for a
20054 limited derived record before analyzing components.
20055 (Analyze_Component_Declaration): Diagnose record types not explicitly
20056 declared limited when a component has a limited type.
20057 (Build_Derived_Record_Type): Code reorganization to check if some of
20058 the inherited subprograms of a tagged type cover interface primitives.
20059 This check was missing in case of a full-type associated with a private
20060 type declaration.
20061 (Constant_Redeclaration): Check that the subtypes of the partial and the
20062 full view of a constrained deferred constant statically match.
20063 (Mentions_T): A reference to the current type in an anonymous access
20064 component declaration must be an entity name.
20065 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20066 class_wide type to refer to full type, not to the incomplete one.
20067 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20068 available. Required to give support to the certified run-time.
20069 (Analyze_Component_Declaration): In case of anonymous access components
20070 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20071 (Process_Discriminants): For an access discriminant, use the
20072 discriminant specification as the associated_node_for_itype, to
20073 simplify accessibility checks.
20074
20075 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20076 Javier Miranda <miranda@adacore.com>
20077
20078 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20079 abstract interpretations on an operator, remove interpretations that
20080 yield Address or a type derived from it, if one of the operands is an
20081 integer literal.
20082 (Try_Object_Operation.Try_Primitive_Operation,
20083 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20084 location when creating the new reference to a primitive or class-wide
20085 operation as a part of rewriting a subprogram call.
20086 (Try_Primitive_Operations): If context requires a function, collect all
20087 interpretations after the first match, because there may be primitive
20088 operations of the same type with the same profile and different return
20089 types. From code reading.
20090 (Try_Primitive_Operation): Use the node kind to choose the proper
20091 operation when a function and a procedure have the same parameter
20092 profile.
20093 (Complete_Object_Operation): If formal is an access parameter and prefix
20094 is an object, rewrite as an Access reference, to match signature of
20095 primitive operation.
20096 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20097 by an expanded name with prefix Standard, when the operands are of an
20098 anonymous access type.
20099 (Remove_Abstract_Operations): If the operation is abstract because it is
20100 inherited by a user-defined type derived from Address, remove it as
20101 well from the set of candidate interpretations of an overloaded node.
20102 (Analyze_Membership_Op): Membership test not applicable to cpp-class
20103 types.
20104
20105 2006-02-13 Bob Duff <duff@adacore.com>
20106
20107 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20108 redundant use clauses.
20109 In particular, if the scope of two use clauses overlaps, but one is not
20110 entirely included in the other, we should not warn. This can happen
20111 with nested packages.
20112 (Analyze_Subprogram_Renaming): Protect the compiler against previously
20113 reported errors. The bug was reported when the compiler was built
20114 with assertions enabled.
20115 (Find_Type): If the node is a 'Class reference and the prefix is a
20116 synchronized type without a corresponding record, return the type
20117 itself.
20118
20119 2006-02-13 Javier Miranda <miranda@adacore.com>
20120
20121 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20122 if this is the full-declaration associated with a private declaration
20123 that implement interfaces, then the private type declaration must be
20124 limited.
20125 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20126 as aliased. The use of the 'access attribute is not available for such
20127 object (for this purpose the object should be explicitly marked as
20128 aliased, but being an anonymous type this is not possible).
20129
20130 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20131 Robert Dewar <dewar@adacore.com>
20132
20133 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20134 compilation unit is an elaboration scope.
20135 (Add_Task_Proc): Add '\' in 2-line warning message.
20136 (Activate_All_Desirable): Deal with case of unit with'ed by parent
20137
20138 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20139 Javier Miranda <miranda@adacore.com>
20140
20141 * sem_type.adb (Write_Overloads): Improve display of candidate
20142 interpretations.
20143 (Add_One_Interp): Do not add to the list of interpretations aliased
20144 entities corresponding with an abstract interface type that is an
20145 immediate ancestor of a tagged type; otherwise we have a dummy
20146 conflict between this entity and the aliased entity.
20147 (Disambiguate): The predefined equality on universal_access is not
20148 usable if there is a user-defined equality with the proper signature,
20149 declared in the same declarative part as the designated type.
20150 (Find_Unique_Type): The universal_access equality operator defined under
20151 AI-230 does not cover pool specific access types.
20152 (Covers): If one of the types is a generic actual subtype, check whether
20153 it matches the partial view of the other type.
20154
20155 2006-02-13 Thomas Quinot <quinot@adacore.com>
20156
20157 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20158 line. This is necessary to allow In_Extended_Main_Unit to provide
20159 correct results for itypes while writing out expanded source.
20160 (Close_File): No need to update the source_index_table here since it's
20161 now done for each line.
20162
20163 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20164 Robert Dewar <dewar@adacore.com>
20165
20166 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20167 preserve the source unit where the itype is declared, and prevent a
20168 backend abort.
20169 (Note_Implicit_Run_Time_Call): New procedure
20170 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20171 E_Subprogram_Type)
20172
20173 * sprint.ads: Document use of $ for implicit run time routine call
20174
20175 2006-02-13 Quentin Ochem <ochem@adacore.com>
20176
20177 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20178 task name.
20179
20180 2006-02-13 Bob Duff <duff@adacore.com>
20181
20182 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20183 Scan_Unsigned, so we do not scan leading blanks and sign twice.
20184 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20185 raise Constraint_Error.
20186
20187 * s-vallli.adb (Scan_Long_Long_Integer): Call
20188 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20189 do not scan leading blanks and sign twice.
20190 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20191 raise Constraint_Error.
20192
20193 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20194 Scan_Long_Long_Unsigned): Split out most of the processing from
20195 Scan_Long_Long_Unsigned out into
20196 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20197 This prevents scanning leading blanks and sign twice.
20198 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20199 See RM-3.5(44).
20200
20201 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20202 out most of the processing from Scan_Unsigned out into
20203 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20204 This prevents scanning leading blanks and sign twice.
20205
20206 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20207 use with Modular'Value attribute.
20208 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20209 attribute.
20210
20211 2006-02-13 Robert Dewar <dewar@adacore.com>
20212
20213 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20214
20215 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20216
20217 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20218 (PPC VxWorks): Likewise.
20219 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20220 (forced_callee): Make non-inlinable and non-pure.
20221 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20222
20223 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20224 Ben Brosgol <brosgol@adacore.com>
20225 Robert Dewar <dewar@adacore.com>
20226
20227 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20228 support.
20229 Document that gnatbind -M option is for cross environments only.
20230 Added description of using gnatmem to trace gnat rtl allocs and deallocs
20231 Add note on use of $ to label implicit run time calls
20232 Add documentation for -gnatyI (check mode IN)
20233 Updated chapter on compatibility with HP Ada
20234 VMS-oriented edits.
20235 Ran spell and corrected errors
20236 Add documentation for gnatbind -d and rework documentation of -D
20237 at the same time.
20238 Add subprogram/data elimination section.
20239 Minor editing of annex A.
20240 Add section for gnatcheck.
20241 Add documentation for restriction No_Dispatching_Calls
20242 Add documentation for pragma Ada_2005
20243 Remove mention of obsolete pragma Propagate_Exceptions
20244 Document that pragma Unreferenced can appear after DO in ACCEPT
20245 Clarify Pure_Function for library level units
20246 Mention Max/Min in connection with No_Implicit_Conditionals
20247 No_Wide_Characters restriction is no longer partition-wide
20248 Add a nice example for Universal_Literal_String attribute
20249 Document that pragma No_Return can take multiple arguments
20250
20251 * ug_words: Added entry for gnatcheck
20252
20253 * g-ctrl_c.ads (Install_Handler): Enhance comments
20254
20255 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20256
20257 * g-trasym.ads: Add documentation on how to do off line symbolic
20258 traceback computation.
20259
20260 * s-fatgen.adb: Add comments for Unaligned_Valid
20261
20262 * stand.ads: Fix typo in comment
20263
20264 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20265
20266 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20267
20268 2006-02-06 Roger Sayle <roger@eyesopen.com>
20269
20270 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20271
20272 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20273
20274 PR target/25926
20275 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20276 implementation that calls __main.
20277
20278 2006-01-25 Peter O'Gorman <peter@pogma.com>
20279
20280 PR bootstrap/25859
20281 * Makefile.in (GCC_LINK): Remove quotes.
20282 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20283 or $(GCC_LINK).
20284
20285 (powerpc-darwin): Pass -shared-libgcc when building shared library.
20286
20287 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20288
20289 PR ada/24533
20290 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
20291
20292 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20293
20294 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
20295
20296 2005-12-12 Arnaud Charlet <charlet@adacore.com>
20297
20298 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
20299 needed.
20300
20301 2005-12-12 Arnaud Charlet <charlet@adacore.com>
20302
20303 * Make-lang.in: Update dependencies
20304
20305 2005-12-12 Arnaud Charlet <charlet@adacore.com>
20306
20307 * Make-lang.in: Add rule for ada/exp_sel.o
20308
20309 2005-12-12 Arnaud Charlet <charlet@adacore.com>
20310
20311 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
20312
20313 2005-12-09 Arnaud Charlet <charlet@adacore.com>
20314
20315 * gnatvsn.ads (Library_Version): Bump to version 4.2
20316 (ASIS_Version_Number): Bumped.
20317
20318 2005-12-09 Doug Rupp <rupp@adacore.com>
20319
20320 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
20321 Ada bind file prefix on VMS from b$ to b__.
20322 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
20323 __init.
20324
20325 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
20326 Targparm.OpenVMS_On_Target.
20327 (Object_Suffix): Initialize with target object suffix.
20328 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
20329
20330 * butil.adb: Change some Hostparm.OpenVMS checks to
20331 Targparm.OpenVMS_On_Target.
20332
20333 * clean.adb: Change some Hostparm.OpenVMS checks to
20334 Targparm.OpenVMS_On_Target.
20335 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
20336 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
20337 Ada bind file prefix on VMS from b$ to b__.
20338
20339 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
20340 --GCC so that Get_Target_Parameters can find system.ads.
20341 (Gnatlink): Call Get_Target_Parameters in mainline.
20342 Initialize standard packages for Targparm.
20343 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20344 (Process_Args): Also Check for object files with target object
20345 extension.
20346 (Make_Binder_File_Names): Create with target object extension.
20347 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
20348 to b__.
20349
20350 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
20351 Targparm.OpenVMS_On_Target.
20352 ({declaration},Build_Library,Check_Library): Change Ada bind file
20353 prefix on VMS from b$ to b__.
20354
20355 * osint-b.adb: Change some Hostparm.OpenVMS checks to
20356 Targparm.OpenVMS_On_Target.
20357 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
20358 b__.
20359
20360 * targext.c: New file.
20361
20362 * Makefile.in: add support for vxworks653 builds
20363 (../../vxaddr2line): gnatlink with targext.o.
20364 (TOOLS_LIBS): Move targext.o to precede libgnat.
20365 (init.o, initialize.o): Minor clean up in dependencies.
20366 (GNATLINK_OBJS): Add targparm.o, snames.o
20367 Add rules fo building targext.o and linking it explicitly with all
20368 tools.
20369 Also add targext.o to gnatlib.
20370
20371 * Make-lang.in: Add rules for building targext.o and linking it in
20372 with gnat1 and gnatbind.
20373 Add entry for exp_sel.o.
20374
20375 * osint.adb Change some Hostparm.OpenVMS checks to
20376 Targparm.OpenVMS_On_Target.
20377 (Object_File_Name): Use target object suffix.
20378
20379 * osint.ads (Object_Suffix): Remove, no longer used.
20380 (Target_Object_Suffix): Initialize with target object suffix.
20381
20382 * rident.ads: Add special exception to license.
20383
20384 * targparm.adb (Get_Target_Parameters): Set the value of
20385 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
20386 value.
20387 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
20388
20389 * targparm.ads: Add special exception to license.
20390
20391 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
20392 function.
20393 (Copy_File): Make sure from file is closed if error on to file
20394 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
20395
20396 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
20397 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
20398
20399 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
20400 target object suffix.
20401
20402 2005-12-09 Jose Ruiz <ruiz@adacore.com>
20403 Quentin Ochem <ochem@adacore.com>
20404 Florian Villoing <villoing@adacore.com>
20405
20406 * a-taster.ads, a-taster.adb: New files.
20407
20408 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
20409 link to the version that does nothing. This way the task termination
20410 routine is not executed twice for the environment task when finishing
20411 because of an unhandled exception.
20412
20413 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
20414 handler because of an unhandled exception.
20415
20416 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
20417 System.Tasking.Utilities instead of that in System.Tasking.Stages.
20418
20419 * s-finimp.adb (initialization code): Modify the soft link for the
20420 finalization of the global list instead of Adafinal.
20421
20422 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
20423 non-tasking version of the soft link for task termination. We do
20424 nothing since if we are using the non-tasking version it
20425 means that the task termination functionality is not used.
20426 (Null_Finalize_Global_List): Add this null version for the procedure
20427 in charge of finalizing the global list for controlled objects.
20428 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
20429 instead for handling run-time termination in a more flexible way.
20430 (Adafinal_NT): This new procedure will take care of finalizing the
20431 global list for controlled objects if needed, but no tasking
20432 finalization.
20433
20434 * s-tarest.adb (Task_Lock): Do not try to lock again the
20435 Global_Task_Lock if we already own it. Otherwise, we get blocked in
20436 some run-time operations.
20437 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
20438 until all nested locks have been released.
20439 (Task_Wrapper): Call the fall-back task termination handler. It
20440 applies to all tasks but the environment task.
20441 (Finalize_Global_Tasks): Add the call for the task termination
20442 procedure for the environment task.
20443 (Task_Wrapper): suppress warnings around declaration of
20444 Secondary_Stack_Address.
20445
20446 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
20447 moved to the Common_ATCB record.
20448 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
20449 Common_ATCB record.
20450 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
20451 Common_ATCB record.
20452
20453 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
20454 Fall_Back_Handler, and Specific_Handler.
20455
20456 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
20457 defined in Ada.Task_Termination, to avoid circular dependencies.
20458 (Termination_Handler): Redefine this type here, alredy defined in
20459 Ada.Task_Termination, for avoiding circular dependencies.
20460 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
20461 for storing task termination handlers. In addition,
20462 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
20463 Common_ATCB because it is used by both the regular and the restricted
20464 run times.
20465 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
20466 Common_ATCB because it is used by both the regular and the restricted
20467 run times.
20468 (Common_ATCB): Added a dynamic task analyzer field.
20469
20470 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
20471 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
20472 (Task_Wrapper): Call the task termination handler. It applies to all
20473 tasks but the environment task.
20474 (Finalize_Global_Tasks): Call the task termination procedure for the
20475 environment task. The call to Finalize_Global_List is now performed
20476 using the soft links mechanism.
20477 (Task_Wrapper): added dynamic stack analysis.
20478
20479 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
20480 potentially blocking operations has been moved from
20481 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
20482 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
20483 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
20484 this run-time check.
20485
20486 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
20487 of task termination procedure.
20488 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
20489 link for the task termination procedure.
20490
20491 * bindusg.adb: (Bindusg): Added documentation for -u option.
20492
20493 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
20494 (Get_Main_C): Add handling of dynamic stack analysis.
20495 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
20496
20497 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
20498 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
20499 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
20500
20501 * opt.ads: Added flags used by dynamic stack measurement.
20502 (Max_Line_Length): Remove (not used anymore)
20503
20504 * s-io.ads, s-io.adb (Standard_Error): new subprogram
20505 (Standart_Output): new subprogram
20506 (Set_Output): new subprogram
20507 (Put): now uses the value of Current_Out to know if the output has to be
20508 send to stderr or stdout.
20509
20510 * s-stausa.ads: Complete implementation.
20511
20512 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
20513
20514 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
20515 list of Ada 05 files.
20516 (GNAT Library Units): Add AltiVec files.
20517
20518 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
20519 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
20520 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
20521
20522 2005-12-09 Nicolas Setton <setton@adacore.com>
20523
20524 * adaint.c (__gnat_locate_regular_file): Return immediately if
20525 file_name is empty.
20526
20527 2005-12-09 Javier Miranda <miranda@adacore.com>
20528 Hristian Kirtchev <kirtchev@adacore.com>
20529
20530 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
20531 to the specification because the frontend generates code that uses this
20532 subprogram.
20533 (Set_Interface_Table): Add missing assertion.
20534 Update documentation describing the run-time structure.
20535 (Displace): New subprogram that displaces the pointer to the object
20536 to reference one of its secondary dispatch tables.
20537 (IW_Membership): Modified to use the new table of interfaces.
20538 (Inherit_TSD): Modified to use the new table of interfaces.
20539 (Register_Interface_Tag): Use the additional formal to fill the
20540 contents of the new table of interfaces.
20541 (Set_Interface_Table): New subprogram that stores in the TSD the
20542 pointer to the table of interfaces.
20543 (Set_Offset_To_Top): Use the additional formal to save copy of
20544 the offset value in the table of interfaces.
20545 Update structure of GNAT Primary and Secondary dispatch table diagram.
20546 Add comment section on GNAT dispatch table prologue.
20547 (Offset_To_Signature): Update the constant value of the Signature field.
20548 (Dispatch_Table): Update comment on hidden fields in the prologue.
20549 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
20550 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
20551 the type of formal parameter T to Tag, introduce additional assertions.
20552 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
20553 conversion.
20554 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
20555
20556 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
20557 in all the calls to Expand_Interface_Thunk. Instead of referencing the
20558 record component containing the tag of the secondary dispatch table we
20559 have to use the Offset_To_Top run-time function to get this information;
20560 otherwise if the pointer to the base of the object has been displace
20561 we get a wrong value if we use the 'position attribute.
20562
20563 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
20564 all the calls to Expand_Interface_Thunk.
20565 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
20566 interfaces; hence the call to Set_Interface_Table was clearly wrong.
20567 (Collect_All_Interfaces): Modify the internal subprogram Collect to
20568 ensure that the interfaces implemented by the ancestors are placed
20569 at the header of the generated list.
20570 (Expand_Interface_Conversion): Handle the case in which the displacement
20571 associated with the interface conversion is not statically known. In
20572 this case we generate a call to the new run-time subprogram Displace.
20573 (Make_DT): Generate and fill the new table of interfaces.
20574 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
20575 Get_Tagged_Kind and Set_Tagged_Kind.
20576 (Tagged_Kind): New function that determines the tagged kind of a type
20577 with respect to limitedness and concurrency and returns a reference to
20578 RE_Tagged_Kind.
20579 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
20580 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
20581 primary dispatch table for a type.
20582 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
20583 secondary dispatch table respectively of a tagged type.
20584
20585 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
20586 (Expand_Interface_Conversion): New subprogram to indicate if the
20587 displacement of the type conversion is statically known.
20588 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
20589
20590 * rtsfind.ads (RE_Offset_To_Top): New entity
20591 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
20592 accessible to users.
20593 (Re_Displace): New entity
20594 (RE_Interface_Data): New entity
20595 (RE_Set_Interface_Data): New_Entity
20596 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
20597 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
20598 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
20599 RE_TK_Tagged, RE_TK_Task.
20600
20601 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
20602 Init_Secondary_Tags_Internal to allow its use with interface types and
20603 also to generate the code for the new additional actual required
20604 by Set_Offset_To_Top.
20605 (Build_Init_Statements): In case of components associated with abstract
20606 interface types there is no need to generate a call to its IP.
20607 (Freeze_Record_Type): Generate Select Specific Data tables only for
20608 concurrent types.
20609 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
20610 the bodies and specifications of the predefined primitive operations
20611 dealing with dispatching selects and abort, 'Callable, 'Terminated only
20612 for concurrent types.
20613
20614 * exp_sel.ads, exp_sel.adb: New files.
20615
20616 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
20617 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
20618 properly protected objects and attach handler in the case of the
20619 restricted profile.
20620 Move embeded package Select_Expansion_Utilities into a separate external
20621 package.
20622 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
20623 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
20624 (Build_K, Build_S_Assignment): New subprograms, part of the select
20625 expansion utilities.
20626 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
20627 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
20628 where the trigger is a dispatching procedure of a limited tagged type.
20629
20630 2005-12-09 Olivier Hainque <hainque@adacore.com>
20631
20632 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
20633 pointer initialization values. Make a SAVE_EXPR instead. Add comments
20634 about the use and expansion of SAVE_EXPRs in the various possible
20635 renaming handling cases.
20636 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
20637 abusing DECL_FCONTEXT.
20638
20639 2005-12-09 Matthew Heaney <heaney@adacore.com>
20640
20641 * a-convec.adb (Merge): Added assertions to check whether vector params
20642 are sorted.
20643
20644 * a-coinve.adb (Merge): Added assertions to check whether vector params
20645 are sorted.
20646
20647 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
20648 draft.
20649 (Cursor'Read): raises PE
20650
20651 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
20652 to its default value.
20653
20654 * a-cihama.adb: Manually check whether cursor's key and elem are
20655 non-null
20656
20657 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
20658 (Merge): Assert that target and source lists are in order
20659 (Swap): Declare non-const temporaries, to pass to Splice
20660
20661 * a-cdlili.ads: (Splice): Changed param name and param mode
20662
20663 * a-cdlili.adb: (Splice): Changed param name and param mode
20664 (Merge): Assert that target and source lists are in order
20665 (Swap): Declare non-const temporaries, to pass to Splice
20666
20667 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
20668 (Write): declare Stream param as not null
20669
20670 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
20671 an exception message.
20672
20673 2005-12-09 Thomas Quinot <quinot@adacore.com>
20674 Robert Dewar <dewar@adacore.com>
20675
20676 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
20677 which is the absolute maximum length we can support.
20678
20679 * frontend.adb: For the processing of configuration pragma files,
20680 remove references to Opt.Max_Line_Length, which is not checked anymore.
20681
20682 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
20683 length.
20684
20685 * scn.adb, scng.adb:
20686 Always check line length against the absolute supported maximum,
20687 Hostparm.Max_Line_Length.
20688
20689 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
20690 value for the maximum line length is Max_Line_Length (not
20691 Column_Number'Last).
20692 Minor error msg update
20693 (Set_Style_Check_Options): New interface returning error msg
20694 Minor code reorganization (processing for 'M' was out of alpha order)
20695
20696 * switch-c.adb: New interface for Set_Style_Check_Options
20697
20698 * stylesw.ads (Set_Style_Check_Options): New interface returning error
20699 msg.
20700
20701 2005-12-09 Javier Miranda <miranda@adacore.com>
20702
20703 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
20704 with IP subprogram were only supported if there were limited types.
20705
20706 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
20707 records with IP subprogram were only supported if there were limited
20708 types.
20709
20710 2005-12-09 Olivier Hainque <hainque@adacore.com>
20711 Eric Botcazou <ebotcazou@adacore.com>
20712
20713 * trans.c (tree_transform, emit_check): Adjust calls to
20714 build_call_raise, passing the now expected GNAT_NODE argument.
20715
20716 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
20717 source line information than what the current global locus indicates
20718 when appropriate.
20719
20720 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
20721 field has overflowed.
20722 (build_call_raise): Add a GNAT_NODE argument to convey better source
20723 line information than what the current global locus indicates when
20724 appropriate.
20725 (build_component_ref): Adjust call to build_call_raise.
20726
20727 2005-12-09 Pascal Obry <obry@adacore.com>
20728
20729 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
20730 the iterator is quitting iteration on parent directory.
20731
20732 2005-12-09 Javier Miranda <miranda@adacore.com>
20733
20734 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
20735 and the assignment to a class-wide object, before the assignment we
20736 generate a run-time check to ensure that the tag of the Target is
20737 covered by the tag of the source.
20738
20739 2005-12-09 Robert Dewar <dewar@adacore.com>
20740
20741 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
20742 parameter in call to Image_Wide_Character.
20743
20744 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
20745 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
20746 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
20747 annoying FFFE/FFFF inconsistency.
20748
20749 2005-12-09 Robert Dewar <dewar@adacore.com>
20750 Javier Miranda <miranda@adacore.com>
20751 Ed Schonberg <schonberg@adacore.com>
20752
20753 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
20754 of type conversion.
20755 (Find_Interface): New subprogram that given a tagged type and one of its
20756 component associated with the secondary table of an abstract interface
20757 type, return the entity associated with such abstract interface type.
20758 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
20759 base type to create anonymous subtype, because entity may be a locally
20760 declared subtype or generic actual.
20761 (Find_Interface): New subprogram that given a tagged type and one of its
20762 component associated with the secondary table of an abstract interface
20763 type, return the entity associated with such abstract interface type.
20764
20765 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
20766 conversion cannot be handled at compile time. In this case we pass this
20767 information to the expander to generate the appropriate code.
20768
20769 2005-12-09 Robert Dewar <dewar@adacore.com>
20770 Ed Schonberg <schonberg@adacore.com>
20771 Gary Dismukes <dismukes@adacore.com>
20772 Javier Miranda <miranda@adacore.com>
20773 Hristian Kirtchev <kirtchev@adacore.com>
20774
20775 * einfo.adb (Itype_Printed): New flag
20776 (Is_Limited_Type): Derived types do not inherit limitedness from
20777 interface progenitors.
20778 (Is_Return_By_Reference_Type): Predicate does not apply to limited
20779 interfaces.
20780
20781 * einfo.ads (Itype_Printed): New flag
20782 Move Is_Wrapper_Package to proper section
20783 Add missing Inline for Is_Volatile
20784
20785 * output.ads, output.adb (Write_Erase_Char): New procedure
20786 (Save/Restore_Output_Buffer): New procedures
20787 (Save/Restore_Output_Buffer): New procedures
20788
20789 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
20790 Add missing support for anonymous access type
20791 (Write_Id): Insert calls to Write_Itype
20792 (Write_Itype): New procedure to output itypes
20793
20794 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
20795 use of "limited" in declaration.
20796
20797 * sinfo.ads, sinfo.adb:
20798 Formal derived types can carry an explicit "limited" indication.
20799
20800 * sem_ch3.adb: Add with and use of Targparm.
20801 (Create_Component): If Frontend_Layout_On_Target is True and the
20802 copied component does not have a known static Esize, then reset
20803 the size and positional fields of the new component.
20804 (Analyze_Component_Declaration): A limited component is
20805 legal within a protected type that implements an interface.
20806 (Collect_Interfaces): Do not add to the list the interfaces that
20807 are implemented by the ancestors.
20808 (Derived_Type_Declaration): If the parent of the full-view is an
20809 interface perform a transformation of the tree to ensure that it has
20810 the same parent than the partial-view. This simplifies the job of the
20811 expander in order to generate the correct object layout, and it is
20812 needed because the list of interfaces of the full-view can be given in
20813 any order.
20814 (Process_Full_View): The parent of the full-view does not need to be
20815 a descendant of the parent of the partial view if both parents are
20816 interfaces.
20817 (Analyze_Private_Extension_Declaration): If declaration has an explicit
20818 "limited" the parent must be a limited type.
20819 (Build_Derived_Record_Type): A derived type that is explicitly limited
20820 must have limited ancestor and progenitors.
20821 (Build_Derived_Type): Ditto.
20822 (Process_Full_View): Verify that explicit uses of "limited" in partial
20823 and full declarations are consistent.
20824 (Find_Ancestor_Interface): Remove function.
20825 (Collect_Implemented_Interfaces): New procedure used to gather all
20826 implemented interfaces by a type.
20827 (Contain_Interface): New function used to check whether an interface is
20828 present in a list.
20829 (Find_Hidden_Interface): New function used to determine whether two
20830 lists of interfaces constitute a set equality. If not, the first
20831 differing interface is returned.
20832 (Process_Full_View): Improve the check for the "no hidden interface"
20833 rule as defined by AI-396.
20834
20835 2005-12-09 Robert Dewar <dewar@adacore.com>
20836
20837 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
20838 types, not on record subtypes.
20839 (Freeze_Entity): Code cleanup. Add barrier to the loop
20840 that generates the references for primitive operations. This allows to
20841 remove an unnecessary exception handler.
20842 Code reformatting and comment clean ups.
20843
20844 2005-12-09 Vincent Celier <celier@adacore.com>
20845
20846 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
20847 If GNAT CHECK is called with a project file, but with no
20848 source on the command line, call gnatcheck with all the compilable
20849 sources of the project.
20850 Take into account the new command Check, for gnatcheck. Treat as for
20851 other ASIS tools: take into account project, specific package Check and
20852 Compiler switches.
20853 For ASIS tools, add the switches in package Compiler for
20854 the invocation of the compiler.
20855
20856 * prj-attr.adb: Add package Check and its attributes
20857
20858 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
20859
20860 * vms_conv.adb (Initialize): Change Params of command Check to
20861 unlimited files.
20862 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20863 Add data for new command Check
20864
20865 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
20866 ELIM.
20867 Add qualifiers for Check command options
20868 (Command_Type): New command Check
20869
20870 2005-12-09 Thomas Quinot <quinot@adacore.com>
20871
20872 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
20873 command line switch overruns the output buffer.
20874
20875 2005-12-09 Robert Dewar <dewar@adacore.com>
20876
20877 * sem_prag.adb: Processing for new pragma Complete_Representation
20878 (Analyze_Pragma, case Debug): Implement two argument form.
20879
20880 * par-prag.adb: Entry for new pragma Complete_Representation
20881 (Prag, case Debug): Recognize two argument form of pragma Debug
20882 New interface for Set_Style_Check_Options.
20883
20884 * sem_ch13.adb: Implement new pragma Complete_Representation.
20885
20886 * snames.adb, snames.ads, snames.h: Entry for new pragma
20887 Complete_Representation.
20888
20889 2005-12-09 Gary Dismukes <dismukes@adacore.com>
20890
20891 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
20892 available user-specified stream attributes on limited parameters to
20893 also test the type directly rather than only its underlying type (for
20894 Ada 95) and, in the case of Ada 2005, to check that the user-specified
20895 attributes are visible at the point of the subprogram declaration.
20896 For Ada 2005, the error message is modified to indicate that the
20897 type's stream attributes must be visible (again, only for -gnat05).
20898
20899 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20900
20901 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
20902 anonymous access types.
20903
20904 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
20905 matching of anonymous access types and anonymous access to subprogram
20906 types. 'R'M 4.9.1 (2/2).
20907
20908 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20909
20910 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
20911 rule prematurely when operands are universal, remaining ambiguities
20912 will be removed during resolution.
20913 Code cleanup.
20914
20915 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
20916 that are Ada 2005 functions.
20917 (Has_Abstract_Interpretation): Subsidiary to
20918 Remove_Conversions, to remove ambiguities caused by abstract operations
20919 on numeric types when operands are universal.
20920
20921 2005-12-09 Robert Dewar <dewar@adacore.com>
20922
20923 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
20924 for case where spec is categorized.
20925
20926 2005-12-09 Javier Miranda <miranda@adacore.com>
20927
20928 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
20929 types use the corresponding record type. This was not needed before
20930 the implementation of Ada 2005 synchronized types because
20931 concurrent types were never tagged types in Ada 95.
20932
20933 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20934
20935 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
20936 first subtype of the type of the expression to verify that it is a
20937 legal Time type.
20938
20939 2005-12-09 Robert Dewar <dewar@adacore.com>
20940
20941 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20942 decoded names.
20943
20944 2005-12-09 Quentin Ochem <ochem@adacore.com>
20945 Robert Dewar <dewar@adacore.com>
20946 Ed Falis <falis@adacore.com>
20947 Florian Villoing <villoing@adacore.com>
20948 Thomas Quinot <quinot@adacore.com>
20949 Arnaud Charlet <charlet@adacore.com>
20950
20951 * gnat_ugn.texi: Created section "Stack Related Tools"
20952 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20953 "Stack Related Tools"
20954 Added subsection "Static Stack Usage Analysis"
20955 Added subsection "Dynamic Stack Usage Analysis"
20956 Include documentation of itypes in sprint listing (-gnatG)
20957 Documented gnatbind -D switch (default sec stack size for fixed sec
20958 stacks).
20959 Added Interrupt_State and Persistent_BSS to list of configuration
20960 pragmas.
20961 Add missing doc for maximum value of nnn in -gnatyMnnn
20962
20963 * gnat_rm.texi: Document the AltiVec binding.
20964 Add documentation for pragma Complete_Representation
20965 Shortened an overly long line (> 79 chars)
20966 Clarify documentation of unchecked conversion in implementation
20967 defined cases.
20968 Document two argument form of pragma Debug
20969
20970 * types.ads (Column_Number): Update documentation.
20971
20972 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20973 library level Finalize_Storage_Only objects (these are not attached to
20974 any finalization list).
20975
20976 * system-mingw.ads: (Underlying_Priorities): Update comment.
20977
20978 2005-12-09 Robert Dewar <dewar@adacore.com>
20979
20980 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
20981 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20982 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20983 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20984 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20985 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20986 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20987 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20988 reformatting.
20989
20990 2005-12-09 Robert Dewar <dewar@adacore.com>
20991
20992 * s-vaflop-vms-alpha.adb: (Ne_F): New function
20993 (Ne_G): New function
20994
20995 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20996 for tag assignment.
20997 (Rewrite_Comparison): Handle case where operation is not a comparison
20998 and ignore, and also handle type conversion case.
20999
21000 2005-12-09 Thomas Quinot <quinot@adacore.com>
21001
21002 * exp_aggr.ads: Fix typo in comment.
21003 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21004
21005 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21006
21007 * layout.adb: Replace various uses of byte by storage unit throughout.
21008 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21009 static size, convert to storage units before returning, to conform to
21010 spec.
21011
21012 2005-12-09 Matthew Gingell <gingell@adacore.com>
21013
21014 * g-exctra.ads: Fix typo in comment.
21015
21016 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21017
21018 * utils.c: Minor reformatting.
21019
21020 2005-12-09 Robert Dewar <dewar@adacore.com>
21021
21022 * g-soccon.ads:
21023 Further comment fixes to make the status of the default file clear
21024
21025 * s-bitops.adb: Clarify comment for Bits_Array
21026
21027 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
21028
21029 * Make-lang.in (ada.install-normal): Remove.
21030
21031 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
21032
21033 * Make-lang.in: Remove all dependencies on s-gtype.
21034
21035 2005-12-05 Richard Guenther <rguenther@suse.de>
21036
21037 * utils.c (convert): Use fold_convert where appropriate.
21038
21039 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
21040
21041 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21042 a period is meant.
21043
21044 2005-12-02 Richard Guenther <rguenther@suse.de>
21045
21046 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21047
21048 2005-12-01 Roger Sayle <roger@eyesopen.com>
21049
21050 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21051 nodes.
21052
21053 2005-11-23 Laurent Guerby <laurent@guerby.net>
21054
21055 * mlib-prj.adb (Build_Library): Initialize Delete.
21056
21057 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
21058
21059 * socket.c: Add extern int h_errno for rtems since networking header
21060 files are not available at this point in a tool bootstrap. Newlib
21061 only has basic C library header files.
21062
21063 2005-11-19 Richard Guenther <rguenther@suse.de>
21064 Roger Sayle <roger@eyesopen.com>
21065
21066 PR ada/23717
21067 * misc.c (internal_error_function): Don't use vsprintf to format
21068 the error message text, instead use pp_format_text and the new
21069 pretty printer APIs. This allows handling of %qs, %w, etc.
21070
21071 2005-11-18 Laurent Guerby <laurent@guerby.net>
21072
21073 PR ada/24857
21074 * Makefile.in: Use s-auxdec-empty for RTEMS.
21075
21076 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21077
21078 PR ada/22333
21079 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21080 a temporary if taking the address of something that is neither
21081 reference, declaration, or constant, since the gimplifier
21082 can't handle that case.
21083
21084 2005-11-17 Laurent Guerby <laurent@guerby.net>
21085
21086 PR ada/24857
21087 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21088
21089 2005-11-16 Richard Guenther <rguenther@suse.de>
21090
21091 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21092
21093 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
21094
21095 PR ada/24855
21096 * raise-gcc.c: Add missing stdarg.h include.
21097
21098 2005-11-16 Richard Guenther <rguenther@suse.de>
21099
21100 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21101 (ada/misc.o): Likewise.
21102
21103 2005-11-14 Thomas Quinot <quinot@adacore.com>
21104
21105 * g-soccon.ads: Minor reformatting. Update comments.
21106
21107 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21108 gain visibility on the declaration of struct timeval.
21109
21110 * g-soccon-freebsd.ads,
21111 g-soccon-darwin.ads,
21112 g-soccon-tru64.ads,
21113 g-soccon-aix.ads,
21114 g-soccon-irix.ads,
21115 g-soccon-hpux.ads,
21116 g-soccon-solaris.ads,
21117 g-soccon-vms.ads,
21118 g-soccon-mingw.ads,
21119 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21120
21121 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21122 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21123 g-soccon-linux-x86.ads: New files.
21124
21125 * g-socthi-mingw.adb:
21126 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21127
21128 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21129 (time_t, suseconds_t): New types constructed to match the tv_sec
21130 and tv_usec fields of C struct timeval.
21131 (Timeval): Construct structure in terms of the new types.
21132 (Host_Errno): New function (imported from socket.c), returns last hosts
21133 database error.
21134
21135 * g-socthi-vxworks.adb: Add error handling circuitry.
21136
21137 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21138 components of struct timeval.
21139 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21140 (Check_Selector): In error conditions, clear internal socket sets to
21141 avoid a memory leak.
21142 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21143 Send_Timeout, Receive_Timeout.
21144
21145 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21146 the tv_sec and tv_usec fields of C struct timeval.
21147 (Timeval): Construct structure in terms of the new types.
21148 (Host_Errno): New function (imported from socket.c), returns last hosts
21149 database error.
21150
21151 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21152 hosts database last error code.
21153
21154 * gen-soccon.c: Complete value expansion should not be performed on
21155 TARGET, as it has the form of a math expression, and some components
21156 may be platform-defined macros.
21157 For VxWorks, generate the OK and ERROR values.
21158 New constants giving the sizes of the components of C struct timeval.
21159
21160 2005-11-14 Robert Dewar <dewar@adacore.com>
21161 Ed Schonberg <schonberg@adacore.com>
21162
21163 PR ada/18434
21164 * types.ads: Include All_Checks in Suppress_Array
21165
21166 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21167 not(a=b), since we no longer do this rewriting, and hence it is not
21168 needed.
21169 (Elaboration_Checks_Suppressed): Add special casing to
21170 deal with different cases of static and dynamic elaboration checks (all
21171 checks does not count in the first case, but does in the second).
21172 (Expr_Known_Valid): Do not assume that the result of any arbitrary
21173 function call is valid, since this is not the case.
21174 (Ensure_Valid): Do not apply validity check to a real literal
21175 in a universal or fixed context
21176
21177 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21178 elementary types using the operator in standard. It is cleaner not to
21179 modify the programmers intent, especially in the case of floating-point.
21180 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21181 it did not matter because we always rewrote a/=b to not(a=b).
21182 (Expand_Allocator_Expression): For an allocator expression whose nominal
21183 subtype is an unconstrained packed type, convert the expression to its
21184 actual constrained subtype.
21185 Implement warning for <= or >= where < or > not possible
21186 Fix to Vax_Float tests (too early in many routines, causing premature
21187 Vax_Float expansions.
21188
21189 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21190 to be used with packages and generic packages as well as with
21191 subprograms.
21192 (Suppress): Set All_Checks, but not Elaboration_Check, for case
21193 of pragma Suppress (All_Checks)
21194 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21195 a string literal for precise control over warnings.
21196 Avoid raise of pragma in case of unrecognized pragma and just return
21197 instead.
21198
21199 * sem_prag.ads: Minor reformatting
21200
21201 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21202 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21203 Switch. Do not handle any exception.
21204 Include -gnatwx as part of -gnatg (warn on redundant parens)
21205 Allow optional = after -gnatm
21206 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21207 longer sets Elaboration_Checks.
21208 Code to set warning mode moved to Sem_Warn
21209 so that it can be shared by pragma processing.
21210
21211 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21212 statement.
21213
21214 * s-taprop-solaris.adb:
21215 Change some <= to =, to avoid new warning
21216
21217 * a-exexda.adb, prj-proc.adb:
21218 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21219 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21220
21221 2005-11-14 Robert Dewar <dewar@adacore.com>
21222
21223 * exp_vfpt.adb: Handle /= case
21224 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21225 so that we do not get duplicate scaling for fixed point conversions.
21226
21227 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21228
21229 2005-11-14 Matthew Gingell <gingell@adacore.com>
21230
21231 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
21232 Increase default priority on Lynx from 15 to 17, and meet the Ada
21233 requirement that Default_Priority be ((Priority'First +
21234 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21235
21236 2005-11-14 Vincent Celier <celier@adacore.com>
21237
21238 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21239 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21240 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21241 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21242 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21243 mlib-tgt-lynxos.adb (DLL_Prefix): New function
21244
21245 2005-11-14 Doug Rupp <rupp@adacore.com>
21246
21247 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21248 private part.
21249
21250 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21251
21252 * s-traces-default.adb, s-trafor-default.ads,
21253 s-tratas-default.adb: Fix compilation errors.
21254
21255 2005-11-14 Jose Ruiz <ruiz@adacore.com>
21256
21257 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21258 raising the exception so the memory used is freed.
21259
21260 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21261
21262 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21263 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21264 (convert_address): Update comments and list of platforms using this.
21265
21266 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21267 no longer used.
21268
21269 2005-11-14 Pascal Obry <obry@adacore.com>
21270 Vincent Celier <celier@adacore.com>
21271
21272 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21273 GNAT.Command_Line.
21274
21275 * memroot.adb: Remove redundant with/use clause on
21276 System.Storage_Elements.
21277
21278 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21279
21280 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21281 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21282 related code to a-exexpr.adb
21283 (Save_Occurrence_And_Private): Move GCC EH related code to
21284 a-exexpr-gcc.adb
21285 (Raise_Current_Excep): Add new variable Id with pragma
21286 volatile, to ensure that the variable lives on stack.
21287
21288 * a-exexpr-gcc.adb, raise-gcc.c: New file.
21289
21290 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
21291 from a-except.adb.
21292 Move GCC EH related code to a-exexpr-gcc.adb
21293
21294 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
21295 64-bit Solaris
21296 Split the Linux version of g-soccon into separate variants for 32 and 64
21297 bit platforms.
21298 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
21299 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
21300 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
21301 of host variable $(RANLIB_FLAGS).
21302 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
21303 Code clean up: remove unused/obsolete targets.
21304 (EH_MECHANISM): New variable introduced to differenciate between the
21305 two EH mechanisms statically.
21306 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
21307 (LIBGNAT_OBJS): Add raise-gcc.o
21308 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
21309 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
21310 supports VxWorks 6 RTPs.
21311 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
21312 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
21313
21314 * raise.c: Move all GCC EH-related routines to raise-gcc.c
21315
21316 2005-11-14 Jose Ruiz <ruiz@adacore.com>
21317
21318 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
21319 deferral level, when abort is not allowed, to a later stage (the
21320 Task_Wrapper).
21321 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
21322 it will not get changed by the generated code. It was previously done
21323 in Create_Task.
21324
21325 2005-11-14 Thomas Quinot <quinot@adacore.com>
21326 Olivier Hainque <hainque@adacore.com>
21327 Eric Botcazou <ebotcazou@adacore.com>
21328
21329 * decl.c:
21330 Factor common code to build a storage type for an unconstrained object
21331 from a fat or thin pointer type and a constrained object type.
21332 (annotate_value): Handle BIT_AND_EXPR.
21333 (annotate_rep): Don't restrict the back annotation of inherited
21334 components to the type_annotate_only case.
21335 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
21336 we are not defining the type.
21337 <E_Record_Type>: Likewise.
21338 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
21339 to get advantage of the new maybe_stabilize_reference interface, to
21340 ensure that what we reference is indeed stabilized instead of relying
21341 on assumptions on what the stabilizer does.
21342 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
21343 type imported through a limited_with clause, use its non-limited view.
21344 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
21345 differentiation.
21346 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
21347 of #if sections + explicit comparisons of convention identifiers.
21348 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
21349 before early-returning for certain types when code generation is
21350 disabled.
21351 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
21352 nullification of gnu_expr we do for objects with address clause and
21353 that we are not defining.
21354 (elaborate_expression_1): Do not create constants when creating
21355 variables needed by the debug info: the dwarf2 writer considers that
21356 CONST_DECLs is used only to represent enumeration constants, and emits
21357 nothing for them.
21358 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
21359 object with an address clause into an indirect reference, drop the
21360 initializing expression.
21361 Include "expr.h".
21362 (STACK_CHECK_BUILTIN): Delete.
21363 (STACK_CHECK_PROBE_INTERVAL): Likewise.
21364 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
21365 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
21366 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
21367 corresponding to the renamed object as ignored for debugging purposes.
21368
21369 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
21370 related): For a prefix that is a dereference of a fat or thin pointer,
21371 if there is an actual subtype provided by the front-end, use that
21372 subtype to build an actual type with bounds template.
21373 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
21374 is provided by the front-end, use that subtype to compute the size of
21375 the deallocated object.
21376 (gnat_to_gnu): When adding a statement into an elaboration procedure,
21377 check for a potential violation of a No_Elaboration_Code restriction.
21378 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21379 with extra arguments to control whether to recurse through non-values
21380 and to let the caller know if the stabilization has succeeded.
21381 (gnat_stabilize_reference): Now a simple wrapper around
21382 maybe_stabilize, for common uses without restriction on lvalues and
21383 without need to check for the success indication.
21384 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
21385 pass false instead of 0 as the FORCE argument which is a bool.
21386 (Identifier_to_gnu): Remove checks ensuring that an renamed object
21387 attached to a renaming pointer has been properly stabilized, as no such
21388 object is attached otherwise.
21389 (call_to_gnu): Invoke create_var_decl to create the temporary when the
21390 function uses the "target pointer" return mechanism.
21391 Reinstate conversion of the actual to the type of the formal
21392 parameter before any other specific treatment based on the passing
21393 mechanism. This turns out to be necessary in order for PLACEHOLDER
21394 substitution to work properly when the latter type is unconstrained.
21395
21396 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
21397 common pattern.
21398 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21399 with extra arguments to control whether to recurse through non-values
21400 and to let the caller know if the stabilization has succeeded.
21401
21402 * utils2.c (gnat_build_constructor): Only sort the fields for possible
21403 static output of record constructor if all the components are constant.
21404 (gnat_build_constructor): For a record type, sort the list of field
21405 initializers in increasing bit position order.
21406 Factor common code to build a storage type for an unconstrained object
21407 from a fat or thin pointer type and a constrained object type.
21408 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
21409 types variants, and process special cases of VIEW_CONVERT expressions
21410 as their NOP_EXPR counterpart to ensure we get to the
21411 CORRESPONDING_VARs associated with CONST_DECls.
21412 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
21413 on the right-hand side.
21414
21415 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
21416 a common pattern.
21417 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
21418 are converting back to its original type.
21419 (convert) <JM input>: Fallthrough regular conversion code instead of
21420 extracting the object if converting to a type variant.
21421 (create_var_decl): When a variable has an initializer requiring code
21422 generation and we are at the top level, check for a potential violation
21423 of a No_Elaboration_Code restriction.
21424 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
21425 SIZE and SIZE_UNIT which we need for later back-annotations.
21426 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
21427 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
21428 is an unchecked union.
21429 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
21430 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
21431 main variant, just replace the VIEW_CONVERT_EXPR.
21432 <UNION_TYPE>: Revert 2005-03-02 change.
21433
21434 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
21435
21436 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
21437
21438 2005-11-14 Matthew Heaney <heaney@adacore.com>
21439
21440 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
21441 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
21442 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
21443 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
21444 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
21445 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
21446 Compiles against the spec for ordered maps described in sections
21447 A.18.6 of the most recent (August 2005) AI-302 draft.
21448
21449 2005-11-14 Olivier Hainque <hainque@adacore.com>
21450
21451 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
21452 to ensure bias adjustments take place when need be and to prevent
21453 occurrences of intermediate overflows.
21454
21455 2005-11-14 Matthew Gingell <gingell@adacore.com>
21456 Olivier Hainque <hainque@adacore.com>
21457
21458 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
21459 ia64 HP-UX.
21460
21461 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
21462 tracebacks on ia64 HP-UX and provide explanatory comment.
21463 Enable backtraces on ia64 GNU/Linux.
21464 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
21465 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
21466
21467 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
21468 Javier Miranda <miranda@adacore.com>
21469
21470 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
21471 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
21472 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
21473 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
21474
21475 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
21476 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
21477 assertions).
21478
21479 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
21480 subprogram that generates the external name associated with a
21481 secondary dispatch table.
21482 (Get_Secondary_DT_External_Name): New subprogram that generates the
21483 external name associated with a secondary dispatch table.
21484
21485 2005-11-14 Emmanuel Briot <briot@adacore.com>
21486
21487 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
21488 line in the ALI file to include both an instantiation reference, and a
21489 returned value.
21490
21491 2005-11-14 Vincent Celier <celier@adacore.com>
21492
21493 * clean.adb (Check_Project): Look for Ada code in extending project,
21494 even if Ada is not specified as a language.
21495 Use new function DLL_Prefix for DLL_Name
21496 (Clean_Interface_Copy_Directory): New procedure
21497 (Clean_Library_Directory): New procedure
21498 (Clean_Directory): Remove procedure, no longer used
21499 (Clean_Project): Do not delete any file in an externally built project
21500
21501 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
21502 directory of an extending project, even when there are no Ada source
21503 present.
21504 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
21505 (Set_Ada_Paths.Add.Recursive_Add): Ditto
21506
21507 * mlib-prj.adb (Check_Library): For all library projects, get the
21508 library file timestamp.
21509 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
21510 (Build_Library): Use new function DLL_Prefix for the DLL_Name
21511 (Clean): Remove procedure, no longer used
21512 (Ultimate_Extension_Of): New function
21513 (Build_Library): When cleaning the library directory, only remove an
21514 existing library file and any ALI file of a source of the project.
21515 When cleaning the interface copy directory, remove any source that
21516 could be a source of the project.
21517
21518 * prj.ads, prj.adb (Project_Empty): Add values of new components
21519 Library_TS and All_Imported_Projects.
21520 (Project_Empty): Add values for new components of Project_Data:
21521 Library_ALI_Dir and Display_Library_ALI_Dir
21522
21523 * prj-attr.adb: New project level attribute name Library_ALI_Dir
21524
21525 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
21526 attribute Library_ALI_Dir.
21527 (Check_Library_Attributes): The library directory cannot be the same as
21528 any source directory of the project tree.
21529 (Check_Stand_Alone_Library): The interface copy directory cannot be
21530 the same as any source directory of the project tree.
21531
21532 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
21533 all temporary files.
21534
21535 2005-11-14 Robert Dewar <dewar@adacore.com>
21536 Ed Schonberg <schonberg@adacore.com>
21537
21538 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21539 (Check_Elab_Call): A call within a protected body is never an
21540 elaboration call, and does not require checking.
21541 (Same_Elaboration_Scope): Take into account protected types for both
21542 entities.
21543 (Activate_Elaborate_All_Desirable): New procedure
21544
21545 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
21546 desirable
21547
21548 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
21549 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
21550
21551 * lib-writ.ads, lib-writ.adb:
21552 Implement new AD/ED for Elaborate_All/Elaborate desirable
21553 Use new Elaborate_All_Desirable flag in N_With_Clause node
21554
21555 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
21556 N_Free_Statement nodes.
21557 Define new class N_Subprogram_Instantiation
21558 Add Elaborate_Desirable flag to N_With_Clause node
21559 Add N_Delay_Statement (covering two kinds of delay)
21560
21561 * debug.adb: Introduce d.f flag for compiler
21562 Add -da switch for binder
21563
21564 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21565 Cyrille Comar <comar@adacore.com>
21566
21567 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
21568 for task component, in the case of a limited aggregate. The enclosed
21569 object declaration will create it earlier. Otherwise, in the case of a
21570 nested aggregate, the object may appear in the wrong scope.
21571 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
21572 (Gen_Assign): If the component being assigned is an array type and the
21573 expression is itself an aggregate, wrap the assignment in a block to
21574 force finalization actions on the temporary created for each row of the
21575 enclosing object.
21576 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
21577 structures are initialized after all discriminants are set so that
21578 they can be accessed even when their offset is dynamic.
21579
21580 2005-11-14 Robert Dewar <dewar@adacore.com>
21581 Hristian Kirtchev <kirtchev@adacore.com>
21582
21583 * sem_attr.adb: Implement Machine_Rounding attribute
21584 (Analyze_Access_Attribute): The access attribute may appear within an
21585 aggregate that has been expanded into a loop.
21586 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
21587 'Terminated whenever the prefix is of a task interface class-wide type.
21588 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
21589 the prefix is of a task interface class-wide type.
21590
21591 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
21592 to avoid warnings.
21593
21594 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
21595 Remove pragma Inline for [Unaligned_]Valid.
21596 Add comments that Valid routines do not work for Vax_Float
21597
21598 * exp_attr.adb: Implement Machine_Rounding attribute
21599
21600 * snames.h: Add entry for Machine_Rounding attribute
21601
21602 2005-11-14 Javier Miranda <miranda@adacore.com>
21603 Robert Dewar <dewar@adacore.com>
21604 Hristian Kirtchev <kirtchev@adacore.com>
21605
21606 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
21607 and related): For a prefix that is an explicit dereference of an
21608 access to unconstrained packed array type, annotate the dereference
21609 with an actual subtype so GIGI can make a correct size computation.
21610 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
21611 'Unrestricted_Access, if the designated type is an interface we
21612 add a type conversion to force the displacement of the pointer
21613 to the secondary dispatch table.
21614 Use Universal_Real instead of Long_Long_Float when we need a high
21615 precision float type for the generated code (prevents gratuitous
21616 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21617 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
21618 'Terminated for task interface class-wide objects. Generate a call to
21619 the predefined dispatching routine used to retrieve the _task_id from
21620 a task corresponding record.
21621 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
21622
21623 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21624 (Check_Dispatching_Operation): Protect the frontend againts
21625 previously detected errors.
21626
21627 * Makefile.rtl: Add new instantiations of system.fat_gen
21628
21629 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
21630 Change name of instantiated package for better consistency
21631 with newly added system.fat_gen instantiations.
21632
21633 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
21634 s-fvagfl.ads: New files.
21635
21636 2005-11-14 Cyrille Comar <comar@adacore.com>
21637 Thomas Quinot <quinot@adacore.com>
21638
21639 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
21640 assignment of a value of a tagged type that has been rewritten to a
21641 block statement, it is known by construction that no checks are
21642 necessary for the statements within the block: analyze it with checks
21643 suppressed.
21644 (Expand_N_If_Statement): When killing a dead then-branch in an
21645 if-statement that has elsif_parts, recompute the Current_Value node
21646 for any entity whose value is known from the condition of the first
21647 elsif_part.
21648 (Expand_N_Return_Statement): When returning a mutable record, convert
21649 the return value into its actual subtype in order to help the backend
21650 to return the actual size instead of the maximum. This is another
21651 aftermath of not returning mutable records on the sec-stack anymore.
21652
21653 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
21654 handling of error msg for suspicious reverse range iteration.
21655 (Check_Possible_Current_Value_Condition): Move declaration from body to
21656 spec, to allow this subprogram to be called from exp_ch5.
21657
21658 2005-11-14 Thomas Quinot <quinot@adacore.com>
21659
21660 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
21661 generate a set of nested array aggregates instead of a single flat
21662 aggregate for multi-dimensional arrays.
21663
21664 2005-11-14 Pascal Obry <obry@adacore.com>
21665
21666 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
21667 by spawnve is a process handle, no need to convert. Add a parameter
21668 close to control wether the process handle must be closed.
21669 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
21670 a process handle, not need to convert.
21671 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
21672
21673 * g-expect.adb: (Kill): Document the new close parameter.
21674 (Close): Do not release the process handle in the kill there as
21675 waitpid() is using it.
21676 (Send_Signal): Release the process handle.
21677
21678 2005-11-14 Robert Dewar <dewar@adacore.com>
21679
21680 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
21681 need a high precision float type for the generated code (prevents
21682 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21683 used).
21684
21685 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
21686 need a high precision float type for the generated code (prevents
21687 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21688 used).
21689 (Expand_Width_Attribute): In configurable run-time, the attribute is not
21690 allowed on non-static enumeration subtypes. Force a load error to emit
21691 the correct diagnostic.
21692
21693 2005-11-14 Thomas Quinot <quinot@adacore.com>
21694 Robert Dewar <dewar@adacore.com>
21695 Ed Schonberg <schonberg@adacore.com>
21696
21697 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
21698 subtype to compute the size of the designated object at run-time,
21699 create such a subtype and store it in the Actual_Designated_Subtype
21700 attribute of the N_Free_Statement.
21701 Generate itype for classwide designated object in both cases of
21702 user-specified storage pool: specific and class-wide, not only in the
21703 specific case.
21704 Raise CE when trying to set a not null access type object to null.
21705 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
21706 an explicit loop, because freeze nodes make its position variable.
21707
21708 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
21709 null object.
21710
21711 2005-11-14 Javier Miranda <miranda@adacore.com>
21712
21713 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
21714 Build_Stream_Procedure): Add the null-excluding attribute to the first
21715 formal.
21716 This has no semantic meaning under Ada95 mode but it is a
21717 requirement under Ada05 mode.
21718
21719 * par-ch3.adb (P_Access_Definition): Addition of warning message if
21720 the null exclusion is used under Ada95 mode
21721 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
21722 (P_Access_Definition): Remove assertion that forbids the use of
21723 the null-exclusion feature in Ada95.
21724
21725 2005-11-14 Robert Dewar <dewar@adacore.com>
21726
21727 * impunit.adb: Exclude container helper units not intended for use by
21728 users.
21729
21730 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21731
21732 * freeze.adb (Freeze_Entity): For an access formal that is an access
21733 to subprogram, freeze the anonymous subprogram type at the same time,
21734 to prevent later freezing in the wrong scope, such as the enclosing
21735 subprogram body.
21736 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
21737 subprogram whenever available.
21738
21739 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21740
21741 PR ada/23732
21742 * gnatvsn.ads (Library_Version): Bump to 4.1
21743
21744 2005-11-14 Robert Dewar <dewar@adacore.com>
21745
21746 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
21747 Storage_Offset to avoid wrap around causing invalid results.
21748
21749 2005-11-14 Pascal Obry <obry@adacore.com>
21750
21751 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
21752 cross-compiler.
21753 (Scan_Bind_Arg): Fail with an error message if -M option is used
21754 on a native compiler.
21755
21756 2005-11-14 Robert Dewar <dewar@adacore.com>
21757 Vincent Celier <celier@adacore.com>
21758
21759 * gprep.adb: Implement -C switch to scan comments
21760
21761 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
21762
21763 * scans.ads: Comment updates (including new use of Tok_Comment in
21764 preprocessing)
21765
21766 * opt.ads: Add documentation for flags that are used by gprmake,
21767 currently and in the next version of gprmake.
21768 (Verbosity_Level): New variable
21769 Add Replace_In_Comments switch
21770
21771 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
21772 and -vm.
21773 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
21774
21775 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21776
21777 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
21778 message, friendlier.
21779
21780 2005-11-14 Robert Dewar <dewar@adacore.com>
21781
21782 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
21783
21784 2005-11-14 Doug Rupp <rupp@adacore.com>
21785
21786 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
21787
21788 2005-11-14 Robert Dewar <dewar@adacore.com>
21789
21790 * interfac.ads: Change declarations of IEEE float types so that we no
21791 longer need a separate version of this package for VMS.
21792
21793 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21794
21795 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
21796 internal entity created for the declaration of a child subprogram body
21797 with no spec as coming from source, to generate proper cross-reference
21798 information.
21799
21800 2005-11-14 Vincent Celier <celier@adacore.com>
21801
21802 * make.adb (Compile_Sources): Change verbose message to minimum
21803 verbosity level High for "is in an Ada library", "is a read-only
21804 library" and "is an internal library",
21805 (Create_Binder_Mapping_File): Path name of ALI file for library project
21806 must include the library directory, not the object directory.
21807 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
21808 for new switches -vl, -vm and -vh.
21809 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
21810 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
21811 (Compile_Sources): Do not attempt to compile if an ALI file is missing
21812 in a project that is externally built.
21813 (Compute_All_Imported_Projects): New procedure
21814 (Gnatmake): Check if importing libraries should be regenerated because
21815 at least an imported library is more recent.
21816 (Initialize): For each project compute the list of the projects it
21817 imports directly or indirectly.
21818 (Add_Library_Search_Dir): New procedure, used in place of
21819 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21820 put in the search paths.
21821 (Add_Source_Search_Dir): New procedure, used in place of
21822 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21823 put in the search paths.
21824 (Mark_Directory): Resolve the absolute path the directory before marking
21825 it.
21826
21827 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
21828 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21829 Switch. Do not handle any exception.
21830 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
21831 so that the switch is recognized as valid.
21832 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
21833
21834 2005-11-14 GNAT Script <nobody@adacore.com>
21835
21836 * Make-lang.in: Makefile automatically updated
21837
21838 2005-11-14 Pascal Obry <obry@adacore.com>
21839
21840 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
21841 used.
21842 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
21843 In both cases the last argument was dropped.
21844
21845 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
21846
21847 * namet.h: (Column_Numbe): New type.
21848 (Get_Column_Number): Define to sinput__get_column_number.
21849 (Instantiation): Define to sinput__instantiation.
21850 (Get_Column_Number): Declare.
21851 (Instantiation): Likewise.
21852
21853 2005-11-14 Robert Dewar <dewar@adacore.com>
21854
21855 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
21856 syntax, which could cause compiler hangs.
21857
21858 2005-11-14 Vincent Celier <celier@adacore.com>
21859
21860 * prj-ext.adb: Take into account new environment variable
21861 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
21862 are defined.
21863 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
21864 normalize its path name, making it absolute and resolving symbolic
21865 links, and replace the original if resolved path is different.
21866
21867 2005-11-14 Vincent Celier <celier@adacore.com>
21868
21869 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
21870 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
21871
21872 2005-11-14 Emmanuel Briot <briot@adacore.com>
21873
21874 * prj-pp.adb (Print): Do not output the with statement if the
21875 associated name is empty, which happens for virtual extending projects.
21876 (Print): Preserve the "extends all" attribute when printing the project.
21877
21878 * prj-tree.ads (String_Value_Of): Add comment about returned value for
21879 a virtual extending project.
21880
21881 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21882
21883 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
21884 rhs of an assignment even if the type is unconstrained, when the
21885 context is non-expanding.
21886 In an inlined body, if the context type is private,
21887 resolve with its full view, which must be a composite type.
21888
21889 2005-11-14 Robert Dewar <dewar@adacore.com>
21890 Ed Schonberg <schonberg@adacore.com>
21891
21892 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21893 Do not give obsolescent warning on with of subprogram (since we
21894 diagnose calls)
21895 (Analyze_With_Clause): Add test for obsolescent package
21896 (Install_Context_Clauses): If the unit is the body of a child unit, do
21897 not install twice the private declarations of the parents, to prevent
21898 circular lists of Use_Clauses in a parent.
21899 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
21900 compiling body of child unit.
21901 Use new class N_Subprogram_Instantiation
21902 (Expand_With_Clause): If this is a private with_clause for a child unit,
21903 appearing in the context of a package declaration, then the implicit
21904 with_clauses generated for parent units are private as well.
21905 (License_Check): Do not generate message if with'ed unit is internal
21906
21907 2005-11-14 Gary Dismukes <dismukes@adacore.com>
21908 Ed Schonberg <schonberg@adacore.com>
21909 Thomas Quinot <quinot@adacore.com>
21910
21911 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
21912 names are internal, because they will not have a corresponding partner
21913 in the actual package.
21914 (Analyze_Formal_Package): Move the setting of the formal package spec's
21915 Generic_Parent field so that it occurs prior to analyzing the package,
21916 to allow proper operation of Install_Parent_Private_Declarations.
21917 (Analyze_Package_Instantiation): Set the instantiated package entity's
21918 Package_Instantiation field.
21919 (Get_Package_Instantiation_Node): Move declaration to package spec.
21920 Retrieve the N_Package_Instantiation node when the Package_Instantiation
21921 field is present.
21922 (Check_Generic_Child_Unit): Within an inlined call, the only possible
21923 instantiation is Unchecked_Conversion, for which no parents are needed.
21924 (Inline_Instance_Body): Deinstall and record the use_clauses for all
21925 parent scopes of a scope being removed prior to inlining an instance
21926 body.
21927 (Analyze_Package_Instantiation): Do not perform front-end inlining when
21928 the current context is itself an instance within a non-instance child
21929 unit, to prevent scope stack errors.
21930 (Save_References): If the node is an aggregate that is an actual in a
21931 call, rewrite as a qualified expression to preserve some type
21932 information, to resolve possible ambiguities in the instance.
21933 (Instance_Parent_Unit): New global variable to record the ultimate
21934 parent unit associated with a generic child unit instance (associated
21935 with the existing Parent_Unit_Visible flag).
21936 (type Instance_Env): New component Instance_Parent_Unit for stacking
21937 parents recorded in the global Instance_Parent_Unit.
21938 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
21939 stack.
21940 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21941 it's not a top-level unit, and only do this if Instance_Parent_Unit is
21942 not already set. Replace test of Is_Child_Unit with test of parent's
21943 scope against package Standard. Add comments and a ??? comment.
21944 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21945 on a child instance parent to test that the parent equals
21946 Instance_Parent rather than simply checking that the unit is not a
21947 child unit.
21948 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21949 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21950 a formal interface are ancestors of the corresponding actual.
21951 (Validate_Formal_Interface_Type): Additional legality checks.
21952 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21953 interface types with ancestors.
21954 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21955 to diagnose attempts to use generic within its own declaration.
21956
21957 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21958 Javier Miranda <miranda@adacore.com>
21959
21960 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21961 discriminant.
21962 (Build_Private_Derived_Type): The entity of the created full view of the
21963 derived type does not come from source. If after installing the private
21964 declarations of the parent scope the parent is still private, use its
21965 full view to construct the full declaration of the derived type.
21966 (Build_Derived_Record_Type): Relax the condition that controls the
21967 execution of the check that verifies that the partial view and
21968 the full view agree in the set of implemented interfaces. In
21969 addition, this test now only takes into account the progenitors.
21970 (Derive_Interface_Subprograms): No need to derive subprograms
21971 of ancestors that are interfaces.
21972 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21973 associated code.
21974 Change name Is_Package to Is_Package_Or_Generic_Package
21975 (Complete_Subprograms_Derivation): Handle the case in which the full
21976 view is a transitive derivation of the ancestor of the partial view.
21977 (Process_Full_View): Rename local subprogram Find_Interface_In_
21978 Descendant to Find_Ancestor_Interface to leave the code more clear.
21979 Remove wrong code that avoids the generation of an error message
21980 when the immediate ancestor of the partial view is an interface.
21981 In addition some minor reorganization of the code has been done to
21982 leave it more clear.
21983 (Analyze_Type_Declaration): If type has previous incomplete tagged
21984 partial view, inherit properly its primitive operations.
21985 (Collect_Interfaces): Make public, for analysis of formal
21986 interfaces.
21987 (Analyze_Interface_Declaration): New procedure for use for regular and
21988 formal interface declarations.
21989 (Build_Derived_Record_Type): Add support for private types to the code
21990 that checks if a tagged type implements abstract interfaces.
21991 (Check_Aliased_Component_Type): The test applies in the spec of an
21992 instance as well.
21993 (Access_Type_Declaration): Clean up declaration of malformed type
21994 declared as an access to its own classwide type, to prevent cascaded
21995 crash.
21996 (Collect_Interfaces): For private extensions and for derived task types
21997 and derived protected types, the parent may be an interface that must
21998 be included in the interface list.
21999 (Access_Definition): If the designated type is an interface that may
22000 contain tasks, create Master_Id for it before analyzing the expression
22001 of the declaration, which may be an allocator.
22002 (Record_Type_Declaration): Set properly the interface kind, for use
22003 in allocators, the creation of master id's for task interfaces, etc.
22004
22005 2005-11-14 Javier Miranda <miranda@adacore.com>
22006 Ed Schonberg <schonberg@adacore.com>
22007
22008 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22009 omitted in case of stream attribute subprograms.
22010 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22011 appear immediately after a subprogram body, when there is no previous
22012 subprogram declaration.
22013 Change name Is_Package to Is_Package_Or_Generic_Package
22014 (Process_Formals): A non null qualifier on a non null named access
22015 type is not an error, and is a warning only if Redundant_Constructs
22016 are flagged.
22017
22018 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22019 Ed Schonberg <schonberg@adacore.com>
22020
22021 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22022 nested within Analyze_Package_Specification to install the private
22023 declarations and use clauses within each of the parent units of a
22024 package instance of a generic child package.
22025 (Analyze_Package_Specification): When entering a private part of a
22026 package associated with a generic instance or formal package, the
22027 private declarations of the parent must be installed (by calling new
22028 procedure Install_Parent_Private_Declarations).
22029 Change name Is_Package to Is_Package_Or_Generic_Package
22030 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22031 record is absent in a generic context, which does not indicate a
22032 compiler error.
22033
22034 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22035
22036 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22037 not try to rewrite a renamed stream attribute, because the operations
22038 on the type may not have been generated.
22039 Handle properly a renaming_as_body generated for a stream operation
22040 whose default is abstract because the object type itself is abstract.
22041 (Find_Type): If the type is incomplete and appears as the prefix of a
22042 'Class reference, it is tagged, and its list of primitive operations
22043 must be initialized properly.
22044 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22045 private declaration of a parent unit, prior to compiling the private
22046 part of a child unit, find on the scope stack the proper parent entity
22047 on which to link the use clause.
22048 (Note_Redundant_Use): Emit a warning when a redundant use clause is
22049 detected.
22050 (Analyze_Object_Renaming): An attribute reference is not a legal object
22051 if it is not a function call.
22052
22053 2005-11-14 Robert Dewar <dewar@adacore.com>
22054 Ed Schonberg <schonberg@adacore.com>
22055
22056 * sem_eval.adb: Implement d.f flag
22057 (Subtype_Statically_Match): A generic actual type has unknown
22058 discriminants when the corresponding actual has a similar partial view.
22059 If the routine is called to validate the signature of an inherited
22060 operation in a child instance, the generic actual matches the full view,
22061
22062 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22063 Ed Schonberg <schonberg@adacore.com>
22064 Robert Dewar <dewar@adacore.com>
22065 Thomas Quinot <quinot@adacore.com>
22066
22067 * sem_res.adb (Resolve_Call): Provide a better error message whenever
22068 a procedure call is used as a select statement trigger and is not an
22069 entry renaming or a primitive of a limited interface.
22070 (Valid_Conversion): If the operand has a single interpretation do not
22071 remove address operations.
22072 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22073 statement to inhibit warning.
22074 (Resolve_Unary_Op): Do not produce a warning when
22075 processing an expression of the form -(A mod B)
22076 Use Universal_Real instead of Long_Long_Float when we need a high
22077 precision float type for the generated code (prevents gratuitous
22078 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22079 (Resolve_Concatenation_Arg): Improve error message when argument is an
22080 ambiguous call to a function that returns an array.
22081 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22082 there is an implicit operator in the given scope if we are within an
22083 instance: legality check has been performed on the generic.
22084 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22085 after resolving operand, to avoid false warnings on overloaded calls.
22086
22087 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22088 Javier Miranda <miranda@adacore.com>
22089
22090 PR ada/15604
22091 * sem_type.adb (Covers): In an inlined body, a composite type matches
22092 a private type whose full view is a composite type.
22093 (Interface_Present_In_Ancestor): Protect the frontend against
22094 previously detected errors to ensure that its compilation
22095 with assertions enabled gives the same output that its
22096 compilation without assertions.
22097 (Interface_Present_In_Ancestor): Add support for private types.
22098 Change name In_Actual to In_Generic_Actual (clean up)
22099 (Disambiguate): New predicate In_Actual, to recognize expressions that
22100 appear in the renaming declaration generated for generic actuals, and
22101 which must be resolved in the outer context.
22102
22103 2005-11-14 Robert Dewar <dewar@adacore.com>
22104 Thomas Quinot <quinot@adacore.com>
22105 Hristian Kirtchev <kirtchev@adacore.com>
22106 Ed Schonberg <schonberg@adacore.com>
22107
22108 * sem_util.ads, sem_util.adb: Change name Is_Package to
22109 Is_Package_Or_Generic_Package.
22110 (Check_Obsolescent): New procedure.
22111 (Set_Is_Public): Remove obsolete junk test.
22112 (Set_Public_Status): Do not set Is_Public on an object whose declaration
22113 occurs within a handled_sequence_of_statemets.
22114 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22115 for a parameterless procedure.
22116 (Enter_Name): Recognize renaming declarations created for private
22117 component of a protected type within protected operations, so that
22118 the source name of the component can be used in the debugger.
22119
22120 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22121 Robert Dewar <dewar@adacore.com>
22122
22123 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22124 of a generic subprogram are not visible outside the body.
22125 (Set_Warning_Switch): New procedure (code to set warning mode moved
22126 here from Switch.C so that it can be shared by pragma processing.
22127 (Check_References): Special case warning for non-modified non-imported
22128 volatile objects.
22129 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22130 form with a string literal argument
22131
22132 2005-11-14 Javier Miranda <miranda@adacore.com>
22133
22134 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22135 anonymous access.
22136 (Write): Addition of "not null" to the anonymous access.
22137 (Read): Addition of "not null" to the anonymous access.
22138 (Write): Addition of "not null" to the anonymous access.
22139
22140 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22141 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22142 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22143 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22144 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22145 "not null" to the anonymous access.
22146
22147 2005-11-14 Robert Dewar <dewar@adacore.com>
22148
22149 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22150 offset values
22151
22152 2005-11-14 Vincent Celier <celier@adacore.com>
22153
22154 * switch.adb (Bad_Switch): New procedure
22155 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22156 message when in error.
22157
22158 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22159 Too_Many_Output_Files): Remove declarations, no longer used.
22160 (Scan_Nat): New parameter Switch
22161 (Scan_Pos): Ditto
22162 (Bad_Switch): New procedure
22163
22164 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22165 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22166 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22167 to Osint.Fail. Do not handle any exception.
22168
22169 2005-11-14 Vincent Celier <celier@adacore.com>
22170
22171 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22172 designates a non existent directory.
22173
22174 2005-11-14 Robert Dewar <dewar@adacore.com>
22175
22176 * xgnatugn.adb: Replace invalid membership test by 'Valid
22177
22178 2005-11-14 Vincent Celier <celier@adacore.com>
22179
22180 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22181 there is no object directory.
22182
22183 2005-11-14 Robert Dewar <dewar@adacore.com>
22184
22185 * usage.adb: Minor adjustment to output format, use nn instead of nnn
22186 (so that -gnateInnn does not run into next column)
22187
22188 2005-11-14 Ed Falis <falis@adacore.com>
22189
22190 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22191 "constrained"
22192
22193 2005-11-14 Cyrille Comar <comar@adacore.com>
22194
22195 * s-chepoo.ads: Add comments on Dereference.
22196 Remove unnecessary inherited abstract primitives.
22197 Cosmetic cleanup.
22198
22199 2005-11-14 Robert Dewar <dewar@adacore.com>
22200
22201 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22202 node parameter, not needed, since it is available as Declaration_Node.
22203
22204 2005-11-14 Geert Bosch <bosch@adacore.com>
22205
22206 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22207 grammatically correct.
22208
22209 2005-11-14 Vincent Celier <celier@adacore.com>
22210
22211 * s-fileio.ads: Correct spelling error in comment
22212
22213 2005-11-14 Cyrille Comar <comar@adacore.com>
22214 Robert Dewar <dewar@adacore.com>
22215 Vincent Celier <celier@adacore.com>
22216 Ben Brosgol <brosgol@adacore.com>
22217 Jose Ruiz <ruiz@adacore.com>
22218 Pascal Obry <obry@adacore.com>
22219
22220 * gnat_ugn.texi:
22221 Document that -fstack-check is needed for strict compliance with the
22222 Ada 95 Reference Manual.
22223 Correct reference to VAX systems to meet HP guidelines
22224 Add documentation for new gnatmake switches -vl, -vm and -vh
22225 Replace DEC Ada by HP Ada
22226 Replace DIGITAL by HP
22227 Remove empty section on tools in compatibility section
22228 Clarify the Windows convention semantics.
22229 Document the Win32 calling convention.
22230 The Stdcall, Win32 and DLL convention are synonyms.
22231 Add a note in -gnatR description about zero size record components
22232 Note on new >= and <= warnings for -gnatwc
22233 Document that equal sign after -gnatm is optional.
22234 Note that strip is working fine on DLL built with a Library
22235 Project. The restriction apply only to DLL built with gnatdll.
22236 Update section about the way to debug a DLL.
22237 Update information about the DLL convention.
22238 Document -C switch for gnatprep
22239 Document new attribute Library_ALI_Dir
22240 Update elaboration doc to include implicit Elaborate pragmas now
22241 generated for subprogram instantiations.
22242 Document limitation on executable names that include spaces for --GCC,
22243 --GNATBIND, and --GNATLINK switches.
22244 Document that -w causes -gnatws to be added at start of gcc switches
22245
22246 * gnat_rm.texi: Document that -mieee is needed for generating infinite
22247 and NaN values in case of overflow on machines that are not fully
22248 compliant with the IEEE floating-point standard.
22249 Create a section describing the set of compiler options needed for
22250 strict compliance with the Ada 95 Reference Manual.
22251 Add documentation for pragma Obsolescent applied to a package
22252 Clarify potential issues of mixed language programs related to the
22253 I/O buffering enabling in the elaboration of the GNAT runtime.
22254 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22255 This documentation only patch adds extra documentsion for pragma
22256 Restrictions (No_Elaboration_Code), explaining why it is not possible
22257 to document this restriction in terms of allowed source constructs.
22258 Document string literal form of pragma Warnings
22259 Document new attribute Library_ALI_Dir
22260 Add documentation on stable attributes in project files that was missing
22261
22262 * gnat-style.texi: Indicate that paragraphs within a single comment
22263 should be separated by empty comment lines
22264
22265 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22266 /05 respectively)
22267
22268 * bindusg.adb: Minor cleanup, put -m before -M for consistency
22269
22270 2005-11-14 Robert Dewar <dewar@adacore.com>
22271
22272 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22273 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22274 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22275 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22276 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22277 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22278 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22279 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22280 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22281 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22282 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22283 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22284 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22285 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22286 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22287 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22288 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22289 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
22290 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
22291 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
22292 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22293 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
22294 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
22295 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
22296 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
22297 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
22298 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
22299 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
22300 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
22301 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
22302 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
22303 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
22304 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
22305 system-interix.ads, system-solaris-sparc.ads,
22306 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
22307 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
22308 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
22309 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
22310 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
22311 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
22312 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
22313 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22314 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
22315 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
22316 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
22317 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
22318 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
22319 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
22320 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
22321 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
22322 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
22323 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
22324 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
22325 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
22326 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
22327 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
22328 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
22329 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
22330 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
22331 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22332 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
22333 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
22334 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
22335 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
22336 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
22337 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
22338 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22339 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
22340 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
22341 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
22342 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22343 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
22344 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
22345 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
22346 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
22347 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
22348 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
22349 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
22350 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
22351 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
22352 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
22353 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
22354 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
22355 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
22356 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
22357 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
22358 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
22359 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
22360 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
22361 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
22362 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
22363 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
22364 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
22365 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
22366 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
22367 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
22368 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
22369 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
22370 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
22371 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
22372 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
22373 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
22374 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
22375 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
22376 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
22377 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
22378 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
22379 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
22380 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
22381 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
22382 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
22383 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
22384 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
22385 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
22386 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
22387 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
22388 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
22389 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
22390 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
22391 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
22392 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
22393 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
22394 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
22395 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
22396 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
22397 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
22398 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
22399 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
22400 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
22401 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
22402 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
22403 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
22404 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
22405 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
22406 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
22407 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
22408 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
22409 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
22410 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
22411 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
22412 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
22413 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
22414 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
22415 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
22416 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
22417 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
22418 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
22419 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
22420 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
22421 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
22422 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
22423 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
22424 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
22425 a-numaux-darwin.ads, a-numaux-darwin.adb,
22426 a-swuwha.ads, a-stunha.ads: Minor reformatting
22427
22428 2005-11-14 Robert Dewar <dewar@adacore.com>
22429
22430 PR ada/18434
22431 * osint-m.adb: Add pragma Elaborate_All for Osint
22432
22433 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
22434
22435 PR ada/23995
22436 * trans.c (call_to_gnu): Restore statement lost in translation.
22437
22438 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
22439
22440 * init.c: Use the Linux-specific section for the IA-64/Linux target.
22441 (__gnat_adjust_context_for_raise): Add conditional code so that the
22442 IA-64 is also supported.
22443
22444 2005-11-03 James E Wilson <wilson@specifix.com>
22445
22446 PR ada/23427
22447 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
22448 TREE_OVERFLOW check.
22449
22450 2005-09-21 Olivier Hainque <hainque@adacore.com>
22451
22452 PR ada/22418
22453 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
22454 as we create them to store a size in bits.
22455
22456 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
22457
22458 PR ada/21937
22459 PR ada/22328
22460 PR ada/22381
22461 PR ada/22383
22462 PR ada/22419
22463 PR ada/22420
22464 * utils2.c (build_return_expr): New helper function.
22465 * gigi.h (build_return_expr): Declare it.
22466 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
22467 of manually building the RETURN_EXPR tree.
22468 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
22469 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
22470 build_binary_op for the "target pointer" case. Use build_return_expr
22471 instead of manually building the RETURN_EXPR tree.
22472
22473 2005-09-16 Laurent Guerby <laurent@guerby.net>
22474
22475 PR ada/23788
22476 * s-tpinop.ads: Make this unit Preelaborate.
22477
22478 2005-09-16 Andreas Jaeger <aj@suse.de>
22479
22480 * socket.c: Add string.h for memcpy.
22481
22482 2005-09-05 Arnaud Charlet <charlet@adacore.com>
22483
22484 * dec-io.ads, dec-io.adb: Removed, no longer used.
22485
22486 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22487
22488 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
22489
22490 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22491 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
22492 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
22493 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
22494 dependent units are Preelaborate.
22495 (Initialize): Call Interrupt_Managemeent.Initialize and
22496 OS_Primitives.Initialize to ensure proper initialization of this unit.
22497 Remove use of System.Soft_Links
22498 Make this unit Preelaborate.
22499
22500 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22501 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
22502 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
22503 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
22504 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
22505 s-tratas.ads, s-tasinf.ads: Minor reformatting.
22506 Add pragma Preelaborate, since these packages are suitable for this
22507 categorization.
22508 Update comments.
22509
22510 * s-traent-vms.ads, s-intman-dummy.adb,
22511 s-taprop-dummy.adb: Make this unit Preelaborate.
22512
22513 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
22514 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
22515 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
22516 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
22517 s-intman-solaris.adb, s-intman-irix-athread.adb,
22518 s-intman-irix.adb: Mark this unit Preelaborate.
22519 (Initialize): New procedure.
22520 Update comments.
22521
22522 * s-taspri-linux.ads: Removed.
22523
22524 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
22525 as done by other implementations (e.g. posix).
22526
22527 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
22528 responsible for deferring abort.
22529 Mark this unit Preelaborate.
22530
22531 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
22532 proper initialization of the tasking run-time.
22533
22534 * s-tasdeb.ads: Mark this unit Preelaborate.
22535 (Known_Tasks): Add explicit default value to avoid elaboration code.
22536
22537 * s-inmaop-vms.adb (Elaboration code): Add call to
22538 Interrupt_Management.Initialize since the elaboration code depends on
22539 proper initialization of this package.
22540
22541 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
22542 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
22543 s-osprim-posix.adb: Make this unit Preelaborate.
22544
22545 * a-calend.adb: Add call to OS_Primitives.Initialize
22546
22547 * a-elchha.adb: Update use of Except.Id.Full_Name.
22548 Minor reformatting.
22549 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
22550
22551 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
22552 Move with clauses outside Warnings Off now that dependent units are
22553 Preelaborate.
22554 Use raise xxx with "..."; Ada 2005 form.
22555
22556 * a-taside.ads, a-taside.adb:
22557 Remove some dependencies, to make it easier to make this unit truly
22558 Preelaborate.
22559 Rewrite some code to be conformant with Preelaborate rules.
22560
22561 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
22562 marked Preelaborate in the future.
22563
22564 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
22565 these units Preelaborate.
22566
22567 * s-exctab.adb: Update use of Except.Id.Full_Name.
22568
22569 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
22570 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
22571 Set_Exc_Stack_Addr): Removed, no longer used.
22572 Remove reference to *Machine_State_Addr*, no longer needed.
22573
22574 * s-stalib.ads: Mark this unit as Preelaborate[_05].
22575 (Exception_Data): Full_Name is now a System.Address so that this unit
22576 can be made Preelaborate.
22577 Clean up/simplify code thanks to Full_Name being a System.Address.
22578 Remove obsolete pragma Suppress (All_Checks), no longer needed.
22579
22580 * s-taskin.ads, s-taskin.adb:
22581 Move with clauses outside Warnings Off now that dependent units are
22582 Preelaborate.
22583 Make this unit Preelaborate.
22584 (Initialize): New proceduure, replace elaboration code and makes the
22585 set up of the tasking run-time cleaner.
22586 (Detect_Blocking): Now a function instead of a deferred boolean, to
22587 obey Preelaborate rules.
22588
22589 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
22590 soft links, no longer used.
22591
22592 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
22593 packages are suitable for this categorization.
22594
22595 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
22596 since we compile run-time sources in Ada 2005 mode.
22597 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
22598 avoid having s-taprop*.adb depend on s-soflin and to avoid code
22599 duplication.
22600 Remove reference to *Machine_State_Addr*, no longer needed.
22601
22602 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22603
22604 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
22605 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22606 Remove reference to System.Exceptions.
22607
22608 * s-mastop-x86.adb: Removed, no longer used.
22609
22610 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
22611
22612 * a-excach.adb: Minor reformatting.
22613
22614 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
22615 instead fix new warnings that were hidden by this change.
22616 (AAA, ZZZ): Removed, replaced by...
22617 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
22618 are used instead of constants, to help make Ada.Exception truly
22619 preelaborate.
22620 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
22621 Raise_Storage_Error): File is now a System.Address, to simplify code.
22622 (Elab code): Removed, no longer used.
22623 (Null_Occurrence): Remove Warnings Off and make this construct
22624 preelaborate.
22625 Remove code related to front-end zero cost exception handling, since
22626 it is no longer used.
22627 Remove -gnatL/-gnatZ switches.
22628
22629 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
22630 Update use of Except.Msg.
22631
22632 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
22633 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
22634 to front-end zero cost exception handling, since it is no longer used.
22635 Remove -gnatL/-gnatZ switches.
22636
22637 * lib-writ.ads: Minor reformatting
22638 Remove doc of UX
22639
22640 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
22641
22642 * Make-lang.in: Remove references to s-except.ads
22643
22644 * s-except.ads: Removed, no longer used.
22645
22646 * s-mastop.ads, s-mastop.adb:
22647 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22648 Remove reference to System.Exceptions.
22649
22650 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
22651 switch-b.adb: Remove code related to front-end zero cost exception
22652 handling, since it is no longer used.
22653 Remove -gnatL/-gnatZ switches.
22654
22655 2005-09-01 Robert Dewar <dewar@adacore.com>
22656 Gary Dismukes <dismukes@adacore.com>
22657 Javier Miranda <miranda@adacore.com>
22658
22659 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
22660 type by valid test and generate warning.
22661 (Tagged_Membership): Generate call to the run-time
22662 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
22663 Change formal name Subtype_Mark to Result_Definition in several calls to
22664 Make_Function_Specification.
22665 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
22666 check for proper accessibility of the operand of a class-wide allocator.
22667 The check can be left out if checks are suppressed or if the expression
22668 has a specific tagged type whose level is known to be safe.
22669
22670 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
22671 generates the run-time check associated with null-excluding entities.
22672 (Expand_N_Return_Statement): Add tests to determine if the accessibility
22673 check on the level of the return expression of a class-wide function
22674 can be elided. The check usually isn't needed if the expression has a
22675 specific type (unless it's a conversion or a formal parameter). Also
22676 add a test for whether accessibility checks are suppressed. Augment
22677 the comments to describe the conditions for performing the check.
22678
22679 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
22680 Javier Miranda <miranda@adacore.com>
22681 Gary Dismukes <dismukes@adacore.com>
22682 Ed Schonberg <schonberg@adacore.com>
22683
22684 * a-tags.adb (IW_Membership): Give support to
22685 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
22686 subprogram has been extended to look for the tag in the ancestors tag
22687 table.
22688 Update the structure of the GNAT Dispatch Table to reflect the
22689 additional two tables used in dispatching selects.
22690 Introduce appropriate array types and record components in
22691 Type_Specific_Data to reflect the two tables.
22692 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
22693 the TSD of a tag, indexed by position.
22694 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
22695 operation kind in the TSD of a tag, indexed by position.
22696
22697 * a-tags.ads: Introduce an enumeration type to capture different
22698 primitive operation kinds. Define a constant reflecting the number of
22699 predefined primitive operations.
22700 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
22701 of an entry wrapper.
22702 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
22703 callable entity of a primitive operation.
22704
22705 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
22706 primitive operations used in dispatching selects for limited
22707 interfaces, limited tagged, task and protected types what implement a
22708 limited interface.
22709 (Freeze_Type): Generate the bodies of the primitive operations used in
22710 dispatching selects for limited tagged, task and protected types that
22711 implement a limited interface. Generate statements to populate the two
22712 auxiliary tables used for dispatching in select statements.
22713 (Freeze_Record_Type): Add call to initialize the dispatch table entries
22714 associated with predefined interface primitive operations.
22715 (Build_Dcheck_Function): Change Set_Subtype_Mark to
22716 Set_Result_Definition.
22717 (Build_Variant_Record_Equality): Change Subtype_Mark to
22718 Result_Definition.
22719 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
22720 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
22721 (Build_Assignment): Simplify the code that adds the run-time-check.
22722 (Expand_N_Object_Declaration): Code cleanup.
22723
22724 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
22725 entries when there is a protected type that implements a limited
22726 interface.
22727
22728 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
22729 common routines used in expansion of dispatching selects.
22730 (Add_Private_Declarations): Select the appropriate protection type when
22731 there is a protected type that implements a limited interface.
22732 (Build_Parameter_Block): Generate a wrapped parameter block.
22733 (Build_Protected_Subprogram_Body): Select the appropriate type for
22734 locking entries when there is a protected type that implements a
22735 limited interface.
22736 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
22737 classified as entry wrappers.
22738 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
22739 asynchronous selects.
22740 (Expand_N_Conditional_Entry_Call): Add support for expansion of
22741 dispatching conditional selects.
22742 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
22743 protection when there is a protected type that implements limited
22744 interfaces.
22745 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
22746 timed selects.
22747 (Extract_Dispatching_Call): Extract the entity of the name of a
22748 dispatching call, the object parameter, actual parameters and
22749 corresponding formals.
22750 (Make_Initialize_Protection): Correct logic of protection initialization
22751 when there is a protected type that implements a limited interface.
22752 (Parameter_Block_Pack): Populate a wrapped parameter block with the
22753 values of actual parameters.
22754 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
22755 block and assign them to the original actual parameters.
22756
22757 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
22758 (Build_Protected_Sub_Specification): Change the type and name of the
22759 last formal to account for the increased variety of protection modes.
22760
22761 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
22762 entities. Used to save the value of the Is_Hidden attribute when the
22763 limited-view is installed.
22764 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
22765 the attribute of procedures classified as entry wrappers.
22766 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
22767 entity of a primitive wrapper.
22768 (Write_Entity_Flags): Output the name and value of the
22769 Is_Primitive_Wrapper attribute.
22770 (Write_Field27_Name): Output the name and entity of the field Wrapped_
22771 Entity.
22772 (Underlying_Type): If we have an incomplete entity that comes from
22773 the limited view then we return the Underlying_Type of its non-limited
22774 view if it is already available.
22775 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
22776 including operators.
22777 (Write_Field26_Name): Add entry for Overridden_Operation
22778 (Overridden_Operation): New attribute of functions and procedures.
22779
22780 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
22781 predefined position in the dispatch table for the primitive operations
22782 used in dispatching selects.
22783 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
22784 predefined primitive operations and replace it with
22785 Default_Prim_Op_Count.
22786 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
22787 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
22788 the names of the generated primitive operations used in dispatching
22789 selects.
22790 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
22791 case of abstract interface types. They will be inherit by the objects
22792 implementing the interface.
22793 (Make_DT): There is no need to inherit the dispatch table of the
22794 ancestor interface for the elaboration of abstract interface types.
22795 The dispatch table will be inherited by the object implementing the
22796 interface.
22797 (Copy_Secondary_DTs): Add documentation.
22798 (Validate_Position): Improve this static check in case of
22799 aliased subprograms because aliased subprograms must have
22800 the same position.
22801 (Init_Predefined_Interface_Primitives): New subprogram that initializes
22802 the entries associated with predefined primitives of all the secondary
22803 dispatch tables.
22804 (Build_Anonymous_Access_Type): Removed.
22805 (Expand_Interface_Actuals): With the previous cleanup there is no need
22806 to build an anonymous access type. This allows further cleanup in the
22807 code generated by the expander.
22808 (Expand_Interface_Conversion): If the actual is an access type then
22809 build an internal function to handle the displacement. If the actual
22810 is null this function returns null because no displacement is
22811 required; otherwise performs a type conversion that will be
22812 expanded in the code that returns the value of the displaced actual.
22813 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
22814 conversions that have no effect in the generated code because no
22815 displacement is required. Code cleanup; use local variables to
22816 avoid repeated calls to the subprogram directly_designated_type().
22817
22818 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
22819 Classify the primitive operations used in dispatching selects as
22820 predefined.
22821 (Implements_Limited_Interface): Determine whether some type either
22822 directly implements a limited interface or extends a type that
22823 implements a limited interface.
22824 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
22825 (Expand_Subtype_From_Expr): Do not build actual subtype if the
22826 expression is limited.
22827 (Find_Interface_Tag): Add code to handle class-wide types and
22828 entities from the limited-view.
22829
22830 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
22831 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
22832 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
22833 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
22834 Set_Prim_Op_Kind.
22835
22836 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
22837 of procedure name or prefix that appears as a trigger in a triggering
22838 alternative.
22839
22840 * uintp.ads: Introduce constants Uint_11 and Uint_13.
22841
22842 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22843
22844 * s-tataat.adb, a-tasatt.adb:
22845 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
22846
22847 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
22848 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
22849 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
22850 longer used.
22851
22852 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22853 Jose Ruiz <ruiz@adacore.com>
22854
22855 * s-taprop-vxworks.adb:
22856 Move with clauses outside Warnings Off now that dependent units are
22857 Preelaborate.
22858 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
22859 initialization of this unit.
22860 (Specific): Add new procedures Initialize and Delete so that this
22861 package can be used for VxWorks 5.x and 6.x
22862 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
22863 differences between VxWorks 5.x and 6.x
22864 Minor reformatting.
22865 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
22866 caller.
22867 Use only Preelaborate-compatible constructs.
22868
22869 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
22870 Primitives.Operations.
22871 (Delete, Initialize): New procedures.
22872
22873 * s-osinte-vxworks.adb: Body used to handle differences between
22874 VxWorks 5.x and 6.x
22875 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
22876
22877 * s-osinte-vxworks.ads: Minor reformatting.
22878 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
22879 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
22880 and 6.
22881 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
22882 between Vxworks 5 and 6.
22883 (taskLock, taskUnlock): Removeed, no longer used.
22884
22885 * adaint.c: The wait.h header is not located in the sys directory on
22886 VxWorks when using RTPs.
22887 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
22888 using RTPs.
22889 (__gnat_dup): dup is available on Vxworks when using RTPs.
22890 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
22891
22892 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
22893
22894 * expect.c: The wait.h header is not located in the sys directory on
22895 VxWorks when using RTPs.
22896
22897 2005-09-01 Thomas Quinot <quinot@adacore.com>
22898
22899 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
22900
22901 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
22902
22903 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
22904 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22905 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
22906 g-soccon-freebsd.ads: Add new constants:
22907 IP_MULTICAST_IF
22908 SO_RCVTIMEO/SO_SNDTIMEO
22909 IOV_MAX
22910
22911 * gen-soccon.c:
22912 Move all target-specific file inclusions and macro definitions to
22913 gsocket.h, in order to ensure that any C code in socket.c will see a
22914 set of constants that is consistent with the contents of g-soccon.ads.
22915
22916 * gsocket.h: Code imported from gen-soccon.c:
22917 Move all target-specific file inclusions and macro definitions to
22918 gsocket.h, in order to ensure that any C code in socket.c will see a set
22919 of constants that is consistent with the contents of g-soccon.ads.
22920 This change also makes gen-soccon self-contained (removing dependencies
22921 upon GCC internal headers).
22922
22923 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
22924 iovecs at a time.
22925 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
22926
22927 * socket.c: Minor reformatting.
22928
22929 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22930 Thomas Quinot <quinot@adacore.com>
22931
22932 * fname-sf.adb, mlib-tgt.ads,
22933 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
22934 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
22935 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
22936 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
22937 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
22938 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
22939 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
22940 makegpr.adb: Remove redundant use_clauses.
22941
22942 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22943
22944 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22945 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22946 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22947 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22948 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22949 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22950 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22951 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22952 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22953 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22954 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22955 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22956 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22957 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22958 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
22959 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
22960 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22961 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22962 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22963 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22964 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22965 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22966 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22967 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22968 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22969 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22970 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22971 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
22972 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22973 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
22974 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22975 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22976 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22977 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22978 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22979 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22980 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22981 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22982 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22983 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22984 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22985 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22986 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22987 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22988 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22989 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22990 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22991 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22992 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22993 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22994 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22995 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22996 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22997 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22998 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22999 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23000 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23001 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23002 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23003 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23004 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23005 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23006 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23007 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23008 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23009 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23010 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23011 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23012 and always use the no parameter form for consistency.
23013
23014 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23015
23016 2005-09-01 Robert Dewar <dewar@adacore.com>
23017
23018 * binde.adb: Minor reformatting
23019 (Find_Elab_Order): Output warning if -p used with static elab order
23020
23021 2005-09-01 Robert Dewar <dewar@adacore.com>
23022
23023 * checks.adb (Check_Needed): New procedure, deals with removing checks
23024 based on analysis of short-circuited forms. Also generates warnings for
23025 improper use of non-short-circuited forms.
23026 Code clean ups.
23027
23028 2005-09-01 Robert Dewar <dewar@adacore.com>
23029
23030 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23031 with 'Valid tests.
23032
23033 2005-09-01 Robert Dewar <dewar@adacore.com>
23034
23035 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23036 spec.
23037 Implement new insertion char < (conditional warning)
23038 * errutil.adb, erroutc.adb: Implement new insertion char <
23039 (conditional warning).
23040 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23041 (Error_Msg_Warn): New variable for < insertion char.
23042 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23043 warning).
23044 (Check_For_Source): Change value of Source_Id only after the current
23045 source has been dealt with.
23046
23047 2005-09-01 Robert Dewar <dewar@adacore.com>
23048 Doug Rupp <rupp@adacore.com>
23049
23050 * exp_attr.adb: Handle vax fpt for 'Valid attribute
23051 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23052 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23053 (Valid_D, Valid_F, Valid_G): New functions
23054
23055 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23056 Hristian Kirtchev <kirtchev@adacore.com>
23057 Javier Miranda <miranda@adacore.com>
23058
23059 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23060 from object notation, the original node is unanalyzed and carries no
23061 semantic information, so that accessiblity checks must be performed on
23062 the type of the actual itself.
23063 (Expand_N_Subprogram_Declaration): Change last actual parameter for
23064 compatibility with Build_Protected_Sub_Specification.
23065 (Check_Overriding_Inherited_Interfaces): Add suport to handle
23066 overloaded primitives.
23067 (Register_Interface_DT_Entry): Use the new name of the formal
23068 the the calls to Expand_Interface_Thunk
23069
23070 * exp_dbug.ads: Augment comments on encoding of protected types to
23071 include the generation of dispatching subprograms when the type
23072 implements at least one interface.
23073
23074 * lib.ads: Extend information in Load_Stack to include whether a given
23075 load comes from a Limited_With_Clause.
23076
23077 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23078 whether a potential circularity is harmless, because it includes units
23079 loaded through a limited_with clause. Extends previous treatment which
23080 did not handle properly arbitrary combinations of limited and
23081 non-limited clauses.
23082
23083 2005-09-01 Nicolas Setton <setton@adacore.com>
23084
23085 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23086 to be encoded as typ___XBLU_lowerbound__upperbound instead of
23087 typ___XB_lowerbound__upperbound.
23088
23089 2005-09-01 Thomas Quinot <quinot@adacore.com>
23090
23091 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23092 dummy access formal for RACW/RAS TypeCode TSS.
23093 (Build_TypeCode_Call): Do not generate dummy null access actual for
23094 calls to the TypeCode TSS.
23095
23096 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23097
23098 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23099 fully qualified name, to distinguish instances with the same local name.
23100
23101 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23102 fully qualified.
23103
23104 2005-09-01 Robert Dewar <dewar@adacore.com>
23105
23106 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23107 packed arrays.
23108
23109 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
23110
23111 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23112 (Free): New deallocation procedure for filter elements
23113 (Close): Deallocate any existing filter for the concerned connection
23114
23115 2005-09-01 Laurent Pautet <pautet@adacore.com>
23116
23117 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23118 position set is provided, we compute one in order to reduce the maximum
23119 length of the keys. This computation first selects a character
23120 position between 1 and the minimum length of the keys in order to
23121 avoid reducing one of the keys to an empty string.
23122 (Initialize, Compute): When the ratio V to K is too low, the algorithm
23123 does not converge. The initialization procedure now comes with a
23124 maximum number of iterations such that when exceeded, an exception is
23125 raised in Compute. The user can initialize this ratio to another value
23126 and try again
23127 Reformating and updated headers.
23128
23129 2005-09-01 Javier Miranda <miranda@adacore.com>
23130
23131 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23132 that given an entity T creates and returns an Itype that duplicates the
23133 contents of T. The returned Itype has the null-exclusion
23134 attribute set to True, and its Etype attribute references T
23135 to keep the association between the two entities.
23136 Update copyright notice
23137
23138 * sem_aggr.adb (Check_Can_Never_Be_Null,
23139 Aggregate_Constraint_Checks, Resolve_Aggregate,
23140 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23141
23142 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23143
23144 2005-09-01 Gary Dismukes <dismukes@adacore.com>
23145 Robert Dewar <dewar@adacore.com>
23146 Hristian Kirtchev <kirtchev@adacore.com>
23147
23148 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23149 Result_Definition.
23150
23151 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23152 function specs.
23153 Call Set_Result_Definition instead of Set_Subtype_Mark.
23154 (P_Subprogram_Specification): Add parsing of anonymous access result
23155 plus null exclusions. Call Set_Result_Definition instead of
23156 Set_Subtype_Mark.
23157
23158 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23159 (P_Access_Type_Definition): Add parsing for an anonymous access result
23160 subtype, plus parsing for null exclusions. Call Set_Result_Definition
23161 instead of Set_Subtype_Mark.
23162
23163 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23164 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23165 (Result_Definition): New function for N_Function_Specifications.
23166 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23167 N_Function_Specification.
23168 (Set_Null_Exclusion_Present): Allow this flag for
23169 N_Function_Specification.
23170 (Set_Result_Definition): New procedure for N_Function_Specifications.
23171 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23172 and N_Function_Specification.
23173
23174 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23175 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23176 Add support for LIMITED NEW for Ada 2005 AI-419
23177 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23178 syntax for anonymous access results.
23179 Replace Subtype_Mark field by Result_Definition in
23180 N_Function_Specification and N_Access_Definition specs.
23181 Add Null_Exclusion_Present to spec of N_Function_Specification.
23182 (Result_Definition): New function for N_Function_Specification and
23183 N_Access_Function_Definition.
23184 (Set_Result_Definition): New procedure for N_Function_Specification and
23185 N_Access_Function_Definition.
23186
23187 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23188 Result_Definition for cases of N_Access_Function_Definition and
23189 N_Function_Specification.
23190 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23191
23192 2005-09-01 Vincent Celier <celier@adacore.com>
23193
23194 * lib-writ.adb: Update Copyright notice
23195 (Write_With_Lines): On platforms where file names are case-insensitive,
23196 record the file names in lower case.
23197 (Write_ALI): For D lines, on platforms where file names are
23198 case-insensitive, record the file names in lower case.
23199
23200 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23201 Emmanuel Briot <briot@adacore.com>
23202
23203 * lib-xref.adb (Output_Overridden_Op): Display information on
23204 overridden operation.
23205
23206 * lib-xref.ads: Add documentation on overridden operations.
23207
23208 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23209 information.
23210
23211 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23212 overriding entity information.
23213
23214 2005-09-01 Vincent Celier <celier@adacore.com>
23215
23216 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23217 including those that are inherited.
23218
23219 2005-09-01 Robert Dewar <dewar@adacore.com>
23220
23221 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23222
23223 * par-prag.adb: Implement new pragma Debug_Policy
23224
23225 * sem_prag.adb Implement new pragma Debug_Policy
23226 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23227 Component_Size attribute specification. Give warning for ignored pragma
23228 Pack.
23229
23230 * snames.h, snames.ads, snames.adb: Introduce entries in
23231 Preset_Names for Name_Disp_Asynchronous_Select,
23232 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23233 Name_Disp_Timed_Select.
23234 New pragma Debug_Policy
23235
23236 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23237 explicitly.
23238 Switch -gnata also sets Debug_Pragmas_Enabled
23239
23240 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23241 handle an explicit -gnata when compiling predefined files.
23242
23243 2005-09-01 Vincent Celier <celier@adacore.com>
23244
23245 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23246 directories of projects that have no Ada sources.
23247
23248 2005-09-01 Robert Dewar <dewar@adacore.com>
23249
23250 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23251 (makes a difference for wide characters)
23252
23253 * widechar.adb, widechar.ads:
23254 Add Wide_Char_Byte_Count feature to count chars vs bytes
23255
23256 2005-09-01 Thomas Quinot <quinot@adacore.com>
23257 Ed Schonberg <schonberg@adacore.com>
23258 Robert Dewar <dewar@adacore.com>
23259
23260 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23261 'Address attribute reference with an overloaded prefix, use the
23262 location of the prefix (not the location of the attribute reference) as
23263 the error location.
23264 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23265 a function renaming thereof, is a valid prefix for 'Size (where it is
23266 intepreted as a function call).
23267 (Statically_Denotes_Entity): New predicate to determine whether the
23268 prefix of an array attribute can be considered static.
23269
23270 PR ada/9087
23271 (Eval_Attr): Fix failure to evaluate Component_Size for
23272 unconstrained arrays (resulted in wrong value in packed case, since
23273 back end cannot handle this case)
23274
23275 2005-09-01 Robert Dewar <dewar@adacore.com>
23276
23277 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23278 error msgs for most common cases.
23279 Use new errout insertion char < (conditional warning)
23280
23281 2005-09-01 Javier Miranda <miranda@adacore.com>
23282 Ed Schonberg <schonberg@adacore.com>
23283
23284 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23285 become local to the whole package.
23286 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23287 the package was already analyzed the new algorithm "replaces" the
23288 real entities by the shadow ones. This is required to ensure that
23289 the order of these entities in the homonym chains does not change;
23290 otherwise we can have undefined references at linking time because
23291 in case of conflicts the external name of the entities will have
23292 a suffix that depends on the order of the entities in the chain.
23293 (Remove_Limited_With_Clause): Complementary code that completes the
23294 new algorithm and replaces the shadow entities by the real ones.
23295 (Install_Limited_Withed_Unit): When unchaining entities before the
23296 installation of the shadow entities, only regular entities of the
23297 public part must be taken into account. This is required to
23298 keep this routine in synch with the work done by Remove_Limited_
23299 With_Clause
23300 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
23301 even if unit is analyzed, because the analysis of the unit is
23302 idempotent in any case, and the limited view of the unit may have to
23303 be installed for proper visibility.
23304 (Expand_Limited_With_Clause): Even if the unit in the implicit
23305 with_clause has been analyzed already, a limited view of the package
23306 must be built for the current context, if it does not exist yet.
23307
23308 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23309 Javier Miranda <miranda@adacore.com>
23310 Gary Dismukes <dismukes@adacore.com>
23311
23312 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
23313 defining entity for the instance body, make a new defining identifier
23314 rather than copying the entity of the spec, to prevent accidental
23315 sharing of the entity list.
23316 (Check_Private_View): When exchanging views of private types, build the
23317 list of exchanged views as a stack, to ensure that on exit the exchanges
23318 are undone in the proper order.
23319 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
23320 Restore the compilation environment in case of instantiation_error.
23321 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
23322 for an anonymous access result.
23323 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
23324 (Formal_Entity): Handle properly the case of a formal package that
23325 denotes a generic package renaming.
23326
23327 2005-09-01 Thomas Quinot <quinot@adacore.com>
23328
23329 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
23330 clause if the array aggregate is surrounded by parentheses.
23331
23332 2005-09-01 Cyrille Comar <comar@adacore.com>
23333 Gary Dismukes <dismukes@adacore.com>
23334 Ed Schonberg <schonberg@adacore.com>
23335 Javier Miranda <miranda@adacore.com>
23336
23337 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
23338 underlying type
23339 to check if a type is Constrained in cases related to code generation
23340 (rather than semantic checking) since otherwise we do not generate
23341 similar code for mutable private types depending if their
23342 discriminants are visible or not.
23343 (Check_Abstract_Overriding): Do not complain about failure to override
23344 the primitive operations used in dispatching selects since they will
23345 always be overriden at the freeze point of the type.
23346 (Access_Definition): Separate out handling for resetting the scope
23347 of an anonymous access function result type. Retrieve the scope
23348 of the associated function rather than using Current_Scope, which
23349 does not have a consistent value (depends on whether we're in the
23350 middle of analyzing formal parameters). Add ??? comment about
23351 finding a cleaner way to handle the special cases of scope setting.
23352 (Process_Incomplete_Dependents): A protected operation is never a
23353 dispatching operation (only its wrapper may be).
23354 (Build_Derived_Record_Type): In case of tagged private types that
23355 implement interfaces add derivation of predefined primitive
23356 operations.
23357 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
23358 by two parameters that are used in case of derivation from abstract
23359 interface types: No_Predefined_Prims is used to avoid the derivation
23360 of predefined primitives from the interface, and Predefined
23361 Prims_Only is used to complete the derivation predefined primitives
23362 in case of private tagged types implementing interfaces.
23363 Fix typo in comments
23364 (Find_Interface_In_Descendant): Protect the frontend against
23365 wrong code with large circularity chains.
23366 (Is_Private_Overriding): Add support for entities overriding interface
23367 subprograms. The test failed because Entities associated with overriden
23368 interface subprograms are always marked as hidden (and used to build
23369 the secondary dispatch table); in this case the overriden entity is
23370 available through the field abstract_interface_alias (cf. override_
23371 dispatching_operation)
23372 (Access_Definition): Set the scope of the type to Current_Scope for the
23373 case of a function with an anonymous access result type.
23374 (Access_Subprogram_Declaration): Handle creation of the type entity for
23375 an access-to-function type with an anonymous access result.
23376 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
23377 in handling for N_Access_Function_Definition.
23378 (Analyze_Subtype_Declaration): Modify the text of error message.
23379 (Derived_Type_Declaration): Modify the text of error message.
23380 (Process_Subtype): Modify the text of error message plus cleanup
23381 of one redundant error message.
23382 (Analyze_Component_Declaration): Code cleanup.
23383 (Analyze_Object_Declaration): Code cleanup.
23384 (Analyze_Subtype_Declaration): Propagate the null-exclusion
23385 attribute in case of access types. Code cleanup.
23386 (Array_Type_Declaration): Code cleanup.
23387 (Process_Discriminants): Create the new null-excluding itype
23388 if required. Code cleanup.
23389 (Process_Subtype): Create the new null-excluding itype if
23390 required. Code cleanup.
23391 (Build_Derived_Record_Type): Code cleanup to avoid calling
23392 twice the subprogram derive_subprograms in case of private
23393 types that implement interfaces. In this particular case the
23394 subprogram Complete_Subprograms_Derivation already does the
23395 job associated with the second call.
23396
23397 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
23398 conversion to the full view when generating an operation for a
23399 discriminant whose type may currently be private.
23400
23401 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23402 Javier Miranda <miranda@adacore.com>
23403
23404 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
23405 V (Obj.F), the rewriting does not involve the indexed component, but
23406 only the selected component itself.
23407 Do not apply the transformation if the analyzed node is an actual of a
23408 call to another subprogram.
23409 (Complete_Object_Operation): Retain the entity of the
23410 dispatching operation in the selector of the rewritten node. The
23411 entity will be used in the expansion of dispatching selects.
23412 (Analyze_One_Call): Improve location of the error message associated
23413 with interface.
23414 (Analyze_Selected_Component): No need to resolve prefix when it is a
23415 function call, resolution is done when parent node is resolved, as
23416 usual.
23417 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
23418 when attempting to resolve a call transformed from its object notation.
23419 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
23420 of the argument list for each interpretation of the operation.
23421 (Try_Object_Operation): The designated type of an access parameter may
23422 be an incomplete type obtained through a limited_with clause, in which
23423 case the primitive operations of the type are retrieved from its full
23424 view.
23425 (Analyze_Call): If this is an indirect call, and the return type of the
23426 access_to_subprogram is incomplete, use its full view if available.
23427
23428 2005-09-01 Javier Miranda <miranda@adacore.com>
23429 Gary Dismukes <dismukes@adacore.com>
23430
23431 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
23432 access types the null-exclusion and access-to-constant attributes must
23433 also match.
23434 (Analyze_Return_Statement): When the result type is an anonymous access
23435 type, apply a conversion of the return expression to the access type
23436 to ensure that appropriate accessibility checks are performed.
23437 (Analyze_Return_Type): For the case of an anonymous access result type,
23438 generate the Itype and set Is_Local_Anonymous_Access on the type.
23439 Add ??? placeholder for check to disallow returning a limited object
23440 in Ada 2005 unless it's an aggregate or a result of a function call.
23441 Change calls from Subtype_Mark to Result_Definition.
23442 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
23443 Result_Definition in call to Make_Function_Specification.
23444 (Build_Body_To_Inline): Change Set_Subtype_Mark to
23445 Set_Result_Definition.
23446 (Make_Inequality_Operator): Change formal Subtype_Mark to
23447 Result_Definition in call to Make_Function_Specification.
23448 (Process_Formals): Create the new null-excluding itype if required.
23449 (New_Overloaded_Entity): For an entity overriding an interface primitive
23450 check if the entity also covers other abstract subprograms in the same
23451 scope. This is required to handle the general case, that is, overriding
23452 other interface primitives and overriding abstract subprograms inherited
23453 from some abstract ancestor type.
23454 (New_Overloaded_Entity): For an overriding entity that comes from
23455 source, note the operation that it overrides.
23456 (Check_Conformance, Type_Conformant): Addition of one new formal
23457 to skip controlling formals in the analysis. This is used to
23458 handle overloading of abstract interfaces.
23459 (Base_Types_Match): Add missing case for types imported from
23460 limited-with clauses
23461 (New_Overloaded_Entity): Add barrier to protect the use of
23462 the "alias" attribute.
23463
23464 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23465
23466 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
23467 verify that the procedure and the entry are mode conformant.
23468 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
23469 as a different operator, which is often a cut-and-paste error.
23470
23471 2005-09-01 Javier Miranda <miranda@adacore.com>
23472 Ed Schonberg <schonberg@adacore.com>
23473
23474 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
23475 used in controlling parameters exclude null because it is necessary to
23476 read the tag to dispatch, and null has no tag.
23477 (Override_Dispatching_Operation): If the previous operation is inherited
23478 from an interface, it becomes hidden and does not participate in later
23479 name resolution.
23480
23481 2005-09-01 Javier Miranda <miranda@adacore.com>
23482 Ed Schonberg <schonberg@adacore.com>
23483 Gary Dismukes <dismukes@adacore.com>
23484
23485 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
23486 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
23487 the expander will generate the corresponding run-time check to evaluate
23488 the expression.
23489 (Resolve_Call): Check for legal type of procedure name or prefix that
23490 appears as a trigger in a triggering alternative.
23491 (Valid_Conversion): If expression is ambiguous and the context involves
23492 an extension of System, remove System.Address interpretations.
23493 (Resolve_Qualified_Expression): Reject the case of a specific-type
23494 qualification applied to a class-wide argument. Enhance comment
23495 to explain checking of Original_Node.
23496 (Resolve_Type_Conversion): The location of the error message was not
23497 general enough to handle the general case and hence it has been removed.
23498 In addition, this patch improves the text of the message.
23499 (Resolve_Type_Conversion): Add missing support for access to interface
23500 types.
23501 (Resolve_Type_Conversion): If the target is a class-wide interface type,
23502 do not expand if the expression is the actual in a call, because proper
23503 expansion will take place when the call itself is expanded.
23504 (Resolve_Allocator): If the context is an unchecked conversion, the
23505 allocator inherits its storage pool, if any, from the target type of
23506 the conversion.
23507
23508 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23509 Javier Miranda <miranda@adacore.com>
23510
23511 * sem_type.adb (Add_One_Interp): If a candidate operation is an
23512 inherited interface operation that has an implementation, use the
23513 implementation to avoid spurious ambiguities.
23514 (Interface_Present_In_Ancestor): In case of concurrent types we can't
23515 use the Corresponding_Record_Typ attribute to look for the interface
23516 because it is set by the expander (and hence it is not always
23517 available). For this reason we traverse the list of interfaces
23518 (available in the parent of the concurrent type).
23519 (Interface_Present_In_Ancestor): Handle entities from the limited view
23520
23521 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23522
23523 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
23524 from the list of required components.
23525 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
23526 primitive procedure of a limited interface with a controlling first
23527 parameter.
23528 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
23529 of an entry.
23530 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
23531 capture if it is generated in the second operand of a short-circuit
23532 operation.
23533 Do not capture values for variables with address clauses.
23534 (Is_Object_Reference): Treat a function call as an object reference only
23535 if its type is not Standard_Void_Type.
23536
23537 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23538
23539 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
23540 to a variable that is statically known to be constant.
23541
23542 2005-09-01 Geert Bosch <bosch@adacore.com>
23543 Robert Dewar <dewar@adacore.com>
23544
23545 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
23546 (VAXGF_Safe_First): Idem.
23547
23548 2005-09-01 Robert Dewar <dewar@adacore.com>
23549 Arnaud Charlet <charlet@adacore.com>
23550
23551 * g-dirope.ads: Minor reformatting
23552 Document that bounds of result of Base_Name match the input index
23553 positions.
23554 Add documentation on environment variable syntax for Expand_Path
23555
23556 * gnat_ugn.texi: Update documentation to include mention of -m switches
23557 Document new treatment of wide characters in max line length
23558 style check.
23559 Remove -gnatL/-gnatZ switches, no longer used.
23560 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
23561 of -gnata switch.
23562
23563 * gnat_rm.texi: Add doc for two argument form of pragma
23564 Float_Representation.
23565 Add documentation for pragma No_Strict_Aliasing
23566 Add note that explicit component clause overrides pragma Pack.
23567 Add documentation of pragma Debug_Policy
23568
23569 2005-09-01 Matthew Heaney <heaney@adacore.com>
23570
23571 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
23572 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
23573 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
23574 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
23575 draft (Draft 13, August 2005) of Ada Amendment 1.
23576
23577 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23578
23579 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
23580 Note that the platform-specific version of g-soccon.ads for VMS is now
23581 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
23582 really is a package spec).
23583 Replace s-taspri-linux.ads by s-taspri-posix.ads
23584 Remove references to s-mastop-x86.adb
23585
23586 * system-vxworks-xscale.ads: Removed, no longer used.
23587 * s-vxwork-xscale.ads: Removed, no longer used.
23588
23589 2005-09-01 Robert Dewar <dewar@adacore.com>
23590
23591 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
23592 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
23593 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
23594 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
23595 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
23596 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
23597 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23598 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
23599 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
23600 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
23601 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
23602 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
23603 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
23604 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
23605 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
23606 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
23607 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
23608 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
23609 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
23610 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
23611 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
23612
23613 2005-08-29 Arnaud Charlet <charlet@adacore.com>
23614
23615 PR ada/23187
23616 * adaint.c
23617 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
23618
23619 2005-08-29 Arnaud Charlet <charlet@adacore.com>
23620 Doug Rupp <rupp@adacore.com>
23621
23622 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
23623 when needed.
23624 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
23625 this code in the GNAT run-time.
23626
23627 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
23628
23629 PR ada/21053
23630 * init.c (__gnat_error_handler [many]): Mark "msg" as const
23631 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
23632
23633 (__gnat_inside_elab_final_code): Moved here from
23634 Standard_Library and only defined for the compiler.
23635 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
23636 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
23637 using RTPs because directly vectored Interrupt routines are not
23638 supported on this configuration.
23639 (getpid): Do not redefine this function on VxWorks when using RTPs
23640 because this primitive is well supported by the RTP libraries.
23641 (copy_msg): Correct the code that checks for buffer overflow.
23642 Discovered during code reading.
23643
23644 2005-08-29 Olivier Hainque <hainque@adacore.com>
23645
23646 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
23647 a library level mutable variable with an initializer, tell
23648 build_allocator to ignore the initializer's size. It may not be large
23649 enough for all the values that might be assigned to the variable later
23650 on.
23651
23652 2005-08-29 Arnaud Charlet <charlet@adacore.com>
23653 Eric Botcazou <ebotcazou@adacore.com>
23654
23655 * trans.c: Protect < in error msg with quote
23656 Replace GCC_ZCX by Back_End_Exceptions.
23657 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
23658 has been sufficiently aligned in the record.
23659
23660 2005-08-15 James E. Wilson <wilson@specifix.com>
23661
23662 * system-linux-alpha.ads: Change ia64 to alpha.
23663
23664 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
23665
23666 * decl.c, utils.c: Fix comment typos.
23667
23668 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
23669
23670 * decl.c, init.c, initialize.c: Fix comment typos.
23671
23672 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
23673
23674 Make CONSTRUCTOR use VEC to store initializers.
23675 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
23676 CONSTRUCTOR_ELTS.
23677 * trans.c (extract_values): Likewise.
23678 * utils.c (convert, remove_conversions): Likewise.
23679 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
23680 gnat_build_constructor): Likewise.
23681
23682 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
23683
23684 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
23685 DECL_SECTION_NAME.
23686 (compare_field_bitpos): Likewise.
23687
23688 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
23689
23690 * utils.c (create_var_decl): Only set DECL_COMMON on
23691 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
23692 VAR_OR_FUNCTION_DECL_P.
23693
23694 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
23695
23696 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
23697 removed.
23698
23699 2005-07-07 Pascal Obry <obry@adacore.com>
23700
23701 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
23702 returned type on Windows.
23703
23704 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
23705 routine.
23706
23707 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
23708 exception in this case.
23709 Simplify the code as "Image (Image'Range)" = "Image".
23710
23711 2005-07-07 Vincent Celier <celier@adacore.com>
23712
23713 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
23714 the destructor/constructor attributes for <lib>final/<lib>init.
23715
23716 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
23717
23718 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
23719
23720 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
23721 type if the parameter is not passed by copy but reference by default.
23722
23723 2005-07-07 Javier Miranda <miranda@adacore.com>
23724
23725 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
23726 Reimplementation of the support for abstract interface types in order
23727 to leave the code more clear and easy to maintain.
23728
23729 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
23730 abstract interface types in order to leave the code clearer and easier
23731 to maintain.
23732
23733 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
23734 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
23735 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
23736 appropriate entry of the secondary dispatch table.
23737 (Make_DT): Add code to inherit the secondary dispatch tables of
23738 the ancestors.
23739
23740 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
23741 implementing both functionalities by means of a common routine, each
23742 routine has its own code.
23743
23744 2005-07-07 Javier Miranda <miranda@adacore.com>
23745
23746 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
23747
23748 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
23749 types:
23750 --
23751 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23752 --
23753
23754 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
23755 use of tag incomplete types.
23756
23757 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
23758 give support to tagged incomplete types.
23759
23760 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
23761 expression is a discriminant reference and its type is private, as can
23762 happen within a stream operation for a mutable record, use the full
23763 view of the type to resolve the case alternatives.
23764 (Analyze_Assignment): Check wrong dereference of incomplete types.
23765
23766 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
23767 types.
23768
23769 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
23770 incomplete types.
23771
23772 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
23773 N_Incomplete_Type_Declaration nodes.
23774
23775 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
23776 Tag_Present to give support to tagged incomplete types:
23777 --
23778 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23779 --
23780
23781 2005-07-07 Olivier Hainque <hainque@adacore.com>
23782
23783 PR ada/22301
23784 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
23785 definitions for the Unwind wrappers in the compiler case.
23786
23787 2005-07-07 Ed Schonberg <schonberg@adacore.com>
23788 Javier Miranda <miranda@adacore.com>
23789
23790 * par-load.adb (Load): If a child unit is loaded through a limited_with
23791 clause, each parent must be loaded as a limited unit as well.
23792
23793 * sem_ch10.adb (Previous_Withed_Unit): Better name for
23794 Check_Withed_Unit. Return true if there is a previous with_clause for
23795 this unit, whether limited or not.
23796 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
23797 the current unit.
23798 (Is_Visible_Through_Renamings): New local subprogram of install_limited
23799 _withed_unit that checks if some package installed through normal with
23800 clauses has a renaming declaration of package whose limited-view is
23801 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
23802 of the current Draft document for Ada 2005.
23803 (Analyze_Context): Complete the list of compilation units that
23804 are allowed to contain limited-with clauses. It also contains
23805 checks that were previously done by Install_Limited_Context_Clauses.
23806 This makes the code more clear and easy to maintain.
23807 (Expand_Limited_With_Clause) It is now a local subprogram of
23808 Install_Limited_Context_Clauses, and contains the code that adds
23809 the implicit limited-with clauses for parents of child units.
23810 This functionality was prevously done by Analyze_Context.
23811
23812 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
23813 incomplete type.
23814
23815 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
23816 been erroneously named in a limited-with clause of its own context.
23817 In this case the error has been previously notified by Analyze_Context.
23818
23819 2005-07-07 Ed Schonberg <schonberg@adacore.com>
23820
23821 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
23822 generic package that contains local declarations with the same name.
23823 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
23824
23825 2005-07-07 Bernard Banner <banner@adacore.com>
23826
23827 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
23828 ia64 platform only on platforms that you the GCC unwind library
23829 rather than the system unwind library.
23830
23831 2005-07-07 Thomas Quinot <quinot@adacore.com>
23832
23833 * expect.c: Minor reformatting
23834
23835 2005-07-07 Sergey Rybin <rybin@adacore.com>
23836
23837 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
23838 --no-separate-is
23839
23840 * gnat_ugn.texi: Add description for new gnatpp option
23841 (--no-separate-is)
23842
23843 2005-07-04 Thomas Quinot <quinot@adacore.com>
23844
23845 * g-expect-vms.adb, g-expect.ads, g-expect.adb
23846 (Get_Command_Output): New subprogram to launch a process and get its
23847 standard output as a string.
23848
23849 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23850 Olivier Hainque <hainque@adacore.com>
23851
23852 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
23853 fetch a code-range descriptor associated with the machine state. On
23854 failure set the machine state's PC to 0; on success, pass the
23855 descriptor to exc_virtual_unwind.
23856
23857 * init.c (Tru64 section): New function __gnat_set_code_loc.
23858
23859 2005-07-04 Vincent Celier <celier@adacore.com>
23860
23861 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23862 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23863 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
23864 Remove all auto-initialization code, as this is now done through the
23865 constructor mechanism.
23866
23867 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
23868 __gnat_sals_init_using_constructors): New functions.
23869
23870 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
23871 Linker_Constructor and Linker_Destructor when switch -a is used.
23872
23873 * bindusg.adb: Add line for new switch -a
23874
23875 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
23876 (Gnatbind): When switch -a is used, check if it is allowed
23877
23878 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
23879
23880 2005-07-04 Joel Brobecker <brobecker@adacore.com>
23881
23882 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
23883 This prevents us from hitting a limitation during the debug info
23884 generation when using stabs.
23885 (Prims_Ptr): Likewise.
23886
23887 2005-07-04 Gary Dismukes <dismukes@adacore.com>
23888 Ed Schonberg <schonberg@adacore.com>
23889 Javier Miranda <miranda@adacore.com>
23890
23891 * checks.adb (Null_Exclusion_Static_Checks): In the case of
23892 N_Object_Declaration, only perform the checks if the Object_Definition
23893 is not an Access_Definition.
23894
23895 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
23896 where the parent of an the access definition is an N_Object_Declaration
23897 when determining the Associated_Node_For_Itype and scope of an
23898 anonymous access-to-subprogram type.
23899
23900 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
23901 Corresponding_Spec on the body created for a null procedure. Add ???
23902 comment. Remove New_Copy_Tree call on body argument to
23903 Set_Body_To_Inline.
23904
23905 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
23906 discriminants, use the type of the actual as well, because the
23907 discriminants may be read by the called subprogram.
23908
23909 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
23910 access type we do not need to handle non-limited views.
23911 (Build_Derived_Record_Type): Additional check to check that in case of
23912 private types, interfaces are only allowed in private extensions.
23913
23914 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23915
23916 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
23917 <Pragma_Linker_Destructor>: Likewise.
23918
23919 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
23920 Pragma_Linker_Destructor.
23921
23922 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
23923 ATTR_LINK_DESTRUCTOR.
23924 (static_ctors, static_dtors): New variables.
23925
23926 * misc.c (gnat_expand_body): Output current function as constructor
23927 and destructor if requested.
23928
23929 * par-prag.adb: Add processing for pragma Linker_Constructor and
23930 Linker_Destructor.
23931
23932 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
23933 extracted from Check_Interrupt_Or_Attach_Handler.
23934 (Check_Interrupt_Or_Attach_Handler): Invoke it.
23935 Implement pragma Linker_Constructor and Linker_Destructor with the
23936 help of Find_Unique_Parameterless_Procedure.
23937 Replace Name_Alias with Name_Target for pragma Linker_Alias.
23938
23939 * snames.h, snames.ads, snames.adb:
23940 Add Name_Linker_Constructor and Name_Linker_Destructor.
23941 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23942 * snames.adb: Remove Name_Alias.
23943
23944 * trans.c: Include cgraph.h.
23945 (build_global_cdtor): New function.
23946 (Compilation_Unit_to_gnu): Build global constructor and destructor if
23947 needed.
23948 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23949 of objects too.
23950 (addressable_p) <COMPONENT_REF>: Unconditionally test
23951 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23952
23953 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23954 variable if it is external.
23955
23956 (static_ctors, static_dtors): New global variables.
23957 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23958 <ATTR_LINK_DESTRUCTOR>: Likewise.
23959 (end_subprog_body): Chain function as constructor and destructor
23960 if requested.
23961
23962 * exp_util.adb (Force_Evaluation): Unconditionally invoke
23963 Remove_Side_Effects with Variable_Ref set to true.
23964 (Remove_Side_Effects): Handle scalar types first. Use a renaming
23965 for non-scalar types even if Variable_Ref is true and for class-wide
23966 expressions.
23967
23968 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23969
23970 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23971 to prevent spurious warnings.
23972
23973 2005-07-04 Thomas Quinot <quinot@adacore.com>
23974
23975 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23976 Itypes. Itypes are really unexpected there.
23977 (Build_TypeCode_Function): Generalise special processing for Itypes to
23978 handle the case of numeric implicit base types as well as enumerated
23979 ones.
23980
23981 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23982
23983 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23984 controlled, indicate the expected type of the dereference that is
23985 created for the call to Deep_Finalize, to prevent spurious errors when
23986 the designated type is private and completed with a derivation from
23987 another private type.
23988
23989 2005-07-04 Vincent Celier <celier@adacore.com>
23990
23991 * make.adb (Change_To_Object_Directory): When unable to change the
23992 current dir to the object directory, output the full path of the
23993 directory.
23994
23995 2005-07-04 Matthew Gingell <gingell@adacore.com>
23996
23997 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23998
23999 * indepsw-linux.adb: Replace by...
24000
24001 * indepsw-gnu.adb: ...this new file
24002
24003 2005-07-04 Vincent Celier <celier@adacore.com>
24004
24005 * mlib-prj.adb (Auto_Initialize): New constant String
24006 (SALs_Use_Constructors): New Boolean function
24007 (Build_Library): Call gnatbind with Auto_Initialize switch when
24008 SALs_Use_Constructors returns True.
24009
24010 * mlib-tgt.ads: Minor reformatting
24011
24012 * mlib-utl.ads: Minor reformatting
24013
24014 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24015
24016 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24017
24018 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24019 single protected declarations can have an interface list.
24020 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24021 with seriously malformed entry declarations, and lead to compilation
24022 abandoned messages.
24023
24024 2005-07-04 Javier Miranda <miranda@adacore.com>
24025
24026 * par-load.adb: Load the context items in two rounds.
24027
24028 2005-07-04 Robert Dewar <dewar@adacore.com>
24029
24030 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24031
24032 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24033 Javier Miranda <miranda@adacore.com>
24034
24035 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24036 type extension needs a limited view.
24037 Remove previous restriction on private types available through the
24038 limited-view (only tagged private types were previously allowed).
24039 (Install_Withed_Unit): In the code that implements the
24040 legality rule given in AI-377, exclude a child unit with the name
24041 Standard, because it is a homonym of the Standard environment package.
24042
24043 2005-07-04 Thomas Quinot <quinot@adacore.com>
24044
24045 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24046 overloaded function call, carry interpretations from the original tree
24047 to the copy.
24048
24049 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24050
24051 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24052 types check whether some designated type is a limited view, and use
24053 the non-limited view if available.
24054
24055 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24056
24057 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24058 constraint of full view of a private view T1 if present, when T2 is a
24059 discriminated full view.
24060
24061 2005-07-04 Thomas Quinot <quinot@adacore.com>
24062
24063 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24064 actual that is a view conversion of a bit packed array reference.
24065
24066 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24067
24068 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24069 present before checking whether an interface type covers a synchronized
24070 type.
24071
24072 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24073
24074 * sem_util.adb (Is_Object_Reference): An indexed or selected component
24075 whose prefix is an implicit dereference is an object reference. Removes
24076 spurious errors when compiling with -gnatc.
24077
24078 2005-07-04 Robert Dewar <dewar@adacore.com>
24079
24080 PR ada/22039
24081 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24082
24083 2005-07-04 Matthew Gingell <gingell@adacore.com>
24084
24085 * tracebak.c: Enable tracebacks on ia64 platforms
24086
24087 2005-07-04 Vincent Celier <celier@adacore.com>
24088
24089 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24090 the GNAT BIND command, as gnatbind accepts multiples ALI files with
24091 the -L or -n switches.
24092
24093 2005-07-04 Vincent Celier <celier@adacore.com>
24094
24095 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24096 correctly computed and the main project data is not modified while
24097 doing so.
24098 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24099 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24100 c++linker as this does not work on some platforms.
24101
24102 2005-07-04 Matthew Heaney <heaney@adacore.com>
24103
24104 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24105 was changed.
24106 * a-coinve.adb: Perform constraint checks explicitly.
24107
24108 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24109 Thomas Quinot <quinot@adacore.com>
24110
24111 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24112 new target gen-soccon.
24113
24114 2005-07-04 Robert Dewar <dewar@adacore.com>
24115
24116 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24117
24118 2005-07-04 Thomas Quinot <quinot@adacore.com>
24119
24120 * g-socket.ads (Check_Selector): Minor rewording of comment.
24121
24122 2005-07-04 Vincent Celier <celier@adacore.com>
24123
24124 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24125
24126 2005-07-04 Thomas Quinot <quinot@adacore.com>
24127
24128 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24129
24130 2005-07-04 Sergey Rybin <rybin@adacore.com>
24131
24132 * gnat_ugn.texi: Add description of --eol gnatpp option
24133
24134 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24135 Thomas Quinot <quinot@adacore.com>
24136
24137 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24138 if the user wants all calls of a subprogram to be flagged,
24139 independently of whether they are made from within the same unit or
24140 another unit.
24141 Mention restriction for pragma Linker_Alias on some platforms.
24142 Document pragma Linker_Constructor and Linker_Destructor.
24143 Rewrite documentation of Weak_External, Linker_Section and
24144 Linker_Alias pragmas.
24145
24146 2005-07-04 Arnaud Charlet <charlet@adacore.com>
24147
24148 * s-stausa.ads, s-stausa.adb: New files.
24149
24150 2005-06-30 Kelley Cook
24151
24152 * all files: Update FSF address in copyright headers.
24153 * gen-soccon.co (main): Output new FSF address in generated files.
24154
24155 2005-06-28 Paul Brook <paul@codesourcery.com>
24156
24157 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24158
24159 2005-06-14 Olivier Hainque <hainque@adacore.com>
24160 Eric Botcazou <ebotcazou@adacore.com>
24161
24162 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24163 exc_unwind, now that we are generating proper .debug_frame output for
24164 that target.
24165
24166 * tracebak.c: Remove the mips-irix section, as we are now using the
24167 s-mastop based unwinder again.
24168 Under SPARC/Solaris, take into account the stack bias to compute the
24169 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
24170 ABI.
24171
24172 2005-06-14 Doug Rupp <rupp@adacore.com>
24173
24174 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24175
24176 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24177
24178 2005-06-14 Pascal Obry <obry@adacore.com>
24179
24180 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24181 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24182 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24183 package name).
24184
24185 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24186 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24187 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24188 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24189 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24190 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24191 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24192 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24193 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24194 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24195 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24196 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24197 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24198 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24199 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24200 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24201 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24202 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24203 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24204 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24205 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24206 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24207 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24208 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24209 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24210 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24211 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24212 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24213 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24214 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24215 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24216 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24217 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24218 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24219 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24220 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24221 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24222 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24223 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24224 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24225 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24226 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24227 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24228 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24229 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24230 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24231 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24232 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24233 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24234 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24235 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24236 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24237 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24238 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24239 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24240 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24241 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24242 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24243 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24244 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24245 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24246 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24247 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24248 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24249 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24250 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24251 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24252 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24253 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24254 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24255 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24256 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24257 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24258 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24259 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24260 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24261 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24262 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24263 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24264 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24265 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24266 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24267 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24268 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24269 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24270 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24271 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24272 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24273 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24274 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24275 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24276 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24277 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24278 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24279 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24280 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24281 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24282 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24283 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24284 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24285 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24286 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24287 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24288 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24289 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
24290 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
24291 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
24292 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
24293 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
24294 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
24295 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
24296 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
24297 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24298 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
24299 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
24300 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
24301 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
24302 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
24303 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
24304 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
24305 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
24306 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
24307 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
24308 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
24309 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
24310 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
24311 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
24312 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
24313 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
24314 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
24315 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
24316 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
24317 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
24318
24319 2005-06-14 Jose Ruiz <ruiz@adacore.com>
24320 Arnaud Charlet <charlet@adacore.com>
24321
24322 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
24323 longer protected objects. They have been replaced by lower-level
24324 suspension objects made up by a mutex and a condition variable (or
24325 their equivalent given a particular OS) plus some internal data to
24326 reflect the state of the suspension object.
24327 (Initialize, Finalize): Add this initialization procedure for
24328 Suspension_Object, which is a controlled type.
24329 (Finalize): Add the finalization procedure for Suspension_Object,
24330 which is a controlled type.
24331
24332 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
24333 Ada.Synchronous_Task_Control because there is no longer a need for a
24334 VxWorks specific version of this package. Target dependencies
24335 has been moved to System.Task_Primitives.Operations.
24336
24337 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
24338 longer needed.
24339 (InitializeCriticalSection, EnterCriticalSection,
24340 LeaveCriticalSection, DeleteCriticalSection): Replace the type
24341 pCriticalSection by an anonymous access type so that we avoid problems
24342 of accessibility to local objects.
24343
24344 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
24345 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24346 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
24347 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
24348 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
24349 set the environment task mask here.
24350 (Current_State): Add this function that returns the state of the
24351 suspension object.
24352 (Set_False): Add this procedure that sets the state of the suspension
24353 object to False.
24354 (Set_True): Add this procedure that sets the state of the suspension
24355 object to True, releasing the task that was suspended, if any.
24356 (Suspend_Until_True): Add this procedure that blocks the calling task
24357 until the state of the object is True. Program_Error is raised if
24358 another task is already waiting on that suspension object.
24359 (Initialize): Add this procedure for initializing the suspension
24360 object. It initializes the mutex and the condition variable which are
24361 used for synchronization and queuing, and it sets the internal state
24362 to False.
24363 (Finalize): Add this procedure for finalizing the suspension object,
24364 destroying the mutex and the condition variable.
24365
24366 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24367 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
24368 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
24369 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
24370 which provides a low-level abstraction (using operating system
24371 primitives) for Ada.Synchronous_Task_Control.
24372 This object is made up by a mutex (for ensuring mutual exclusion), a
24373 condition variable (for queuing threads until the condition is
24374 signaled), a Boolean (State) indicating whether the object is open,
24375 and a Boolean (Waiting) reflecting whether there is a task already
24376 suspended on this object.
24377
24378 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
24379 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
24380 s-intman-vms.ads, s-intman-mingw.adb,
24381 (Initialize_Interrupts): Removed, no longer used.
24382
24383 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
24384 (Setup_Interrupt_Mask): New procedure.
24385
24386 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
24387
24388 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
24389
24390 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
24391 this is no longer done in the body of s-taprop
24392 (Server_Task): Explicitely test for Pending_Action in case
24393 System.Parameters.No_Abort is True.
24394
24395 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
24396 is no longer done in the body of s-taprop
24397
24398 2005-06-14 Robert Dewar <dewar@adacore.com>
24399
24400 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24401 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24402 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24403 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24404 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24405 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
24406 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
24407 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24408 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
24409 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
24410 system-linux-hppa.ads, system-vms_64.ads,
24411 system-vxworks-alpha.ads: Minor comment update for
24412 AI-362 (unit is Pure).
24413
24414 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
24415 Add pragma Pure_05 for AI-362
24416 Make remaining conversion functions obsolescent in Ada 95
24417
24418 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24419 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
24420 Add entries for a-wichun and a-zchuni
24421 Add a-widcha a-zchara for AI-395
24422 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
24423
24424 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24425 Add entries for a-wichun.o and a-zchuni.o
24426 Entries for a-widcha.o and a-zchara.o
24427 Add entry for a-chacon.o
24428
24429 * a-ztenau.adb: Add with of Ada.Characters.Conversions
24430
24431 * a-chacon.ads, a-chacon.adb: New files.
24432
24433 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
24434 categorization violations.
24435
24436 * a-strmap.ads: Add pragma Pure_05 for AI-362
24437 * a-strmap.ads: Add note on implicit categorization for AI-362
24438
24439 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
24440
24441 * par-prag.adb: Dummy entry for pragma Persistent_BSS
24442 Set Ada_Version_Explicit, for implementation of AI-362
24443 Add processing for pragma Pure_05 and Preelaborate_05
24444 Add entry for Assertion_Policy pragma
24445
24446 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
24447 when needed for proper processing of categorization stuff
24448
24449 * sem_cat.adb:
24450 For several cases, make errors in preealborate units warnings,
24451 instead of errors, if GNAT_Mode is set. For AI-362.
24452
24453 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
24454 preelaborate unit is now warning if in GNAT mode
24455
24456 * s-stoele.ads: Document AI-362 for pragma preelaborate
24457
24458 2005-06-14 Doug Rupp <rupp@adacore.com>
24459
24460 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
24461 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
24462 Default_Exception_Msg_Max_Length: new parameter.
24463
24464 * a-except.ads: (Exception_Msg_Max_Length): Set to
24465 System.Parameters.Default_Exception_Msg_Max_Length
24466 Add pragma Preelaborate_05 for AI-362
24467 Add warnings off to allow categorization violations for AI-362
24468
24469 2005-06-14 Vincent Celier <celier@adacore.com>
24470
24471 * gnatsym.adb: Adapt to modification of package Symbols: procedure
24472 Process is now in package Processing.
24473
24474 * symbols.ads, symbols.adb:
24475 (Processing): New package, containing procedure Process
24476
24477 * symbols-vms-alpha.adb:
24478 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
24479
24480 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
24481 symbols-processing-vms-ia64.adb: New files.
24482
24483 2005-06-14 Pascal Obry <obry@adacore.com>
24484
24485 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
24486 implementation. This new version generates the proper DllMain routine
24487 to initialize the SAL. The DllMain is generated in Ada and compiled
24488 before being added as option to the library build command.
24489
24490 2005-06-14 Doug Rupp <rupp@adacore.com>
24491 Pascal Obry <obry@adacore.com>
24492
24493 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
24494 call to decc$translate_vms.
24495 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
24496 need to remove those quotes before catenating the filename.
24497 (__gnat_locate_exec_on_path): improvements to the Win32 section:
24498 * avoid allocating the memory twice for better efficiency;
24499 * allocate 32K buffer for environment expansion as suggested by MSDN;
24500 * prepend ".;" to the path so that current directory is searched too.
24501
24502 2005-06-14 Robert Dewar <dewar@adacore.com>
24503
24504 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
24505 instead of raising CE (AI-241)
24506 Add warnings off to allow categorization violations for AI-362
24507
24508 2005-06-14 Robert Dewar <dewar@adacore.com>
24509
24510 * ali-util.adb, gnatbind.adb: Remove references to
24511 Force_RM_Elaboration_Order.
24512
24513 * switch-b.adb: Remove recognition of -f switch
24514
24515 2005-06-14 Pascal Obry <obry@adacore.com>
24516
24517 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
24518 implementation which is slightly more efficient.
24519
24520 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24521 Javier Miranda <miranda@adacore.com>
24522 Ed Schonberg <schonberg@adacore.com>
24523 Hristian Kirtchev <kirtchev@adacore.com>
24524
24525 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
24526 allocator's designated type is a class-wide type, and compiling for
24527 Ada 2005, emit a run-time check that the accessibility level of the
24528 type given in the allocator's expression is not deeper than the level
24529 of the allocator's access type.
24530
24531 (Tagged_Membership): Modified to gives support to abstract interface
24532 types.
24533
24534 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
24535 Access_Level.
24536 (Descendant_Tag): New predefined function
24537 (Is_Descendant_At_Same_Level): New predefined function
24538 (Get_Access_Level): New private function
24539 (Set_Access_Level): New private procedure
24540 (IW_Membership): New function. Given the tag of an object and the tag
24541 associated with an interface, evaluate if the object implements the
24542 interface.
24543 (Register_Interface_Tag): New procedure used to initialize the table of
24544 interfaces used by the IW_Membership function.
24545 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
24546 of the dispatch table.
24547 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
24548 table of interfaces of the parent.
24549 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
24550 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
24551 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
24552 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
24553 Ada 2005 semantics for the new predefined function.
24554
24555 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
24556 call to Descendant_Tag rather than Internal_Tag.
24557 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
24558 the accessibility level of the attribute's Item parameter is not deeper
24559 than the level of the attribute's prefix type. Tag_Error is raised if
24560 the check fails. The check is only emitted for Ada_05.
24561 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
24562 requested stream attribute, use it.
24563 (Expand_N_Attribute_Reference): If the designated type is an interface
24564 then rewrite the referenced object as a conversion to force the
24565 displacement of the pointer to the secondary dispatch table.
24566 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
24567 is a dereference of an object with a constrained partial view.
24568
24569 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
24570 type is a class-wide type, emit a run-time check that the accessibility
24571 level of the returned object is not deeper than the level of the
24572 function's master (only when compiling for Ada 2005).
24573
24574 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
24575 Action_Nb_Arg): Add entries for new Get_Access_Level and
24576 Set_Access_Level routines in these tables.
24577 (Make_DT): Generate a call to set the accessibility level of the
24578 tagged type in its TSD.
24579 (Make_DT): Code cleanup. The functionality of generating all the
24580 secondary dispatch tables has been moved to freeze_record_type.
24581 (Make_Abstract_Interface_DT): Minor code cleanup.
24582 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
24583 this subprogram implements a new algorithm that provides the
24584 same functionality and it is more clear in case of primitives
24585 associated with abstract interfaces.
24586 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
24587 clean up, the functionality of this subprogram is now provided
24588 by Set_All_DT_Position.
24589 (Write_DT): New subprogram: a debugging procedure designed to be called
24590 within gdb to display the dispatch tables associated with a tagged
24591 type.
24592 (Collect_All_Interfaces): New subprogram that collects the whole list
24593 of interfaces that are directly or indirectly implemented by a tagged
24594 type.
24595 (Default_Prim_Op_Position): New subprogram that returns the fixed
24596 position in the dispatch table of the default primitive operations.
24597 (Expand_Interface_Actuals): New subprogram to generate code that
24598 displaces all the actuals corresponding to class-wide interfaces to
24599 reference the interface tag of the actual object.
24600 (Expand_Interface_Conversion): New subprogram. Reference the base of
24601 the object to give access to the interface tag associated with the
24602 secondary dispatch table.
24603 (Expand_Interface_Thunk): New subprogram that generates the code of the
24604 thunk. This is required for compatibility with the C+ ABI.
24605 (Make_Abstract_Interface_DT): New subprogram that generate the
24606 declarations for the secondary dispatch tables associated with an
24607 abstract interface.
24608 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
24609 attribute for each primitive operation covering interface subprograms
24610 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
24611 These subprograms were upgraded to give support to abstract interfaces
24612
24613 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
24614 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
24615 RE_Set_Access_Level.
24616 (RE_Unit_Table): Add entries for new Ada.Tags operations.
24617 Add support to call the followig new run-time subprograms:
24618 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
24619
24620 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
24621 match its full declaration when both have an access definition with
24622 statically matching designated subtypes.
24623 (Analyze_Component_Declaration): Delete commented out code that was
24624 incorrectly setting the scope of an anonymous access component's type.
24625 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
24626 an access discriminant when the containing type is nonlimited.
24627 (Make_Incomplete_Type_Declaration): Create an incomplete type
24628 declaration for a record type that includes self-referential access
24629 components.
24630 (Check_Anonymous_Access_Types): Before full analysis of a record type
24631 declaration, create anonymous access types for each self-referential
24632 access component.
24633 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
24634 an access component in this context is a Local_Anonymous_Access, for
24635 proper accessibility checks.
24636 (Access_Definition): Set properly the scope of the anonymous access type
24637 created for a stand-alone access object.
24638 (Find_Type_Of_Object): An object declaration may be given with an access
24639 definition.
24640 (Complete_Subprograms_Derivation): New subprogram used to complete
24641 type derivation of private tagged types implementing interfaces.
24642 In this case some interface primitives may have been overriden
24643 with the partial-view and, instead of re-calculating them, they
24644 are included in the list of primitive operations of the full-view.
24645 (Build_Derived_Record_Type): Modified to give support to private
24646 types implemening interfaces.
24647 (Access_Definition): Reject ALL on anonymous access types.
24648 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
24649 type derivation to occur at a deeper accessibility level than the
24650 parent type.
24651 For the case of derivation within a generic body however, disallow the
24652 derivation if the derived type has an ancestor that is a formal type
24653 declared in the formal part of an enclosing generic.
24654 (Analyze_Object_Declaration): For protected objects, remove the check
24655 that they cannot contain interrupt handlers if not declared at library
24656 level.
24657 (Add_Interface_Tag_Components): New subprogram to add the tag components
24658 corresponding to all the abstract interface types implemented by a
24659 record type or a derived record type.
24660 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24661 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24662 Process_Full_View, Record_Type_Declaration): Modified to give
24663 support to abstract interface types
24664 (Collect_Interfaces): New subprogram that collects the list of
24665 interfaces that are not already implemented by the ancestors
24666 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
24667 when partial view has no discriminants and full view has defaults.
24668 (Constrain_Access): Reject a constraint on a general access type
24669 if the discriminants of the designated type have defaults.
24670 (Access_Subprogram_Declaration): Associate the Itype node with the inner
24671 full-type declaration or subprogram spec. This is required to handle
24672 nested anonymous declarations.
24673 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24674 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24675 Process_Full_View, Record_Type_Declaration): Modified to give
24676 support to abstract interface types
24677 (Derive_Subprograms): Addition of a new formal to indicate if
24678 we are in the case of an abstact-interface derivation
24679 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
24680 to the specification because it is requied to analyze all the
24681 identifiers found in a list of interfaces
24682
24683 * debug.adb: Complete documentation of flag "-gnatdZ"
24684
24685 * exp_ch3.adb: Implement config version of persistent_bss pragma
24686 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
24687 testing for TSS presence to properly enforce visibility rules.
24688 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
24689 Make_Abstract_Interfaces_DT to generate the secondary tables
24690 associated with abstract interfaces.
24691 (Build_Init_Procedure): Modified to initialize all the tags
24692 corresponding.
24693 (Component_Needs_Simple_Initialization): Similar to other tags,
24694 interface tags do not need initialization.
24695 (Freeze_Record_Type): Modified to give support to abstract interface
24696 types.
24697 (Expand_N_Object_Declaration): Do not generate an initialization for
24698 a scalar temporary marked as internal.
24699
24700 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
24701 in-out parameter that is a component in an initialization procedure,
24702 whose constraint might depend on discriminants, and that may be
24703 misaligned because of packing or representation clauses.
24704 (Is_Legal_Copy): New predicate to determine whether a possibly
24705 misaligned in-out actual can actually be passed by copy/return. This
24706 is an error in case the type is by_reference, and a warning if this is
24707 the consequence of a DEC import pragma on the subprogram.
24708 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
24709 interface types
24710 (Expand_Inlined_Call): Mark temporary generated for the return value as
24711 internal, so that no useless scalar normalization is generated for it.
24712 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
24713 null procedure can always be inlined.
24714 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
24715 procedure, generate an explicit empty body for it.
24716
24717 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
24718 Given a type implementing an interface, returns the corresponding
24719 access_disp_table value.
24720 (Find_Interface_Tag): New subprogram. Given a type implementing an
24721 interface, returns the record component containing the tag of the
24722 interface.
24723 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
24724 previous ones that return the corresponding tag and access_disp_table
24725 entities.
24726 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
24727 is a predefined primitive operation.
24728 (Expand_Subtype_From_Expr): If the expression is a selected component
24729 within an initialization procedure, compute its actual subtype, because
24730 the component may depend on the discriminants of the enclosing record.
24731
24732 * i-cpp.ads, i-cpp.adb:
24733 This package has been left available for compatibility with previous
24734 versions of the frontend. As part of the new layout this is now a
24735 dummy package that uses declarations available at a-tags.ads
24736
24737 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
24738 "constant access" and "aliased [constant] access" when not compiling
24739 with -gnat05.
24740 Suppress Ada 2005 keyword warning if -gnatwY used
24741 (P_Identifier_Declarations): Add support for object declarations with
24742 access definitions.
24743 (Private_Extension_Declaration): Complete the documentation
24744 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
24745 attribute in case of private extension declaration
24746 (P_Type_Declaration): Mark as "abstract" the type declarations
24747 corresponding with protected, synchronized and task interfaces
24748 (P_Declarative_Items): "not" and "overriding" are overriding indicators
24749 for a subprogram or instance declaration.
24750
24751 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
24752 instantiation that is a dispatching operation has controlling access
24753 parameters that are null excluding.
24754 Save and restore Ada_Version_Explicit, for implementation of AI-362
24755 (Validate_Derived_Type_Instance): Add check for abstract interface
24756 types.
24757 (Analyze_Formal_Package): Establish Instantiation source for the copy of
24758 the generic that is created to represent the formal package.
24759 (Analyze_Package_Instantiation): Instantiate body immediately if the
24760 package is a predefined unit that contains inlined subprograms, and
24761 we are compiling for a Configurable_Run_Time.
24762 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
24763 If the program has a null default, generate an empty body for it.
24764
24765 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
24766 error message condition, null procedures are correctly detected now.
24767 (New_Overloaded_Entity): Bypass trivial overriding indicator check
24768 for subprograms in the context of protected types. Instead, the
24769 indicator is examined in Sem_Ch9 while analysing the subprogram
24770 declaration.
24771 (Check_Overriding_Indicator): Check consistency of overriding indicator
24772 on subprogram stubs as well.
24773 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
24774 the library level.
24775 (Analize_Subprogram_Specification): When analyzing a subprogram in which
24776 the type of the first formal is a concurrent type, replace this type
24777 by the corresponding record type.
24778 (Analyze_Subprogram_Body): Undo the previous work.
24779 (Analyze_Procedure_Call): If the call has the form Object.Op, the
24780 analysis of the prefix ends up analyzing the call itself, after which
24781 we are done.
24782 (Has_Interface_Formals): New subprogram subsidiary to analyze
24783 subprogram_specification that returns true if some non
24784 class-wide interface subprogram is found
24785 (New_Overloaded_Entity): Modified to give support to abstract
24786 interface types
24787 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
24788 access to subprograms must be recursive.
24789 (Is_Unchecked_Conversion): Improve the test that recognizes
24790 instantiations of Unchecked_Conversion, and allows them in bodies that
24791 are to be inlined by the front-end. When the body comes from an
24792 instantiation, a reference to Unchecked_Conversion will be an
24793 Expanded_Name, even though the body has not been analyzed yet.
24794 Replace Is_Overriding and Not_Overriding in subprogram_indication with
24795 Must_Override and Must_Not_Override, to better express intent of AI.
24796 (Analyze_Subprogram_Body): If an overriding indicator is given, check
24797 that it is consistent with the overrinding status of the subprogram
24798 at this point.
24799 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
24800 always inlined.
24801 If the subprogram is a null procedure, indicate that it does not need
24802 a completion.
24803
24804 * sem_disp.adb (Check_Controlling_Type): Give support to entities
24805 available through limited-with clauses.
24806 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
24807 allowed as the last primitive of a tagged type if it has no previous
24808 spec.
24809 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
24810 to give support to abstract interface types
24811
24812 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
24813 in the case where the target type is an anonymous access type of an
24814 object or component (that is, when Is_Local_Anonymous_Access is true).
24815 Prevent the special checks for conversions of access discriminants in
24816 the case where the discriminant belongs to a nonlimited type, since
24817 such discriminants have their accessibility level defined in the same
24818 way as a normal component of an anonymous access type.
24819 (Resolve_Allocator): When an allocator's designated type is a class-wide
24820 type, check that the accessibility level of type given in the
24821 allocator's expression or subtype indication is not statically deeper
24822 than the level of the allocator's access type.
24823 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
24824 name in a discriminant constraint of a record component.
24825 (Resolve_Explicit_Dereference): Do not check whether the type is
24826 incomplete when the dereference is a use of an access discriminant in
24827 an initialization procedure.
24828 (Resolve_Type_Conversion): Handle conversions to abstract interface
24829 types.
24830 (Valid_Tagged_Conversion): The conversion of a tagged type to an
24831 abstract interface type is always valid.
24832 (Valid_Conversion): Modified to give support to abstract interface types
24833 (Resolve_Actuals): Enable full error reporting on view conversions
24834 between unrelated by_reference array types.
24835 The rule for view conversions of arrays with aliased components is
24836 weakened in Ada 2005.
24837 Call to obsolescent subprogram is now considered to be a violation of
24838 pragma Restrictions (No_Obsolescent_Features).
24839 (Check_Direct_Boolean_Operator): If the boolean operation has been
24840 constant-folded, there is nothing to check.
24841 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
24842 check on possible violation of restriction No_Direct_Boolean_Operators
24843 until after expansion of operands, to prevent spurious errors when
24844 operation is constant-folded.
24845
24846 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
24847 Has_Compatible_Type): Modified to give support to abstract interface
24848 types.
24849 (Interface_Present_In_Ancestor): New function to theck if some ancestor
24850 of a given type implements a given interface
24851
24852 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
24853 prefix is a parameterless function that returns an access_to_procedure.
24854 (Transform_Object_Operation): Handle properly function calls of the
24855 form Obj.Op (X), which prior to analysis appear as indexed components.
24856 (Analyze_One_Call): Complete the error notification to help new Ada
24857 2005 users.
24858 (Analyze_Allocator): For an allocator without an initial value, where
24859 the designated type has a constrained partial view, a discriminant
24860 constraint is illegal.
24861
24862 2005-06-14 Robert Dewar <dewar@adacore.com>
24863
24864 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
24865 do with treatment of Set_Col when positioned at end of line character.
24866
24867 2005-06-14 Robert Dewar <dewar@adacore.com>
24868
24869 * atree.adb: (Elist*): Protect against uninitialized field
24870
24871 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24872
24873 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
24874 for an attribute reference that returns an access type.
24875 (Apply_Discriminant_Check): No need for check if (designated) type has
24876 constrained partial view.
24877
24878 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
24879 both bound checks, rather than a conjunction.
24880 (Insert_Valid_Check): If the expression is an actual that is an indexed
24881 component of a bit-packed array, force expansion of the packed element
24882 reference, because it is specifically inhibited elsewhere.
24883
24884 2005-06-14 Vincent Celier <celier@adacore.com>
24885
24886 * clean.adb (Clean_Project): Correctly delete executable specified as
24887 absolute path names.
24888
24889 * make.adb (Gnatmake): Allow relative executable path names with
24890 directory information even when project files are used.
24891 (Change_To_Object_Directory): Fail gracefully when unable to change
24892 current working directory to object directory of a project.
24893 (Gnatmake): Remove exception handler that could no longer be exercized
24894 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
24895 may be deallocated by Normalize_Arguments.
24896 (Collect_Arguments): Eliminate empty arguments
24897
24898 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
24899 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
24900 (Check_Project): Return False when Project is No_Project. Return True
24901 when All_Projects is True.
24902 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
24903 All_Projects to True.
24904 Minor reformatting
24905
24906 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24907 Javier Miranda <miranda@adacore.com>
24908 Thomas Quinot <quinot@adacore.com>
24909 Robert Dewar <dewar@adacore.com>
24910 Hristian Kirtchev <kirtchev@adacore.com>
24911 Gary Dismukes <dismukes@adacore.com>
24912
24913 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
24914 anonymous access types, to indicate that the accessibility level of
24915 the type is determined by that of the enclosing declaration.
24916 (Has_Persistent_BSS): New flag
24917 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
24918 of this attribute with functions.
24919 (Is_Primitive_Wrapper): Remove the barrier.
24920 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
24921 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
24922 New subprograms.
24923 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
24924 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
24925 New subprograms.
24926 (Is_Pure_Unit_Access_Type): New flag
24927 (Abstract_Interfaces): Complete the assertion to cover all usages.
24928 (Set_Is_Interface): Complete the assertion to cover all usages.
24929 (Is_Primitive_Wrapper): New attribute.
24930 (Is_Obsolescent): Now applies to all entities (though it is only set
24931 for subprograms currently)
24932 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
24933 which solves various problems concerning access subtypes.
24934 (Has_Persistent_BSS): New flag
24935 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
24936 Remove these subprograms because this attribute is currently
24937 not used.
24938 New entity flags:
24939 Has_Specified_Stream_Input (Flag190)
24940 Has_Specified_Stream_Output (Flag191)
24941 Has_Specified_Stream_Read (Flag192)
24942 Has_Specified_Stream_Write (Flag193)
24943 Present in all type and subtype entities. Set for a given view if the
24944 corresponding stream-oriented attribute has been defined by an
24945 attribute definition clause. When such a clause occurs, a TSS is set
24946 on the underlying full view; the flags are used to track visibility of
24947 the attribute definition clause for partial or incomplete views.
24948 (Is_Pure_Unit_Access_Type): New flag
24949 Clarify use of Is_Internal.
24950 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24951 internally generated to wrap the invocation of tasks and protected
24952 types that implement interfaces.
24953 (Implementation_Base_Type): Documentation correction
24954 (Is_Obsolescent): Now applies to all entities (though it is only set
24955 for subprograms currently)
24956 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24957 which solves various problems concerning access subtypes.
24958
24959 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24960 for examined parameters. Identify unequal parameter list lengths as
24961 non-conformant parameters.
24962 (Overriding_Possible): Do not check for "All" qualifier in declaration
24963 of controlling access parameter, following prescription of AI-404.
24964 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24965 that build the procedure body that wraps an entry invocation
24966 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24967 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24968 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24969 give support to abstract interface types
24970
24971 * freeze.adb (Freeze_Entity): Issue error message if
24972 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24973 type has no storage pool (Ada 2005) AI-366.
24974 Also modified to give support to abstract interface types
24975 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24976 Inline_Always pragma.
24977
24978 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24979 now begin an entry declaration.
24980 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24981 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24982 a subprogram declaration preceded by an overriding indicator.
24983 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24984 declarations or subprogram declarations preceded by reserved words
24985 "not" or "overriding".
24986 (P_Entry_Declaration): Update comment. Parse and check overriding
24987 indicator, set semantic flags of entry declarations.
24988 (P_Task): New error message in case of private applied
24989 to a task type declaration.
24990 (P_Protected): New error message in case of private applied
24991 to a task type declaration.
24992
24993 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24994 in which the full view of a type implementing an interface is a
24995 concurrent type.
24996 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24997 Declare_Inherited_Private_Subprograms): If an explicit operation
24998 overrides an operation that is inherited in the private part, mark the
24999 explicit one as overriding, to enable overriding indicator checks.
25000 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25001 full view to partial view, to simplify handling in back-end.
25002
25003 * sprint.adb: Print interface lists where needed: derived types,
25004 protected types, task types.
25005 output "is null" for null procedures. Part of implementation of
25006
25007 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25008 relaxation of rules for access types in pure, shared passive partitions.
25009
25010 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25011 first read discriminants into temporary objects, performing checks on
25012 the read values, then possibly performing discriminant checks on the
25013 actual (if it is constrained), and only finally reading the components
25014 into a constrained temporary object.
25015 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25016 case of reading discriminants of a mutable record type to recognize
25017 the new form of the code generated by
25018 Build_Mutable_Record_Read_Procedure.
25019
25020 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25021 of a simple call to Make_TSS_Name.
25022 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25023 buffer, in order for Is_TSS to work correctly on local TSS names.
25024
25025 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25026 Is_Local_Anonymous_Access to check legaliy of attributes in the
25027 context of access components and stand-alone access objects.
25028 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25029 treated as available for a limited private type if there is an
25030 attribute_definition_clause that applies to its full view, but not in
25031 other cases where the attribute is available for the full view
25032 (specifically, the sole fact that the full view is non-limited does not
25033 make the attribute available for the partial view).
25034 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25035 non-overloaded intrinsic subprogram.
25036 (Check_Stream_Attribute): Reject an attribute reference for an
25037 unavailable stream attribute even if the prefix is not a limited type
25038 (case of a 'Input attribute reference for an abstract, non-classwide
25039 type)
25040 (Stream_Attribute_Available): New function to determine whether a stream
25041 attribute is available at a place.
25042 (Check_Attribute): Use Stream_Attribute_Available instead of just
25043 testing for TSS presence on the implementation base type.
25044 (Analyze_Attribute): Modified to give support to task interfaces.
25045 (Analyze_Access_Attribute): Add error check for use of an Access (or
25046 Unrestricted_Access) attribute with a subprogram marked as
25047 Inline_Always.
25048 (Analyze_Attribute, case Attribute_Address): Add error check for use of
25049 an Address attribute with a subprogram marked as Inline_Always.
25050 Update Eval_Attribute to handle new value of Width from AI-395
25051
25052 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25053 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25054 Factor common code across the stream-oriented attribute circcuits into
25055 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25056 processing is functionally identical to the previous duplicated one,
25057 except that an expression that denotes an abstract subprogram will now
25058 be rejected, as mandated by AI-195 item 5.
25059
25060 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25061 Is_Local_Anonymous_Access to apply accessibility checks to access
25062 components and stand-alone access objects.
25063 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25064 elsewhere.
25065 (Is_Potentially_Persistent_Type): New function
25066 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25067 a heap-object whose type has a constrained partial view, the object is
25068 unconstrained and the component may depend on a discriminant, making its
25069 renaming illegal.
25070
25071 * sinfo.ads, sinfo.adb
25072 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25073 (Must_Override): Flag applicable to N_Entry_Declaration.
25074 Indicate that interface_list can appear in single task and single
25075 protected declarations.
25076 Replace Is_Overriding and Not_Overriding with Must_Override and
25077 Must_Not_Override, to better express intent of AI.
25078 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25079 of an overriding indicator in a subprogram or instance.
25080 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25081 Add the overriding indicator [[not] overriding] construct to the
25082 following grammar productions:
25083 ENTRY_DECLARATION
25084 GENERIC_INSTANTIATION
25085 SUBPROGRAM_SPECIFICATION
25086
25087 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25088 can start with an overriding indicator.
25089
25090 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25091 flags accordingly on subrogram specifications or instances.
25092
25093 * sem_ch8.adb:
25094 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25095 overriding_indicator, if present, is consistent with status of spec.
25096 Improve error message for null-excluding checks on controlling access
25097 parameters.
25098 (Check_In_Previous_With_Clause): Protect the frontend against
25099 previously reported critical errors in the context clauses.
25100 Save and restore Ada_Version_Explicit, for implementation of AI-362
25101 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25102 operation verify that controlling formals of the renamed entity that
25103 are access parameters are explicitly non-null.
25104 (Find_Expanded_Name): Improve error message when prefix is an illegal
25105 reference to a private child unit.
25106
25107 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25108 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25109 Rewrite to correspond to new wide character names in AI-395
25110
25111 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25112 default procedures.
25113
25114 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25115 Robert Dewar <dewar@adacore.com>
25116
25117 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25118 code, not on the bodies of predefined operations, to cut down on
25119 spurious noise.
25120
25121 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25122
25123 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25124 be expanded in place. The size computation does not require a
25125 subtraction, which would raise an exception on a compiler built with
25126 assertions when the upper bound is Integer'first.
25127 (Flatten): For an array of composite components, take into account the
25128 size of the components to determine whether it is safe to expand the
25129 array into a purely positional representation.
25130
25131 2005-06-14 Thomas Quinot <quinot@adacore.com>
25132
25133 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25134 denoting a formal parameter into account.
25135
25136 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25137
25138 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25139 the entry_call alternative of a conditional entry call, wrap the
25140 conditional entry call itself.
25141
25142 2005-06-14 Nicolas Setton <setton@adacore.com>
25143 Ed Schonberg <schonberg@adacore.com>
25144
25145 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25146 the "simple_choice" member in a variant record, in accordance with the
25147 description in the package spec: the information output for a constant
25148 should be "S number", not "SS number".
25149 (Get_Encoded_Name): Return at once if not generating code. Avoids name
25150 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25151
25152 2005-06-14 Thomas Quinot <quinot@adacore.com>
25153
25154 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25155 RACW without any primitives, do not generate the if statement for
25156 dispatching by name in the PolyORB/DSA case, as it would be malformed
25157 (it would have an Elsif_Parts list that is not No_List, but with a
25158 length of 0).
25159
25160 2005-06-14 Robert Dewar <dewar@adacore.com>
25161
25162 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25163
25164 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25165
25166 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25167 can determine whether pragma Suppress_Exception_Locations is in effect.
25168
25169 * utils2.c (build_call_raise): Do not pass the file name to the
25170 exception handler if pragma Suppress_Exception_Locations is in effect.
25171 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25172
25173 2005-06-14 Emmanuel Briot <briot@adacore.com>
25174
25175 * g-debpoo.adb (Deallocate, Dereference): Improve output.
25176
25177 2005-06-14 Nicolas Roche <roche@adacore.com>
25178
25179 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25180 to ""
25181 (Next_Level): Fix minor bug in handling of ../dir case
25182 (Read): Add dir separator to Directory name so that "" is understood as
25183 "/"
25184
25185 2005-06-14 Pascal Obry <obry@adacore.com>
25186
25187 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25188 releasing the items.
25189
25190 2005-06-14 Vincent Celier <celier@adacore.com>
25191 Cyrille Comar <comar@adacore.com>
25192
25193 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25194 with output file descriptor and with output file name.
25195 (Dup, Dup2): Now global procedures as they are used by two subprograms
25196 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25197
25198 2005-06-14 Thomas Quinot <quinot@adacore.com>
25199
25200 PR ada/6717
25201 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25202 broadcast address.
25203 (Create_Selector): Bind listening socket used to create the signalling
25204 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25205 Set listen backlog to 1 to ensure that we detect socket theft by a
25206 failure of our own connect(2) call.
25207 (Check_Selector): Improve documentation of the selector mechanism.
25208 (Broadcast_Inet_Addr): New constant.
25209
25210 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25211
25212 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25213 type which turns out to be an incomplete and incorrect fix.
25214 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25215 of the type is declared in a record (for determination of insertion
25216 type).
25217 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25218 a private type and ensure that the primary entity is used for the type
25219 of the newly created function's V formal by taking the Etype of the
25220 view.
25221
25222 2005-06-14 Javier Miranda <miranda@adacore.com>
25223 Jose Ruiz <ruiz@adacore.com>
25224 Robert Dewar <dewar@adacore.com>
25225 Ed Schonberg <schonberg@adacore.com>
25226
25227 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25228 that indicates if we are parsing a compilation unit found in a
25229 limited-with clause.
25230 It is use to avoid the circularity check.
25231
25232 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25233 we are parsing a compilation unit found in a limited-with clause. This
25234 is use to avoid the circularity check.
25235
25236 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25237 unit as a consequence of parsing a limited-with clause. This is used
25238 to avoid the circularity check.
25239
25240 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25241 (Analyze_Context): Limited-with clauses are now allowed
25242 in more compilation units.
25243 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25244 againts previously reported critical errors in context clauses
25245 (Install_Limited_Withed_Unit): Code cleanup plus static detection
25246 of two further errors: renamed subprograms and renamed packages
25247 are not allowed in limited with clauses.
25248 (Install_Siblings): Do not install private_with_clauses on the package
25249 declaration for a non-private child unit.
25250 (Re_Install_Parents): When a parent of the subunit is reinstalled,
25251 reset visibility of child units properly.
25252 (Install_Withed_Unit): When a child unit appears in a with_clause of its
25253 parent, it is immediately visible.
25254
25255 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25256 Emmanuel Briot <briot@adacore.com>
25257
25258 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25259 declared within an inlined body as referenced, to prevent spurious
25260 warnings.
25261 (Output_One_Ref): If an entity renames an array component, indicate in
25262 the ALI file that this aliases (renames) the array. Capture as well
25263 function renamings that rename predefined operations.
25264 Add information about generic parent for package and subprogram
25265 instances.
25266 (Get_Type_Reference): For a subtype that is the renaming of an actual in
25267 an instantiation, use the first_subtype to ensure that we don't generate
25268 cross-reference information for internal types.
25269 For objects and parameters of a generic private type, retain the '*'
25270 indicator to distinguish such an entity from its type.
25271
25272 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25273 to store information about instantiated entities.
25274
25275 * ali.adb (Scan_ALI): Add support for parsing the reference to the
25276 generic parent
25277
25278 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25279 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25280 information.
25281
25282 2005-06-10 Doug Rupp <rupp@adacore.com>
25283 Arnaud Charlet <charlet@adacore.com>
25284 Olivier Hainque <hainque@adacore.com>
25285 Jose Ruiz <ruiz@adacore.com>
25286
25287 * Make-lang.in: Add initialize.o when needed.
25288 Remove obsolete references to RT_FLAGS.
25289 Add missing dependencies for sdefault.o
25290
25291 * initialize.c: New file.
25292
25293 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
25294 [VMS] cond_signal_table: Fix problem in declaration.
25295 [VMS] __gnat_error_handler: rewrite.
25296 Move all __gnat_initialize() routines to initialize.c
25297 Specialize the former "hpux" section to "hppa hpux", as this is what the
25298 section really is here for and we now have other hpux ports that need
25299 different contents.
25300 (__gnat_adjust_context_for_raise) i386-linux: First version of this
25301 function for this target. Adjust PC by one in the machine context. This
25302 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
25303 it is more reliable to do that in the signal handler itself.
25304 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
25305 flags, so that the handler is passed the context structure to adjust
25306 prior to the raise.
25307 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
25308 SA_SIGINFO sigaction should look like. Call
25309 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
25310 Machine_State_Operations stuff.
25311 Add conditional code so that the x86_64 is also supported.
25312
25313 2005-06-14 Pascal Obry <obry@adacore.com>
25314
25315 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
25316 the library name.
25317
25318 2005-06-14 Robert Dewar <dewar@adacore.com>
25319
25320 * opt.ads, opt.adb: New flags for persistent_bss mode
25321 Add Ada_Version_Explicit, for implementation of AI-362
25322 Add Assertions_Enabled_Config and associated handling
25323 Needed since setting can be changed with Assertion_Policy pragma
25324 Add new flag Warn_On_Ada_2005_Compatibility
25325
25326 * switch-c.adb: Recognize -gnatwy/Y
25327 Set Ada_Version_Explicit, for implementation of AI-362
25328 The -gnatg switch now includes -gnatyu
25329
25330 * usage.adb: Add -gnatwy/Y
25331 Remove wrong asterisk on -gnatwX line
25332 Add line for -gnatyu switch
25333
25334 2005-06-14 Vincent Celier <celier@adacore.com>
25335
25336 * osint.adb (Add_Default_Search_Dirs): Put source and object
25337 directories of project files before directories coming from
25338 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
25339
25340 2005-06-14 Robert Dewar <dewar@adacore.com>
25341
25342 PR ada/15613
25343 * par-ch2.adb (Scan_Pragma_Argument): New procedure
25344 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
25345
25346 2005-06-14 Vincent Celier <celier@adacore.com>
25347
25348 * prep.adb (Preprocess): Ignore error when scanning the first token of
25349 a line.
25350
25351 2005-06-14 Vincent Celier <celier@adacore.com>
25352
25353 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
25354 (Check_Stand_Alone_Library): If the specified reference symbol file does
25355 not exist, only issue a warning when the symbol policy is not
25356 Controlled. And, when symbol policy is Compliant, set the symbol
25357 policy to Autonomous.
25358
25359 2005-06-14 Vincent Celier <celier@adacore.com>
25360
25361 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
25362 when the project file in a with clause is not the last one, that is the
25363 project file name is followed by a comma.
25364 * prj-pp.adb: (First_With_In_List): New Boolean global variable
25365 (Print): Issue list of project files separated by commas in with clauses
25366 according to the values returned by Is_Not_Last_In_List.
25367 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
25368 (Set_Is_Not_Last_In_List): New procedure
25369
25370 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
25371
25372 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
25373
25374 2005-06-14 Robert Dewar <dewar@adacore.com>
25375
25376 * scng.adb: Add call to new Check_EOF routine
25377 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
25378 Add some comments regarding wide character handling
25379
25380 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
25381
25382 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
25383
25384 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
25385 characters are now considered graphic characters and hence yield false
25386 in this call.
25387
25388 * nmake.adt: Modify header so that xnmake does not generate output
25389 files with multiple blank lines.
25390
25391 * treeprs.adt: Remove a blank line so that output from xtreeprs does
25392 not have an extra blank line
25393
25394 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25395
25396 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
25397 expression when the component type is an anonymous access type to
25398 ensure that appropriate accessibility checks are done.
25399
25400 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
25401 expression of an assignment when the target object is of an anonymous
25402 access type. This ensures that required accessibility checks are done.
25403 (One_Bound): Move the check for type Universal_Integer to
25404 Process_Bounds.
25405 (Process_Bounds): Check whether the type of the preanalyzed range is
25406 Universal_Integer, and in that case set Typ to Integer_Type prior
25407 to setting the type of the original range and the calls to One_Bound.
25408
25409 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25410
25411 * sem_case.adb (Expand_Others_Choice): Improve warning.
25412
25413 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25414
25415 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
25416 constraint of full view if present, when other type is discriminated.
25417 (Eval_Relational_Op): Recognize tests of pointer values against Null,
25418 when the pointer is known to be non-null, and emit appropriate warning.
25419
25420 2005-06-14 Robert Dewar <dewar@adacore.com>
25421 Ed Schonberg <schonberg@adacore.com>
25422
25423 PR ada/10671
25424 * sem_prag.adb: Implement pragma Persistent_BSS
25425 Remove obsolete pragma Persistent_Data, Persistent_Object
25426 Set Ada_Version_Explicit, for implementation of AI-362
25427 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
25428 Add processing for pragma Pure_05 and Preelaborate_05
25429 Add processing for Assertion_Policy pragma
25430 Add pragma identifiers for Assert
25431 (Analyze_Pragma, case Assert): Check number of arguments
25432 (Process_Inline): Additional guard against an illegal program, where the
25433 argument of the pragma is undefined, and warnings on redundant
25434 constructs are enabled.
25435 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
25436 Ada_05 to this pragma, specifying that the pragma is only active in
25437 Ada_05 mode.
25438 (Check_Arg_Order): New procedure
25439 Add appropriate calls to this procedure throughout
25440 Also throughout, check entity name before doing any other checks
25441
25442 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
25443 Remove obsolete pragma Persistent_Data, Persistent_Object
25444 Add entries for pragma Pure_05 and Preelaborate_05
25445 Add entries for Assertion_Policy pragma and associated names
25446 Add some names for pragma argument processing
25447
25448 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
25449
25450 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25451
25452 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
25453 appears within a negation (either from source or as a rewriting of
25454 inequality) adjust text of warning accordingly.
25455
25456 2005-06-14 Thomas Quinot <quinot@adacore.com>
25457
25458 * s-strxdr.adb: Follow AI95-00132
25459
25460 2005-06-14 Arnaud Charlet <charlet@adacore.com>
25461
25462 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
25463
25464 2005-06-14 Arnaud Charlet <charlet@adacore.com>
25465 Jose Ruiz <ruiz@adacore.com>
25466
25467 * s-tposen.adb, s-tpobop.adb
25468 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
25469 the exception id.
25470 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
25471 there is no violation of the Max_Entry_Queue_Length restriction (if it
25472 has been set); Program_Error is raised otherwise.
25473 (Requeue_Call): Before requeuing the task on the target entry queue we
25474 check that there is no violation of the Max_Entry_Queue_Length
25475 restriction (if it has been set); Program_Error is raised otherwise.
25476
25477 2005-06-14 Robert Dewar <dewar@adacore.com>
25478
25479 * styleg.adb: Fix several remaining problems in -gnatyu switch
25480 Blank line count not reset at start
25481 Scanning outside source buffer in some cases
25482 Confusing message for blanks at end of file
25483 Non-empty blank lines not recognized
25484
25485 * nmake.adt: Modify header so that xnmake does not generate output
25486 files with multiple blank lines.
25487
25488 * treeprs.adt: Remove a blank line so that output from xtreeprs does
25489 not have an extra blank line
25490
25491 2005-06-14 Sergey Rybin <rybin@adacore.com>
25492
25493 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
25494
25495 2005-06-14 Doug Rupp <rupp@adacore.com>
25496 Vincent Celier <celier@adacore.com>
25497
25498 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
25499 Update copyright.
25500
25501 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
25502 Remove "Library" command.
25503 Change keyword for style check -gnatyd from NOCRLF to
25504 DOS_LINE_ENDINGS.
25505 Remove useless second style check keyword NONE
25506 Remove help documentation for inexistent style check keyword
25507 RM_COLUMN_LAYOUT.
25508 Add help documentation for style check keywords DOS_LINE_ENDINGS,
25509 UNNECESSARY_BLANK_LINES and XTRA_PARENS
25510 Add UNNECESSARY_BLANK_LINES for -gnatyu
25511 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
25512
25513 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
25514
25515 2005-06-14 Vincent Celier <celier@adacore.com>
25516
25517 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
25518 gprmake was invoked with -d.
25519 (Compile_Sources): If -d was used, output the "completed ..." message
25520 for each compilation.
25521 (Scan_Arg): Recognize new switch -d
25522 When -c and at least one main is specified, set
25523 Unique_Compile to True to guarantee that no other sources will be
25524 compiled.
25525
25526 2005-06-14 Matthew Heaney <heaney@adacore.com>
25527
25528 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
25529 * a-swuwha.ads, a-swuwha.adb: New files
25530
25531 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
25532 * a-szuzha.ads, a-szuzha.adb: New files.
25533
25534 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25535 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
25536 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
25537 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
25538 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
25539 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
25540 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
25541 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
25542 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
25543 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
25544 Ada 2005 RM.
25545
25546 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
25547 Olivier Hainque <hainque@adacore.com>
25548 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25549 Pascal Obry <obry@adacore.com>
25550
25551 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
25552
25553 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
25554 making a temporary around a procedure call because of non-addressable
25555 actual parameter.
25556 (process_freeze_entity): If entity is a private type, capture size
25557 information that may have been computed for the full view.
25558 (tree_transform, case N_Allocator): If have initializing expression,
25559 check type for Has_Constrained_Partial_View and pass that to
25560 build_allocator.
25561 (tree_transform, case N_Return_Statement): Pass extra arg to
25562 build_allocator.
25563
25564 * decl.c (annotate_value): Remove early return if -gnatR is not
25565 specified.
25566 (gnat_to_gnu_field): Don't make a packable type for a component clause
25567 if the position is byte aligned, the field is aliased, and the clause
25568 size isn't a multiple of the packable alignment. It serves no useful
25569 purpose packing-wise and would be rejected later on.
25570 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
25571
25572 PR ada/20515
25573 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
25574 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
25575 instead.
25576 (create_concat_name): Idem.
25577
25578 2005-06-10 Robert Dewar <dewar@adacore.com>
25579 Eric Botcazou <ebotcazou@adacore.com>
25580 Ben Brosgol <brosgol@adacore.com>
25581 Cyrille Comar <comar@adacore.com>
25582 Sergey Rybin <rybin@adacore.com>
25583 Pascal Obry <obry@adacore.com>
25584
25585 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
25586 Document second argument (Ada_05) of pragma Obsolescent
25587 Add note that call to subprogram marked with pragma Obsolescent
25588 is now considered to be a violation of program Restrictions
25589 (No_Obsolescent_Features).
25590 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
25591 that only machine-dependent attributes are supported.
25592
25593 * gnat_ugn.texi:
25594 Commented out menu lines and empty section for gnatclean examples
25595 Document -gnatwy/Y
25596 Fix some over long lines
25597 Clarify and enhance documentation of ADA_PROJECT_PATH.
25598 Rework section 2.11.2(3) about linking with a non-GNU compiler.
25599 Mention new switch -fcallgraph-info.
25600 Mention new switch -fstack-usage.
25601 For gnatpp, replace '-notab' with '-N' and add this option to Index
25602 Corrected VMS example.
25603 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
25604 Minor reformatting
25605 Add documentation for -gnatyu switch (unnecessary blank lines)
25606 Document new switch -U for GNAT PRETTY and GNAT METRIC
25607 Add note about Stdcall being handled as C convention on non Windows OS.
25608 Remove some junk typo in description of gnatbind -S switch
25609 Remove reference to Extensions_Allowed pragma
25610 Document the new order of the directories to be searched (source and
25611 object directories of project files before directories in ADA_*_PATH
25612 environment variables.
25613
25614 * g-trasym.ads: Document that IRIX is supported
25615
25616 2005-06-10 Arnaud Charlet <charlet@adacore.com>
25617
25618 * Makefile.in: Add initialize.o when needed.
25619 Adapt to new VMS package body Symbols and subunits
25620 No specialized version of a-sytaco is needed for VxWorks.
25621
25622 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
25623 * a-zchara.ads, a-widcha.ads: New files.
25624
25625 * system-hpux-ia64.ads: New file.
25626
25627 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
25628 is imported from the VxWorks kernel.
25629
25630 2005-06-14 Robert Dewar <dewar@adacore.com>
25631
25632 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
25633 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
25634 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
25635 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
25636 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
25637 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
25638 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
25639 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
25640 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
25641 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
25642 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
25643 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
25644
25645 2005-06-14 Thomas Quinot <quinot@adacore.com>
25646
25647 * xeinfo.adb: Fix typo in comment
25648
25649 2005-06-14 Javier Miranda <miranda@adacore.com>
25650
25651 * repinfo.ads: Fix typo in comment
25652
25653 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25654
25655 * s-finimp.adb (Parent_Tag): Delete this imported function (function
25656 Parent_Tag is now in the visible part of Ada.Tags).
25657 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
25658 using imported function.
25659
25660 2005-06-14 Bernard Banner <banner@adacore.com>
25661
25662 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
25663 also apply for handling support for VxSim 653.
25664
25665 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
25666
25667 * xsnames.adb: Add automatic generation of snames.h.
25668
25669 2005-06-14 Thomas Quinot <quinot@adacore.com>
25670
25671 * gen-soccon.c: Add IP_MULTICAST_IF constant
25672 Minor reformatting and adjustments to prevent warnings.
25673
25674 2005-06-14 Pascal Obry <obry@adacore.com>
25675
25676 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
25677
25678 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
25679
25680 * trans.c (gnat_gimplify_expr): Call
25681 recompute_tree_invarant_for_addr_expr when we change
25682 the operand of the ADDR_EXPR.
25683
25684 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25685
25686 * misc.c: Don't include errors.h.
25687
25688 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25689
25690 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
25691
25692 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
25693
25694 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
25695 comment typos.
25696 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
25697
25698 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
25699
25700 PR ada/20270
25701 * Makefile.in: Make TGT_LIB behave correctly.
25702
25703 2005-04-23 DJ Delorie <dj@redhat.com>
25704
25705 * misc.c: Adjust warning() callers.
25706
25707 2005-04-16 Laurent Guerby <laurent@guerby.net>
25708
25709 PR ada/18847
25710 * a-nudira.adb (Value): Check for valid string.
25711 * a-nuflra.adb (Value): Likewise.
25712
25713 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
25714
25715 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
25716
25717 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
25718
25719 * adaint.c, init.c, tracebak.c: Fix comment typos.
25720 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
25721
25722 2005-04-07 Laurent Guerby <laurent@guerby.net>
25723 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25724
25725 * Makefile.in: Add make ifeq define for hppa linux tasking support.
25726 * system-hpux.ads: Define Signed_Zeros to be True.
25727 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
25728
25729 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
25730
25731 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
25732 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
25733 typos.
25734
25735 2005-03-30 Tom Tromey <tromey@redhat.com>
25736
25737 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
25738
25739 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25740
25741 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
25742
25743 2005-03-29 Robert Dewar <dewar@adacore.com>
25744
25745 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
25746 fixed-point expression has value that is not a multiple of the Small
25747 value.
25748
25749 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
25750
25751 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
25752 nanoseconds.
25753
25754 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
25755
25756 2005-03-29 Vincent Celier <celier@adacore.com>
25757
25758 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
25759 (Build_Dynamic_Library.Version_String): Return the empty string when
25760 Lib_Version is empty or when the symbol policy is not Autonomous.
25761
25762 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
25763 a symbol is not in the reference symbol file, increase the Major ID
25764 and set the Minor ID to 0.
25765 Use gsmatch=lequal instead of gsmatch=equal
25766
25767 2005-03-29 Doug Rupp <rupp@adacore.com>
25768
25769 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
25770 name and translate.
25771
25772 2005-03-29 Javier Miranda <miranda@adacore.com>
25773
25774 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
25775 (Inherit_DT): The first formal has been redefined as a Tag.
25776 This allows us the removal of the subprogram Get_TSD.
25777 (TSD): Replace the call to Get_TSD by the actual code.
25778
25779 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
25780 (Make_DT): Upgrade the call to Inherit_TSD according to the
25781 new interface: the first formal is now a Tag.
25782
25783 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
25784 redefined as a Tag.
25785 This change allows us to remove the subprogram Get_TSD.
25786 (CPP_Get_TSD): Subprogram removed.
25787 (TSD): Replace the call to CPP_Get_TSD by the actual code.
25788
25789 * rtsfind.ads: Remove support to call the run-time
25790 subprogram Get_TSD
25791
25792 2005-03-29 Robert Dewar <dewar@adacore.com>
25793
25794 * errutil.adb, errout.adb:
25795 Minor comment updates on Line_Terminator references
25796
25797 * par-ch10.adb: Add ??? comment about line terminator
25798
25799 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
25800 (check dos line terminator).
25801 (Check_Line_Max_Length): New procedure, split off from the existing
25802 Check_Line_Terminator routine. Separating this out allows -gnatyf to
25803 be properly recognized.
25804
25805 * styleg.adb: Add ??? comment for line terminator reference
25806
25807 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
25808 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
25809
25810 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
25811 (check dos line terminator).
25812 (Check_Line_Max_Length): New procedure, split off from the existing
25813 Check_Line_Terminator routine. Separating this out allows -gnatyf to
25814 be properly recognized.
25815
25816 * stylesw.ads, stylesw.adb:
25817 Add handling for new -gnatyd switch (check dos line terminator)
25818
25819 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
25820 Recognize -gnatwb/-gnatwB switches
25821 Include Warn_On_Bad_Fixed_Value for -gnatg
25822
25823 * usage.adb:
25824 Add line for new -gnatyd switch (check dos line terminator)
25825
25826 * usage.adb: Add lines for -gnatwb/-gnatwB
25827
25828 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
25829
25830 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
25831
25832 * gnat_ugn.texi: Fix overlong lines
25833 Document new -gnatyd switch
25834 Document new -gnatwb/-gnatwB switches
25835
25836 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25837
25838 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
25839 order to retrieve the component list of the type, before examining
25840 individual components.
25841
25842 * sem_type.adb (Covers): Types are compatible if one is the base type
25843 of the other, even though their base types might differ when private
25844 views are involved.
25845
25846 2005-03-29 Thomas Quinot <quinot@adacore.com>
25847
25848 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
25849 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
25850 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
25851 analyzed if expansion is disabled (which could otherwise cause spurious
25852 error messages if expansion has been disabled due to previous
25853 (unrelated) errors).
25854
25855 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
25856 is disabled, the entity denoted by the argument is the access type
25857 itself, not an underlying record type, so there is no need to go back
25858 to the Corresponding_Remote_Type.
25859
25860 2005-03-29 Gary Dismukes <dismukes@adacore.com>
25861 Robert Dewar <dewar@adacore.com>
25862
25863 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
25864 expand a call to an instance of
25865 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
25866 Constructor actual of the instance. A class-wide membership
25867 check is also generated, to ensure that the tag passed to the instance
25868 denotes a type in the class.
25869 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
25870 of Name_Generic_Dispatching_Constructor.
25871
25872 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
25873 05 unit for AI-260-02).
25874
25875 * a-tgdico.ads: New file.
25876
25877 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
25878 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
25879
25880 * snames.ads, snames.adb (Preset_Names): Add entry for
25881 Generic_Dispatching_Constructor.
25882
25883 PR ada/20300
25884 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
25885 character type cases.
25886 (Analyze_Subprogram_Renaming): Add special handling for
25887 the case of renaming of stream attributes when the renaming denotes a
25888 generic formal subprogram association for an abstract formal subprogram.
25889 Check that the attribute is a primitive stream attribute (and not
25890 a class-wide stream attribute) and then rewrite the attribute name
25891 as the name of the appropriate compiler-generated stream primitive.
25892
25893 2005-03-29 Robert Dewar <dewar@adacore.com>
25894
25895 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
25896 recursive calls.
25897 (Is_Possibly_Unaligned_Object): Correct typo that
25898 resulted in inaccurate result for unaligned scalars within records.
25899
25900 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25901
25902 * freeze.adb (Freeze_Record_Type): If the type of the component is an
25903 itype whose parent is controlled and not yet frozen, do not create a
25904 freeze node for the itype if expansion is disabled.
25905
25906 2005-03-29 Vincent Celier <celier@adacore.com>
25907
25908 * make.adb (Gnatmake): Don't fail if the main project file is declared
25909 as having no Ada sources. Do not display message "no sources to
25910 compile" in quiet output.
25911
25912 2005-03-29 Doug Rupp <rupp@adacore.com>
25913
25914 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
25915 extra tools.
25916
25917 2005-03-29 Robert Dewar <dewar@adacore.com>
25918
25919 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
25920 child.
25921
25922 2005-03-29 Robert Dewar <dewar@adacore.com>
25923
25924 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
25925 missing TYPE Improve the error message generated when compiling a
25926 limited interface in Ada83 or Ada95 mode.
25927
25928 2005-03-29 Robert Dewar <dewar@adacore.com>
25929
25930 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
25931 rather than proceed ahead using a junk attribute name.
25932
25933 2005-03-29 Vincent Celier <celier@adacore.com>
25934
25935 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
25936
25937 * prj-part.adb (Parse_Single_Project): Set the location of a project
25938 on its defining identifier, rather than on the reserved word "project".
25939
25940 * prj-proc.adb (Expression): Adapt to the fact that default of external
25941 references may be string expressions, not always literal strings.
25942 (Recursive_Process): Set Display_Name equal to Name
25943 when Location is No_Location, that is when there is no actual file.
25944 Get the Display_Name of the project from the source, when it is not a
25945 virtual project.
25946 (Process): Use the Display_Name in error messages
25947
25948 * prj-strt.adb (External_Reference): Allow default to be string
25949 expressions, not only literal strings.
25950
25951 2005-03-29 Vincent Celier <celier@adacore.com>
25952
25953 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25954 file and the reference symbol file to be the same file.
25955
25956 2005-03-29 Thomas Quinot <quinot@adacore.com>
25957
25958 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25959 forbid conversion of a local access-to-subprogram type to a remote one.
25960
25961 * sem_util.adb (Wrong_Type): For a record type that is the expanded
25962 equivalent type for a remote access-to-subprogram type, go back to the
25963 original RAS entity when displaying an error message, so the casing is
25964 the original source casing.
25965
25966 2005-03-29 Robert Dewar <dewar@adacore.com>
25967
25968 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25969 on param update.
25970
25971 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25972
25973 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25974 subtype if code is being pre-analyzed, to prevent un-expanded
25975 references to protected formals, among others.
25976 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25977 interpretation that can be a call, include the result of the call as a
25978 possible interpretation of the dereference.
25979
25980 * sem_ch5.adb (Process_Bounds): Determine type of range by
25981 pre-analyzing a copy of the original range, and then analyze the range
25982 with the expected type.
25983
25984 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25985 with an overloaded prefix where not all interpretations yield an
25986 access to subprogram, do not rewrite node as a call.
25987 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25988 the node as a call once the context identifies the interpretation of
25989 the prefix whose call yields the context type.
25990 (Valid_Conversion): For the case of a conversion between
25991 local access-to-subprogram types, check subtype conformance using
25992 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25993 detailed error message.
25994
25995 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25996
25997 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25998 indicator, indicate that the formal can never be null.
25999 (Process_Formals): If a formal has a non_null indicator, insert the
26000 resulting subtype immediately before the enclosing subprogram decl,
26001 and not at the beginning of the corresponding declarative part, to
26002 prevent access before elaboration (Ada2005).
26003
26004 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26005
26006 PR ada/19956
26007 * utils.c (finish_record_type): Use variable_size when setting sizes.
26008
26009 2005-03-29 Robert Dewar <dewar@adacore.com>
26010
26011 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26012 guarantee Unix style line terminators for the output files, even when
26013 running on windows.
26014
26015 2005-03-29 Robert Dewar <dewar@adacore.com>
26016
26017 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26018 buffer if an exception is raised.
26019
26020 2005-03-29 Ed Falis <falis@adacore.com>
26021
26022 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26023 VxWorks 653 1.4
26024
26025 2005-03-29 Robert Dewar <dewar@adacore.com>
26026
26027 * sem_util.ads: Minor reformatting
26028 * gnat_rm.texi: Minor editing.
26029
26030 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26031
26032 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26033 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26034
26035 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26036
26037 * adaint.c (__gnat_portable_spawn): Adjust cast.
26038
26039 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26040
26041 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26042
26043 2005-03-17 Pascal Obry <obry@adacore.com>
26044
26045 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26046 used.
26047
26048 * expect.c (__gnat_waitpid): Moved here from adaint.c.
26049 Reimplement under Win32 using Win32 API.
26050
26051 (__gnat_kill) [Win32]: Properly close the process handle before leaving
26052 this routine.
26053
26054 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
26055
26056 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26057 (DECL_RENAMED_OBJECT): New accessor macro.
26058 (SET_DECL_RENAMED_OBJECT): New setter macro.
26059
26060 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26061 object in all cases. Attach the renamed object to the VAR_DECL.
26062 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26063 field is not prescribed.
26064
26065 * misc.c (gnat_handle_option): Handle -gnatO separately.
26066 (gnat_print_decl) <VAR_DECL>: New case.
26067 Print the DECL_RENAMED_OBJECT node.
26068
26069 * lang.opt: Declare separate -gnatO option.
26070
26071 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26072 pointer, replace it with the renamed object.
26073 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26074 pointer type if the source is not a fat pointer type whose underlying
26075 array has the same non-zero alias set as that of the destination array.
26076
26077 2005-03-17 Javier Miranda <miranda@adacore.com>
26078
26079 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26080 (Get_Inheritance_Depth): Removed.
26081 (Set_Inheritance_Depth): Removed.
26082
26083 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26084 subprogram Get_Expanded_Name because it is not referenced by the
26085 frontend.
26086
26087 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26088 (CPP_Get_Inheritance_Depth): Removed.
26089 (CPP_Set_Inheritance_Depth): Removed.
26090
26091 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26092
26093 2005-03-17 Robert Dewar <dewar@adacore.com>
26094
26095 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26096 3, since we now expect GCC 3 to do all the work.
26097
26098 2005-03-17 Javier Miranda <miranda@adacore.com>
26099
26100 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26101 of one barrier to avoid wrong usage of this attribute.
26102
26103 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26104 First_Private_Entity.
26105
26106 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26107 the subprogram against wrong usage.
26108 Adapt the code to traverse the entities in the
26109 scope of a record_type because in addition to its usage regarding
26110 packages, this subprogram is also called by Expand_N_Freeze_Entity
26111 to install the visible declarations of the enclosing scope of a
26112 record_type_with_private to establish the proper visibility before
26113 freezing the entity and related subprograms.
26114
26115 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26116
26117 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26118 entry formals.
26119
26120 2005-03-17 Thomas Quinot <quinot@adacore.com>
26121
26122 * exp_ch3.adb (Check_Attr): New subprogram.
26123 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26124 into a new Check_Attr subprogram, in order to provide a more
26125 explanatory error message (including the name of the missing attribute).
26126 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26127 subprogram determines whether a default implementation exists for a
26128 given stream attribute.
26129 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26130 Determine whether to generate a default implementation for each stream
26131 attribute separately, as this depends on the specific attribute.
26132
26133 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26134 limited extension where a stream attribute is missing for a limited
26135 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26136 generate a bogus reference to the missing attribute to prevent
26137 cascaded errors. Instead, generate a null statement.
26138
26139 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26140 available for a limited type if it has been specified for an ancestor
26141 of the type.
26142
26143 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26144
26145 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26146 entity is an operator.
26147
26148 2005-03-17 Thomas Quinot <quinot@adacore.com>
26149
26150 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26151 spec, to make this predicate available to other units.
26152
26153 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26154 reimplementing it.
26155
26156 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26157 when no distribution runtime library is available.
26158
26159 * sem_res.adb, sem_dist.adb: Disable expansion of remote
26160 access-to-subprogram types when no distribution runtime library is
26161 available.
26162 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26163 predicate available to other units.
26164
26165 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26166 spec, to make this predicate available to other units.
26167
26168 2005-03-17 Vincent Celier <celier@adacore.com>
26169
26170 * make.adb (Insert_Project_Sources): Make sure the Q is always
26171 initialized.
26172
26173 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26174 the default for the tree, not the global default naming.
26175
26176 * prj-proc.adb (Recursive_Process): No need to put the default naming
26177 in the project data, it's already there.
26178
26179 2005-03-17 Doug Rupp <rupp@adacore.com>
26180
26181 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26182
26183 * 5xcrtl.ads: Renamed to...
26184 * s-crtl-vms64.ads: ...this new file
26185
26186 2005-03-17 Robert Dewar <dewar@adacore.com>
26187
26188 PR ada/19519
26189 * namet.adb (Copy_One_Character): Set proper wide character encoding
26190 for upper half character if we have upper half encoding.
26191
26192 2005-03-17 Robert Dewar <dewar@adacore.com>
26193
26194 * par.adb (Par): Improved msg for attempt to recompile predefined unit
26195
26196 2005-03-17 Thomas Quinot <quinot@adacore.com>
26197
26198 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26199 tagged limited type, the TSS is a newly built renaming declaration:
26200 insert it using Set_TSS, not Copy_TSS.
26201
26202 2005-03-17 Javier Miranda <miranda@adacore.com>
26203
26204 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26205 Try_Object_Operation): Analyze the object that is accessible
26206 through the prefix of the subprogram call before we apply
26207 the transformation of the object-operation notation.
26208
26209 2005-03-17 Jose Ruiz <ruiz@adacore.com>
26210
26211 * s-taprob.adb (Initialize_Protection): Initialize the protected
26212 object's owner to Null_Task.
26213 (Lock): If pragma Detect_Blocking is in effect and the caller of this
26214 procedure is already the protected object's owner then Program_Error
26215 is raised. In addition the protected object's owner is updated.
26216 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26217 of this procedure is already the protected object's owner then
26218 Program_Error is raised.
26219 In addition the protected object's owner is updated.
26220 (Unlock): Remove the ownership of the protected object.
26221
26222 * s-taprob.ads (Protection): Add the field Owner, used to store the
26223 protected object's owner.
26224 This component is needed for detecting one type of potentially blocking
26225 operations (external calls on a protected subprogram with the same
26226 target object as that of the protected action). Document the rest of
26227 the components.
26228
26229 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26230 Initialize the protected object's owner to Null_Task.
26231 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26232 caller of this procedure is already the protected object's owner then
26233 Program_Error is raised.
26234 Do not raise Program_Error when this procedure is called from a
26235 protected action.
26236 (Unlock_Entries): Remove the ownership of the protected object.
26237 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26238 of this procedure is already the protected object's owner then
26239 Program_Error is raised.
26240 Do not raise Program_Error when this procedure is called from
26241 a protected action.
26242
26243 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26244 used to store the protected object's owner.
26245
26246 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26247 effect and this procedure (a potentially blocking operation) is called
26248 from whithin a protected action, Program_Error is raised.
26249 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26250 and this procedure (a potentially blocking operation) is called from
26251 whithin a protected action, Program_Error is raised.
26252
26253 2005-03-17 Vincent Celier <celier@adacore.com>
26254 Nicolas Setton <setton@adacore.com>
26255
26256 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26257 switch, not supported by the linker on Darwin. Add '_' before
26258 <library>init, as this character is added unconditionally by the
26259 compiler.
26260 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26261 correct one ".dylib". This fixes detection of the archive files when
26262 building library projects.
26263
26264 2005-03-17 Vincent Celier <celier@adacore.com>
26265
26266 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26267 -gnat83, -gnat95 and -gnat05.
26268
26269 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
26270
26271 * gnat_ugn.texi: Document gnatmem restriction
26272
26273 2005-03-17 Thomas Quinot <quinot@adacore.com>
26274
26275 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26276 cleanup
26277
26278 2005-03-17 Robert Dewar <dewar@adacore.com>
26279
26280 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26281 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26282 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26283
26284 * casing.adb: Comment improvements
26285
26286 2005-03-17 Pascal Obry <obry@adacore.com>
26287
26288 * g-expect.adb: Minor reformatting.
26289
26290 2005-03-15 Zack Weinberg <zack@codesourcery.com>
26291
26292 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
26293 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
26294 to dependencies.
26295
26296 2005-03-15 Vincent Celier <celier@adacore.com>
26297
26298 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
26299 Add new parameter In_Tree to specify the project tree: needed
26300 by the project manager. Adapt to changes in project manager
26301 using new parameter In_Tree.
26302
26303 2005-03-15 Jakub Jelinek <jakub@redhat.com>
26304
26305 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
26306 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
26307 ada/bldtools to avoid make -jN failures.
26308
26309 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26310
26311 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
26312 to NULL_TREE on entry.
26313
26314 2005-03-15 Robert Dewar <dewar@adacore.com>
26315
26316 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26317 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26318 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26319 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26320 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26321 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
26322 system-interix.ads, system-solaris-sparc.ads,
26323 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26324 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
26325 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26326 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
26327 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
26328 Compiler_System_Version to be False.
26329
26330 * opt.ads: Add new flag Opt.Address_Is_Private
26331
26332 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
26333 Add new parameter Compiler_System_Version to avoid checking for
26334 completeness of parameters when compiler is compiling itself.
26335 Allows old versions of GNAT to be compiled with new compiler.
26336
26337 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26338
26339 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
26340 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
26341 calling thread.
26342 (Stack_Base_Available): New flag.
26343 (Get_Page_Size): New overloaded functions imported from C.
26344 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
26345 PROT_ON, PROT_OFF): New constants.
26346 (mprotect): New function imported from C.
26347 (pthread_teb_t): New record type.
26348
26349 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
26350 (Create_Task): Account for the Yellow Zone and the guard page.
26351
26352 2005-03-15 Vincent Celier <celier@adacore.com>
26353
26354 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26355 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
26356 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
26357 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
26358 Library_File_Name_For): Add new parameter In_Tree
26359 to specify the project tree: needed by the project manager.
26360 Adapt to changes in project manager using new parameter In_Tree.
26361 Remove local imports, use functions in System.CRTL.
26362
26363 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
26364 to use the project manager.
26365
26366 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
26367 In_Tree to designate the project tree. Adapt to changes in the project
26368 manager, using In_Tree.
26369
26370 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
26371 Copy_Interface_Sources): Add new parameter In_Tree to specify the
26372 project tree: needed by the project manager.
26373 (Build_Library): Check that Arg'Length >= 6 before checking if it
26374 contains "--RTS=...".
26375
26376 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
26377 Library_File_Name_For): Add new parameter In_Tree to specify the
26378 project tree: needed by the project manager.
26379
26380 * prj.ads, prj.adb: Major modifications to allow several project trees
26381 in memory at the same time.
26382 Change tables to dynamic tables and hash tables to dynamic hash
26383 tables. Move tables and hash tables from Prj.Com (in the visible part)
26384 and Prj.Env (in the private part). Move some constants from the visible
26385 part to the private part. Make other constants deferred.
26386 (Project_Empty): Make it a variable, not a function
26387 (Empty_Project): Add parameter Tree. Returns the data with the default
26388 naming data of the project tree Tree.
26389 (Initialize): After updating Std_Naming_Data, copy its value to the
26390 component Naming of Project Empty.
26391 (Register_Default_Naming_Scheme): Use and update the default naming
26392 component of the project tree, instead of the global variable
26393 Std_Naming_Data.
26394 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
26395 Tree is not defaulted, return the default naming data of the Tree.
26396 (Initial_Buffer_Size): Constant moved from private part
26397 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
26398 variables initialized in procedure Initialize.
26399 (Add_To_Buffer): Add two in out parameters to replace global variables
26400 Buffer and Buffer_Last.
26401 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
26402 functions.
26403 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
26404 hash tables.
26405 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26406 for the project tree.
26407 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
26408 constant at the beginning of the package spec, so that they cane be used
26409 in subprograms before their full declarations.
26410 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
26411 (Empty_Project): Add parameter of type Project_Node_Ref
26412 (Private_Project_Tree_Data): Add component Default_Naming of type
26413 Naming_Data.
26414 (Buffer, Buffer_Last): remove global variables
26415 (Add_To_Buffer): Add two in out parameters to replace global variables
26416 Buffer and Buffer_Last.
26417 (Current_Packages_To_Check): Remove global variable
26418 (Empty_Name): Move to private part
26419 (No-Symbols): Make it a constant
26420 (Private_Project_Tree_Data): New type for the private part of the
26421 project tree data.
26422 (Project_Tree_Data): New type for the data of a project tree
26423 (Project_Tree_Ref): New type to designate a project tree
26424 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26425 for the project tree.
26426
26427 * prj-attr.ads: Add with Table; needed, as package Prj no longer
26428 imports package Table.
26429
26430 * prj-com.adb: Remove empty, no longer needed body
26431
26432 * prj-com.ads: Move most of the content of this package to package Prj.
26433
26434 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
26435 designate the project node tree and Packages_To_Check to replace
26436 global variable Current_Packages_To_Check.
26437 Add new parameters In_Tree and Packages_To_Check to local subprograms,
26438 when needed. Adapt to changes in project manager with project node tree
26439 In_Tree.
26440
26441 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
26442 project tree to most subprograms. Move tables and hash tables to
26443 private part of package Prj.
26444 Adapt to changes in project manager using project tree In_Tree.
26445
26446 * prj-makr.adb (Tree): New constant to designate the project node tree
26447 Adapt to change in project manager using project node tree Tree
26448
26449 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
26450 display the Library_Src_Dir and the Library_Dir.
26451 Add new parameter In_Tree to designate the project node tree to most
26452 subprograms. Adapt to changes in the project manager, using project tree
26453 In_Tree.
26454 (Check_Naming_Scheme): Do not alter the casing on platforms where
26455 the casing of file names is not significant.
26456 (Check): Add new parameter In_Tree to designate the
26457
26458 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
26459 designate the project tree.
26460 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
26461
26462 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
26463 to replace those that were in the private part of package Prj.
26464 Add new parameter In__Tree to designate the project node tree to most
26465 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26466 (Post_Parse_Context_Clause): When specifying the project node of a with
26467 clause, indicate that it is a limited with only if there is "limited"
26468 in the with clause, not necessarily when In_Limited is True.
26469 (Parse): Add new parameter In_Tree to designate the project node tree
26470
26471 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
26472 designate the project node tree. Adapt to change in Prj.Tree with
26473 project node tree In_Tree.
26474
26475 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
26476 tree In_Tree in the call to function Empty_Process to give its initial
26477 value to the project data Processed_Data.
26478 Add new parameters In_Tree to designate the project tree and
26479 From_Project_Node_Tree to designate the project node tree to several
26480 subprograms. Adapt to change in project manager with project tree
26481 In_Tree and project node tree From_Project_Node_Tree.
26482
26483 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
26484 to replace those that were in the private part of package Prj.
26485 Add new parameter In_Tree to designate the project node tree to most
26486 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26487
26488 * prj-tree.ads, prj-tree.adb: Add new parameter of type
26489 Project_Node_Tree_Ref to most subprograms.
26490 Use this new parameter to store project nodes in the designated project
26491 node tree.
26492 (Project_Node_Tree_Ref): New type to designate a project node tree
26493 (Tree_Private_Part): Change table to dynamic table and hash tables to
26494 dynamic hash tables.
26495
26496 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
26497 the project tree to most subprograms. Adapt to changes in project
26498 manager using project tree In_Tree.
26499
26500 * makegpr.adb (Project_Tree): New constant needed to use project
26501 manager.
26502
26503 2005-03-15 Olivier Hainque <hainque@adacore.com>
26504
26505 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
26506 for sigactions with SA_SIGINFO set. Call
26507 __gnat_adjust_context_for_raise before raising, to perform the
26508 potentially required adjustments to the machine context for the GCC
26509 unwinder.
26510
26511 * raise.h (__gnat_adjust_context_for_raise): New prototype.
26512
26513 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
26514 Adjust PC by one in the provided machine context.
26515 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
26516 so that the handler is passed the context structure to adjust prior to
26517 the raise.
26518 (__gnat_error_handler) HPUX: Adjust the signature to match what an
26519 SA_SIGINFO sigaction should look like. Call
26520 __gnat_adjust_context_for_raise before actually raising.
26521 (__gnat_adjust_context_for_raise): Default noop to help PC
26522 adjustments before raise from signal handlers.
26523 (__gnat_error_handler): Indirectly call a predicate function to
26524 determine if a condition should be resignaled or not.
26525 (__gnat_set_resignal_predicate): User interface to modify the predicate.
26526 (__gnat_default_resignal_p): Default GNAT predicate.
26527
26528 2005-03-15 Doug Rupp <rupp@adacore.com>
26529
26530 * adaint.c: Prefix #include of VMS system header files with vms/
26531 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
26532 Do not define a dummy function "convert_addresses" under Darwin,
26533 not needed.
26534
26535 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
26536 with vms/
26537
26538 2005-03-15 Nicolas Setton <setton@adacore.com>
26539
26540 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
26541 PPC/AIX.
26542
26543 2005-03-15 Robert Dewar <dewar@adacore.com>
26544
26545 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
26546 AI-386.
26547
26548 * a-retide.ads: Minor comment changes
26549
26550 2005-03-15 Robert Dewar <dewar@adacore.com>
26551
26552 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
26553 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
26554 Realloc_For_Chunk to private part of package.
26555 New subprograms for AI-301
26556
26557 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
26558 Get_Line procedure.
26559 Avoid unnecessary use of Get/Set_Wide_String
26560
26561 2005-03-15 Robert Dewar <dewar@adacore.com>
26562
26563 PR ada/13470
26564 * a-stunau.ads, a-stunau.adb:
26565 Change interface to allow efficient (and correct) implementation
26566 The previous changes to allow extra space in unbounded strings had
26567 left this interface a bit broken.
26568
26569 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
26570
26571 * g-spipat.ads, g-spipat.adb: New interface for Get_String
26572 Minor reformatting (function specs)
26573
26574 * g-spitbo.adb: New interface for Get_String
26575
26576 * g-spitbo.ads: Minor reformatting
26577
26578 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
26579
26580 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
26581
26582 2005-03-15 Javier Miranda <miranda@adacore.com>
26583 Robert Dewar <dewar@adacore.com>
26584 Thomas Quinot <quinot@adacore.com>
26585 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26586
26587 * atree.ads, atree.adb: Add support for Elist24 field
26588
26589 * atree.h: Fix wrong definition of Field27
26590 Add support for Elist16 field
26591 Add support for Elist24 field
26592
26593 * einfo.ads, einfo.adb (Abstract_Interfaces,
26594 Set_Abstract_Interfaces): New subprograms.
26595 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
26596 subprograms.
26597 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
26598 entities rather than a single node.
26599 (Is_Interface, Set_Is_Interface): New subprogram
26600 (First_Tag_Component): New syntesized attribute
26601 (Next_Tag_Component): New synthesized attribute
26602 (Write_Entity_Flags): Upgraded to write Is_Interface
26603 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
26604 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
26605 (Task_Body_Procedure): New subprogram to read this attribute.
26606 (Set_Task_Body_Procedure): New subprogram to set this attribute.
26607 (Has_Controlled_Component): Now applies to all entities.
26608 This is only a documentation change, since it always worked to apply
26609 this to other than composite types (yielding false), but now this is
26610 official.
26611 Update documentation on Must_Be_Byte_Aligned for new spec
26612
26613 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
26614 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
26615 uses of the Access_Disp_Table attribute to reference the first dispatch
26616 table associated with a tagged type. As
26617 part of the implementation of abstract interface types,
26618 Access_Disp_Table has been redefined to contain a list of dispatch
26619 tables (rather than a single dispatch table).
26620 Similarly, upgrade all the references to Tag_Component by the
26621 new attribute First_Tag_Component.
26622 (Find_Inherited_TSS): Moved to exp_tss.
26623 Clean up test in Expand_N_Object_Declaration for cases
26624 where we need to do a separate assignment of the initial value.
26625 (Expand_N_Object_Declaration): If the expression in the
26626 declaration of a tagged type is an aggregate, no need to generate an
26627 additional tag assignment.
26628 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
26629 is to be deleted.
26630 Bit packed array ops are only called if operands are known to be
26631 aligned.
26632 (Component_Equality): When returning an N_Raise_Program_Error statement,
26633 ensure that its Etype is set to Empty to avoid confusing GIGI (which
26634 expects that only expressions have a bona fide type).
26635 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
26636 determine the amount of data to be copied.
26637
26638 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
26639 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
26640 INTERFACE_TYPE_DEFINITION ::=
26641 [limited | task | protected | synchronized] interface
26642 [AND interface_list]
26643
26644 * par-ch3.adb (P_Type_Declaration): Modified to give support to
26645 interfaces.
26646 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
26647 interfaces.
26648 (P_Interface_Type_Definition): New subprogram that parses the new
26649 syntax rule of Ada 2005 interfaces
26650 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
26651 messages by the correct RENAMES (quotes removed).
26652
26653 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
26654 attribute First_Tag_Component.
26655
26656 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
26657 (Interface_List, Set_Interface_List): New subprograms.
26658 (Interface_Present, Set_Interface_Present): New subprograms.
26659 (Limited_Present, Set_Limited_Present): Available also in derived
26660 type definition nodes.
26661 (Protected_Present, Set_Protected_Present): Available also in
26662 record type definition and
26663 derived type definition nodes.
26664 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
26665 (Task_Present, Set_Task_Present): New subprogram.
26666 (Task_Body_Procedure): Removed.
26667 (Set_Task_Body_Procedure): Removed.
26668 These subprogram have been removed because the attribute
26669 Task_Body_Procedure has been moved to the corresponding task type
26670 or task subtype entity to leave a field free to store the list
26671 of interfaces implemented by a task (for AI-345)
26672 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
26673 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
26674 expression flag Do_Range_Check
26675 (Exception_Junk): Change to Flag7 to accomodate above change
26676 (Box_Present, Default_Name, Specification, Set_Box_Present,
26677 Set_Default_Name, Set_Specification): Expand the expression
26678 "X in N_Formal_Subprogram_Declaration" into the corresponding
26679 two comparisons. Required to use the csinfo tool.
26680
26681 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
26682 "with string" given.
26683
26684 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
26685 expression given.
26686
26687 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
26688 in 2005 mode
26689
26690 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
26691 attribute Task_Body_Procedure rather than the old semantic field that
26692 was available in the task_type_declaration node.
26693
26694 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
26695 interface type definitions.
26696 (P_Formal_Derived_Type_Definition): Modified to handle the list of
26697 interfaces.
26698
26699 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
26700 task type declaration.
26701 (P_Protected): Modified to handle the list of interfaces in a
26702 protected type declaration.
26703
26704 2005-03-15 Doug Rupp <rupp@adacore.com>
26705 Vincent Celier <celier@adacore.com>
26706
26707 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
26708 (Gen_Output_File_C): Likewise.
26709 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
26710
26711 2005-03-15 Thomas Quinot <quinot@adacore.com>
26712
26713 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
26714 is an N_Raise_Constraint_Error node, create a new copy of it without
26715 going through a call to Duplicate_Subexpr.
26716
26717 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26718 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26719 Nicolas Setton <setton@adacore.com>
26720 Ed Schonberg <schonberg@adacore.com>
26721
26722 PR ada/19900
26723 PR ada/19408
26724 PR ada/19140
26725 PR ada/20255
26726 * decl.c (gnat_to_gnu_field): Reject aliased components with a
26727 representation clause that prescribes a size not equal to the rounded
26728 size of their types.
26729 (gnat_to_gnu_entity, case E_Component): Always look at
26730 Original_Record_Component if Present and not the entity.
26731 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
26732 of tagged extension types by not making field for components that are
26733 inside the parent.
26734 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
26735 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
26736 expression to the type of the object when the object is constant.
26737 Reverse defer_debug_incomplete_list before traversing it, so that trees
26738 are processed in the order at which they were added to the list. This
26739 order is important when using the stabs debug format.
26740 If we are deferring the output of debug information, also defer this
26741 output for a function return type.
26742 When adding fields to a record, prevent emitting debug information
26743 for incomplete records, emit the information only when the record is
26744 complete.
26745 (components_to_record): New parameter defer_debug.
26746 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
26747 (gnat_to_gnu_field_decl): New function.
26748 (substitution_list, annotate_rep): Call it.
26749 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
26750 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
26751 No longer update discriminants to not be a COMPONENT_REF.
26752 (copy_alias_set): Strip padding from input type; also handle
26753 unconstrained arrays properly.
26754
26755 * gigi.h (write_record_type_debug_info): New function.
26756 Convert to use ANSI-style prototypes. Remove unused
26757 declarations for emit_stack_check, elab_all_gnat and
26758 set_second_error_entity.
26759 (gnat_to_gnu_field_decl): New decl.
26760
26761 * utils.c (write_record_type_debug_info): New function.
26762 (finish_record_type): Delegate generation of debug information to
26763 write_record_type_debug_info.
26764 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
26765 (update_pointer_to): Fix pasto.
26766 (convert) <UNION_TYPE>: Accept slight type variations when
26767 converting to an unchecked union type.
26768
26769 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
26770 replace the N_Freeze_Entity with a null statement.
26771
26772 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
26773 within a constrained subcomponent of an enclosing record, place the
26774 freeze nodes in the scope stack entry for the enclosing record.
26775 (Undelay_Type): New Subprogram.
26776 (Set_Small_Size): Pass T, the type to modify; all callers changed.
26777 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
26778 within records; allow them to have freeze nodes if their base types
26779 aren't frozen yet.
26780
26781 * exp_util.adb (Remove_Side_Effects): Properly test for
26782 Expansion_Delayed and handle case when it's inside an
26783 N_Qualified_Expression.
26784
26785 * sem_ch3.adb (Derived_Type_Declaration): New predicate
26786 Comes_From_Generic, to recognize accurately that the parent type in a
26787 derived type declaration can be traced back to a formal type, because
26788 it is one or is derived from one, or because its completion is derived
26789 from one.
26790 (Constrain_Component_Type): If component comes from source and has no
26791 explicit constraint, no need to constrain in in a subtype of the
26792 enclosing record.
26793 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
26794 Minor change to propagate Is_Ada_2005 flag
26795
26796 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
26797 Expansion_Delayed is False.
26798 (assoc_to_constructor): Ignore fields that have a
26799 Corresponding_Discriminant.
26800 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
26801 function returns "by target", dereference the target pointer using the
26802 type of the actual return value.
26803 <all>: Be prepared for a null gnu_result.
26804 (processed_inline_subprograms): Check flag_really_no_inline
26805 instead of flag_no_inline.
26806 (set_second_error_entity): Remove unused function.
26807 (gnat_to_gnu, case N_Selected_Component): Call
26808 gnat_to_gnu_field_decl.
26809 (assoc_to_constructor): Likewise.
26810
26811 2005-03-15 Robert Dewar <dewar@adacore.com>
26812 Ed Schonberg <schonberg@adacore.com>
26813 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26814
26815 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
26816 Must_Be_Byte_Aligned for cases where we do not need to use a
26817 System.Pack_nn unit.
26818
26819 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
26820 as procedures.
26821 Needed now that we do some processing for IN parameters as well. This
26822 may well fix some unrelated errors.
26823 (Expand_Call): Handle case of unaligned objects (in particular those
26824 that come from packed arrays).
26825 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
26826 renamed entity is an inherited operation, re-expand the call using the
26827 original operation, which is the one to call.
26828 Detect attempt to inline parameterless recursive subprogram.
26829 (Represented_As_Scalar): Fix to work properly with private types
26830 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
26831 accurate estimate. Yields True in far fewer cases than before,
26832 improving the quality of code that depends on this test.
26833
26834 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
26835 over both visible and private declarations to remove them from tree,
26836 and mark subprograms declared in package as eliminated, to prevent
26837 spurious use in subsequent compilation of generic units in the context.
26838
26839 * exp_util.ads: Minor cleanup in variable names
26840
26841 * sem_eval.ads, sem_eval.adb: Minor reformatting
26842 (Compile_Time_Known_Bounds): New function
26843
26844 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26845
26846 * exp_ch7.adb (Convert_View): Use base types of underlying types when
26847 determining whether an unchecked conversion is needed for the argument
26848 of an initialization call.
26849
26850 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26851
26852 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
26853 that appears in the instantiation rather than the internal subtype
26854 generated in the wrapper package, to avoid anomalies in gigi when the
26855 target is derived from a private type whose full view is an access type.
26856
26857 2005-03-15 Robert Dewar <dewar@adacore.com>
26858
26859 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
26860 not needed.
26861 Add documentation to replace the use of this flag
26862 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
26863 the x86_64.
26864
26865 2005-03-15 Thomas Quinot <quinot@adacore.com>
26866
26867 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
26868 here from exp_attr so it can be shared between exp_attr and exp_dist.
26869 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
26870 all TSS names, not a subset thereof, and the previous name introduced
26871 an unnecessarily confusion that a distinction might exist between
26872 "OK" TSS names and some "not OK" TSS names.
26873
26874 2005-03-15 Doug Rupp <rupp@adacore.com>
26875
26876 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
26877 Command_Name.
26878
26879 2005-03-15 Pascal Obry <obry@adacore.com>
26880 Eric Botcazou <ebotcazou@adacore.com>
26881
26882 PR ada/20226
26883 PR ada/20344
26884 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
26885 when IN_RTS. This is to work around a bootstrap path problem.
26886
26887 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
26888 table and pass it to __gnat_install_SEH_handler().
26889 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
26890
26891 * lang.opt: Fix specification of -fRTS=.
26892
26893 2005-03-15 Doug Rupp <rupp@adacore.com>
26894 Bernard Banner <banner@adacore.com>
26895 Vincent Celier <celier@adacore.com>
26896 Arnaud Charlet <charlet@adacore.com>
26897
26898 PR ada/6852
26899 This change works fine when gnatlib is built from the gcc directory,
26900 but does not work when using the libada Makefile, since GCC_FOR_TARGET
26901 is not passed to ada/Makefile.in, so more work is needed by a
26902 Makefile/configure expert.
26903
26904 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
26905 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
26906 Setup gnatlink switch -M for x86_64 linux, as it is already setup
26907 for Linux x86.
26908 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
26909 Run ranlib on libgccprefix.a
26910 Define PREFIX_OBJS for Darwin, to build libgccprefix.
26911 (ADA_INCLUDE_SRCS): Split Ada packages.
26912
26913 2005-03-15 Robert Dewar <dewar@adacore.com>
26914
26915 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
26916
26917 * impunit.adb: Add GNAT.UTF_32
26918
26919 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
26920
26921 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
26922 now uses GNAT.UTF_32).
26923
26924 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
26925 capabilities for categorizing characters using Unicode categories
26926
26927 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26928
26929 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
26930 instantiation that has been rewritten as a package body, retrieve spec
26931 to generate proper name for implicit_with_clause.
26932 (Install_Parents): Recognize a parent that is an instantiation but has
26933 been rewritten as a package declaration during analysis.
26934
26935 2005-03-15 Javier Miranda <miranda@adacore.com>
26936 Ed Schonberg <schonberg@adacore.com>
26937
26938 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
26939 parameter reported some error we immediately return. This improves the
26940 behaviour of the frontend in case of errors.
26941 (Install_Parent, Remove_Parent): Introduce new flag
26942 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26943 ancestor of a generic child unit, when the child is being instantiated.
26944 (Inline_Instance_Body): If we are compiling the private
26945 part or the body of a child unit, restore the proper visibility of the
26946 parents after compiling the instance body.
26947
26948 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26949 Javier Miranda <miranda@adacore.com>
26950
26951 PR ada/15608
26952 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26953 of a private type, in which case it is underlying_type that denotes
26954 the proper task. Also modified to use the new entity attribute
26955 that is directly available in the task type and task subtype entities
26956 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26957 arrays when other dimensions than the first are constrained by
26958 discriminants of an enclosing record.
26959 (Insert_Explicit_Dereference): If the prefix is an indexed component or
26960 a combination of indexed and selected components, find ultimate entity
26961 and generate the appropriate reference for it, to suppress spurious
26962 warnings.
26963 (Note_Possible_Modification): If an entity name has no entity, return.
26964 (Is_Variable): A function call never denotes a variable.
26965 (Requires_Transient_Scope): For record types, recurse only on
26966 components, not on internal subtypes that may have been generated for
26967 constrained components.
26968
26969 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26970
26971 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26972 Eliminated as candidates for resolution. Both efficient, and avoids
26973 anomalies with operators declared in deleted code.
26974 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26975 expansion is disabled (as when compiling a generic) to prevent spurious
26976 warnings on prefixes of selected components.
26977
26978 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26979
26980 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26981 attached to a list before checking whether it appears in the private
26982 declarations of the current package.
26983 (Make_Inequality_Operator): Insert declaration in proper declarative
26984 list rather than just setting the Parent field, so that
26985 Is_Private_Declaration can handle it properly.
26986
26987 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26988
26989 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26990 a renaming a body, check that the renamed subprogram in not intrinsic.
26991 (Find_Direct_Name): If several use_visible entities hide
26992 each other, and the context is a predefined file compiled through
26993 rtsfind, keep only the entity that comes from a predefined file.
26994
26995 2005-03-15 Geert Bosch <bosch@adacore.com>
26996
26997 * s-fatgen.adb (Valid): Extend special exceptions to account for long
26998 long float padding to also cover AMD64 and IA64.
26999
27000 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27001
27002 * s-imgwch.adb: Add with and use of Interfaces.
27003 (Img_Wide_Character): Change type of Val to Unsigned_16.
27004 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27005
27006 2005-03-15 Matthew Gingell <gingell@adacore.com>
27007
27008 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27009
27010 2005-03-15 Robert Dewar <dewar@adacore.com>
27011
27012 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27013
27014 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27015
27016 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27017
27018 2005-03-15 Robert Dewar <dewar@adacore.com>
27019
27020 * s-bitops.adb, s-bitops.ads,
27021 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27022 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27023 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27024 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27025 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27026 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27027 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27028 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27029 reformatting.
27030
27031 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27032
27033 * utils2.c (build_binary_op): Fix typo.
27034
27035 2005-03-15 Doug Rupp <rupp@adacore.com>
27036
27037 * s-crtl.ads (popen,pclose): New imports.
27038
27039 2005-03-15 Cyrille Comar <comar@adacore.com>
27040
27041 * comperr.adb (Compiler_Abort): remove references to obsolete
27042 procedures in the bug boxes for various GNAT builds.
27043
27044 2005-03-15 Vincent Celier <celier@adacore.com>
27045
27046 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27047
27048 2005-03-15 Geert Bosch <bosch@adacore.com>
27049 Arnaud Charlet <charlet@adacore.com>
27050 Robert Dewar <dewar@adacore.com>
27051 Cyrille Comar <comar@adacore.com>
27052 Sergey Rybin <rybin@adacore.com>
27053
27054 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27055 too specific and long-winded to be appropriate for the GNAT User's
27056 Guide.
27057 Warn about use of GCC switches not documented in the GNAT User's Guide,
27058 as these may cause generated code to not conform to Ada semantics.
27059 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27060 Add documentation for -gnat95 and -gnat05 switches
27061 Remove paragraph documenting obsolete way to refer to third party
27062 libraries.
27063 Add a few references to Ada_05 that were missing.
27064 Update documentation on -gnatZ/-gnatL.
27065 Document limitation when using -m64 under Solaris.
27066 Change the "Name Casing" subsection of the pretty-printer section
27067 according to the changes in the dictionary processing.
27068
27069 * gnat_rm.texi: Document the Ada_05 pragma.
27070 Section on record representation clauses describes the new more
27071 relaxed rules about placement of large packed bit array components.
27072 Add documentation of GNAT.UTF_32
27073
27074 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
27075
27076 * misc.c (gnat_post_options): Turn off structural
27077 aliasing for now.
27078
27079 2005-03-08 Laurent Guerby <laurent@guerby.net>
27080
27081 * system-linux-sparc.ads: Fix typo in previous commit.
27082
27083 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
27084 Laurent Guerby <laurent@guerby.net>
27085
27086 PR ada/20035
27087 * system-linux-sparc.ads: New.
27088 * Makefile.in: Add sparc linux entry.
27089
27090 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
27091
27092 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27093 parameters as unused.
27094
27095 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
27096 Partial merge from libada-gnattools-branch:
27097
27098 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27099 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27100 into code in gnattools/Makefile.in. Remove direct dependencies on
27101 stamp-tools by tools clauses.
27102 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27103 * config-lang.in: Add gnattools to $lang_dirs.
27104
27105 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
27106
27107 PR ada/19942
27108 * utils.c (gnat_type_for_mode): Return null instead of ICE because
27109 we asked for an unknown mode.
27110
27111 2005-02-12 Richard Henderson <rth@redhat.com>
27112
27113 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27114 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27115
27116 2005-02-10 Andreas Jaeger <aj@suse.de>
27117
27118 * init.c (__gnat_initialize): Mark parameter as unused.
27119
27120 2005-02-09 Doug Rupp <rupp@adacore.com>
27121
27122 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27123 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27124
27125 2005-02-09 Doug Rupp <rupp@adacore.com>
27126
27127 * gnatchop.adb (dup, dup2),
27128 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27129
27130 * gnatlbr.adb (mkdir),
27131 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
27132
27133 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27134
27135 2005-02-09 Doug Rupp <rupp@adacore.com>
27136
27137 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27138
27139 2005-02-09 Robert Dewar <dewar@adacore.com>
27140 Thomas Quinot <quinot@adacore.com>
27141 Javier Miranda <miranda@adacore.com>
27142 Pascal Obry <obry@adacore.com>
27143 Ed Schonberg <schonberg@adacore.com>
27144 Doug Rupp <rupp@adacore.com>
27145 Gary Dismukes <dismukes@adacore.com>
27146 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27147
27148 * g-zstspl.ads: New file.
27149
27150 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27151
27152 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27153 Ada 95 mode
27154 Add definition of Wide_Wide_Space for AI-285
27155
27156 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27157 interface (to support Ada 95 and Ada 2005 units).
27158 Add Unbounded_IO files
27159 Add entries for Wide_Wide packages for AI-285
27160 Add list of containers packages to Ada 2005 unit list
27161
27162 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27163 support new Unbounded_IO package cleanly.
27164
27165 * g-utf_32.ads, g-utf_32.adb: New files.
27166
27167 * Makefile.rtl: Add entry for g-utf_32
27168 Add new files for Unbounded_IO
27169 Adjust make file for new AI-285 wide wide packages
27170 Add AI-302 containers to the run time.
27171
27172 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27173 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27174 subprograms for AI-301.
27175
27176 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27177
27178 * a-stunau.ads: Minor comment correction
27179
27180 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27181 etc.
27182 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27183 (Check_RPC): Update to match changes in expanded code.
27184 Clean up unused entity.
27185
27186 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27187 was not taken into account.
27188 This includes proper initialization with Normalize_Scalars.
27189 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27190 normalize scalars cases (particularly the latter) to do a better job
27191 of finding invalid representations.
27192
27193 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27194
27195 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27196 used
27197
27198 * exp_dist.adb: Add support for wide wide character type
27199 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27200 private part, generate stub bodies at the end of the private part,
27201 not the visible part.
27202 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27203 PolyORB support.
27204 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27205 generic wrapper to execute final processing after completing the
27206 expansion of the RPC receiver for an RACW.
27207
27208 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27209 packages and attributes.
27210 (Preset_Names): Addition of the new reserved words of Ada 2005,
27211 that is interface, overriding and synchronized.
27212 (Get_Pragma_Id): Give support to the use of the new reserved word
27213 "interface" as a pragma name.
27214 (Is_Pragma_Name): Give support to the use of the new reserved word
27215 "interface" as a pragma name.
27216 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27217 attribute implementation.
27218
27219 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27220 checks to entities that are output parameters of Asm operations.
27221 Handle the Stream_Size attribute.
27222 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27223
27224 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27225
27226 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27227 for second parameter being 0.0.
27228 Add support for wide wide character type.
27229 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27230
27231 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27232 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27233 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27234 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27235 for wide wide character cases.
27236
27237 * cstand.adb: Create entities for Wide_Wide_Character and
27238 Wide_Wide_String.
27239
27240 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27241 accordance with AI-258.
27242 Add new declarations for 16/32 bit C character types (Part of AI285)
27243
27244 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27245 (Obsolescent_Warning): New field
27246 (Rep_Clause): New local subprogram used to share code. Returns the rep
27247 clause for which the name is given in parameter.
27248 (Has_Stream_Size_Clause): New routine.
27249 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27250 (Address_Clause): Implementation is now using Rep_Clause.
27251 (Alignment_Clause): Idem.
27252 (Size_Clause): Idem.
27253
27254 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27255 entity in non-Ada 2005 mode and generate warning.
27256
27257 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27258 (Prag): Code cleanup. Remove old gnat pragma "overriding"
27259
27260 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27261 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27262 on the named unit if the pragma is not in the current compilation unit,
27263 so that elaboration calls in the current unit can set up an elaboration
27264 dependency on the named unit, as needed.
27265 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27266 subprogram as well as for subprograms declared within a package.
27267 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27268 pragma overriding.
27269
27270 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27271 to z) to avoid some instances of duplication for Wide_Wide packages.
27272
27273 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27274 characters.
27275
27276 * scn.adb: Char_Literal_Value field is now a Uint
27277
27278 * scng.adb: Significant rewrite to handle new Ada 2005 features
27279 allowing wide and wide wide characters in program text, e.g. for
27280 identifiers, as described in AI-285.
27281 (Set_Reserved): New procedure, makes setting up keywords cleaner.
27282 (Initialize_Scanner): Register the new reserved words of Ada 2005.
27283 (Scan): Give support to the new reserved words.
27284
27285 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27286 warning notifying that interface, overriding, and synchronized are
27287 new reserved words.
27288 (P_Pragma): Allow the use of the new reserved word "interface" as
27289 a pragma name.
27290
27291 * gnatls.adb, gnatbind.adb,
27292 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
27293 identifiers named "interface" to "SAL_Interface".
27294
27295 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
27296 (Structured Exception handling).
27297 (Gen_Main_C): Idem.
27298
27299 * bindgen.adb:
27300 (Gen_Main_Ada): Set the default exit code if specified.
27301 (Gen_Main_C): Likewise.
27302 Part of *DC20-006.
27303 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
27304 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
27305
27306 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
27307 new -Xnnn switch.
27308
27309 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
27310 has a collision with the new Ada 2005 "interface" reserved word.
27311
27312 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
27313 generate a warning notifying that interface, overriding, and
27314 synchronized are new reserved words.
27315
27316 * scans.ads (Token_Type): Addition of the tokens corresponding to the
27317 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
27318 and Tok_Synchronized.
27319
27320 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
27321 "dispatching" rather than "primitive" operations, since dispatching
27322 calls are now allowed to abstract formal subprograms (which are not
27323 primitive).
27324 Char_Literal_Value field is now a Uint
27325 (Resolve_Slice): If the prefix is an access to an unconstrained array,
27326 compute the actual subtype of the designated object to impose the proper
27327 index constraints.
27328 (Resolve_Selected_Component): Do not insert an access check if the
27329 prefix is an access type: such a node is expanded into an explicit
27330 dereference, on which the access check is performed anyway. Removes
27331 expensive duplicate checks.
27332 (Resolve_Call): Use new flag Is_Obsolescent and field
27333 Obsolescent_Warning so that pragma Obsolescent works on library
27334 subprograms.
27335 Add support for wide wide character type
27336 (Resolve_Allocator): Replace the error message on wrong null-exclusion
27337 value by a warning message.
27338 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
27339 as fixed-point, and one of the operands is non-static and universal, it
27340 can only be an illegal exponentiation operation, in which case there is
27341 no real value to retrieve.
27342
27343 * exp_strm.adb: Add support for wide wide character type
27344 (Build_Elementary_Input_Call): Compute the size of the stream element by
27345 querying the rep chain to find the Stream_Attribute attribute value.
27346 (Build_Elementary_Write_Call): Ditto.
27347
27348 * sem_aggr.adb: Char_Literal_Value field is now a Uint
27349 Add support for wide wide character type
27350 Replace the error messages on wrong null-exclusion value by warnings
27351 as described in Ada 2005.
27352 (Resolve_Extension_Aggregate): Document the fact that the error
27353 message on class-wide expressions in extensions aggregates.
27354
27355 * sem_case.adb: Add support for wide wide character type
27356
27357 * sem_ch13.adb: Add support for wide wide character type
27358 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
27359
27360 * sem_ch3.adb: Add support for wide wide character type
27361 (Process_Subtype): If constraint is illegal for the type, set Ekind of
27362 now-useless Itype, to prevent cascaded errors on a compiler built
27363 without -gnatp.
27364
27365 * sem_ch8.adb: Add with and use of Sem_Disp.
27366 (Analyze_Subprogram_Renaming): Replace unclean uses of
27367 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
27368 of Corresponding_Spec to Empty).
27369 (Attribute_Renaming): Replace use of Corresponding_Spec with
27370 Corresponding_ Formal_Spec and simplify condition.
27371 (Use_One_Package): Check that scope of homonym of identifier is defined,
27372 before checking whether it is a wrapper package.
27373 Add support for wide wide character type
27374
27375 * sem_eval.adb: Add support for wide wide character type.
27376 (Eval_Arithmetic_Op): Check for compile time known signed integer
27377 overflow in the non-static case.
27378 (Subtypes_Statically_Match): A formal scalar type and its base type do
27379 not statically match.
27380
27381 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
27382 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
27383 subtype).
27384 (Unit_Declaration_Node): Ditto.
27385 (Is_Variable_Prefix): For the case of an indexed component whose prefix
27386 has a packed array type, the prefix has been rewritten into a type
27387 conversion. Determine variable-ness from the converted expression.
27388 Handle wide wide character cases.
27389
27390 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
27391
27392 * stringt.ads, stringt.adb: Handle full UTF-32 range.
27393 Remove ["0A"] from comment, since it can look like a line terminator.
27394 Currently we don't permit this, but this is under discussion by the
27395 ARG, and it is easy enough to use a different example.
27396
27397 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
27398 handling UTF-32 encoding for wide wide character.
27399 Implement new brackets coding ["hhhhhhhh"]
27400 Add UTF-8 encodings for full UTF-32 range
27401
27402 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
27403
27404 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
27405 bit range Add full UTF-32 support.
27406 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
27407 notify that constraint error will be raised at run-time
27408 because a null value is assigned to a null-excluding object.
27409 Remove some obsolete declarations and make Char_Code
27410 unsigned.
27411
27412 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
27413 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
27414 Rcheck subprograms.
27415
27416 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
27417 wrong null-exclusion value by a warning message.
27418 (Enable_Range_Check): Do range check if the prefix is an
27419 explicit dereference whose designated object is an unconstrained array.
27420 Current algorithm for removing duplicate checks is over-eager in this
27421 case.
27422
27423 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
27424 null-exclusion value by a warning message
27425
27426 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
27427 completely. Add support for Uint2 field
27428
27429 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
27430 exp_prag.adb: Char_Literal_Value field is now a Uint.
27431
27432 * exp_util.adb (Insert_Actions): Replace
27433 N_Formal_Subprogram_Declaration by
27434 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
27435 Char_Literal_Value field is now a Uint.
27436
27437 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
27438 defined for subprogram renaming declarations. When set, the field
27439 indicates the defining entity of a corresponding formal subprogram
27440 when the renaming corresponds to a formal subprogram association in an
27441 instantiation.
27442 (Set_Corresponding_Formal_Spec): New procedure to return
27443 Corresponding_Formal_Spec field.
27444 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
27445 (which is now a subtype).
27446 Char_Literal_Value field is now a Uint
27447
27448 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
27449 pointer to the base of the dispatch table.
27450 Minor changes to comments.
27451 (Controlling_Type): New function for determining the tagged type
27452 associated with a tagged primitive subprogram.
27453 (Expand_Dispatching_Call): Add support for a controlling actual that is
27454 directly a value of type Ada.Tag rather than a tagged object.
27455
27456 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
27457 describing the new layout.
27458 (Dispatch_Table): The expander computes the actual array size, allocates
27459 the Dispatch_Table record accordingly, and generates code that displaces
27460 the base of the record after the Typeinfo_Ptr component. The access to
27461 these components is done by means of local functions.
27462 (Offset_To_Top): New function.
27463 (Typeinfo_Ptr): New function.
27464 (Get_TSD): Modified to access the new position of the TSD.
27465 (Set_TSD): Modified to save the TSD in its new position.
27466
27467 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
27468 case of formal abstract subprograms. Add check and message for -gnat05.
27469 Update comments.
27470
27471 * sem_ch12.adb: Add with and use for Sem_Disp.
27472 (Analyze_Associations): Minor change from "=" to "in" for use of
27473 N_Formal_Subtype_Declaration (which is now a subtype).
27474 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
27475 N_Formal_Subtype_Declaration (which is now a subtype).
27476 (Analyze_Formal_Subprogram): Add handling for
27477 N_Formal_Abstract_Subprogram, marking the formal as abstract and
27478 dispatching, setting the controlling status of the formal parameters
27479 and result, and issuing an error if there is no controlling type for
27480 the formal subprogram.
27481 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
27482 which is an unclean use of that field, we set the new field
27483 Corresponding_Formal_Spec to make the formal subprogram available to
27484 processing in Analyze_Subprogram_Declaration.
27485 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
27486 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
27487 Constrained, so that it is is does not statically match its anonymous
27488 base type.
27489
27490 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
27491 abstract formal subprograms in error check for functions returning
27492 abstract types. Set scope of new designator for
27493 a parameterless subprogram, so that it is available when checking the
27494 body for nested subprograms, before full analysis of said body.
27495 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
27496 subprogram only if inner one comes from source.
27497 (Analyze_Function_Call): If the call is given in object notation, the
27498 analysis of the name rewrites the node and analyzes it with the proper
27499 argument list. After analyzing the name, if the call has been rewritten
27500 and the result type is set, no further analysis is needed.
27501 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
27502 mark in function specification, in a context where the formals are
27503 visible and hide outer homographs.
27504
27505 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
27506 as the tagged type for the cases of abstract formal subprograms and
27507 renamings of those. Clean up spec comments.
27508 (Check_Dispatching_Context): Add error message to indicate "abstract
27509 procedure", covering the case of a call to a formal abstract procedure
27510 that has statically tagged operands.
27511 (Check_Dispatching_Call): Check for the case of an actual given by
27512 a tag-indeterminate function call whose type is an ancestor of the
27513 containing call's associated tagged type. This situation can occur
27514 for inherited primitives with function defaults. In this case we
27515 use the tagged type's tag directly as the controlling argument for
27516 the calls.
27517 (Expand_Call): Name change on call to Expand_Dispatch_Call.
27518
27519 * sprint.adb (Sprint_Node_Actual): Split
27520 N_Formal_Subprogram_Declaration into two alternatives for the new
27521 cases N_Formal_Abstract_Subprogram_Declaration and
27522 N_Formal_Concrete_Subprogram_Declaration.
27523 Char_Literal_Value field is now a Uint.
27524
27525 * trans.c: Get rid of junk Uint2 reference.
27526 Char_Literal_Value field is now a Uint.
27527 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
27528 (gigi): Correct third arg to gimplify_body.
27529
27530 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
27531 (TYPE_LANG_FLAG_0): Check for record or union.
27532
27533 * treepr.adb: Char_Literal_Value field is now a Uint
27534
27535 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
27536 UI_From_CC.
27537
27538 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
27539 Add full UTF-32 support
27540 Char_Code is now 32 bits
27541
27542 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
27543 wide character UTF_32 line terminators.
27544 Initialize Main_Source_File to avoid error when no main
27545 source is loaded.
27546
27547 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
27548 (Main_Source_File) when no main source has been loaded, to avoid
27549 potential crash.
27550
27551 2005-02-09 Robert Dewar <dewar@adacore.com>
27552
27553 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
27554 Fix name of Set routine
27555
27556 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
27557 fixed packages.
27558
27559 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
27560 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
27561 fixed packages
27562
27563 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
27564 forms of Get_Line subprograms for AI-301.
27565
27566 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
27567 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
27568 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
27569 a-stwima.ads: Minor reformatting.
27570
27571 2005-02-09 Doug Rupp <rupp@adacore.com>
27572 Thomas Quinot <quinot@adacore.com>
27573
27574 * adaint.c, adaint.h
27575 [VMS] (to_ptr32): New function.
27576 (MAYBE_TO_PTR32): New macro.
27577 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
27578 for pointer size.
27579 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
27580 [VMS] (#define fork()): Remove since unneccessary.
27581 (__gnat_set_close_on_exec): New routine to support
27582 GNAT.OS_Lib.Set_Close_On_Exec.
27583
27584 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
27585 the parent side as close-on-exec so that they are not inherited by the
27586 child.
27587
27588 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
27589 set or clear the FD_CLOEXEC flag on a file descriptor.
27590
27591 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
27592 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27593
27594 PR ada/19386
27595 * decl.c:
27596 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
27597 on the field if Pragma Component_Alignment (Storage_Unit).
27598 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
27599 side-effects as if it were a constant; also make SAVE_EXPR to protect
27600 side-effects.
27601 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
27602 UNION_TYPE.
27603 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
27604 (components_to_record): Test it.
27605 Fix improper usage of REFERENCE_CLASS_P.
27606
27607 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
27608 RECORD_TYPE.
27609
27610 * utils2.c: Minor reformatting.
27611
27612 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
27613 handle other cases like RECORD_TYPE.
27614
27615 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
27616
27617 2005-02-09 Ed Schonberg <schonberg@adacore.com>
27618
27619 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
27620 component of an array of arrays in an assignment context, and the
27621 aggregate has component associations that require sliding on
27622 assignment, force reanalysis of the aggregate to generate a temporary
27623 before the assignment.
27624 (Must_Slide): Make global to the package, for use in Gen_Assign.
27625
27626 2005-02-09 Ed Schonberg <schonberg@adacore.com>
27627
27628 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
27629 unchecked union with no inferable discriminants, return a
27630 Raise_Program_Error node, rather than inserting it at the point the
27631 type is frozen.
27632 (Expand_Record_Equality, Component_Equality): Handle properly the case
27633 where some subcomponent is an unchecked union whose generated equality
27634 code raises program error.
27635
27636 2005-02-09 Doug Rupp <rupp@adacore.com>
27637
27638 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
27639 [VMS] (#define exit hack): Remove.
27640
27641 2005-02-09 Pascal Obry <obry@adacore.com>
27642 Arnaud Charlet <charlet@adacore.com>
27643
27644 * init.c (__gnat_initialize): Add a new parameter eh which contains the
27645 address of the exception registration. The Win32 version of this
27646 routine calls __gnat_install_SEH_handler() to initialize the SEH
27647 (Structured Exception Handling) handler.
27648 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
27649 SEH (Structured Exception Handling) now.
27650 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
27651 (__gnat_initialize for ppc-vxworks): Adjust comments and the
27652 preprocessor condition protecting the call to the extra eh setup
27653 subprogram, which is only available for the ppc target.
27654 (__gnat_clear_exception_count): replaced reference to
27655 variable taskIdCurrent by call to taskIdSelf(), cleaner.
27656
27657 * seh_init.c: New file.
27658
27659 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
27660 (GNATBIND_OBJS): Idem.
27661
27662 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
27663 routine takes a new parameter (a pointer to the exception registration
27664 for the SEH (Structured Exception Handling) support.
27665
27666 * raise.h: (__gnat_install_SEH_handler): New prototype.
27667 Update copyright notice.
27668
27669 * s-tassta.adb (Task_Wrapper): Declare the exception registration
27670 record and initialize it by calling __gnat_install_SEH_handler.
27671
27672 2005-02-09 Vincent Celier <celier@adacore.com>
27673
27674 * make.adb (Gnatmake): Do not fail when the main project has no object
27675 directory.
27676
27677 2005-02-09 Doug Rupp <rupp@adacore.com>
27678
27679 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
27680 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
27681 [VMS]: Add translations for g-enblsp.adb.
27682
27683 * s-asthan-vms.adb: Removed.
27684 * s-asthan-vms-alpha.adb: Added.
27685
27686 2005-02-09 Pascal Obry <obry@adacore.com>
27687
27688 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
27689 (LIBGNAT_OBJS): Add seh_init.o.
27690
27691 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27692
27693 PR ada/16592
27694 * Makefile.in: Link all gnat tools with -static-libgcc, since
27695 -shared-libgcc is now used by default on some systems (e.g. linux with
27696 recent binutils).
27697 Remove references to Makefile.prolog/generic, no longer used.
27698
27699 2005-02-09 Vincent Celier <celier@adacore.com>
27700
27701 * prj-makr.adb (Process_Directory): Put file name in canonical case
27702 before matching against the patterns.
27703 If gnatname has been invoked as <prefix>-gnatname
27704 then invoke the compiler as <prefix>-gcc, not just "gcc".
27705
27706 2005-02-09 Ed Schonberg <schonberg@adacore.com>
27707
27708 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
27709 with expansion disabled. The actual subtype is needed among other
27710 places when the selected component appears in the context of a loop
27711 bound, and denotes a packed array.
27712 (Operator_Check): Always use the first subtype in the
27713 error message, to avoid the appearance of internal base types.
27714 (Transform_Object_Operation): Copy each actual in full
27715 to the parameter associations of the constructed call, rather than
27716 using the shallow copy mechanism of New_Copy_List. This ensures that
27717 the chaining of named associations is done properly.
27718 (Complete_Object_Operation): Rewrite node, rather than
27719 replacing it, so that we can trace back to the original selected
27720 component.
27721
27722 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
27723 and calls that use object notation, if the called function is not
27724 declared in a withed unit, place the elaboration constraint on the
27725 unit in the context that makes the function accessible.
27726 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
27727 imposes an elaboration constraint between two packages.
27728
27729 2005-02-09 Ed Schonberg <schonberg@adacore.com>
27730
27731 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
27732 views of a private type after handling its private dependents, to
27733 maintain proper stack discipline between entry and exit from the
27734 package.
27735
27736 2005-02-09 Cyrille Comar <comar@adacore.com>
27737
27738 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
27739 Minor reformatting.
27740
27741 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27742
27743 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
27744 fields for foreign threads.
27745
27746 2005-02-09 Doug Rupp <rupp@adacore.com>
27747
27748 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
27749 recursion warnings when compiled with -gnatdm.
27750
27751 2005-02-09 Robert Dewar <dewar@adacore.com>
27752
27753 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
27754 Slight fix to documentation of -gnaty with no parameters
27755
27756 * xr_tabls.ads: Add ??? comment for missing overall comment
27757
27758 * xsinfo.adb: Make default file name be sinfo.h, since this is what
27759 we now use by default.
27760
27761 * xsnames.adb: Adjust end of file test to look for five space followed
27762 by '#' instead of six spaces. The format of xsnames.adb was modified
27763 in the last update.
27764
27765 * a-numeri.ads: Add reference to AI-388 for greek letter pi
27766 identifier.
27767
27768 * clean.adb: Minor reformatting.
27769
27770 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
27771 gnatname.adb: Minor reformatting
27772 Add 2005 to copyright output when utility is run
27773
27774 * csets.adb: Eliminate obsolete comment
27775
27776 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
27777 Update comments.
27778
27779 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
27780
27781 2005-02-09 Sergey Rybin <rybin@adacore.com>
27782
27783 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
27784 the difference between compact and incompact layout and add the record
27785 representation clause to the example illustrating different layouts.
27786 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
27787 component clauses").
27788
27789 2005-02-09 Florian Villoing <villoing@adacore.com>
27790
27791 * gnat_ugn.texi: Fix typos.
27792 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
27793 @file.
27794 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
27795 in the generated documentation.
27796
27797 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27798
27799 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
27800 longer supported.
27801 Update linker wrapper when linking with non GNU C++.
27802
27803 2005-02-09 Pascal Obry <obry@adacore.com>
27804
27805 * gnat_ugn.texi:
27806 Document the procedure to debug the DllMain routine on Windows.
27807 Add note about -funwind-tables and mixed Ada and C/C++ programming in
27808 ZCX mode.
27809 Document new BIND qualifer /RETURN_CODES=VMS.
27810
27811 2005-02-09 Ben Brosgol <brosgol@adacore.com>
27812
27813 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
27814 Edited gnatmetric chapter
27815
27816 2005-02-09 Robert Dewar <dewar@adacore.com>
27817
27818 * gnat_rm.texi:
27819 Changes to document new wide wide character support
27820 For AI-285
27821 Update documentation on Normalize_Scalars and Initialize_Scalars
27822
27823 2005-02-09 Pascal Obry <obry@adacore.com>
27824
27825 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
27826
27827 2005-02-09 Jose Ruiz <ruiz@adacore.com>
27828
27829 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
27830 from the VxWorks kernel) that is needed for getting the active
27831 priority of the different tasks.
27832
27833 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
27834 Use a pragma Elaborate_Body in the spec file instead.
27835 Noticed by code reading.
27836
27837 2005-02-09 Thomas Quinot <quinot@adacore.com>
27838
27839 * exp_util.ads: Minor correction in comment.
27840
27841 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27842
27843 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
27844 since this procedure is now too complex to be worth inlining.
27845
27846 2005-02-09 Richard Henderson <rth@redhat.com>
27847
27848 * utils.c (gnat_define_builtin): Remove.
27849 (gnat_install_builtins): Use build_common_builtin_nodes.
27850
27851 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27852
27853 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
27854 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
27855 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
27856 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
27857 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
27858 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
27859 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
27860 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
27861 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
27862 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
27863 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
27864 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
27865 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
27866 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
27867 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
27868 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
27869 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
27870 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
27871 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
27872 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
27873 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
27874 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
27875 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
27876 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
27877 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
27878 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
27879 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27880 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
27881 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
27882 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
27883 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27884 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
27885 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
27886 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
27887 library.
27888
27889 2005-01-27 Laurent Guerby <laurent@guerby.net>
27890
27891 * Makefile.in: Fix a-intnam.ads from previous commit,
27892 add 2005 to copyright.
27893 * a-intman-rtems.ads: Renamed to...
27894 * a-intnam-rtems.ads:
27895
27896 2005-01-27 Laurent Guerby <laurent@guerby.net>
27897
27898 * Makefile.in: Rename GNAT RTEMS specific files.
27899 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
27900 5rosinte.ads, 5rparame.adb: Replaced by files below.
27901 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
27902 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
27903
27904 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
27905 Laurent Guerby <laurent@guerby.net>
27906
27907 PR ada/19488
27908 * 5rosinte.ads: Add No_Key constant.
27909 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
27910 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
27911
27912 2005-01-26 Laurent Guerby <laurent@guerby.net>
27913
27914 PR ada/19414
27915 * i-cobol.adb (Valid_Numeric): Handle zero length case.
27916
27917 2005-01-20 Richard Henderson <rth@redhat.com>
27918
27919 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
27920 a-intnam-linux.ads and system-linux-alpha.ads.
27921 * a-intnam-linux-alpha.ads: Remove file.
27922 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
27923 * system-linux-alpha.ads: New file.
27924
27925 2005-01-18 Jakub Jelinek <jakub@redhat.com>
27926
27927 PR ada/13470
27928 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
27929 set to the new string.
27930
27931 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
27932
27933 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
27934 to True.
27935
27936 2005-01-18 Richard Henderson <rth@redhat.com>
27937
27938 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
27939 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
27940 for alpha-linux.
27941 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27942
27943 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
27944
27945 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27946 (GCC_ZCX_Support): Likewise.
27947
27948 2005-01-11 Bastian Blank <waldi@debian.org>
27949
27950 * system-linux-s390.ads: Define Preallocated_Stacks.
27951 * system-linux-s390x.ads: Likewise.
27952
27953 2005-01-04 Arnaud Charlet <charlet@adacore.com>
27954
27955 * gnat_ugn.texi: Fix texi errors with null variables.
27956
27957 2005-01-03 Thomas Quinot <quinot@adacore.com>
27958
27959 * gen-soccon.c: New utility program to generate g-soccon.ads
27960 automatically.
27961
27962 * socket.c, gsocket.h: Split inclusion of system header files into a
27963 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27964
27965 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27966 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27967 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27968 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27969 should not be edited by hand anymore, but should be regenerated using
27970 gen-soccon.
27971
27972 2005-01-03 Robert Dewar <dewar@adacore.com>
27973 Ed Schonberg <schonberg@adacore.com>
27974 Vincent Celier <celier@adacore.com>
27975
27976 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27977 on/off, since this is an obsolescent feature, for which we now generate
27978 a warning.
27979
27980 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27981 warning mode is set and obsolescent usage of this attribute occurs.
27982 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27983 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27984 predates, and partly motivates, the adoption of the AI.
27985 Implement new Ada 2005 attribute Mod
27986
27987 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27988 attribute Mod.
27989
27990 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27991
27992 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27993 pragma restrictions.
27994 New entry for Ada 2005 attribute Mod.
27995
27996 * par-prag.adb:
27997 Add recognition of new pragma Restrictions No_Dependence
27998 Recognize restriction No_Obsolescent_Features at parse time
27999
28000 * bcheck.adb: Add circuitry for checking for consistency of
28001 No_Dependence restrictions.
28002
28003 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28004 restrictions.
28005
28006 * restrict.ads, restrict.adb: Add subprograms to deal with
28007 No_Dependence restrictions.
28008
28009 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28010 restrictions.
28011
28012 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28013 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28014
28015 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28016 dummy parameter to scng instantiation.
28017 Needed for new restriction No_Obsolescent_Features
28018
28019 * scn.adb: (Obsolescent_Check): New procedure
28020 Needed for new restriction No_Obsolescent_Features
28021
28022 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28023 specified by AI-285, needed for implementation of AI-388 (adding greek
28024 pi to Ada.Numerics).
28025 Add new generic formal to scng, needed for new restriction
28026 No_Obsolescent_Features.
28027
28028 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28029
28030 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28031 restrictions lines.
28032 (Scan_ALI): When finding an unexpected character on an R line, raise
28033 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28034 Ignore_Errors is True, default restrictions are set and scanning of the
28035 ALI file continues with the next line. Also, when Bad_R_Line is raised
28036 and Ignore_Errors is True, skip to the end of le line.
28037
28038 * sem_ch10.adb: Check that explicit with's do not violate
28039 No_Dependence restrictions.
28040 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28041 illegal context clauses containing child units of instance.
28042
28043 * sem_prag.adb: Processing and checking for new No_Dependence
28044 restrictions.
28045 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28046 analyze and check the External argument.
28047
28048 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28049
28050 2005-01-03 Robert Dewar <dewar@adacore.com>
28051
28052 * atree.adb: Add a fifth component to entities
28053 This allows us to add 32 flags and four new fields
28054
28055 * atree.ads: Add a fifth component to entities
28056 This allows us to add 32 flags and four new fields
28057
28058 * einfo.ads, einfo.adb: Document new fields and new flags now available
28059 Add routines for printing new fields
28060
28061 * treepr.adb: Call routines to print out additional fields if present
28062
28063 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28064
28065 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28066 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28067
28068 * Makefile.in: Add support to build shared Ada libraries on solaris x86
28069 Remove gpr2make, replaced by gprmake.
28070 Remove references to gnatmem and libaddr2line.
28071 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28072 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28073 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28074 a-numaux-darwin.ads and a-numaux-darwin.adb
28075 Enable mlib-tgt-lynxos.adb on lynxos.
28076
28077 * Make-lang.in: Remove rules for gpr2make.
28078 When generating sdefault.adb, do not call Relocate_Path
28079 on S3 for function Target_Name, as it is not a path.
28080 Remove references to gnatmem and libaddr2line.
28081
28082 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28083 files.
28084
28085 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
28086
28087 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28088 address is incompatible with its base type alignment constraints when
28089 this can be decided statically.
28090
28091 2005-01-03 Olivier Hainque <hainque@adacore.com>
28092
28093 * decl.c (compatible_signatures_p): New function. The intended purpose
28094 is to check if two function signatures for a call-site and a callee are
28095 compatible enough for the call to be valid. The underlying purpose is
28096 to check if a call to a mapped builtin is using the right interface.
28097 The current code actually does not check antyhing - this a placeholder
28098 for future refinements.
28099 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28100 builtin calls for convention Intrinsic.
28101
28102 * gigi.h (builtin_decl_for): Declare (new function).
28103
28104 * utils.c (gnat_install_builtins): Install the target specific builtins.
28105 (builtin_decl_for): New function, provide a dummy body for now.
28106
28107 2005-01-03 Geert Bosch <bosch@adacore.com>
28108
28109 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28110 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28111 (Pred): Implement in terms of Succ.
28112
28113 * trans.c (convert_with_check): Reimplement conversion of float to
28114 integer.
28115
28116 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28117 Vincent Celier <celier@adacore.com>
28118
28119 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28120 bounds can be negative, and must be declared Int, not Nat.
28121
28122 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28123 array is checked after using the index in the array.
28124
28125 * makegpr.adb (Add_Switches): Check if there is a package for the
28126 processor. If there is no package, do not look for switches.
28127
28128 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28129
28130 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28131 generation of predefined stream operations (specs and bodies) should
28132 proceed. Under various restrictions these subprograms must not be
28133 generated.
28134
28135 2005-01-03 Thomas Quinot <quinot@adacore.com>
28136
28137 * exp_dist.adb:
28138 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28139 amount of PCS-specific code in RACW stubs generation.
28140 (Copy_Specification): Set Etype on copied formal parameter entities, as
28141 this information is needed for PolyORB stubs generation.
28142 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28143 variable Dynamic_Async.
28144 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28145 (Build_RPC_Receiver_Specification): Make generic again, as recent
28146 changes have allowed RPC receivers to have the same profile for both
28147 variants of the PCS.
28148 Reorganise RPC receiver generation to reduce differences between the
28149 structure of GARLIC and PolyORB RPC receivers.
28150 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28151 PCS-specific.
28152 Simplify elaboration code for RCI packages.
28153
28154 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28155 generation to reduce differences between the structure of GARLIC and
28156 PolyORB RPC receivers.
28157
28158 * s-stratt.adb: Fix typo in comment.
28159
28160 2005-01-03 Thomas Quinot <quinot@adacore.com>
28161
28162 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28163 copied from Make_Init_Call).
28164
28165 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28166 reads and assignments on a temporary variable declared with appropriate
28167 discriminants.
28168
28169 2005-01-03 Robert Dewar <dewar@adacore.com>
28170
28171 * i-c.adb (To_C): Raise CE if string is null and Append_Null
28172
28173 2005-01-03 Robert Dewar <dewar@adacore.com>
28174
28175 * i-cstrin.adb (Update): Do not append a null in form called with a
28176 String. This avoids unintended behavior.
28177
28178 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28179
28180 PR ada/17527
28181 * init.c: Fix warnings on Free BSD section.
28182
28183 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28184
28185 PR ada/16949
28186 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28187 xsinfo.adb).
28188
28189 2005-01-03 Vincent Celier <celier@adacore.com>
28190
28191 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28192 libraries when Unique_Compile is True (-u switch).
28193 (Gnatmake): ditto.
28194
28195 2005-01-03 Robert Dewar <dewar@adacore.com>
28196
28197 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28198 upper case letter or underscore after W, as allowed by spec.
28199
28200 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28201
28202 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28203 darwin port by using proper type definitions from header files.
28204 Use SIGTERM instead of SIGABRT for SIGADAABORT.
28205
28206 2005-01-03 Robert Dewar <dewar@adacore.com>
28207
28208 * par.adb: Enhance error message handling for configuration file
28209 pragmas.
28210
28211 2005-01-03 Robert Dewar <dewar@adacore.com>
28212
28213 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28214 removed during the previous update (test properly for case of dividing
28215 largest negative number by -1, which generates overflow).
28216
28217 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28218 Sergey Rybin <rybin@adacore.com>
28219
28220 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28221 to use as the defining identifier for a formal package.
28222 (Remove_Parent): If the instance takes place within (an instance of)
28223 a sibling, preserve private declarations of common parent.
28224
28225 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28226
28227 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28228 to determine whether one of the operands is a fixed-point type for
28229 which a user-defined multiplication or division operation might be
28230 defined.
28231
28232 * sem_res.adb (Valid_Conversion): The legality rules for conversions
28233 of access types are symmetric in Ada 2005: either designated type can
28234 be unconstrained.
28235
28236 2005-01-03 Vincent Celier <celier@adacore.com>
28237
28238 * s-fileio.adb (Temp_File_Record): Change length of string component
28239 Name from L_tmpnam + 1 to max_path_len + 1.
28240
28241 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28242
28243 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28244 Self_Id.Deferral_Level = 0.
28245 (Do_Pending_Action): Move this function to the spec.
28246
28247 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28248 Do_Pending_Action explicitely when needed, in case we're using
28249 No_Abort restrictions.
28250
28251 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28252 deferral level since it will not get changed by the generated code.
28253 Keeping a default value of 1 would prevent some operations (e.g.
28254 select or delay) to proceed successfully.
28255
28256 2005-01-03 Ben Brosgol <brosgol@adacore.com>
28257 Robert Dewar <dewar@adacore.com>
28258 Cyrille Comar <comar@adacore.com>
28259
28260 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28261 porting guide chapter (vms version).
28262 Revised doc title (removed "for native platforms") and subtitle.
28263 Add discussion on warning flag for obsolescent features. First we
28264 note that it applies to obsolete GNAT features, which was previously
28265 omitted. Second we contrast the behavior with that of the new
28266 Ada 2005 AI-368 restriction No_Obsolescent_Features.
28267 Preliminary rewriting of GNAT & libraries chapter in order to take
28268 into account default project locations & new project manager
28269 capabilities.
28270
28271 2005-01-03 Robert Dewar <dewar@adacore.com>
28272
28273 * cstand.adb (Create_Operators): Clean up format and documentation of
28274 unary and binary operator result tables. No change in code, just
28275 reformatting and addition of comments.
28276
28277 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28278 sem_ch2.adb: Minor reformatting
28279
28280 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28281 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28282 comments for Tree_Read and Tree_Write.
28283
28284 2005-01-03 Pascal Obry <obry@adacore.com>
28285
28286 * exp_attr.ads: Minor reformatting.
28287
28288 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
28289
28290 * comperr.adb (Compiler_Abort): Add specialized message for GAP
28291 versions.
28292
28293 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28294
28295 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
28296 whether the ancestor type is private, as may be the case with nested
28297 instantiations.
28298
28299 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
28300
28301 PR ada/19128
28302 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
28303
28304 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
28305
28306 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
28307 * utils2.c (build_unary_op): Likewise.
28308
28309 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28310
28311 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
28312
28313 2004-12-19 Richard Henderson <rth@redhat.com>
28314
28315 * trans.c (gigi): Update gimplify_body call.
28316
28317 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
28318
28319 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
28320
28321 2004-12-07 Ed Falis <falis@adacore.com>
28322
28323 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
28324 current task being suspended.
28325
28326 * init.c (__gnat_clear_exception): added to reset VxWorks exception
28327 count.
28328 (__gnat_map_signal): removed test for current task being suspended.
28329
28330 2004-12-07 Gary Dismukes <dismukes@adacore.com>
28331
28332 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
28333 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
28334 targets (such as AAMP).
28335
28336 2004-12-07 Ed Schonberg <schonberg@adacore.com>
28337
28338 * atree.adb (Visit_Itype): Create a new name for the generated itype,
28339 because the back-end may otherwise treat it as a redefinition of the
28340 old symbol.
28341
28342 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
28343
28344 * back_end.adb (Scan_Back_End_Switches): Accept --param.
28345
28346 * lang-specs.h: Accept --param.
28347
28348 2004-12-07 Vincent Celier <celier@adacore.com>
28349
28350 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
28351 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
28352 Current_Body_Suffix => Ada_Body_Suffix).
28353 Take into account Externally_Built attribute.
28354
28355 * clean.adb (In_Extension_Chain): Always return False when one of the
28356 parameter is No_Project.
28357 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
28358 Ada_Language_Index).
28359 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
28360 Process_Languages for procedure Parse).
28361
28362 * gnatcmd.adb (Carg_Switches): New table.
28363 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
28364 Adapt to name changes in package Prj (Current_Spec_Suffix =>
28365 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
28366
28367 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
28368 Header_Num and function Hash are now declared in package Prj,
28369 not Prj.Com.
28370
28371 * prj.adb (Suffix_Of): New function.
28372 (Set (Suffix)): New procedure.
28373 (Hash): One function moved from Prj.Com
28374 (Is_Present, Language_Processing_Data_Of): New functions
28375 (Set): Two new procedures
28376 (Add_Language_Name, Display_Language_Name): New procedures
28377
28378 * prj.ads: (Suffix_Of): New function
28379 (Set (Suffix)): New procedure
28380 Add several types and tables for multi-language support.
28381 (Header_Num): Type moved from Prj.Com
28382 (Hash): Two functions moved from Prj.Com
28383 (Is_Present, Language_Processing_Data_Of): New functions
28384 (Set): Two new procedures
28385 (Add_Language_Name, Display_Language_Name): New procedures
28386 (Naming): Component name changes:
28387 Current_Spec_Suffix => Ada_Spec_Suffix,
28388 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
28389 Impl_Suffixes, Supp_Suffixes.
28390 (Project_Data): New components: Externally_Built, Supp_Languages,
28391 First_Language_Processing, Supp_Language_Processing, Default_Linker,
28392 Default_Linker_Path.
28393
28394 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
28395 new package Language_Processing with its attributes (Compiler_Driver,
28396 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
28397 Binder_Driver, Default_Linker).
28398
28399 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
28400 (Header_Num): Type moved to package Prj
28401
28402 * prj-env.adb: Adapt to name changes in package Prj
28403 (Current_Spec_Suffix => Ada_Spec_Suffix,
28404 Current_Body_Suffix => Ada_Body_Suffix).
28405
28406 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
28407 default to the project path, except the "-" is one of the directories
28408 in env var ADA_PROJECT_PATH.
28409 (Current_Project_Path): Global variable, replacing Project_Path
28410 that was in the body of Prj.Part.
28411 (Project_Path): New function
28412 (Set_Project_Path): New procedure
28413 Initialize Current_Project_Path during elaboration of the package
28414 Remove dependency on Prj.Com, no longer needed
28415
28416 * prj-ext.ads (Project_Path): New function
28417 (Set_Project_Path): New procedure
28418
28419 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
28420 suffix is defined for language <lang>.
28421 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
28422 accessing directly the components of Naming.
28423 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
28424 Reorganise of this package.
28425 Break procedure Check in several procedures.
28426
28427 * prj-nmsc.ads: Replace all procedures (Ada_Check,
28428 Other_Languages_Check and Language_Independent_Check) with a single
28429 procedure Check.
28430
28431 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
28432 Process_Languages, no longer needed.
28433
28434 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
28435 Current_Project_Path.
28436 Remove elaboration code, moved to the body of Prj.Ext
28437 Use new function Prj.Ext.Project_Path instead of old variable
28438 Project_Path.
28439 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
28440 When comparing with project paths on the stack, first put the resolved
28441 path in canonical case.
28442 (Parse_Single_Project): Set the path name of the project file in the
28443 tree to the normalized path.
28444
28445 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
28446 parameter Process_Languages, no longer needed.
28447 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
28448 Other_Languages_Check.
28449
28450 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
28451 to store the resolved canonical path of the project file.
28452 Remove dependency to Prj.Com, no longer needed
28453
28454 * prj-util.adb: Adapt to name changes in package Prj
28455 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
28456 Ada_Body_Suffix).
28457
28458 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
28459 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
28460 Externally_Built, Include_Option, Language_Processing.
28461
28462 * makegpr.adb: Numerous changes due to changes in packages
28463 Prj and Prj.Nmsc.
28464
28465 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
28466 default to the project path, except whe "-" is one of the directories
28467 in env var ADA_PROJECT_PATH.
28468 (Gnatls): In verbose mode, add the new section "Project Search Path:"
28469
28470 2004-12-07 Robert Dewar <dewar@adacore.com>
28471
28472 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
28473
28474 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
28475 set -gnatR3m mode.
28476
28477 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
28478 flag. No longer needed now that we handle this in gnat1drv.adb.
28479
28480 * repinfo.ads: Minor reformatting
28481
28482 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28483 Olivier Hainque <hainque@adacore.com>
28484 Eric Botcazou <ebotcazou@adacore.com>
28485
28486 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
28487 TYPE_SIZE_UNIT of result type if SIZE is not specified.
28488 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
28489 of a bitfield, which we know is useless and causes trouble because of
28490 alignment implications.
28491
28492 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
28493 BSS sections.
28494 (process_attributes): Clear DECL_COMMON again when a section attribute
28495 is present.
28496 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
28497 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
28498 (create_field_decl): Special case ADDRESSABLE negative to mean
28499 "no bitfield creation", to be used by make_aligning_type. Don't
28500 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
28501 fields claimed addressable still have to be bitfields. Use
28502 value_factor_p instead of a raw binop construction to check for the
28503 position's alignment.
28504
28505 2004-12-07 Geert Bosch <bosch@adacore.com>
28506
28507 * eval_fat.adb: Revert previous change.
28508
28509 2004-12-07 Thomas Quinot <quinot@adacore.com>
28510 Ed Schonberg <schonberg@adacore.com>
28511
28512 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
28513 with an implicit dereference as its prefix, use
28514 Insert_Explicit_Dereference instead of merely rewriting the prefix into
28515 an explicit dereference. This ensures that a reference to the original
28516 prefix is generated, if appropriate.
28517
28518 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
28519 dereference is rewritten to an explicit one, generate a reference to
28520 the entity denoted by its prefix using the original prefix node, so
28521 the dereference can be properly recorded as a read of the denoted
28522 access value, if appropriate.
28523
28524 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
28525 emitting 'assigned but never read' warning on a variable on the basis
28526 that it has an access type.
28527 (Check_References): Emit unreferenced warning when the scope is a
28528 subprogram body.
28529
28530 2004-12-07 Robert Dewar <dewar@adacore.com>
28531 Ed Schonberg <schonberg@adacore.com>
28532
28533 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
28534 intrinsic
28535
28536 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
28537 leaving call unchanged.
28538 This deals with the case where the pragma Import specified
28539 an external name, to be handled by the back end.
28540
28541 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
28542 subprogram which is Imported with convention Intrinsic if an
28543 External_Name argument is specified.
28544 (Process_Import_Or_Interface): Properly diagnose link name argument.
28545 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
28546 with Sem_Ch6.Cannot_Inline.
28547 (Process_Inline): Provide separate warning for inapplicable inline
28548 pragma.
28549 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
28550 treatment is uniform on different targets.
28551
28552 2004-12-07 Ed Schonberg <schonberg@adacore.com>
28553
28554 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
28555 construct is rewritten, preserve end label to permit source navigation.
28556
28557 2004-12-07 Thomas Quinot <quinot@adacore.com>
28558
28559 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
28560 Specific_Build_Stub_Target): New subprograms.
28561 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
28562 the PCS implementation used, using the above PCS-customized subprograms.
28563 Minor reformatting.
28564 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
28565 for generation of DSA code targeted to the PolyORB PCS.
28566 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
28567 implementation of the partition communication subsystem in ancillary
28568 subprograms.
28569 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
28570 PolyORB_Support.Build_Stub_Type): New subrograms containing the
28571 PCS-specific part of Add_Stub_Type.
28572 (Insert_Partition_Check): Use runtime library function to perform
28573 E.4(19) check.
28574
28575 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
28576 (RE_Same_Partition): New entity, from s-parint.
28577
28578 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
28579
28580 2004-12-07 Gary Dismukes <dismukes@adacore.com>
28581
28582 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
28583 Output the copyright message on a separate line from the version
28584 message.
28585
28586 2004-12-07 Joel Brobecker <brobecker@adacore.com>
28587
28588 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
28589 compile-time warning.
28590
28591 2004-12-07 Robert Dewar <dewar@adacore.com>
28592
28593 * g-regpat.adb: (Match): Change a misuse of or to or else
28594
28595 2004-12-07 Ed Schonberg <schonberg@adacore.com>
28596
28597 * lib-xref.adb:
28598 (Generate_Reference): Handle properly a reference to an entry formal,
28599 when an accept statement has a pragma Unreferenced for it.
28600
28601 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
28602 and the Has_Pragma_Unreferenced flag for each formal before analyzing
28603 the body, to ensure that warnings are properly emitted for each accept
28604 statement of a given task entry.
28605
28606 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
28607
28608 * Makefile.in: Add support for foreign threads on VMS.
28609
28610 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28611
28612 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
28613 Remove.
28614 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
28615
28616 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
28617
28618 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
28619 exception.
28620 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
28621
28622 2004-12-07 Robert Dewar <dewar@adacore.com>
28623
28624 * nlists.adb (Prepend_Debug): Remove parameters and nest within
28625 Prepend.
28626 (Remove_Next_Debug): Same fix
28627
28628 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
28629 maintain back pointers now, though we did not used to, and comments
28630 were out of date).
28631 (Prepend): Remove pragma Inline.
28632 (Remove_Next): Same cleanup
28633
28634 2004-12-07 Thomas Quinot <quinot@adacore.com>
28635
28636 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
28637 used to record an implicit dereference as a read operation on its
28638 prefix when operating under -gnatc. Necessary to avoid spurious
28639 'variable assigned but never read' warnings in that mode.
28640 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
28641 is a non-overloaded implicit dereference, call the above subprogram to
28642 ensure proper recording of references.
28643
28644 2004-12-07 Gary Dismukes <dismukes@adacore.com>
28645
28646 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
28647 to be resolved later as part of Analyze_Iteration_Scheme's call to
28648 Make_Index.
28649
28650 2004-12-07 Ed Schonberg <schonberg@adacore.com>
28651
28652 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
28653 prefix is not a scalar type, place error message on prefix, not on
28654 type entity.
28655
28656 2004-12-07 Bernard Banner <banner@adacore.com>
28657
28658 * vxaddr2line.adb: Add support for x86 vxworks
28659
28660 2004-12-07 Thomas Quinot <quinot@adacore.com>
28661
28662 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
28663 documentation of the behaviour of these functions when passed an IP
28664 address that has no record in the system hosts database and no reverse
28665 record in the DNS.
28666
28667 * cstand.adb, a-tags.ads: Fix typos in comment.
28668
28669 2004-12-07 Robert Dewar <dewar@adacore.com>
28670
28671 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
28672 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
28673 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
28674 s-poosiz.ads: Minor reformatting
28675
28676 * make.adb: Minor reformatting
28677 Add some ??? comments asking for more comments
28678
28679 * s-poosiz.adb: Minor reformatting
28680 Add comments on alignment requirement
28681
28682 * sinfo.ads: Remove obsolete comment and fix typo.
28683
28684 2004-12-07 Vincent Celier <celier@adacore.com>
28685 Sergey Rybin <rybin@adacore.com>
28686
28687 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
28688 Files" with the new tool and package names.
28689 Reformatting to suppress most of the warnings for line too long
28690 Document the new section "Project Search Path:" in the output of
28691 gnatls -v.
28692 Add gnatmetric section
28693
28694 2004-12-07 Vincent Celier <celier@adacore.com>
28695
28696 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
28697 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
28698 and -eit to -ept. Added qualifier
28699 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
28700
28701 2004-11-27 Andreas Schwab <schwab@suse.de>
28702
28703 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
28704
28705 2004-11-25 Arnaud Charlet <charlet@adacore.com>
28706
28707 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
28708 internal implementation unit GNAT.Sockets.Thin,
28709 as their usage for sockets is non-portable (using the read and write
28710 functions from the system runtime library is fine on UNIX but won't
28711 work under Windows).
28712
28713 * mingw32.h: Update copyright notice.
28714
28715 2004-11-25 Arnaud Charlet <charlet@adacore.com>
28716
28717 * ada-tree.h: Minor reformatting of previous change to avoid lines
28718 longer than 79 characters.
28719
28720 2004-11-25 Olivier Hainque <hainque@adacore.com>
28721
28722 * tb-gcc.c: GCC infrastructure based implementation of
28723 __gnat_backtrace.
28724
28725 2004-11-24 Steven Bosscher <stevenb@suse.de>
28726
28727 * misc.c (gnat_post_options): Don't clear
28728 flag_inline_functions.
28729
28730 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
28731
28732 PR ada/17986
28733 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
28734 tree.
28735
28736 2004-11-21 Andreas Jaeger <aj@suse.de>
28737
28738 * stylesw.adb: Change Style_Check_Subprogram_Order to
28739 Style_Check_Order_Subprograms.
28740
28741 2004-11-18 Arnaud Charlet <charlet@adacore.com>
28742
28743 * adaint.h, adaint.c
28744 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
28745 to avoid warnings.
28746 Add also a cast to kill another warning.
28747 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
28748 parameter with the priority class of the parent process instead of
28749 always using the NORMAL_PRIORITY_CLASS.
28750 (__gnat_dup): New function.
28751 (__gnat_dup2): New function.
28752 (__gnat_is_symbolic_link): Enable the effective body of this
28753 function when __APPLE__ is defined.
28754
28755 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
28756 Update comments.
28757
28758 2004-11-18 Olivier Hainque <hainque@adacore.com>
28759
28760 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
28761 address of which may be used to represent "others" and "all others"
28762 choices in exception tables, instead of the current harcoded
28763 (void *)0 and (void *)1.
28764 (Setup_Exception): Do nothing in the GNAT SJLJ case.
28765
28766 * gigi.h (others_decl, all_others_decl): New decls representing the
28767 new Others_Value and All_Others_Value objects.
28768 (struct attrib): Rename "arg" component as "args", since GCC expects a
28769 list of arguments in there.
28770
28771 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
28772 corresponding objects exported by a-exexpr, instead of hardcoded dummy
28773 addresses.
28774
28775 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
28776 others_decl and all_others_decl instead of hardcoded dummy addresses
28777 to represent "others" and "all others" choices, which is cleaner and
28778 more flexible with respect to the possible eh pointer encoding policies.
28779
28780 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
28781 (process_attributes): Account for the naming change of the "args"
28782 attribute list entry component.
28783
28784 * decl.c (build_attr_list): Rename into prepend_attributes to allow
28785 cumulating attributes for different entities into a single list.
28786 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
28787 attributes for the current entity and propagate first subtype
28788 attributes to other subtypes.
28789 <E_Procedure>: Attribute arguments are attr->args and not
28790 attr->arg any more.
28791 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
28792 argument provided, as this is what GCC expects. Use NULL_TREE instead
28793 of 0 for trees.
28794
28795 2004-11-18 Robert Dewar <dewar@adacore.com>
28796
28797 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
28798 Minor reformatting througout (including new function specs)
28799 Add ??? comments asking for clarification.
28800
28801 2004-11-18 Thomas Quinot <quinot@adacore.com>
28802
28803 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
28804 incomplete duplicate implementation of this subprogram from butil.
28805
28806 2004-11-18 Thomas Quinot <quinot@adacore.com>
28807
28808 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
28809 procedures factors the common processing for building an RPC receiver
28810 for an RCI package or an RACW type.
28811 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
28812 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
28813 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
28814 in use.
28815 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
28816 Add_RACW_Features.
28817 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
28818 Add_RAST_Features.
28819 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
28820 distribution subprogram identifiers that are either subprogram numbers
28821 or strings.
28822 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
28823 string distribution identifiers assigned to a given subprogram.
28824 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
28825 (Add_RAS_Dereference_TSS): Add comments.
28826 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
28827 is not referenced yet because it will be used by the PolyORB DSA
28828 implementation.
28829 (Insert_Partition_Check): Remove fossile code.
28830 (First_RCI_Subprogram_Id): Document this constant.
28831 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
28832 RAS_Access TSS.
28833 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
28834 replaced with calls to Get_Library_Unit_Name_String. Previously there
28835 were several instances of the same code in different locations in the
28836 compiler; this checkin completes the replacement of all of these
28837 instances with calls to a common subprogram.
28838 Minor reformatting.
28839
28840 * sem_dist.adb: Remove comment noting that RPC receiver generation
28841 should be disabled for RACWs that implement RASs.
28842 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
28843
28844 * sem_util.ads, sem_util.adb (Has_Stream): New function
28845 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
28846 qualified name of a library unit into the name buffer.
28847 (Note_Possible_Modification): Generate a reference only
28848 if the context comes from source.
28849
28850 * snames.ads (PCS_Names): New subtype corresponding to names of
28851 supported implementations of the Partition Communication Subsystem
28852 (PCS) (i.e. the runtime library support modules for the distributed
28853 systems annex).
28854
28855 2004-11-18 Robert Dewar <dewar@adacore.com>
28856 Ed Schonberg <schonberg@adacore.com>
28857
28858 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
28859 (Has_Rep_Pragma): New function
28860 (Has_Attribute_Definition_Clause): New function
28861 (Record_Rep_Pragma): Moved here from sem_ch13.adb
28862 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
28863
28864 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
28865
28866 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
28867 (Expand_Pragma_Psect_Object): New procedure
28868 These procedures contain the revised and cleaned up processing for
28869 these two pragmas. This processing was formerly in Sem_Prag, but
28870 is more appropriately moved here. The cleanup involves making sure
28871 that the pragmas are properly attached to the tree, and that no
28872 nodes are improperly shared.
28873
28874 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
28875 pragmas to Exp_Prag, which is more appropriate.
28876 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
28877 check for duplicates Remove use of Is_Psected flag, no longer needed.
28878 Use new Make_String_Literal function with string.
28879
28880 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
28881 that are functions return universal values, that have to be converted
28882 to the context type.
28883 Use new Make_String_Literal function with string.
28884 (Get_Stream_Convert_Pragma): New function, replaces the use of
28885 Get_Rep_Pragma, which had to be kludged to work in this case.
28886
28887 * freeze.adb: Use new Has_Rep_Pragma function
28888
28889 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
28890 function with string.
28891 Use new Has_Rep_Pragma function.
28892
28893 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
28894 string argument.
28895
28896 2004-11-18 Robert Dewar <dewar@adacore.com>
28897
28898 * errout.ads, errout.adb: (First_Sloc): New function
28899
28900 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
28901 check (-gnatyx) instead of being included as a redundant construct
28902 warning.
28903
28904 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
28905 Style_Check_Order_Subprograms.
28906
28907 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
28908 stylesw.adb: Add Style_Check_Xtra_Parens
28909
28910 * usage.adb: Add line for -gnatyx (check extra parens)
28911
28912 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
28913
28914 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28915 Robert Dewar <dewar@adacore.com>
28916
28917 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
28918 discriminant of a constrained subtype, analyze the copy of the
28919 corresponding constraint, because in some cases it may be only
28920 partially analyzed.
28921 Removes long-lived ??? comments.
28922
28923 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
28924 handled controlled or secondary-stack expressions within the
28925 iteration_scheme of a loop.
28926
28927 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
28928 bounds that may contain functions calls, to prevent memory leaks when
28929 the bound contains a call to a function that uses the secondary stack.
28930 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
28931 generate temporaries for loop bounds that might contain function calls
28932 that require secondary stack and/or finalization actions.
28933
28934 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
28935 selected component and the selector is overloadable (not just a
28936 function) treat as function call, Analyze_Call will disambiguate if
28937 necessary.
28938 (Analyze_Selected_Component): Do not generate an actual subtype for the
28939 selected component if expansion is disabled. The actual subtype is only
28940 needed for constraint checks.
28941 (Analyze_Allocator): If restriction No_Streams is set, then do
28942 not permit objects to be declared of a stream type, or of a
28943 composite type containing a stream.
28944
28945 * restrict.ads: Remove the a-stream entry from Unit_Array, since
28946 No_Streams no longer prohibits with'ing this package.
28947
28948 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28949 discriminants, but the parent base has unknown discriminants, there is
28950 no discriminant constraint to inherit. Such a discrepancy can arise
28951 when the actual for a formal type with unknown discriminants is a
28952 similar private type whose full view has discriminants.
28953 (Analyze_Object_Declaration): If restriction No_Streams is set, then
28954 do not permit objects to be declared of a stream type, or of a
28955 composite type containing a stream.
28956
28957 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28958
28959 * exp_dbug.ads: Update documentation to reflect simpler encoding for
28960 protected operations.
28961
28962 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28963 generated name, it complicates decoding in gdb and hinders debugging
28964 of protected operations.
28965 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28966 flag for the protected entry barrier function.
28967 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28968 flag for the protected entry function.
28969
28970 2004-11-18 Nicolas Setton <setton@adacore.com>
28971
28972 * expect.c: Define __unix__ when __APPLE__ is defined.
28973
28974 * Makefile.in: Inform the value of the variable GMEM_LIB in the
28975 Darwin-specific section.
28976
28977 * lang-specs.h: Change the placement of the %1 marker.
28978 Works around the fact that gcc adds -fPIC by default under Darwin.
28979
28980 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28981
28982 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28983 type of the object with the packed array type, set the Analyzed flag
28984 on the object if it is an entity or simple indexed component, to avoid
28985 spurious type errors.
28986
28987 2004-11-18 Gary Dismukes <dismukes@adacore.com>
28988
28989 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28990 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28991 separate line from the version message.
28992
28993 2004-11-18 Ed Falis <falis@adacore.com>
28994
28995 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28996 vthreads.
28997 (init_float): Eliminate initialization of floating point status for
28998 AE653. The instructions have no effect for vThreads.
28999
29000 2004-11-18 Vincent Celier <celier@adacore.com>
29001
29002 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29003 gnatbind is invoked with -shared.
29004
29005 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29006
29007 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29008 for Detect_Blocking which is redundant with the check done within the
29009 procedure Protected_Single_Entry_Call.
29010 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29011 Detect_Blocking which is redundant with the check done within the
29012 procedure Protected_Single_Entry_Call.
29013
29014 2004-11-18 Vincent Celier <celier@adacore.com>
29015
29016 * makegpr.adb (Compile): Put the compiling switches (in package
29017 Compiler and on the command line) immediately after "-c", instead of
29018 at the end of the command line invocation of the compiler, when
29019 compiling a non-Ada file.
29020 (Build_Global_Archive): When there is no need to rebuild the archive,
29021 set Global_Archive_Exists, so that the archive is passed to the linker
29022 if one is needed.
29023
29024 2004-11-18 Robert Dewar <dewar@adacore.com>
29025 Sergey Rybin <rybin@adacore.com>
29026
29027 * gnat_ugn.texi:
29028 Remove extra paren check from list of checks for redundant constructs
29029 Add documentation of new -gnatyx style check (check extra parens)
29030 Remove paragraph about gnatelim debug options.
29031
29032 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29033 objects rather than forbidding dependencies on the package Ada.Streams.
29034
29035 * sinfo.ads: Add ??? note that we should document pragmas passed to
29036 back end.
29037
29038 * g-expect.ads: Fix a few typos in the comments.
29039
29040 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29041
29042 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29043 warning message.
29044
29045 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29046
29047 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29048
29049 2004-11-07 Andreas Schwab <schwab@suse.de>
29050
29051 * Makefile.in (install-gnatlib): Remove spurious hyphen.
29052
29053 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
29054
29055 PR ada/18228
29056 * Makefile.in (darwin): Set soext to .dylib.
29057
29058 2004-10-26 Vincent Celier <celier@gnat.com>
29059 Thomas Quinot <quinot@act-europe.fr>
29060
29061 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29062 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29063 there is no use of GNAT.Sockets.Constants.
29064 Remove remaining pragma Import for C_Write
29065 Remove C_Read and C_Write from internal implementation unit
29066 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29067 the read and write functions from the system runtime library is fine
29068 on UNIX but won't work under Windows).
29069
29070 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29071 (Check_Selector): Use C_Recv instead of C_Read.
29072 Selectors are the GNAT.Sockets abstraction to perform a select()
29073 call on a set of descriptors. To allow abortion of an ongoing
29074 select operation, some data is written to a dedicated socket that
29075 is always monitored.
29076 Under Windows, the write and read library functions cannot operate
29077 on sockets, so we need to use send and recv instead, which is portable
29078 across all supported platforms.
29079
29080 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29081 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29082 (using the read and write functions from the system runtime library is
29083 fine on UNIX but won't work under Windows).
29084
29085 2004-10-26 Nicolas Setton <setton@act-europe.fr>
29086
29087 * mlib-tgt-darwin.adb: New file.
29088
29089 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29090 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29091 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29092 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29093 subprogram body.
29094
29095 * Makefile.in: Add support for building shared libraries under Darwin.
29096 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29097 the low level EH init subprogram to be called from __gnat_initialize.
29098
29099 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29100 indicates which options to pass to the archive indexer.
29101
29102 * mlib-utl.adb: Add support for calling ranlib with additional
29103 options. This is needed for instance under Mac OS X.
29104 (Ranlib_Options): New global variable, used to store the potential
29105 options to pass to ranlib.
29106 (Ar): Use Ranlib_Options when spawning ranlib.
29107 (Initialize): Set the value of ranlib option.
29108
29109 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29110
29111 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29112 instead of 8K, to reflect the real potential needs for stack-checking
29113 in the ZCX case.
29114
29115 2004-10-26 Pascal Obry <obry@gnat.com>
29116
29117 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29118
29119 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29120 Windows only the initial thread stack size can be set so it is good to
29121 start we a low stack size.
29122 The OS will adjust the size as needed.
29123
29124 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29125 Nicolas Setton <setton@act-europe.fr>
29126
29127 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29128 "__unix__" instead of "unix".
29129 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29130 sections were just mistakenly ignored. The former is
29131 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29132 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29133 of hpux. This prevents an unwanted definition of the symbol
29134 convert_addresses in adaint.o.
29135
29136 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29137
29138 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29139 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29140
29141 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29142
29143 * a-filico.ads, a-filico.adb: fix incorrect header.
29144
29145 2004-10-26 Javier Miranda <miranda@gnat.com>
29146
29147 * a-ststio.ads: Fix typo in identifier
29148
29149 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29150
29151 * sem_ch4.adb: Minor reformatting.
29152
29153 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29154
29155 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29156 enabled, check the result of unary and binary operations when the
29157 expression is the right-hand side of an assignment.
29158
29159 2004-10-26 Vincent Celier <celier@gnat.com>
29160
29161 * clean.adb (Delete): Do not output warnings when in quiet output and
29162 not in verbose mode.
29163 (Force_Deletions): New Boolean flag, defaulted to False
29164 (Delete): Only delete a file if it is writable, and when
29165 Force_Deletions is True.
29166 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29167 (Usage): Line for new switch -f
29168 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29169 own.
29170
29171 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
29172
29173 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29174 JM type only if its size matches that of the wrapper. When a size is
29175 prescribed and the field is not aliased, remove the wrapper of a JM
29176 type only if the size is not greater than that of the packed array.
29177 (gnat_to_gnu_entity): Change the extension of packed array wrappers
29178 from LJM to JM.
29179
29180 2004-10-26 Geert Bosch <bosch@gnat.com>
29181
29182 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29183 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29184 (Pred): Implement in terms of Succ.
29185
29186 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29187
29188 * exp_aggr.adb (Safe_Component): An aggregate component that is an
29189 unchecked conversion is safe for in-place use if the expression of the
29190 conversion is safe.
29191 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29192 be expandable in place even if the aggregate does not come from source.
29193 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29194 designated object of an allocator in place, rather than building it
29195 first on the stack. The previous scheme forces a full copy of the array,
29196 and may be altogether unsusable if the size of the array is too large
29197 for stack allocation.
29198
29199 2004-10-26 Robert Dewar <dewar@gnat.com>
29200
29201 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29202 compares if the component is atomic.
29203
29204 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29205 array assignment if the component type is atomic.
29206
29207 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29208 Eric Botcazou <ebotcazou@act-europe.fr>
29209
29210 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29211 is aliased and is a by_reference type, do not pass by copy.
29212 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29213 detect whether the call is in the right side of an assignment or
29214 the expression of an object declaration. Recurse on component
29215 association within aggregates.
29216 Call it in the condition that determines whether the temporary is
29217 necessary for correct stack-checking.
29218
29219 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29220
29221 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29222 RACW_Type, used in the PolyORB version.
29223 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29224 version and the GARLIC version.
29225
29226 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29227 Rename RCI_Info to RCI_Locator for better consistency between the
29228 GARLIC and PolyORB versions of the distributed systems annex.
29229 (DSA_Implementation_Name): This enumeration lists the possible
29230 implementations of the Partition Communication Subsystem for the
29231 Distributed Systems Annex (DSA). The three available implementations
29232 are the dummy stub implementation (No_DSA), and two versions based on
29233 two different distribution runtime libraries: GARLIC and PolyORB. Both
29234 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29235 technology.
29236 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29237 that organization.
29238
29239 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29240 between the GARLIC and PolyORB versions of the distributed systems
29241 annex.
29242 Remove RE_Unbounded_Reclaim_Pool since it is unused.
29243
29244 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29245
29246 * gnat1drv.adb: Suppress calling the back end when
29247 Frontend_Layout_On_Target is true.
29248
29249 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29250
29251 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29252 Set_Read_Only): New subprograms.
29253 These new routines allow the user to set or unset the Owner execute
29254 and Owner write permission flags on a file.
29255
29256 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29257 GNAT.OS_Lib.Set_Executable instead of rolling our own.
29258
29259 2004-10-26 Matthew Gingell <gingell@gnat.com>
29260
29261 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29262
29263 2004-10-26 Pascal Obry <obry@gnat.com>
29264
29265 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29266 memory before the faulting page we properly test the process read
29267 access for this address using appropriate Win32 routine.
29268 (HPUX sections): guard with "__hpux__" instead of "hpux".
29269
29270 2004-10-26 Robert Dewar <dewar@gnat.com>
29271
29272 * lib-xref.adb (Generate_Reference): Don't complain about reference to
29273 entry parameter if pragma Unreferenced set, since we do not properly
29274 handle the case of multiple parameters.
29275
29276 2004-10-26 Vincent Celier <celier@gnat.com>
29277
29278 * prj-env.adb: (Contains_ALI_Files): New Boolean function
29279 (Ada_Objects_Path.Add): For a library project, add to the object path
29280 the library directory only if there is no object directory or if the
29281 library directory contains ALI files.
29282 (Set_Ada_Paths.Add.Recursive_Add): Ditto
29283
29284 2004-10-26 Vincent Celier <celier@gnat.com>
29285
29286 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29287 extension of library projects.
29288
29289 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
29290 path defaults to ".:<prefix>/lib/gnat".
29291 (Parse): For an extending all project, allow direct import of a project
29292 that is virtually extended.
29293
29294 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
29295 the specified name is directly imported, return its ID. Otherwise, if
29296 an extension of this project is imported, return the ID of the
29297 extension.
29298
29299 2004-10-26 Robert Dewar <dewar@gnat.com>
29300
29301 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
29302 (Sub3): New procedure, used by Scaled_Divide
29303 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
29304 correct more than one instance of failure to propagate carries
29305 correctly.
29306 (Double_Divide): Handle overflow case of largest negative number
29307 divided by minus one.
29308
29309 * s-arit64.ads (Double_Divide): Document that overflow can occur in
29310 the case of a quotient value out of range.
29311 Fix comments.
29312
29313 2004-10-26 Robert Dewar <dewar@gnat.com>
29314
29315 * s-bitops.adb (Bit_Eq): Remove redundant check.
29316
29317 * s-bitops.ads: Minor comment updates
29318 Change some occurrences of Address to System.Address
29319
29320 * s-carsi8.ads: Fix minor cut-and-paste error in comments
29321
29322 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29323
29324 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
29325 accessibility check to prefix that is a protected operation.
29326
29327 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29328
29329 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
29330 empty, post message on stub.
29331
29332 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29333 Javier Miranda <miranda@gnat.com>
29334
29335 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
29336 current instance appears within a unit that is directly in the context
29337 of the main unit.
29338 Used to determine whether the body of the instance should be analyzed
29339 immediately after its spec, to make its subprogram bodies available
29340 for front-end inlining.
29341 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
29342 constraint is not allowed on the component type (AARM 12.5.3(3))
29343
29344 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29345
29346 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
29347 'Storage_Pool): enhance, document & limit detection of non-sharable
29348 internal pools.
29349
29350 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
29351
29352 * s-pooglo.ads: Add more documentation now that this pool is properly
29353 documented.
29354
29355 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29356
29357 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
29358 or protected type with discriminants, do not constrain the
29359 corresponding record type if the subtype declaration has no
29360 discriminant constraints. This can be the case in source code, or in
29361 the subtype declaration created to rename an actual type within an
29362 instantiation.
29363
29364 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29365
29366 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
29367 different kind of stub (possibly wrong name for file), do not check
29368 for conformance.
29369 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
29370 includes call to some function that returns an unconstrained type, do
29371 not inline.
29372
29373 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29374
29375 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
29376 appear in the code for the main unit. Dependencies among units in the
29377 context of the main unit are established when those other units are
29378 compiled. Otherwise spurious elaboration constraints can generate
29379 incorrect elaboration circularities.
29380
29381 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29382 Ed Schonberg <schonberg@gnat.com>
29383
29384 * sem_util.adb (Is_Aliased_View): Defend against the case where this
29385 subprogram is called with a parameter that is not an object name. This
29386 situation arises for some cases of illegal code, which is diagnosed
29387 later, and in this case it is wrong to call Is_Aliased, as that might
29388 cause a compiler crash.
29389 (Explain_Limited_Type): Refine previous fix to include
29390 inherited components of derived types, to provide complete information.
29391
29392 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
29393 is the prival for a protected object.
29394 It is necessary to mark this entity as a variable, in addition to
29395 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
29396 modified to avoid checking the Aliased flag on entities that are not
29397 objects. (Checking that flag for non-objects is erroneous and could
29398 lead to a compiler crash).
29399
29400 2004-10-26 Robert Dewar <dewar@gnat.com>
29401
29402 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
29403 X_Frac = 0.5, then we know that the number X must be positive.
29404 (Succ): Remove the same redundant test, and also fix the primary test
29405 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
29406 Minor reformatting
29407 (Decompose): Add fuller comments to spec
29408
29409 2004-10-26 Pascal Obry <obry@gnat.com>
29410
29411 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
29412 validity (process must have read access). Set to 0 in all other cases.
29413 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
29414 violation on Win32.
29415 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
29416 segmentation violation.
29417
29418 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
29419
29420 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
29421 whose type is a constructed subtype of an aliased object with an
29422 unconstrained nominal subtype, convert the actual to the constructed
29423 subtype before taking its address.
29424
29425 2004-10-26 Vincent Celier <celier@gnat.com>
29426
29427 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
29428 (Is_Path_Name_Case_Sensitive): New function
29429
29430 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
29431 (Base_Name, Simple_Name, Current_Directory, Compose,
29432 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
29433 the result.
29434
29435 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29436 Vasiliy Fofanov <fofanov@act-europe.fr>
29437 Vincent Celier <celier@gnat.com>
29438
29439 * gnat_ugn.texi: Generalize "finding memory problems" section into a
29440 "memory management issues" section and document some of the useful
29441 memory pools provided as part of the GNAT library.
29442 Remove "virtual" from declaration of A::method2 in
29443 the simple example of Ada/C++ mixed system.
29444 Library Projects may be virtually extended: their virtual extensions
29445 are not Library Projects.
29446 Added section on extending project hierarchies.
29447
29448 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
29449
29450 * adaint.c (__gnat_get_libraries_from_registry): Cast value
29451 to LPBYTE.
29452 (__gnat_portable_spawn): Remove const.
29453
29454 * mingw32.h (MAXPATHLEN): Check for previous definition.
29455
29456 2004-10-17 Matthias Klose <doko@debian.org>
29457
29458 * gnatvsn.ads: Set gnat library version to 4.0.
29459
29460 2004-10-05 Vincent Celier <celier@gnat.com>
29461
29462 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
29463
29464 2004-10-04 Laurent Guerby <laurent@guerby.net>
29465
29466 PR ada/15156
29467 * Makefile.in: Define and use RANLIB_FLAGS.
29468
29469 2004-10-04 Pascal Obry <obry@gnat.com>
29470
29471 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
29472 other x86 platforms).
29473
29474 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
29475
29476 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
29477 in general and triggers stack alignment adjustment for thread entry
29478 points on targets where this is necessary.
29479
29480 2004-10-04 Bernard Banner <banner@gnat.com>
29481
29482 PR ada/13897
29483 * Makefile.in: Add section for powerpc linux
29484 Add variant i-vxwork-x86.ads
29485
29486 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
29487
29488 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
29489
29490 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
29491 table registration calls when need be. Ensures no reference to the crt
29492 ctors symbol are issued in the SJLJ case, which avoids possible
29493 undefined symbol errors in the case of modules to be statically linked
29494 with the kernel.
29495
29496 2004-10-04 Javier Miranda <miranda@gnat.com>
29497
29498 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
29499 in-line the code corresponding to subprogram Analyze_Actuals. In
29500 addition, analyze the actuals only in case of subprogram call.
29501
29502 2004-10-04 Ed Falis <falis@gnat.com>
29503
29504 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
29505
29506 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
29507
29508 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
29509 in the documentation.
29510
29511 2004-10-04 Robert Dewar <dewar@gnat.com>
29512
29513 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
29514 IF and CASE.
29515 (Analyze_Block_Statement): Add circuitry to detect following dead code
29516 (Check_Unreachable_Code): Handle case of block exit
29517
29518 2004-10-04 Robert Dewar <dewar@gnat.com>
29519
29520 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
29521 (XMatchD): Avoid warning for Logic_Error call
29522
29523 2004-10-04 Robert Dewar <dewar@gnat.com>
29524
29525 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
29526 consider expressions buried within a procedure actual to be an actual.
29527 This caused some blowups with uses of packed slices within a procedure
29528 actual.
29529
29530 2004-10-04 Robert Dewar <dewar@gnat.com>
29531
29532 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
29533 longer need to be initialized to zero.
29534 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
29535 initialized to zero.
29536
29537 * checks.adb (Expr_Known_Valid): Packed arrays are now always
29538 considered valid, even if the representation is modular. That's correct
29539 now that we no longer initialize packed modular arrays to zero.
29540
29541 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
29542 suffixes. These are now documented as the only cases in which the
29543 debugger ignores outer records.
29544 Previously, the spec allowed arbitrary suffixes for this purpose.
29545 Change name of LJM to JM for packed array pad records
29546 Create separate section on packed array handling, and add a whole new
29547 set of comments to this section describing the situation with packed
29548 modular types and justification requirements depending on endianness.
29549
29550 2004-10-04 Robert Dewar <dewar@gnat.com>
29551
29552 * a-except.adb: Add a comment for last change
29553
29554 * einfo.ads: Minor spelling correction in comment
29555
29556 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
29557
29558 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
29559 messages.
29560
29561 * sem_util.ads: Minor comment update
29562
29563 2004-10-04 Ed Schonberg <schonberg@gnat.com>
29564
29565 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
29566 Inline_Always when in Configurable_Run_Time mode.
29567
29568 * sem_prag.adb (Process_Convention): If entity is an inherited
29569 subprogram, apply convention to parent subprogram if in same scope.
29570 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
29571 when in Configurable_Run_Time mode.
29572
29573 2004-10-04 Ed Schonberg <schonberg@gnat.com>
29574
29575 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
29576 class_wide type after component list has been inherited.
29577
29578 2004-10-04 Ed Schonberg <schonberg@gnat.com>
29579
29580 * sem_ch12.adb (Check_Generic_Actuals): New predicate
29581 Denotes_Previous_Actual, to handle properly the case of a private
29582 actual that is also the component type of a subsequent array actual.
29583 The visibility status of the first actual is not affected when the
29584 second is installed.
29585 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
29586 make fully recursive the treatment of formals of packages declared
29587 with a box.
29588 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
29589 the above on exit from an instantiation.
29590 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
29591 current instantiation which is now complete.
29592 (Analyze_Package_Instantiation): No instantiated body is needed if the
29593 main unit is generic. Efficient, and avoid anomalies when a instance
29594 appears in a package accessed through rtsfind.
29595
29596 2004-10-04 Ed Schonberg <schonberg@gnat.com>
29597
29598 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
29599 do not generate a declaration for a temporary if the call is part of a
29600 library-level instantiation.
29601
29602 2004-10-04 Ed Schonberg <schonberg@gnat.com>
29603
29604 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
29605 searching for a limited component to flag.
29606
29607 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
29608 expansion of Input, to account for the fact that the implicit call
29609 generated by the attribute reference must freeze the user-defined
29610 stream subprogram. This is only relevant to 'Input, because it can
29611 appear in an object declaration, prior to the body of the subprogram.
29612
29613 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
29614 expansion can proceed and further errors uncovered.
29615 (Minor clean up): Fix cases of using | instead of \ for continuation
29616 messages.
29617
29618 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29619
29620 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
29621
29622 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
29623 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
29624 Use gcc_assert and gcc_unreachable.
29625
29626 * decl.c (gnat_to_gnu_entity, case object): Check and process a
29627 specified alignment before validating size.
29628 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
29629 stripped-down declaration for the type of the inner field when making
29630 a JM type.
29631
29632 * utils.c (finish_record_type): Do not compute the size in units
29633 incrementally. Instead compute it once for the rep clause case.
29634 Use gcc_assert and gcc_unreachable.
29635
29636 2004-10-04 Vincent Celier <celier@gnat.com>
29637
29638 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
29639 in file name.
29640 (Is_Valid_Path_Name): Take '/' as a directory separator.
29641
29642 2004-10-04 Vincent Celier <celier@gnat.com>
29643
29644 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
29645 (Extended_Project) only if Extended_Project is defined, to avoid
29646 assertion error.
29647 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
29648 resolved path.
29649 (Parse_Single_Project): Ditto.
29650
29651 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
29652 Add_To_Project_Path for virtual projects.
29653
29654 2004-10-04 Vincent Celier <celier@gnat.com>
29655
29656 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29657 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29658 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
29659 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
29660 parameter Options_2.
29661
29662 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
29663 Build_Dynamic_Library with an empty Options_2.
29664
29665 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
29666 default anymore.
29667
29668 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
29669 directory separator, if any.
29670 (Gprmake): Do not allow mains on the command line for library projects.
29671 Do not attempt to link when the project is a library project.
29672 (Library_Opts): New table to store Library_Options.
29673 (Build_Library): If Library_Options is specified, pass these options
29674 when building a shared library.
29675
29676 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
29677
29678 * s-tposen.adb (Service_Entry): The object must be always unlocked at
29679 the end of this procedure now that the unlock operation was inserted
29680 by the expander.
29681
29682 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
29683
29684 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
29685 corresponding to the Preallocated_Stacks flags in System.
29686 (Get_Target_Parameters): Including the processing for
29687 Preallocated_Stacks.
29688
29689 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
29690 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
29691 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29692 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
29693 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
29694 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
29695 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
29696 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
29697 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
29698 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
29699 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
29700 used to signal whether the compiler creates the required stacks and
29701 descriptors for the different tasks (when True) or it is done by the
29702 underlying operating system at run time (when False).
29703 It is initially set to False in all targets.
29704
29705 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
29706 if it is supported by the target.
29707 (Make_Task_Create_Call): Pass the stack address if it has been
29708 previously created. Otherwise pass a Null_Address.
29709
29710 * snames.adb: Add _stack.
29711
29712 * snames.ads: Add Name_uStack. Required to allow the expander to
29713 statically allocated task stacks.
29714
29715 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
29716 Stack_Address argument.
29717 Check that its value is equal to Null_Address because this target does
29718 not support the static stack allocation.
29719
29720 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
29721
29722 * usage.adb: Change "pragma inline" to "pragma Inline" in information
29723 and error messages
29724
29725 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
29726
29727 * exp_dist.adb: Split declaration of asynchronous flag out of
29728 Add_RACW_Read_Attribute.
29729 Minor reformatting for better alignment with PolyORB version.
29730 Store the entity for the asynchronous flag of an RACW, rather than the
29731 expression, in the asynchronous flags table. This will allow this flag
29732 to be used in other subprograms beside Add_RACW_Read_Attribute.
29733
29734 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
29735
29736 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
29737 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29738 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
29739 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
29740 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
29741 sockets constant MSG_NOSIGNAL (Linux-specific).
29742 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
29743 all Send operations.
29744 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
29745 from trigerring SIGPIPE.
29746 Rename components to avoid clash with Ada 2005 possible reserved
29747 word 'interface'.
29748 (Check_Selector): When the select system call returns with an error
29749 condition, propagate Socket_Error to the caller.
29750
29751 2004-10-01 Jan Hubicka <jh@suse.cz>
29752
29753 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
29754
29755 2004-09-23 Robert Dewar <dewar@gnat.com>
29756
29757 PR ada/17540
29758 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
29759 instead do this at freeze time (we won't do it if there is an address
29760 clause).
29761 Change "pragma inline" to "pragma Inline" in information and error
29762 messages.
29763 Minor reformatting.
29764
29765 * freeze.adb (Check_Address_Clause): Remove previous change, not the
29766 right way of doing things after all.
29767 (Freeze_Entity): For object, set Is_Public for imported entities
29768 unless there is an address clause present.
29769
29770 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
29771
29772 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
29773 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
29774 ensures proper handling of types with rep clauses, which might have
29775 their TYPE_SIZE set already.
29776
29777 2004-09-21 Robert Dewar <dewar@gnat.com>
29778
29779 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
29780 packed array types in both little- and big-endian cases. This change
29781 ensures that we no longer count on the unused bits being initialized
29782 for such types (and in particular ensures that equality testing will
29783 only read the relevant bits).
29784 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29785 These changes mean that we no longer need to initialize small packed
29786 arrays.
29787 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
29788 optimization to an LJM field as to its parent field.
29789
29790 * ada-tree.h, trans.c, utils.c, utils2.c:
29791 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29792
29793 2004-09-20 Jan Hubicka <jh@suse.cz>
29794
29795 * utils.c (gnat_finalize): Remove.
29796 (end_subprog_body): Directly call cgraph_finalize_function;
29797 do not lower the nested functions.
29798
29799 2004-09-20 Robert Dewar <dewar@gnat.com>
29800
29801 PR ada/17540
29802 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
29803 if an address clause is present, since that means that the Import
29804 should be ignored.
29805
29806 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
29807
29808 * 5tsystem.ads: Removed, no longer used.
29809
29810 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
29811 Zack Weinberg <zack@codesourcery.com>
29812
29813 * ada-tree.def: Use tree_code_class enumeration constants
29814 instead of code letters.
29815 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
29816 Update for new tree-class enumeration constants.
29817
29818 2004-09-17 Vincent Celier <celier@gnat.com>
29819
29820 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
29821 capabilities of the general project manager.
29822
29823 2004-09-09 Vincent Celier <celier@gnat.com>
29824
29825 * a-direct.ads: Add pragma Ada_05
29826 (Directory_Entry_Type): Give default value to component Kind to avoid
29827 not initialized warnings.
29828
29829 * a-direct.adb (Current_Directory): Remove directory separator at the
29830 end.
29831 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
29832 an existing directory.
29833 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
29834 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
29835 Convert the result to File_Size.
29836
29837 * prj.ads: (Project_Error): New exception
29838
29839 * prj-attr.adb: Except in procedure Initialize, Fail comes from
29840 Prj.Com, not from Osint.
29841 (Attrs, Package_Attributes): Tables moved to private part of spec
29842 (Add_Attribute, Add_Unknown_Package): Moved to new child package
29843 Prj.Attr.PM.
29844 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
29845 Prj.Project_Error after call to Fail.
29846 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
29847 Fail. Check that package name is not already in use.
29848
29849 * prj-attr.ads: Comment updates to indicate that all subprograms may be
29850 used by tools, not only by the project manager, and to indicate that
29851 exception Prj.Prj_Error may be raised in case of problem.
29852 (Add_Unknown_Package, Add_Attribute): Moved to new child package
29853 Prj.Attr.PM.
29854 (Attrs, Package_Attributes): Table instantiations moved from the body to
29855 the private part to be accessible from Prj.Attr.PM body.
29856
29857 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
29858 from new package Prj.Attr.PM.
29859 (Parse_Attribute_Declaration): Call Add_Attribute from new package
29860 Prj.Attr.PM.
29861
29862 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
29863
29864 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
29865 instead of Elaboration_Checks).
29866
29867 * a-calend.adb: Minor reformatting
29868
29869 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29870
29871 * gigi.h (maybe_pad_type): New declaration.
29872 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
29873
29874 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
29875
29876 * cuintp.c: Convert to use buildN.
29877
29878 * decl.c (maybe_pad_type): No longer static.
29879 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
29880 target pointer.
29881 Convert to use buildN.
29882
29883 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
29884 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
29885 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
29886 RHS.
29887 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
29888 (gnat_gimplify_expr, case ADDR_EXPR): New case.
29889 Convert to use buildN.
29890
29891 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
29892 TREE_READONLY for const.
29893 Convert to use buildN.
29894
29895 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
29896 (create_var_decl): Refine when TREE_STATIC is set.
29897 Convert to use buildN.
29898
29899 2004-09-09 Gary Dismukes <dismukes@gnat.com>
29900
29901 * gnat_ugn.texi: Delete text relating to checking of ali and object
29902 consistency.
29903
29904 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
29905 routines.
29906
29907 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
29908
29909 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
29910 pragmas recognized by GNAT.
29911
29912 * gnat_rm.texi: Document pragma Detect_Blocking.
29913
29914 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
29915 raise Program_Error if called from a protected operation.
29916
29917 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
29918 the protected action nesting level.
29919 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
29920 protected action nesting level.
29921 (Unlock): When pragma Detect_Blocking is active decrease the protected
29922 action nesting level.
29923
29924 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
29925 Protected_Action_Nesting.
29926
29927 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
29928 Common_ATCB record. It contains the dynamic level of protected action
29929 nesting for each task. It is needed for checking whether potentially
29930 blocking operations are called from protected operations.
29931 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
29932 Detect_Blocking is active or not in the partition.
29933
29934 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
29935 raise Program_Error if called from a protected operation.
29936 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
29937 Program_Error if called from a protected operation.
29938 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
29939 Program_Error if called from a protected operation.
29940
29941 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29942 raise Program_Error if called from a protected operation.
29943
29944 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29945 raise Program_Error if called from a protected operation, and increase
29946 the protected action nesting level.
29947 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29948 Program_Error if called from a protected operation, and increase the
29949 protected action nesting level.
29950 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29951 protected action nesting level.
29952
29953 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29954 raise Program_Error if called from a protected operation, and increase
29955 the protected action nesting level.
29956 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29957 Program_Error if called from a protected operation, and increase the
29958 protected action nesting level.
29959 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29960 raise Program_Error if called from a protected operation.
29961 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29962 active, raise Program_Error if called from a protected operation.
29963 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29964 protected action nesting level.
29965
29966 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29967 insertion of the statement raising Program_Error. The run time
29968 contains the required machinery for handling that.
29969
29970 * sem_util.ads: Change comment associated to procedure
29971 Check_Potentially_Blocking_Operation.
29972 This procedure does not insert a call for raising the exception because
29973 that is currently done by the run time.
29974
29975 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29976
29977 * init.c: Add the global variable __gl_detect_blocking that indicates
29978 whether pragma Detect_Blocking is active (1) or not (0). Needed for
29979 making the pragma available at run time.
29980 (__gnat_set_globals): Pass and update the detect_blocking parameter.
29981
29982 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29983 pragma Detect_Blocking is active.
29984
29985 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29986
29987 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29988 DB is found in the ali file. Any unit compiled with pragma
29989 Detect_Blocking active forces its effect in the whole partition.
29990
29991 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29992 Detect_Blocking is active and delay is called from a protected
29993 operation.
29994
29995 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29996 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29997 Detect_Blocking is active (0 otherwise).
29998 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29999 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30000 otherwise).
30001
30002 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30003
30004 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30005 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30006 package.
30007
30008 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30009 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30010 Update API in placeholder implemetation of s-parint to reflect changes
30011 in distribution runtime library.
30012
30013 * sem_ch3.adb (Expand_Derived_Record): Rename to
30014 Expand_Record_Extension.
30015
30016 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30017 primitive operations of potentially distributed object types that have
30018 non-controlling anonymous access formals.
30019
30020 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30021 subprogram.
30022 New implementation of expansion for remote access-to-subprogram types,
30023 based on the RACW infrastructure.
30024 This version of sem_dist is compatible with PolyORB/DSA as well as
30025 GLADE.
30026
30027 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30028 Asynchrronous that applies to a remote access-to-subprogram type, mark
30029 the underlying RACW type as asynchronous.
30030
30031 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30032 __gnat_using_gnu_linker to 1.
30033
30034 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30035 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30036 GNAT.Perfect_Hash_Generators, and remove the empty
30037 GNAT.Perfect_Hash package.
30038
30039 * atree.adb: Minor reformatting
30040
30041 * exp_ch3.adb (Expand_Derived_Record): Rename to
30042 Expand_Record_Extension.
30043 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30044 a component declaration must remain attached at that point in the
30045 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30046 It is therefore necessary to take a copy of the expression when building
30047 the corresponding assignment statement in the init proc.
30048 As a side effect, in the case of a derived record type, we now see the
30049 original expression, without any rewriting that could have occurred
30050 during expansion of the ancestor type's init proc, and we do not need
30051 to go back to Original_Node.
30052
30053 * exp_ch3.ads (Expand_Derived_Record): Rename to
30054 Expand_Record_Extension.
30055
30056 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30057 Returns the RACW type used to implement a remote access-to-subprogram
30058 type.
30059 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30060 New subprograms. Used to create a proxy tagged object for a remote
30061 subprogram. The proxy object is used as the designated object
30062 for RAS values on the same partition (unless All_Calls_Remote applies).
30063 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30064 System.Partition_Interface.Get_Unique_Remote_Pointer.
30065 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30066 Renamed from Add_RAS_*_Attribute.
30067 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30068 subprograms.
30069 New implementation of expansion for remote access-to-subprogram types,
30070 based on the RACW infrastructure.
30071
30072 * exp_dist.ads (Copy_Specification): Update comment to note that this
30073 function can copy the specification from either a subprogram
30074 specification or an access-to-subprogram type definition.
30075
30076 2004-09-09 Ed Schonberg <schonberg@gnat.com>
30077
30078 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30079 in an instance, between an explicit subprogram an one inherited from a
30080 type derived from an actual.
30081
30082 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30083 add a polling call if the subprogram is to be inlined by the back-end,
30084 to avoid repeated calls with multiple inlinings.
30085
30086 * checks.adb (Apply_Alignment_Check): If the expression in the address
30087 clause is a call whose name is not a static entity (e.g. a dispatching
30088 call), treat as dynamic.
30089
30090 2004-09-09 Robert Dewar <dewar@gnat.com>
30091
30092 * g-trasym.ads: Minor reformatting
30093
30094 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30095 packed arrays, since unused bits are expected to be zero for a
30096 comparison.
30097
30098 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
30099
30100 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30101 comment.
30102
30103 2004-09-09 Pascal Obry <obry@gnat.com>
30104
30105 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30106 enable map file generation. Add the right option to generate the map
30107 file if Map_File is set to True.
30108
30109 * gnatdll.adb (Gen_Map_File): New variable.
30110 (Syntax): Add info about new -m (Map_File) option.
30111 (Parse_Command_Line): Add support for -m option.
30112 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30113 Minor reformatting.
30114
30115 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
30116
30117 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30118 new gnatdist implementation.
30119 Define a subpackage isolating the output routines specific to this
30120 verbose mode.
30121
30122 2004-09-09 Joel Brobecker <brobecker@gnat.com>
30123
30124 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30125
30126 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30127
30128 2004-09-09 Cyrille Comar <comar@act-europe.fr>
30129
30130 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30131 internal unit.
30132
30133 * opt.ads: Add Ada_Version_Runtime constant used to decide which
30134 version of the language is used to compile the run time.
30135
30136 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
30137
30138 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30139 of variable length temporaries for function return now that the
30140 back-end and gigi support it.
30141
30142 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30143
30144 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30145
30146 * trans.c (struct stmt_group): Delete field GLOBAL.
30147 (gnat_init_stmt_group): Do not initialize it.
30148 (call_to_gnu): Use save_expr, not protect_multiple_eval.
30149 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30150 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30151 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30152 (start_stmt_group): Likewise.
30153 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30154
30155 * utils2.c (ggc.h): Include.
30156 (build_call_raise): Call build_int_cst, not build_int_2.
30157
30158 * utils.c (gnat_init_decl_processing): Fix arg to
30159 build_common_tree_nodes.
30160 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30161 (gnat_define_builtin): Set built_in_decls.
30162 (init_gigi_decls): Call build_int_cst, not build_int_2.
30163
30164 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30165 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30166 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30167 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30168 SET_TYPE_MODULE): Use them.
30169 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30170 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30171 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30172 SET_TYPE_ADA_SIZE): Likewise.
30173 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30174 (DECL_CONST_CORRESPONDING_VAR,
30175 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30176 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30177 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30178 (TYPE_RM_SIZE_NUM): New macro.
30179 (TYPE_RM_SIZE): Modified to use above.
30180
30181 * cuintp.c: (build_cst_from_int): New function.
30182 (UI_To_gnu): Use it.
30183
30184 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30185 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30186 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30187 MIN_EXPR for the size, copy it into new.
30188
30189 2004-09-01 Robert Dewar <dewar@gnat.com>
30190
30191 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30192 packed indexed component where array is an IN OUT formal. This
30193 generated garbage code previously.
30194
30195 * gnat_ugn.texi: Document -fverbose-asm
30196
30197 * gnat-style.texi: Minor updates (note that boolean constants and
30198 variables are joined with AND/OR rather than short circuit forms).
30199
30200 2004-09-01 Ed Schonberg <schonberg@gnat.com>
30201
30202 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30203 it is an upward conversion of an untagged type with no representation
30204 change.
30205
30206 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
30207
30208 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30209 System.Partition_Interface.
30210
30211 * checks.adb (Apply_Access_Checks): Do not generate checks when
30212 expander is not active (but check for unset reference to prefix of
30213 dereference).
30214
30215 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30216 pragma Debug as an if statement with a constant condition, for
30217 consistent treatment of entity references contained within the
30218 enclosed procedure call.
30219
30220 2004-09-01 Vincent Celier <celier@gnat.com>
30221
30222 * bindgen.adb: (Set_EA_Last): New procedure
30223 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30224 Set_EA_Last.
30225 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30226 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30227 linked without errors.
30228 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30229 ST and EA.
30230 (Gen_Exception_Table_C): Correct same bugs
30231
30232 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30233
30234 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30235 on Windows, make sure that the drive letter is in upper case.
30236
30237 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30238 Windows, when the drive letter is added and Case_Sensitive is True, the
30239 drive letter is forced to upper case.
30240
30241 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30242 to Options_2 for the call to MLib.Utl.Gcc.
30243
30244 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30245 directory separator when defining BASE_DIR.
30246
30247 2004-09-01 Pascal Obry <obry@gnat.com>
30248
30249 * gprcmd.adb (Extend): Do not output trailing directory separator. This
30250 is not needed and it confuses Windows GNU/make which does not report
30251 directory terminated by a slash as a directory.
30252 (gprcmd): Idem for "pwd" internal command.
30253
30254 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30255 target names rewrite to fix regressions with recent version of
30256 GNU/make. Starting with GNU/make 3.80 the pipe character was not
30257 handled properly anymore.
30258
30259 2004-09-01 Andreas Schwab <schwab@suse.de>
30260
30261 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30262 * raise.c [!IN_RTS]: Undef abort.
30263
30264 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
30265
30266 * utils2.c (build_allocator): Use ssize_int.
30267
30268 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30269
30270 2004-08-27 Andreas Schwab <schwab@suse.de>
30271
30272 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30273
30274 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
30275 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30276
30277 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30278
30279 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
30280
30281 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30282 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30283 * utils.c (init_gigi_decls): Likewise.
30284 * utils2.c (build_call_raise, build_allocator): Likewise.
30285
30286 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
30287
30288 * utils.c (gnat_init_decl_processing): Adjust
30289 build_common_tree_nodes call.
30290
30291 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
30292
30293 * utils2.c (build_allocator): Use build_int_cst for negative
30294 size types.
30295
30296 2004-08-18 Richard Henderson <rth@redhat.com>
30297
30298 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
30299
30300 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
30301
30302 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
30303 call.s
30304 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
30305 (gnat_to_gnu): Likewise.
30306
30307 2004-08-16 Pascal Obry <obry@gnat.com>
30308
30309 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
30310 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
30311 option and not mdll anymore. Update comment.
30312
30313 2004-08-16 Pascal Obry <obry@gnat.com>
30314
30315 * bld.adb (Put_Include_Project): Properly handle directory separators
30316 on Windows.
30317
30318 2004-08-16 Ed Schonberg <schonberg@gnat.com>
30319
30320 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
30321 decreasing the number of allocated junk nodes while searching for the
30322 appropriate subprogram.
30323
30324 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
30325
30326 * cuintp.c (UI_To_gnu): Use build_int_cst..
30327 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30328 * utils.c (init_gigi_decls): Likewise.
30329 * utils2.c (build_call_raise): Likewise.
30330
30331 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
30332
30333 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
30334 for a global aliased object with a variable size and an unconstrained
30335 nominal subtype, pretend there is no initializer if the one we have is
30336 incomplete, and avoid referencing an inexistant component in there. The
30337 part we have will be rebuilt anyway and the reference may confuse
30338 further operations.
30339
30340 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
30341
30342 * einfo.ads: Minor reformatting
30343
30344 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
30345 restrictions in the ALI if we only want to warn about violations.
30346
30347 2004-08-13 Vincent Celier <celier@gnat.com>
30348
30349 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
30350 when creating a new Unit_Record in table Units.
30351
30352 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
30353 that are violated, if any.
30354
30355 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
30356 add directory separator if path already ends with a directory separator.
30357
30358 2004-08-13 Ed Schonberg <schonberg@gnat.com>
30359
30360 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
30361 unit, this is an attempt to inline a construct that is not available in
30362 the current restricted mode, so abort rather than trying to continue.
30363
30364 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
30365 discriminants that rename those of the parent, recover names of
30366 original discriminants for the constraint on the full view of the
30367 parent.
30368 (Complete_Private_Subtype): Do not create a subtype declaration if the
30369 subtype is an itype.
30370
30371 * gnat_rm.texi: Added section on implementation of discriminated
30372 records with default values for discriminants.
30373
30374 2004-08-13 Ed Schonberg <schonberg@gnat.com>
30375
30376 PR ada/15601
30377 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
30378 the second operand is overloaded.
30379
30380 2004-08-10 Richard Henderson <rth@redhat.com>
30381
30382 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
30383 add __builtin_alloca.
30384
30385 2004-08-10 Richard Henderson <rth@redhat.com>
30386
30387 * config-lang.in (boot_language): Yes.
30388
30389 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
30390
30391 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
30392 from complaining on potential uninitialized reference.
30393 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
30394 new specification and test explicitly for non-zero return value.
30395
30396 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
30397 returning C.int, to avoid using a derived boolean type.
30398
30399 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
30400 Duplicate_Subexpr_No_Checks in preference to direct use of
30401 Remove_Side_Effects and New_Copy_Tree.
30402 Clear Comes_From_Source on prefix of 'Size attribute reference.
30403
30404 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
30405 g-socthi-vxworks.adb: Change calls to
30406 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
30407 and test explicitly for non-zero return value.
30408
30409 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
30410 (Is_Socket_In_Set): Declare imported function as returning C.int, to
30411 avoid using a derived boolean type.
30412
30413 2004-08-09 Albert Lee <lee@gnat.com>
30414
30415 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
30416
30417 2004-08-09 Pascal Obry <obry@gnat.com>
30418
30419 * gnat_ugn.texi: Document new way to build DLLs on Windows using
30420 GCC's -shared option.
30421
30422 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
30423 Options_2 parameter (options put after object files).
30424
30425 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
30426
30427 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
30428 ignore overflows on low and high bounds of an index to also account for
30429 differences in signedness between sizetype and gnu_index_subtype.
30430 These are as legitimate as the ones caused by a lower TYPE_PRECISION
30431 on sizetype.
30432
30433 2004-08-09 Robert Dewar <dewar@gnat.com>
30434
30435 * s-solita.ads, s-solita.adb: Minor reformatting
30436
30437 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
30438 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
30439 obsolescent section
30440 Add note that No_Implicit_Conditionals does not suppress
30441 run time constraint checks.
30442
30443 * vms_conv.ads: Minor reformatting
30444
30445 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
30446 and necessary for following change).
30447 (Mark): Return new format Mark_Id containing sec stack address
30448 (Release): Use sec stack address from Mark_Id avoiding Self call
30449
30450 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
30451 pointer (cleanup and necessary for following change).
30452 Define Mark_Id as record containing address of secondary stack, that way
30453 Release does not need to find the stack again, decreasing the number of
30454 calls to Self and improving efficiency.
30455
30456 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
30457
30458 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
30459 case variable into the individual case branches when possible.
30460
30461 * sem_ch11.adb: Minor reformatting
30462
30463 * prj.ads: Correct spelling of suffixs
30464
30465 * prj-nmsc.adb: Minor reformatting
30466 Correct spelling suffixs throughout (also in identifiers)
30467
30468 * freeze.adb: Minor spelling correction
30469
30470 * exp_ch2.adb: Cleanups to handling of Current_Value
30471 (no functional effect).
30472
30473 * bld.adb: Correct spelling of suffixs
30474
30475 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
30476
30477 2004-08-09 Ed Schonberg <schonberg@gnat.com>
30478
30479 PR ada/15408
30480 * sem_ch7.adb (Install_Private_Declarations): In the body of the
30481 package or of a child, private entities are both immediately_visible
30482 and not hidden.
30483
30484 2004-08-09 Ed Schonberg <schonberg@gnat.com>
30485
30486 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
30487 there are no range checks on the value of the literal.
30488
30489 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
30490 wrapped is the triggering alternative of an asynchronous select, action
30491 statements mustbe inserted before the select itself.
30492
30493 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
30494 case where the prefix is a protected function call.
30495 (Resolve_Attribute, case 'Access): The attribute reference on a
30496 subprogram is legal in a generic body if the subprogram is declared
30497 elsewhere.
30498
30499 2004-08-09 Vincent Celier <celier@gnat.com>
30500
30501 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
30502 languages, otherwise building the library may fail with unresolved
30503 symbols.
30504 (Compile_Sources): Do not build libraries if -c switch is used
30505
30506 * gnatlink.adb (Process_Args): New switches -M and -Mmap
30507 (Write_Usage): If map file creation is supported, output new switches
30508 -M and -Mmap.
30509 (Gnatlink): When -M is specified, add the necessary switch(es) to the
30510 gcc call, when supported.
30511
30512 * Makefile.in: Added indepsw.o to the object list for gnatlink
30513 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
30514
30515 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
30516 indepsw.adb, indepsw.ads: New files.
30517
30518 2004-08-09 Bernard Banner <banner@gnat.com>
30519
30520 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
30521
30522 * Makefile.in: add section for vxworks x86
30523
30524 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
30525
30526 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
30527 per-object constrained components where the discriminant is of an
30528 Access type.
30529 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
30530 the parent initialization procedure for derived Unchecked_Unions.
30531 Instead, derived Unchecked_Unions build their own initialization
30532 procedure.
30533 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
30534 Check the body of the subprogram for details.
30535 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
30536 functions for derived Unchecked_Union types by introducing a condition.
30537 Allow the creation of TSS equality functions for Unchecked_Unions.
30538 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
30539 Add formal parameter Discr to function signature. Discr is used to
30540 control the generated case statement for Unchecked_Union types.
30541 (Make_Eq_If): Rename formal parameter Node to E in function signature.
30542
30543 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
30544 Unchecked_Unions.
30545 Check the body of the subprogram for details.
30546 (Expand_Composite_Equality): Augment composite type equality to include
30547 correct handling of Unchecked_Union components.
30548 (Expand_N_In): Add condition to detect illegal membership tests when the
30549 subtype mark is a constrained Unchecked_Union and the expression lacks
30550 inferable discriminants, and build a Raise_Program_Error node.
30551 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
30552 to detect types that contain components of unconstrained Unchecked_Union
30553 subtype. Add condition to detect equality between types that have an
30554 unconstrained Unchecked_Union component, and build a Raise_Program_Error
30555 node. Add condition to detect equality between Unchecked_Union types
30556 that lack inferable discriminants, and build a Raise_Program_Error node.
30557 Otherwise build a TSS equality function call.
30558 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
30559 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
30560 with the operand lacking inferable discriminants, and build a Raise_
30561 Program_Error node.
30562 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
30563 composite equality.
30564 (Has_Inferable_Discriminants): Implement new predicate for objects and
30565 expressions of Unchecked_Union type. Check the body of subprogram for
30566 details.
30567 (Has_Unconstrained_UU_Components): Add function
30568 Component_Is_Unconstrained_UU. It is used to detect whether a single
30569 component is of an unconstrained Unchecked_Union subtype. Add function
30570 Variant_Is_Unconstrained_UU. It is used to detect whether a single
30571 component inside a variant is of an unconstrained Unchecked_Union type.
30572
30573 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
30574 inferred discriminant values. Add condition to generate a case
30575 statement with an inferred discriminant as the switch.
30576 (Make_Component_List_Assign): Introduce a Boolean flag that determines
30577 the behaviour of the subprogram in the presence of an Unchecked_Union.
30578 Add condition to trigger the usage of the inferred discriminant value
30579 as the generated case statement switch.
30580 (Make_Field_Assign): Introduce a Boolean flag that determines the
30581 behaviour of the subprogram in the presence of an Unchecked_Union. Add
30582 condition to trigger the usage of the inferred discriminant value as
30583 the right-hand side of the generated assignment.
30584
30585 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
30586 parameter generation when dealing with Unchecked_Unions.
30587
30588 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
30589 checks for Unchecked_Unions.
30590
30591 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
30592
30593 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
30594 Raise_Program_Error nodes for the execution of Read and Write
30595 attributes of Unchecked_Union types and the execution of Input and
30596 Output attributes of Unchecked_Union types that lack default
30597 discriminant values.
30598
30599 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
30600 Unchecked_Union. Add procedure Check_Component. It is used to inspect
30601 per-object constrained components of Unchecked_Unions for being
30602 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
30603 check individual components withing a variant.
30604
30605 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
30606 comparison of Unchecked_Unions.
30607 (Resolve_Equality_OP): Remove guard that prevents equality between
30608 Unchecked_Unions.
30609
30610 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
30611 of component subtypes for Unchecked_Union components.
30612 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
30613 since it is the actual subtype.
30614
30615 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
30616 pass of Unchecked_Union subtypes as generic actuals to formal types
30617 that lack known_discriminant_parts or that are derived Unchecked_Union
30618 types, and do nothing. In any other case, produce an error message.
30619
30620 * sem_ch3.adb (Analyze_Component_Declaration): Add function
30621 Contains_POC. It determines whether a constraint uses the discriminant
30622 of an enclosing record type.
30623 Add condition to detect per-object constrained component and set the
30624 appropriate flag.
30625 (Derived_Type_Declaration): Remove guard that prevents derivation from
30626 Unchecked_Union types.
30627 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
30628 Union subtypes.
30629
30630 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
30631 references to Unchecked_Union discriminants.
30632
30633 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
30634 formal generation when dealing with Unchecked_Unions.
30635 (Set_Actual_Subtypes): Add condition to prevent generation of actual
30636 subtypes for Unchecked_Unions.
30637
30638 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
30639 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
30640 completions of discriminated partial views by Unchecked_Unions and
30641 produce an error message.
30642
30643 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30644
30645 * trans.c (struct stmt_group): New field, GLOBAL.
30646 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
30647 (struct elab_info): New struct.
30648 (elab_info_list, gnu_elab_proc_stack): New variables.
30649 (Compilation_Unit_to_gnu): New procedure.
30650 (gigi): Call it and also handle elaboration procs we've saved.
30651 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
30652 global field from parent.
30653 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
30654 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
30655 (start_stmt_group): Initialize global field from parent.
30656 (add_decl_expr): Set to global for current statement group.
30657 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
30658 post.
30659
30660 * utils.c (global_bindings_p): True when no current_function_decl; no
30661 longer check current_binding_level.
30662
30663 2004-08-09 Ben Brosgol <brosgol@gnat.com>
30664
30665 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
30666 choice.
30667
30668 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
30669
30670 2004-08-06 Andreas Schwab <schwab@suse.de>
30671
30672 * utils.c (gnat_define_builtin): Remove second parameter of
30673 make_decl_rtl.
30674 (begin_subprog_body): Likewise.
30675
30676 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
30677
30678 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
30679 optimization, not supported by the tree-ssa back-end.
30680
30681 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
30682
30683 * s-mastop-irix.adb: Update comments.
30684
30685 * a-except.adb (Exception_Information): Raise Constraint_Error if
30686 exception Id is Null_Id.
30687 This is required behavior, which is more reliably and clearly checked
30688 at the top level interface level.
30689
30690 2004-07-26 Javier Miranda <miranda@gnat.com>
30691
30692 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
30693 call if a component has no default_expression and the box is used.
30694
30695 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
30696 default_expression and you use box, it behaves as if you had declared a
30697 stand-alone object.
30698 (Resolve_Record_Aggregate): If a component has no default_expression and
30699 you use box, it behaves as if you had declared a stand-alone object.
30700
30701 * sem_ch10.adb (Install_Siblings): Do not make visible the private
30702 entities of private-with siblings.
30703
30704 2004-07-26 Ed Schonberg <schonberg@gnat.com>
30705
30706 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
30707 for a component of an itype, set the parent pointer for analysis,
30708 there is no list in which to insert it.
30709
30710 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
30711 bona-fide renamings, not for inherited operations.
30712
30713 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
30714 actual for a formal that is an access parameter, create local
30715 finalization list even if the expression is not an aggregate.
30716
30717 2004-07-26 Ed Schonberg <schonberg@gnat.com>
30718
30719 PR ada/16213
30720 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
30721 Diagnose properly illegal subprogram renamings that are library units.
30722
30723 2004-07-26 Ed Schonberg <schonberg@gnat.com>
30724
30725 PR ada/15588
30726 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
30727 conversion rewritten as an unchecked conversion, check that original
30728 expression is a variable.
30729
30730 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
30731 unchecked_conversion, create new node rather than rewriting in place,
30732 to preserve original construct.
30733
30734 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30735
30736 * gigi.h (gnat_expand_body): Deleted.
30737
30738 * Make-lang.in: (trans.o): Depends on function.h.
30739
30740 * misc.c: (gnat_expand_body): Moved to here.
30741
30742 * trans.c (gnat_expand_body_1): Deleted.
30743 (gnat_expand_body): Moved from here.
30744 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
30745 (add_stmt): Check for marked visited with global_bindings_p.
30746 (gnat_gimplify_expr, case COMPONENT_REF): New case.
30747 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
30748
30749 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
30750 VIEW_CONVERT_EXPR if not operation type.
30751
30752 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
30753 fat pointer.
30754
30755 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
30756 changes: reformatting of negation operators, removing unneeded
30757 inequality comparison with zero, converting equality comparisons with
30758 zero to negations, changing int/0/1 to bool/false/true, replace calls
30759 to gigi_abort with abort, and various other similar changes.
30760
30761 2004-07-26 Vincent Celier <celier@gnat.com>
30762
30763 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
30764 "setup".
30765
30766 * make.adb (Gnatmake): Fail when a library is not present and there is
30767 no object directory.
30768
30769 * mlib-prj.adb (Check_Library): No need to check if the library needs
30770 to be rebuilt if there is no object directory, hence no object files
30771 to build the library.
30772
30773 * opt.ads (Setup_Projects): New Boolean flag.
30774
30775 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
30776 Location.
30777 Create directory when Kind /= "" and in "gnat setup". Report error if
30778 directory cannot be created.
30779 (Ada_Check): Create library interface copy dir if it does not exist
30780 and we are in "gnat setup".
30781 (Find_Sources): No error if in "gnat setup" and no Ada sources were
30782 found.
30783 (Language_Independent_Check): Create object directory, exec directory
30784 and/or library directory if they do not exist and we are in
30785 "gnat setup".
30786
30787 * vms_conv.ads: (Command_Type): New command Setup.
30788
30789 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
30790
30791 * vms_data.ads: Add qualifiers/switches for new built-in command
30792 "setup".
30793
30794 2004-07-25 Richard Henderson <rth@redhat.com>
30795
30796 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
30797 DECL_IGNORED_P on RESULT_DECL.
30798
30799 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
30800
30801 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
30802 allocation and potentially overflowing update with
30803 Tailored_Exception_Information. Use the sec-stack free procedural
30804 interface to output Exception_Information instead.
30805
30806 * a-except.adb (To_Stderr): New subprogram for character, and string
30807 version moved from a-exextr to be visible from other separate units.
30808 (Tailored_Exception_Information): Remove the procedural version,
30809 previously used by the default Last_Chance_Handler and not any more.
30810 Adjust various comments.
30811
30812 * a-exexda.adb: Generalize the exception information procedural
30813 interface, to minimize the use of secondary stack and the need for
30814 local buffers when the info is to be output to stderr:
30815 (Address_Image): Removed.
30816 (Append_Info_Character): New subprogram, checking for overflows and
30817 outputing to stderr if buffer to fill is of length 0.
30818 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
30819 (Append_Info_Address, Append_Info_Exception_Name,
30820 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
30821 Append_Info_Basic_Exception_Traceback,
30822 Append_Info_Exception_Information): New subprograms.
30823 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
30824 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
30825 Exception_Info_Maxlength, Exception_Name_Length,
30826 Exception_Message_Length): New subprograms.
30827 (Exception_Information): Use Append_Info_Exception_Information.
30828 (Tailored_Exception_Information): Use
30829 Append_Info_Basic_Exception_Information.
30830 Export services for the default Last_Chance_Handler.
30831
30832 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
30833 other separate units.
30834
30835 2004-07-20 Vincent Celier <celier@gnat.com>
30836
30837 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
30838
30839 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30840
30841 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
30842 emit itype references for the designated types of component types that
30843 are declared outside of the full record declaration, and that may
30844 denote a partial view of that record type.
30845
30846 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30847
30848 PR ada/15607
30849 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
30850 which is the designated type in an access component declaration, to the
30851 list of incomplete dependents of the parent type, to avoid elaboration
30852 issues with out-of-scope subtypes.
30853 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
30854 full view of the parent.
30855
30856 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30857
30858 PR ada/15610
30859 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
30860 entities that are hidden, such as references to generic actuals
30861 outside an instance.
30862
30863 2004-07-20 Javier Miranda <miranda@gnat.com>
30864
30865 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
30866 support to the new notation.
30867 (Analyze_Selected_Component): Add call to Try_Object_Operation.
30868
30869 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
30870
30871 * s-taprob.adb: Adding the elaboration code required for initializing
30872 the tasking soft links that are common to the full and the restricted
30873 run times.
30874
30875 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
30876 restricted run time has been moved to the package
30877 System.Soft_Links.Tasking.
30878
30879 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
30880 restricted run time has been moved to the package
30881 System.Soft_Links.Tasking.
30882
30883 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
30884
30885 * s-solita.ads, s-solita.adb: New files.
30886
30887 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30888
30889 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
30890 Case_Statement_to_gnu): Split off from gnat_to_gnu.
30891 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
30892 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
30893 Exception_Handler_to_gnu_zcx): Likewise.
30894
30895 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
30896
30897 * gigi.h (builtin_function): Declare.
30898
30899 2004-07-15 Robert Dewar <dewar@gnat.com>
30900
30901 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
30902 reformatting
30903
30904 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
30905 access values as an example of a warning.
30906
30907 * gnat_rm.texi: Document new attribute Has_Access_Values
30908
30909 * gnat-style.texi: Document that box comments belong on nested
30910 subprograms
30911
30912 * sem_util.ads (Has_Access_Values): Improved documentation
30913
30914 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
30915
30916 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
30917 (Process_Interface_Name): Call to this new procedure
30918 (Set_Extended_Import_Export_External_Name): Call to this new procedure
30919
30920 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
30921
30922 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
30923
30924 * einfo.ads: Minor comment typo fixed
30925
30926 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
30927
30928 * snames.adb: Add _atcb.
30929
30930 * snames.ads: Add Name_uATCB.
30931
30932 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
30933 (in the expanded code) when using the restricted run time.
30934
30935 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
30936 a in parameter in order to allow ATCBs to be preallocated (in the
30937 expanded code).
30938
30939 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
30940 order to allow ATCBs to be preallocated. In case of error, the ATCB is
30941 deallocated in System.Tasking.Stages.
30942
30943 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30944 order to allow ATCBs to be preallocated.
30945
30946 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30947 here. It was previously done in Initialize_ATCB.
30948
30949 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30950
30951 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30952 Restricted run time.
30953
30954 * exp_ch3.adb: When using the Restricted run time, pass the
30955 preallocated Ada_Task_Control_Block when creating a task.
30956
30957 2004-07-15 Ed Schonberg <schonberg@gnat.com>
30958
30959 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30960 function call that is itself an actual in an enclosing call, diagnose
30961 problem here rather than assuming that resolution will catch it.
30962
30963 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30964 the local copy of a generic unit for a formal package, and the generic
30965 is a child unit, install private part of ancestors before compiling
30966 private part of spec.
30967
30968 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30969 use scope entities rather than tree structures, to handle properly
30970 parent units that are instances rewritten as bodies for inlining
30971 purposes.
30972
30973 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30974 Remove_Parents): Handle properly a parent unit that is an
30975 instantiation, when the unit has been rewritten as a body for inlining
30976 purposes.
30977
30978 * par.adb (Goto_List): Global variable to collect goto statements in a
30979 given unit, for use in detecting natural loops.
30980
30981 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30982 use in detecting natural loops.
30983
30984 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30985 backwards goto's, and rewrite as a infinite loop, to improve locality
30986 of temporaries.
30987
30988 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30989 subcomponent that includes an indexed reference, to prevent the
30990 generation of copies that would miscompile the desired assignment
30991 statement.
30992 (Build_Task_Image_Decls): Add a numeric suffix to
30993 generated name for string variable, to avoid spurious conflicts with
30994 the name of the type of a single protected object.
30995
30996 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30997 loop with an explicit exit statement, to avoid generating an
30998 out-of-range value with 'Succ leading to spurious constraint_errors
30999 when compiling with -gnatVo.
31000
31001 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31002
31003 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31004 might not be analyzed yet, even if its Etype is already set (case of an
31005 unchecked conversion built using Unchecked_Convert_To, for example).
31006 If the prefix has already been analyzed, this will be a nop anyway.
31007
31008 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31009 controller type, or an assignment of a record type with controlled
31010 components, copy only user data, and leave the finalization chain
31011 pointers untouched.
31012
31013 2004-07-15 Vincent Celier <celier@gnat.com>
31014
31015 * make.adb (Collect_Arguments): Improve error message when attempting
31016 to compile a source not part of any project, when -x is not used.
31017
31018 * prj.ads: (Defined_Variable_Kind): New subtype
31019
31020 * prj-attr.adb (Register_New_Package): Two new procedures to register
31021 a package with or without its attributes.
31022 (Register_New_Attribute): Mew procedure to register a new attribute in a
31023 package.
31024 New attribute oriented subprograms: Attribute_Node_Id_Of,
31025 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31026 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31027 Next_Attribute.
31028 New package oriented subprograms: Package_Node_Id_Of,
31029 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31030
31031 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31032 type.
31033 (Package_Node_Id): Now a private, self initialized type
31034 (Register_New_Package): New procedure to register a package with its
31035 attributes.
31036 New attribute oriented subprograms: Attribute_Node_Id_Of,
31037 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31038 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31039 Next_Attribute.
31040 New package oriented subprograms: Package_Node_Id_Of,
31041 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31042
31043 * prj-dect.adb (Parse_Attribute_Declaration,
31044 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31045
31046 * prj-makr.adb (Make): Parse existing project file before creating
31047 other files. Fail if there was an error during parsing.
31048
31049 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31050 new spec of Prj.Attr.
31051
31052 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31053 to new spec of Prj.Attr.
31054
31055 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31056
31057 * utils2.c: Fix typo in comment.
31058
31059 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31060
31061 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31062 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31063
31064 2004-07-14 Andreas Schwab <schwab@suse.de>
31065
31066 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31067
31068 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31069
31070 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31071 object type.
31072 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31073 TYPE_STUB_DECL.
31074
31075 * misc.c (gnat_types_compatible_p): New function.
31076 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31077 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31078
31079 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31080 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31081 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31082 (mark_visited): Don't mark dummy type.
31083 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31084 parameter, we must remove any LJM building from GNU_NAME.
31085 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31086 (pos_to_constructor): Use int_const_binop.
31087 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31088 PARM_DECL.
31089
31090 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31091 (gnat_pushlevel): Set TREE_USE on BLOCK node.
31092 (gnat_install_builtins): Add __builtin_memset.
31093
31094 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
31095
31096 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31097 for a renaming, stabilize the initialization expression if we are at a
31098 local level. At the local level, uses of the renaming may be performed
31099 by a direct dereference of the initializing expression, and we don't
31100 want possible variables there to be evaluated for every use.
31101
31102 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31103 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31104 them on the way. Account for the fact that we may introduce side
31105 effects in the process.
31106
31107 2004-07-13 Richard Henderson <rth@redhat.com>
31108
31109 * misc.c (default_pass_by_ref): Use pass_by_reference.
31110
31111 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
31112
31113 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31114 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31115
31116 2004-07-08 Richard Henderson <rth@redhat.com>
31117
31118 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31119 commentary.
31120
31121 2004-07-06 Vincent Celier <celier@gnat.com>
31122
31123 * vms_conv.ads: Minor reformatting.
31124 Alphabetical order for enumerated values of type Command_Type, to have
31125 the command in alphabetical order for the usage.
31126
31127 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31128 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31129
31130 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31131
31132 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31133 (Add_Archive_Path): Only add the global archive if there is one.
31134 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31135 or not any object file to put in the global archive, and don't build
31136 a global archive if there is none.
31137 (X_Switches): New table
31138 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31139 in the X_Switches table, if any.
31140 (Initialize): Make sure the X_Switches table is empty
31141 (Scan_Arg): Record -X switches in table X_Switches
31142
31143 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31144
31145 * make.adb: Minor comment fix
31146
31147 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31148 invoked with directory information, add the directory in front of the
31149 path.
31150
31151 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31152 invoked with directory information, add the directory in front of the
31153 path.
31154
31155 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31156 when Keep_Temporary_Files is False.
31157 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31158 directory information, add the directory in front of the path.
31159 When not on VMS, handle new switch -dn before the command to set
31160 Keep_Temporary_Files to True.
31161 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31162 everywhere.
31163
31164 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31165 invoked with directory information, add the directory in front of the
31166 path.
31167
31168 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
31169
31170 * snames.ads, snames.adb (Name_Stub): New name for the distributed
31171 systems annex.
31172
31173 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31174 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31175
31176 * g-socket.adb (To_Timeval): Fix incorrect conversion of
31177 Selector_Duration to Timeval for the case of 0.0.
31178
31179 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31180 documentation from Evolve_And_Then.
31181
31182 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
31183
31184 * s-taprop-tru64.adb, s-taprop-os2.adb,
31185 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31186
31187 2004-07-06 Robert Dewar <dewar@gnat.com>
31188
31189 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31190 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31191 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31192 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31193 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31194 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31195 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31196 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31197 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31198 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31199 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31200 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31201 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31202 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31203 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31204 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31205 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31206 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31207 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31208 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31209 vms_data.ads: Minor reformatting,
31210 Fix bad box comment format.
31211
31212 * gnat_rm.texi: Fix minor grammatical error
31213
31214 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31215
31216 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31217 more cases of discriminated records to be recognized as not needing a
31218 secondary stack.
31219 (Has_Access_Values): New function.
31220
31221 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31222
31223 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31224 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31225 with LRM terminology).
31226 Change terminology in comments primitive type => elementary type.
31227
31228 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31229
31230 PR ada/15602
31231 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31232 parameters do not impose any requirements on the presence of a body.
31233
31234 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31235
31236 PR ada/15593
31237 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31238 compilation unit and is in an open scope at the point of instantiation,
31239 assume that a body may be present later.
31240
31241 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31242
31243 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31244 Improve error message when specified size is not supported.
31245
31246 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31247 is never a primitive operation.
31248
31249 2004-07-05 Andreas Schwab <schwab@suse.de>
31250
31251 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31252 RECORD_OR_UNION_CHECK.
31253 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31254
31255 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
31256
31257 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31258 dependency on xgnatugn, instead build it via a submake.
31259 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31260
31261 2004-07-04 Richard Henderson <rth@redhat.com>
31262
31263 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31264
31265 2004-07-01 Richard Henderson <rth@redhat.com>
31266
31267 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31268 * utils.c (max_size): Likewise.
31269
31270 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31271
31272 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31273 and rest_of_type_compilation; add arg to create_*_decl.
31274 (annotate_decl_with_node): Deleted.
31275 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31276 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31277 (get_current_block_context, gnat_pushdecl): New declarations.
31278 (gnat_init_stmt_group): Likewise.
31279 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31280 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31281 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31282 (gnat_init): Call gnat_init_stmt_group.
31283 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31284 (gnu_pending_elaboration_list): Deleted.
31285 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31286 (gigi): Rearrange initialization calls and move some to last above.
31287 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31288 Delete calls to add_decl_expr; add arg to create_*_decl.
31289 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
31290 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
31291 begin_subprog_body and call it.
31292 Don't push and pop ggc context.
31293 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
31294 (add_stmt): Remove handling of DECL_EXPR from here.
31295 If not in function, mark visited.
31296 (add_decl_expr): Put global at top level.
31297 Check for cases of DECL_INITIAL we have to handle here.
31298 (process_type): Add extra arg to create_type_decl.
31299 (build_unit_elab): Rework to just gimplify.
31300 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
31301 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
31302 (get_pending_elaborations, pending_elaborations_p): Likewise.
31303 (push_pending_elaborations, pop_pending_elaborations): Likewise.
31304 (get_elaboration_location, insert_elaboration_list): Likewise.
31305 (gnat_binding_level): Renamed from ada_binding_level.
31306 (init_gnat_to_gnu): Don't clear pending_elaborations.
31307 (global_bindings_p): Treat as global if no current_binding_level.
31308 (set_current_block_context): New function.
31309 (gnat_pushdecl): Renamed from pushdecl; major rework.
31310 All callers changed.
31311 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
31312 (finish_record_type): Call call pushdecl for stub decl.
31313 (function_nesting_depth): Deleted.
31314 (begin_subprog_body): Delete obsolete code.
31315 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
31316
31317 2004-06-28 Robert Dewar <dewar@gnat.com>
31318
31319 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31320 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
31321 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
31322 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
31323 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
31324
31325 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
31326 deal with problem of inefficient slices on machines with strict
31327 alignment, when the slice is a component of a composite.
31328
31329 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
31330 machines, we need the check there as well.
31331
31332 2004-06-28 Ed Schonberg <schonberg@gnat.com>
31333
31334 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
31335 determine safe copying direction for overlapping slice assignments
31336 when component is controlled.
31337
31338 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
31339 formal derived type in the actual for a formal package are visible in
31340 the enclosing instance.
31341
31342 2004-06-28 Ed Schonberg <schonberg@gnat.com>
31343
31344 PR ada/15600
31345 * sem_util.adb (Trace_Components): Diagnose properly an illegal
31346 circularity involving a private type whose completion includes a
31347 self-referential component.
31348 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
31349 renaming or an instantiation from an implicit derived operation.
31350
31351 2004-06-28 Pascal Obry <obry@gnat.com>
31352
31353 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
31354 DLL.
31355 (Library_File_Name_For): Idem.
31356
31357 2004-06-28 Matthew Gingell <gingell@gnat.com>
31358
31359 * g-traceb.ads: Add explanatory note on the format of addresses
31360 expected by addr2line.
31361
31362 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
31363
31364 * Makefile.in: Force debugging information on s-tasdeb.adb,
31365 a-except.adb and s-assert.adb needed by the debugger.
31366
31367 2004-06-28 Vincent Celier <celier@gnat.com>
31368
31369 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
31370 Need_To_Build_Lib.
31371 (Gnatmake): Ditto.
31372
31373 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
31374
31375 * prj.adb: Minor reformatting
31376 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
31377
31378 * prj.ads: Comment updates
31379 Minor reformatting
31380 (Project_Data): Change Flag1 to Need_To_Build_Lib.
31381 Remove Flag2: not used.
31382
31383 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
31384 declaration.
31385
31386 * gnat_ugn.texi: Put a "null;" declaration in one project file example
31387
31388 * gnat_rm.texi: Document Empty declarations "null;".
31389
31390 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
31391 front of the linker options.
31392 (Link_Foreign): Put the global archives and the libraries in front of
31393 the linker options.
31394
31395 2004-06-28 Javier Miranda <miranda@gnat.com>
31396
31397 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
31398 (RTU_Loaded): Code cleanup
31399 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
31400 withed predefined units.
31401
31402 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
31403 explicitly withed predefined units.
31404 Fix typo in comment
31405
31406 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
31407 explicitly withed predefined units.
31408
31409 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31410
31411 * ada-tree.def (DECL_STMT): Deleted.
31412 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
31413 (DECL_STMT_VAR): Deleted.
31414 * decl.c: add_decl_stmt now add_decl_expr.
31415 * gigi.h: Likewise.
31416 * trans.c: Likewise.
31417 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31418 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
31419 (add_stmt): Only handle padded type here.
31420 (add_stmt_with_node): Allow gnat_node to not be present.
31421 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
31422 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
31423 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
31424 make a SAVE_EXPR for the entire fat pointer.
31425 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
31426 (create_index_type): Make a DECL_EXPR.
31427 (end_subprog_body): Don't call allocate_struct_function here but
31428 do clear cfun.
31429
31430 2004-06-25 Pascal Obry <obry@gnat.com>
31431
31432 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
31433 Relocatable from Build_Dynamic_Library call.
31434
31435 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
31436 Relocatable are now synonym.
31437
31438 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
31439
31440 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
31441 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
31442 call.
31443
31444 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
31445 Lib_Address and Relocatable.
31446 (Default_DLL_Address): Removed.
31447
31448 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31449 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31450 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
31451 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
31452 (Default_DLL_Address): Removed.
31453
31454 * mlib-tgt-mingw.adb: Ditto.
31455 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
31456
31457 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
31458 the initial thread stack size.
31459
31460 * a-strmap.ads: Move package L to private part as it is not used in
31461 the spec. Found while reading code.
31462
31463 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
31464
31465 * tracebak.c: Introduce support for a GCC infrastructure based
31466 implementation of __gnat_backtrace.
31467
31468 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
31469 any more. Use accessors instead. This eases maintenance and relaxes
31470 some alignment constraints.
31471 (_GNAT_Exception structure): Remove the Ada specific fields
31472 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
31473 a-exexpr.adb.
31474 (is_handled_by, __gnat_eh_personality): Replace component references to
31475 exception structure by use of the new accessors.
31476
31477 * init.c (__gnat_initialize): Adjust comments to match the just
31478 reverted meaning of the -static link-time option.
31479
31480 * adaint.c (convert_addresses): Arrange not to define a stub for
31481 mips-irix any more, as we now want to rely on a real version from a
31482 recent libaddr2line.
31483
31484 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
31485 the personality routine can use them and not have to rely on a C
31486 counterpart of the record anymore. This simplifies maintenance and
31487 relaxes the constraint of having Standard'Maximum_Alignment match
31488 BIGGEST_ALIGNMENT.
31489 Update comments, and add a section on the common header alignment issue.
31490
31491 2004-06-25 Geert Bosch <bosch@gnat.com>
31492
31493 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
31494 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
31495
31496 2004-06-25 Robert Dewar <dewar@gnat.com>
31497
31498 * gnat_rm.texi: Fix section on component clauses to indicate that the
31499 restriction on byte boundary placement still applies for bit packed
31500 arrays.
31501 Add comment on stack usage from Initialize_Scalars
31502
31503 * gnat_ugn.texi: Add documentation for -gnatyLnnn
31504
31505 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
31506 limiting nesting level.
31507
31508 * usage.adb: Add line for -gnatyLnnn switch
31509
31510 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
31511 sem_ch13.adb, exp_aggr.adb: Minor reformatting
31512
31513 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
31514 type as well as on the subtype. This corrects a problem in freeze in
31515 setting alignments of atomic types.
31516
31517 * sem_eval.ads: Minor comment typo fixed
31518
31519 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
31520 level. Minor reformatting.
31521
31522 * fname.adb (Is_Predefined_File_Name): Require a letter after the
31523 minus sign. This means that file names like a--b.adb will not be
31524 considered predefined.
31525
31526 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
31527 record Test new flag and give diagnostic for bad component clause.
31528 (Freeze_Entity): Set alignment of array from component alignment in
31529 cases where this is safe to do.
31530
31531 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
31532 arrays.
31533
31534 * cstand.adb: (Create_Standard): Set alignment of String to 1
31535
31536 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
31537
31538 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
31539 code in the common constrained array cases.
31540
31541 * a-storio.adb: Change implementation to avoid possible alignment
31542 problems on machines requiring strict alignment (data should be moved
31543 as type Buffer, not type Elmt).
31544
31545 * checks.adb (Apply_Array_Size_Check): Improve these checks by
31546 killing the overflow checks which we really do not need (64-bits is
31547 enough).
31548
31549 2004-06-25 Vincent Celier <celier@gnat.com>
31550
31551 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
31552 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
31553 inconditionally for the main project.
31554 (Recursive_Add_Archives.Add_Archive_Path): New procedure
31555 (Link_Executables.Check_Time_Stamps): New procedure
31556 (Link_Executables.Link_Foreign): New procedure
31557 Changes made to reduce nesting level of this package
31558 (Check): New procedure
31559 (Add_Switches): When not in quiet output, check that a switch is not
31560 the concatenation of several valid switches. If it is, issue a warning.
31561 (Build_Global_Archive): If the global archive is rebuilt, linking need
31562 to be done.
31563 (Compile_Sources): Rebuilding a library archive does not imply
31564 rebuilding the global archive.
31565 (Build_Global_Archive): New procedure
31566 (Build_Library): New name for Build_Archive, now only for library
31567 project
31568 (Check_Archive_Builder): New procedure
31569 (Create_Global_Archive_Dependency_File): New procedure
31570 (Gprmake): Call Build_Global_Archive before linking
31571 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
31572 throughout.
31573 (Scan_Arg): Display the Copyright notice when -v is used
31574
31575 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
31576 for gnatls.
31577
31578 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
31579 COMPILE.
31580 Add new GNAT LIST qualifier /FILES=
31581 Added qualifier /DIRECTORY= to GNAT METRIC
31582 Added qualifier /FILES= to GNAT METRIC
31583 Added qualifier /FILES to GNAT PRETTY
31584
31585 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
31586 to take into account both versions of the switch.
31587
31588 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
31589 always be the last switch to the gcc driver. Disable switch storing so
31590 that switches automatically added by the gcc driver are not put in the
31591 ALI file.
31592
31593 * prj.adb (Project_Empty): Take into account changes in components of
31594 Project_Data.
31595
31596 * prj.ads (Languages_Processed): New enumaration value All_Languages.
31597
31598 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
31599 used. Split Boolean component Ada_Sources_Present in two Boolean
31600 components Ada_Sources_Present and Other_Sources_Present.
31601 Minor reformatting
31602
31603 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
31604 instead of Sources_Present.
31605 (Set_Ada_Paths.Add.Recursive_Add): Ditto
31606
31607 * prj-nmsc.adb: Minor reformatting
31608 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
31609 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
31610 Check_Ada_Naming_Scheme.
31611 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
31612 throughout.
31613
31614 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
31615 In_Limited.
31616 Make sure that all cycles where there is at least one "limited with"
31617 are detected.
31618 (Parse_Single_Project): New Boolean parameter In_Limited
31619
31620 * prj-proc.adb (Recursive_Check): When Process_Languages is
31621 All_Languages, call first Prj.Nmsc.Ada_Check, then
31622 Prj.Nmsc.Other_Languages_Check.
31623
31624 * prj-proc.adb (Process): Use Ada_Sources_Present or
31625 Other_Sources_Present (instead of Sources_Present) depending on
31626 Process_Languages.
31627
31628 * lang-specs.h: Keep -g and -m switches in the same order, and as the
31629 last switches.
31630
31631 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
31632 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
31633 False.
31634 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
31635 False.
31636
31637 * lib.ads (Disable_Switch_Storing): New procedure.
31638
31639 * make.adb: Modifications to reduce nesting level of this package.
31640 (Check_Standard_Library): New procedure
31641 (Gnatmake.Check_Mains): New procedure
31642 (Gnatmake.Create_Binder_Mapping_File): New procedure
31643 (Compile_Sources.Compile): Add switch -gnatez as the last option
31644 (Display): Never display -gnatez
31645
31646 * Makefile.generic:
31647 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
31648
31649 * gnatcmd.adb (Check_Project): New function
31650 (Process_Link): New procedure to reduce nesting depth
31651 (Check_Files): New procedure to reduce the nesting depth.
31652 For GNAT METRIC, include the inherited sources in extending projects.
31653 (GNATCmd): When GNAT LS is invoked with a project file and no files,
31654 add the list of files from the sources of the project file. If this list
31655 is too long, put it in a temp text files and use switch -files=
31656 (Delete_Temp_Config_Files): Delete the temp text file that contains
31657 a list of source for gnatpp or gnatmetric, if one has been created.
31658 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
31659 in the project file is too large, create a temporary text file that
31660 list them and pass it to the tool with "-files=<temp text file>".
31661 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
31662
31663 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
31664 generated file is in not in Ada.
31665
31666 * gnatls.adb: Remove all parameters And_Save that are no longer used.
31667 (Scan_Ls_Arg): Add processing for -files=
31668 (Usage): Add line for -files=
31669
31670 * g-os_lib.adb (On_Windows): New global constant Boolean flag
31671 (Normalize_Pathname): When on Windows and the path starts with a
31672 directory separator, make sure that the resulting path will start with
31673 a drive letter.
31674
31675 * clean.adb (Clean_Archive): New procedure
31676 (Clean_Project): When there is non-Ada code, delete the global archive,
31677 the archive dependency files, the object files and their dependency
31678 files, if they exist.
31679 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
31680
31681 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
31682
31683 * sinfo.ads: Fix typo in comment.
31684
31685 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
31686 the TSS for remote access-to-subprogram types, since these TSS are
31687 always present once the type has been analyzed.
31688 (RAS_E_Dereference): Same.
31689
31690 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
31691 reference raises Bad_Attribute, mark the reference as analyzed so the
31692 node (and any children resulting from rewrites that could have occurred
31693 during the analysis that ultimately failed) is not analyzed again.
31694
31695 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
31696
31697 * exp_dist.adb: Minor comment fix.
31698
31699 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
31700 type is an anonymous access type, no unchecked deallocation of the
31701 allocated object can occur. If the object is controlled, attach it with
31702 a count of 1. This allows attachment to the Global_Final_List, if
31703 no other relevant list is available.
31704 (Get_Allocator_Final_List): For an anonymous access type that is
31705 the type of a discriminant or record component, the corresponding
31706 finalisation list is the one of the scope of the type.
31707
31708 2004-06-25 Ed Schonberg <schonberg@gnat.com>
31709
31710 * sem_ch3.adb (Replace_Type): When computing the signature of an
31711 inherited subprogram, use the first subtype if the derived type
31712 declaration has no constraint.
31713
31714 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
31715 before applying previous optimization. Minor code cleanup.
31716
31717 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
31718 placed at the beginning of an unpacked record without explicit
31719 alignment, a slice of it will be aligned and does not need a copy when
31720 used as an actual.
31721
31722 2004-06-25 Ed Schonberg <schonberg@gnat.com>
31723
31724 PR ada/15591
31725 PR ada/15592
31726 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
31727 reference is written with expressions mimicking parameters.
31728
31729 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
31730
31731 PR ada/15589
31732 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
31733 STEP 2a. The constraints of a full type declaration of a derived record
31734 type are checked for conformance with those declared in the
31735 corresponding private extension declaration. The message
31736 "not conformant with previous declaration" is emitted if an error is
31737 detected.
31738
31739 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
31740
31741 * g-traceb.ads: Document the need for -E binder switch in the spec.
31742
31743 * g-trasym.ads: Document the need for -E binder switch in the spec.
31744
31745 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
31746
31747 * sem_prag.adb: Add handling of pragma Detect_Blocking.
31748
31749 * snames.h, snames.ads, snames.adb: Add entry for pragma
31750 Detect_Blocking.
31751
31752 * s-rident.ads: Change reference to pragma Detect_Blocking.
31753
31754 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
31755 system.ads.
31756
31757 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
31758 to indicate whether pragma Detect_Blocking is active.
31759
31760 * par-prag.adb: Add entry for pragma Detect_Blocking.
31761
31762 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
31763 of not handling WITH.
31764 Note that this replaces the previous update which was incorrect.
31765
31766 2004-06-25 Javier Miranda <miranda@gnat.com>
31767
31768 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
31769 use-clauses to have a clean environment.
31770
31771 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
31772 the installation of the use-clauses to stablish a clean environment in
31773 case of compilation of a separate unit; otherwise the call to
31774 use_one_package is protected by the barrier Applicable_Use.
31775
31776 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
31777 the installation of the use-clauses to stablish a clean environment in
31778 case of compilation of a separate unit.
31779 (End_Use_Clauses): Minor comment cleanup.
31780
31781 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
31782
31783 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
31784
31785 2004-06-23 Richard Henderson <rth@redhat.com>
31786
31787 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
31788
31789 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31790
31791 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
31792 now bool instead of int.
31793 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
31794 * trans.c (gnu_switch_label_stack): New function.
31795 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
31796 elaboration of renamed entity returns.
31797 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
31798 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
31799 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
31800 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
31801 DECL_SIZE_UNIT and simplify variable-sized case.
31802 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31803 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
31804 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
31805 (build_unit_elab): Disable for now.
31806 * utils.c (mark_visited): New function.
31807 (pushdecl): Walk tree to call it for global decl.
31808 (update_pointer_to): Update all variants of pointer and ref types.
31809 Add arg to COMPONENT_REF.
31810 (convert): Likewise.
31811 Move check for converting between variants lower down.
31812 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
31813 (build_allocator): Don't force type of MODIFY_EXPR.
31814 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
31815 put_var_into_stack.
31816
31817 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31818
31819 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
31820 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
31821 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
31822 subprograms.
31823 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
31824 all callers changed.
31825 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
31826 the way that EXIT_STMT finds the loop label.
31827 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
31828 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
31829 (add_stmt): Use annotate_with_locus insted of setting directly.
31830 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
31831 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
31832 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
31833 (build_vms_descriptor): Add extra args to ARRAY_REF.
31834 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
31835 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
31836 New cases.
31837 (build_binary_op): Don't make explicit CONVERT_EXPR.
31838 Add extra rgs to ARRAY_REF.
31839
31840 2004-06-14 Pascal Obry <obry@gnat.com>
31841
31842 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
31843 Windows. Fix minor typo.
31844
31845 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
31846 which is now supported on Windows. With this implementation using the
31847 Library Project feature is no different on Windows than on UNIX.
31848
31849 2004-06-14 Vincent Celier <celier@gnat.com>
31850
31851 * makegpr.adb (Compile_Sources): Nothing to do when there are no
31852 non-Ada sources.
31853
31854 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
31855
31856 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
31857 found, show the project name and the path of the previously parsed
31858 project file.
31859
31860 2004-06-14 Ed Schonberg <schonberg@gnat.com>
31861
31862 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
31863 array, avoid copying the actual before the call.
31864
31865 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
31866
31867 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
31868 Instead, allocate memory on worst-case alignment assumptions, and then
31869 return an aligned address within the allocated zone.
31870
31871 2004-06-14 Robert Dewar <dewar@gnat.com>
31872
31873 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
31874 elab entities in predefined units in No_Run_Time_Mode.
31875 (Gen_Adainit_C): Same fix
31876 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
31877 units in No_Run_Time_Mode
31878 (Gen_Elab_Calls_C): Same fix
31879
31880 * symbols-vms-alpha.adb: Minor reformatting
31881
31882 * g-debpoo.ads: Minor reformatting
31883
31884 * lib.adb (In_Same_Extended_Unit): Version working on node id's
31885
31886 * lib.ads (In_Same_Extended_Unit): Version working on node id's
31887
31888 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
31889 working on nodes.
31890
31891 * make.adb: Minor reformatting
31892
31893 * par-ch12.adb: Minor reformatting
31894
31895 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
31896
31897 * prj-strt.adb: Minor reformatting
31898
31899 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
31900 be more general.
31901
31902 * sem_attr.adb: Minor reformatting
31903
31904 * sem_ch7.adb: Minor reformatting
31905
31906 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
31907 for type in the same unit as the object declaration.
31908
31909 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
31910 static string expressions and not just string literals.
31911 Minor reformatting
31912 (Set_Warning): Reset restriction warning flag for restriction pragma
31913 Implement pragma Profile_Warnings
31914 Implement pragma Profile (Restricted)
31915 Give obolescent messages for old restrictions and pragmas
31916
31917 * snames.h, snames.ads, snames.adb: Add new entry for pragma
31918 Profile_Warnings.
31919
31920 * s-rident.ads: Add declarations for restrictions required by profile
31921 Restricted and profile Ravenscar.
31922
31923 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
31924
31925 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
31926 configuration pragmas.
31927
31928 2004-06-11 Vincent Celier <celier@gnat.com>
31929
31930 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
31931 gnatsym, when symbol policy is Restricted.
31932
31933 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
31934 gnatsym, when symbol policy is Restricted.
31935
31936 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
31937 read the symbol file.
31938 (Finalize): Fail in symbol policy Restricted if a symbol in the original
31939 symbol file is not in the object files. Do not create a new symbol file
31940 when symbol policy is Restricted.
31941
31942 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31943 in Scng.
31944
31945 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31946 Restricted.
31947 (Usage): Line for new switch -R
31948
31949 * make.adb (Initialize): When the platform is not VMS, add the
31950 directory where gnatmake is invoked in the front of the path, if
31951 gnatmake is invoked with directory information. Change the Scan_Args
31952 while loop to a for loop.
31953 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31954 if Depth is equal or greater than the proposed depth, there is nothing
31955 to do.
31956 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31957 instead of 0.
31958
31959 * prj.ads: Add new symbol policy Restricted.
31960
31961 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31962 with the new parameters Check_All_Labels and Case_Location.
31963
31964 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31965 (Library_Symbol_File needs to be defined).
31966
31967 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31968 and Case_Location If Check_All_Labels is True, check that all values of
31969 the string type are used, and output warning(s) if they are not.
31970
31971 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31972 and Case_Location.
31973
31974 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31975
31976 * gnat_ugn.texi: Update documentation about the library directory in
31977 Library Projects.
31978
31979 * makegpr.adb (Display_Command): In verbose mode, also display the
31980 value of the CPATH env var, when the compiler is gcc.
31981 (Initialize): Change the Scan_Args while loop to a for loop
31982 (Compile_Individual_Sources): Change directory to object directory
31983 before compilations.
31984
31985 * symbols.ads: New symbol policy Restricted.
31986
31987 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
31988
31989 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31990 is now taken care of internally in the Exception_Propagation package
31991 and does not require clients assistance any more.
31992
31993 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31994 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31995 functions. Helpers to maintain a predicate required in the handling of
31996 occurrence transfer between tasks.
31997 This is now handled internally and does not require clients assistance
31998 for the setup/propagate separation anymore.
31999 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32000 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32001 document.
32002
32003 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32004 raise_after_setup, now that everything is handled internally within the
32005 setup/propagation engine.
32006
32007 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32008
32009 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32010 Add additional conditions for the case of an actual being a simple
32011 name or literal. Improve inlining by preventing the generation
32012 of temporaries with a short lifetime (one use).
32013
32014 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32015
32016 PR ada/15587
32017 * einfo.ads: Minor comment updates for Has_Completion and
32018 E_Constant list of flags.
32019
32020 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32021 and constant redeclarations now set the Has_Completion flag of their
32022 defining identifiers.
32023
32024 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32025 Inspect_Deferred_Constant_Completion.
32026 Used to detect private deferred constants that have not been completed
32027 either by a constant redeclaration or pragma Import. Emits error message
32028 "constant declaration requires initialization expression".
32029
32030 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32031 completes a deferred constant.
32032
32033 2004-06-11 Geert Bosch <bosch@gnat.com>
32034
32035 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32036
32037 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32038 calculating exponent for scaling denormal numbers.
32039 (Leading_Part): Properly raise Constraint_Error for zero or negative
32040 Adjustment.
32041 (Remainder): Properly raise Constraint_Error for zero divisor.
32042
32043 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
32044
32045 * sem_util.adb: Minor reformatting.
32046
32047 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32048 dereference when accessing the entry parameter record.
32049 (Check_Array_Type): Always check for possible implicit dereference.
32050 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32051 Abort if a pointer is still present (denoting that an implicit
32052 dereference was left in the tree by the front-end).
32053
32054 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32055 dereference when accessing the entry parameter record.
32056 (Check_Array_Type): Always check for possible implicit dereference.
32057 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32058 Abort if a pointer is still present (denoting that an implicit
32059 dereference was left in the tree by the front-end).
32060
32061 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
32062
32063 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32064 message, like the compiler itself does. Easier to parse the output.
32065
32066 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32067
32068 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32069 be base names, and not includes directories.
32070
32071 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32072
32073 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32074 so that dependencies are properly taken into account by make.
32075
32076 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32077
32078 PR ada/15622
32079 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32080 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32081
32082 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
32083
32084 * Makefile.in (install-gnatlib): install target-specific run-time files.
32085
32086 * Make-lang.in: Remove obsolete targets.
32087
32088 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32089
32090 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32091 specification, to catch misuses of program unit names.
32092
32093 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32094 superfluous conversions in an instance.
32095
32096 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32097
32098 PR ada/15403
32099 * sem_ch12.adb (Save_References): If operator node has been folded to
32100 enumeration literal, associated_node must be discarded.
32101
32102 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
32103
32104 * s-stchop-vxworks.adb: Add required pragma Convention to
32105 Task_Descriptor because it is updated by a C function.
32106
32107 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
32108
32109 PR ada/15568
32110 * Makefile.in: Remove target specific SO_OPT on IRIX
32111
32112 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32113
32114 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32115 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32116 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32117 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32118 (STMT_STMT, USE_STMT): New statement codes.
32119 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32120 * ada-tree.h: Reflect above changes.
32121 (struct tree_loop_id): Deleted.
32122 (union lang_tree_node, struct lang_decl, struct lang_type):
32123 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32124 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32125 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32126 (IS_ADA_STMT): New macro.
32127 * decl.c (annotate_decl_with_node): New function.
32128 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32129 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32130 Call add_stmt_with_node to do needed assignments.
32131 Add call to update setjmp buffer directly, not via EXPR_STMT.
32132 (maybe_variable): Argment GNAT_NODE deleted.
32133 * gigi.h (maybe_variable): Likewise.
32134 (make_transform, add_stmt_with_node, set_block_for_group): New.
32135 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32136 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32137 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32138 (set_lineno, set_lineno_from_sloc): Likewise.
32139 (record_code_position, insert_code_for): Likewise.
32140 (gnat_poplevel): Now returns void.
32141 (end_subprog_body): Now takes argument.
32142 * misc.c (cgraph.h, tree-inline.h): New includes.
32143 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32144 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32145 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32146 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32147 (gnat_parse_file): Don't set immediate_size_expand.
32148 Call cgraph functions.
32149 (gnat_expand_expr): Remove most cases.
32150 (record_code_position, insert_code_for): Remove from here.
32151 * trans.c (toplev.h, tree-gimple.h): Now included.
32152 (discard_file_names): Deleted.
32153 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32154 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32155 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32156 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32157 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32158 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32159 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32160 (set_block_for_group, add_stmt_list): Likewise.
32161 (start_stmt_group): Renamed from start_block_stmt.
32162 (end_stmt_group): Likewise, from end_block_stmt.
32163 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32164 (gigi): Don't set discard_file_names or call set_lineno.
32165 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32166 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32167 Numerous changes throughout to reflect new names and complete
32168 function-at-a-time implementation.
32169 (gnat_expand_stmt): Delete or comment out all cases.
32170 (process_inlined_subprograms): Use add_stmt.
32171 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32172 call set_lineno; also remove unneeded block handling.
32173 (process_type): Remove unneeded block handling.
32174 (build_unit_elab): Remove calls to deleted functions.
32175 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32176 (tree-dump.h): Likewise.
32177 (struct ada_binding_level): Add field jmpbuf_decl.
32178 (gnat_define_builtin, gnat_install_builtins): New.
32179 (gnat_gimplify_function, gnat_finalize): Likewise.
32180 (gnat_poplevel): No longer return BLOCK, set it instead.
32181 Remove code dealing with nested functions.
32182 (gnat_init_decl_processing): Also set size_type_node.
32183 Call gnat_install_builtins.
32184 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32185 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32186 Remove special-case for "main".
32187 (end_subprog_body): Add arg and rework for tree-ssa.
32188 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32189 Add case for BOOLEAN_TYPE.
32190 * utils2.c (rtl.h): Now include.
32191 (build_call_raise): Test Debug_Flag_NN directly.
32192 (build_call_alloc_dealloc): Don't use local stack allocation for now.
32193 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32194 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32195
32196 2004-06-07 Robert Dewar <dewar@gnat.com>
32197
32198 * a-direct.ads, einfo.ads: Minor comment updates
32199
32200 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32201 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32202 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32203 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32204 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32205
32206 * s-interr-sigaction.adb: Remove unreferenced variable
32207 (Attached_Interrupts). Minor reformatting.
32208 Avoid use of variable I (replace by J).
32209
32210 * par-ch10.adb: Fix text of one error message
32211
32212 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32213 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32214 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32215 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32216 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32217 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32218 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32219 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32220 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32221 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32222 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32223 2005 support.
32224
32225 2004-06-07 Doug Rupp <rupp@gnat.com>
32226
32227 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32228
32229 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32230
32231 * mlib-tgt-vms-ia64.adb: New file.
32232
32233 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32234 Add mlib-tgt-vms-ia64.adb
32235 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32236 Move to alpha specific ifeq section.
32237 Add VMS specific versions of symbols.adb
32238 Renaming of 5q vms files.
32239
32240 * 5qsystem.ads renamed to system-vms_64.ads.
32241
32242 2004-06-07 Vincent Celier <celier@gnat.com>
32243
32244 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32245 explain that when a time of day corresponding to the non existing hour
32246 on the day switching to DST is specified, Split may return a different
32247 value for Seconds.
32248
32249 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32250 to GNAT PRETTY.
32251
32252 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32253 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32254
32255 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32256 to False.
32257 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32258 the linking options.
32259 (Build_Library.Check_Libs): On VMS, if there is a dependency on
32260 g-trasym.ads, set Gtrasymobj_Needed to True.
32261
32262 * prj-attr.adb: Add new package Metrics for gnatmetric
32263
32264 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32265 canonical case to take into account files with upper case characters on
32266 Windows.
32267 (Ada_Check): Load the reference symbol file name in the name buffer to
32268 check it, not the symbol file name.
32269
32270 * snames.ads, snames.adb: Add standard name Metrics (name of project
32271 file package for gnatmetric).
32272
32273 * vms_conv.ads: Add Metric to Comment_Type
32274
32275 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32276
32277 * vms_data.ads: Add qualifiers for GNAT METRIC
32278
32279 * makegpr.adb (Link_Executables): Take into account the switches
32280 specified in package Linker of the main project.
32281
32282 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
32283
32284 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32285 the index of the last element is Units.Last, not Units.Table'Last
32286 (which is usually not a valid index within the actually allocated
32287 storage for the table).
32288
32289 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
32290 determines whether to generate a call to a checked storage pool
32291 Dereference action.
32292 Generate such a call only for a dereference that either comes from
32293 source, or is the result of rewriting a dereference that comes from
32294 source.
32295
32296 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
32297
32298 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
32299
32300 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
32301
32302 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
32303 file level, elaborate the stride for inner dimensions in alignment
32304 units, not bytes.
32305
32306 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
32307 in a comment.
32308
32309 2004-06-07 Javier Miranda <miranda@gnat.com>
32310
32311 * exp_ch6.adb: Correct wrong modification in previous patch
32312
32313 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
32314
32315 * g-trasym.ads: Corrected comment to properly reflect level of support
32316 on VMS.
32317
32318 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
32319
32320 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
32321 includes case of a variable referenced on the left hand side of an
32322 assignment, therefore remove redundant code. Variables and prefixes of
32323 indexed or selected components are now marked as referenced on left
32324 hand side. Warnings are now properly emitted when variables or prefixes
32325 are assigned but not read.
32326
32327 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
32328 left hand side referenced variables. Private access types do not
32329 produce the warning "variable ... is assigned but never read".
32330 Add also additional checks to left hand side referenced variables.
32331 Aliased, renamed objects and access types do not produce the warning
32332 "variable ... is assigned but never read" since other entities may read
32333 the memory location.
32334
32335 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
32336
32337 * Makefile.in: In the powerpc/vxworks-specific section, restore
32338 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
32339 by mistake).
32340
32341 2004-06-07 Ed Schonberg <schonberg@gnat.com>
32342
32343 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
32344 predefined operators.
32345 Removes spurious type errors from g-trasym-vms.adb.
32346
32347 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
32348 distinct from the operator appearing in the source, call appropriate
32349 routine to insert conversions when needed, and complete resolution of
32350 node.
32351 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
32352 interpretations for rewritten right operand.
32353 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
32354 the other operand is overloaded and the context is a type conversion.
32355
32356 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32357
32358 * ada-tree.def (BLOCK_STMT): Now has two operands.
32359 (BREAK_STMT): New.
32360
32361 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
32362
32363 * gigi.h: (gnat_poplevel): Now returns a tree.
32364
32365 * trans.c (end_block_stmt): Add arg; all callers changed.
32366 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
32367 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
32368 (add_stmt): Set TREE_TYPE.
32369 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
32370 (gnat_expand_stmt, case BREAK_STMT): New case.
32371
32372 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
32373
32374 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
32375
32376 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
32377 procedure Set_Stack_Size that is not needed.
32378
32379 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
32380
32381 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
32382 used for gnatpp input file and for the files upon which it depends
32383
32384 2004-06-07 Ben Brosgol <brosgol@gnat.com>
32385
32386 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
32387
32388 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
32389
32390 * gnatvsn.ads: Bump version numbers appropriately.
32391 Add new build type.
32392
32393 2004-06-07 Pascal Obry <obry@gnat.com>
32394
32395 * gnat_ugn.texi: Improve comments about imported names and link names
32396 on Windows. Add a note about the requirement to use -k gnatdll's option
32397 when working with a DLL which has stripped stdcall symbols (no @nn
32398 suffix).
32399
32400 2004-05-27 Vincent Celier <celier@gnat.com>
32401
32402 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
32403 COMMENTS_LAYOUT=UNTOUCHED
32404
32405 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
32406 symbols-vms-alpha.adb
32407
32408 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
32409
32410 * sem.ads: Clarify documentation on checks suppression.
32411
32412 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
32413
32414 2004-05-27 Ed Schonberg <schonberg@gnat.com>
32415
32416 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
32417 the case of multiple derivations.
32418 (Is_Object_Reference): For a selected component, verify that the prefix
32419 is itself an object and not a value.
32420
32421 * sem_ch12.adb (Same_Instantiated_Constant): New name for
32422 Same_Instantiated_Entity.
32423 (Same_Instantiated_Variable): Subsidiary to
32424 Check_Formal_Package_Instance, to recognize actuals for in-out generic
32425 formals that are obtained from a previous formal package.
32426 (Instantiate_Subprogram_Body): Emit proper error when
32427 generating code and the proper body of a stub is missing.
32428
32429 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
32430 has a universal interpretation, do the disambiguation here.
32431
32432 * exp_ch4.adb (Expand_N_Type_Conversion,
32433 Expand_N_Unchecked_Type_Conversion): Special handling when target type
32434 is Address, to avoid typing anomalies when Address is a visible integer
32435 type.
32436
32437 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
32438 to determine whether a subprogram should not be marked Pure, even when
32439 declared in a pure package.
32440
32441 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
32442
32443 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
32444
32445 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
32446 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
32447 Update the documentation about the Ravenscar profile, following the
32448 definition found in AI-249.
32449
32450 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
32451 setting the Profile (Ravenscar). This must be done in addition to
32452 setting the required restrictions.
32453
32454 * rtsfind.ads: Add the set of operations defined in package
32455 Ada.Interrupts.
32456
32457 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
32458 restriction.
32459
32460 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
32461
32462 lang-specs.h: Always require -c or -S and always redirect to /dev/null
32463 if -gnatc or -gnats is passed.
32464
32465 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
32466
32467 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
32468 a significant reference. Warnings are now properly emitted when a
32469 discriminated type is not referenced.
32470
32471 * lib-xref.adb (Generate_Reference): A deferred constant completion,
32472 record representation clause or record type discriminant does not
32473 produce a reference to its corresponding entity. Warnings are now
32474 properly emitted when deferred constants and record types are not
32475 referenced.
32476
32477 2004-05-27 Geert Bosch <bosch@gnat.com>
32478
32479 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
32480 Fixes ACATS Annex G tests.
32481
32482 2004-05-27 Robert Dewar <dewar@gnat.com>
32483
32484 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
32485 handling WITH
32486
32487 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
32488
32489 * s-interr.adb (Server_Task): Take into account case of early return
32490 from sigwait under e.g. linux.
32491
32492 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
32493
32494 * gnat_ugn.texi: Add description for the new gnatpp options:
32495 -rnb - replace the original source without creating its backup copy
32496 -c0 - do not format comments
32497
32498 2004-05-24 Geert Bosch <bosch@gnat.com>
32499
32500 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
32501 with 192 bits of precision, sufficient to reduce a double-extended
32502 arguments X with a maximum relative error of T'Machine_Epsilon, for X
32503 in -2.0**32 .. 2.0**32.
32504 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
32505 reduction by the processor, which only uses a 68-bit approximation of
32506 Pi.
32507 (Tan): Always reduce arguments and compute function either using
32508 the processor's fptan instruction, or by dividing sin and cos as needed.
32509
32510 2004-05-24 Doug Rupp <rupp@gnat.com>
32511
32512 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
32513 gcc error on 32/64 bit VMS.
32514
32515 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
32516
32517 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
32518 since this is what we get for stack overflows although not documented
32519 as such.
32520 Document the issues which may require adjustments to our signal
32521 handlers.
32522
32523 2004-05-24 Ed Schonberg <schonberg@gnat.com>
32524
32525 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
32526 enclosing dynamic scope if the instantiation is within a generic unit.
32527
32528 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
32529
32530 * exp_dbug.ads: Fix typo.
32531
32532 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
32533 Rename it to its proper name: system-linux-ia64.ads
32534 (stamp-gnatlib1): Remove extra target specific run time files when
32535 setting up the rts directory.
32536
32537 2004-05-24 Javier Miranda <miranda@gnat.com>
32538
32539 * einfo.ads, einfo.adb (Limited_Views): Removed.
32540 (Limited_View): New attribute that replaces the previous one. It is
32541 now a bona fide package with the limited-view list through the
32542 first_entity and first_private attributes.
32543
32544 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
32545 limited-private-with clause.
32546 (Install_Limited_Withed_Unit): Install the private declarations of a
32547 limited-private-withed package. Update the installation of the shadow
32548 entities according to the new structure (see Build_Limited_Views)
32549 (Build_Limited_Views): Replace the previous implementation of the
32550 limited view by a package entity that references the first shadow
32551 entity plus the first shadow private entity (required for limited-
32552 private-with clause)
32553 (New_Internal_Shadow_Entity): Code cleanup.
32554 (Remove_Limited_With_Clause): Update the implementation to undo the
32555 new work carried out by Build_Limited_Views.
32556 (Build_Chain): Complete documentation.
32557 Replace Ada0Y by Ada 0Y in comments
32558 Minor reformating
32559
32560 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
32561 types the level of accessibility depends on the enclosing type
32562 declaration.
32563
32564 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
32565 entities. Complete documentation of previous change.
32566
32567 2004-05-24 Robert Dewar <dewar@gnat.com>
32568
32569 * namet.adb: Minor reformatting
32570 Avoid use of name I (replace by J)
32571 Minor code restructuring
32572
32573 * sem_ch6.adb: Minor reformatting
32574
32575 * lib-writ.adb: Do not set restriction as active if this is a
32576 Restriction_Warning case.
32577
32578 * sem_prag.adb: Reset restriction warning flag if real pragma
32579 restriction encountered.
32580
32581 * s-htable.adb: Minor reformatting
32582 Change rotate count to 3 in Hash (improves hash for small strings)
32583
32584 * 5qsystem.ads: Add comments for type Address (no literals allowed).
32585
32586 * gnat_ugn.texi: Add new section of documentation "Code Generation
32587 Control", which describes the use of -m switches.
32588
32589 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
32590
32591 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
32592 through the DECL_INITIAL for renamed variables.
32593
32594 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
32595
32596 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
32597
32598 2004-05-19 Joel Brobecker <brobecker@gnat.com>
32599
32600 * exp_dbug.ads: Correct comments concerning handling of overloading,
32601 since we no longer use $ anymore.
32602
32603 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
32604
32605 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
32606 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
32607 with illegal subunits.
32608
32609 2004-05-19 Ed Schonberg <schonberg@gnat.com>
32610
32611 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
32612 body with front-end inlining enabled, check whether an inline pragma
32613 appears immediately after the body and applies to it.
32614
32615 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
32616 enabled and the pragma appears after the body of the subprogram.
32617
32618 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32619
32620 Part of function-at-a-time conversion
32621
32622 * misc.c (adjust_decl_rtl): Deleted.
32623 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
32624 Define.
32625
32626 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
32627 (add_decl_stmt, add_stmt, block_has_vars): New functions.
32628 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
32629
32630 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
32631 when making a decl.
32632 (gnat_to_gnu_entity): Likewise.
32633 Use add_stmt to update setjmp buffer.
32634 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
32635 flush_addressof.
32636 No longer call adjust_decl_rtl.
32637 (DECL_INIT_BY_ASSIGN_P): New macro.
32638 (DECL_STMT_VAR): Likewise.
32639
32640 * trans.c (gigi): Call start_block_stmt to make the outermost
32641 BLOCK_STMT.
32642 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
32643 Call start_block_stmt and end_block_stmt temporarily.
32644 Use gnat_expand_stmt instead of expand_expr_stmt.
32645 (add_decl_stmt): New function.
32646 (tree_transform): Call it.
32647 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
32648 (end_block_stmt): Set type and NULL_STMT.
32649 (gnat_expand_stmt): Make recursize call instead of calling
32650 expand_expr_stmt.
32651 (gnat_expand_stmt, case DECL_STMT): New case.
32652 (set_lineno_from_sloc): Do nothing if global.
32653 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
32654 (start_block_stmt, add_stmt, end_block_stmt): New functions.
32655 (build_block_stmt): Call them.
32656 (gnat_to_code): Don't expand NULL_STMT.
32657 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
32658 args.
32659 (tree_transform): Likewise.
32660 (tree_transform, case N_Null_Statement): Return NULL_STMT.
32661 (gnat_expand_stmt, case NULL_STMT): New case.
32662 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
32663 IF_STMT_TRUE.
32664
32665 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
32666 TREE_ADDRESSABLE.
32667
32668 * utils.c (create_var_decl): Do not call expand_decl or
32669 expand_decl_init.
32670 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
32671 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
32672 here.
32673 (struct e_stack): Add chain_next to GTY.
32674 (struct binding_level): Deleted.
32675 (struct ada_binding_level): New struct.
32676 (free_block_chain): New.
32677 (global_binding_level, clear_binding_level): Deleted.
32678 (global_bindings_p): Rework to see if no chain.
32679 (kept_level_p, set_block): Deleted.
32680 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
32681 new data structure and work directly on BLOCK node.
32682 (gnat_poplevel): Similarly.
32683 (get_decls): Look at BLOCK_VARS.
32684 (insert_block): Work directly on BLOCK node.
32685 (block_has_var): New function.
32686 (pushdecl): Rework for new binding structures.
32687 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
32688 poplevel.
32689 (build_subprog_body): Likewise.
32690 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
32691
32692 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
32693
32694 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
32695 (DECL_STMT_VAR): Likewise.
32696
32697 2004-05-17 Robert Dewar <dewar@gnat.com>
32698
32699 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
32700 procedure
32701
32702 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
32703 of restriction synonyums by using
32704 Restrict.Process_Restriction_Synonyms.
32705
32706 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
32707
32708 * s-restri.ads (Tasking_Allowed): Correct missing comment
32709
32710 * s-rident.ads: Add entries for restriction synonyms
32711
32712 * ali.adb: Fix some problems with badly formatted ALI files that can
32713 result in infinite loops.
32714
32715 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
32716 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
32717 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32718 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
32719 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
32720 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
32721 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
32722 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
32723 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
32724 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
32725 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
32726 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
32727 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
32728 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32729 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32730 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32731 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32732 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32733 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
32734 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
32735 to Task_Id (minor cleanup).
32736
32737 2004-05-17 Vincent Celier <celier@gnat.com>
32738
32739 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
32740 directory separator.
32741
32742 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
32743 project being extended, if Languages is not declared in extending
32744 project.
32745
32746 2004-05-17 Javier Miranda <miranda@gnat.com>
32747
32748 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
32749 limited view of a visible sibling.
32750
32751 2004-05-14 Robert Dewar <dewar@gnat.com>
32752
32753 * gnat_ugn.texi: Minor change to -gnatS documentation
32754
32755 * sprint.adb: Remove some instances of Assert (False) and for this
32756 purpose replace them by output of a ??? string.
32757
32758 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
32759 Assert (False).
32760
32761 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
32762 flag processing. This was suppressing required dependencies in
32763 No_Run_Time mode and is not needed since the binder does not generate
32764 references for things in libgnat anyway.
32765
32766 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
32767 warning.
32768
32769 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
32770
32771 * gnat_ugn.texi: Document AIX-specific issue with initialization of
32772 resolver library.
32773
32774 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
32775 action for the case of an actual parameter in an init proc call.
32776
32777 2004-05-14 Ed Schonberg <schonberg@gnat.com>
32778
32779 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
32780 subtype, check visible entities in base type.
32781
32782 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
32783 actions if the object is a renaming.
32784
32785 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
32786 Check_Formal_Package_Instance, to determine more precisely when the
32787 formal and the actual denote the same entity.
32788
32789 2004-05-14 Javier Miranda <miranda@gnat.com>
32790
32791 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
32792
32793 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
32794 corresponding to a private_with must be removed from visibility; it
32795 will be made visible later, just before we analyze the private part of
32796 the package.
32797 (Check_Private_Child_Unit): Allow private_with clauses in public
32798 siblings.
32799 (Install_Siblings): Make visible the private entities of private-withed
32800 siblings.
32801 (Install_Withed_Unit): Do not install the private withed unit if we
32802 are compiling a package declaration and the Private_With_OK flag was
32803 not set by the caller. These declarations will be installed later,
32804 just before we analyze the private part of the package.
32805
32806 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
32807 during the evaluation of the expression that initializes the object,
32808 decorate it with the expected type to avoid cascade errors.
32809 Code cleanup.
32810
32811 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
32812 subprogram we have to install the private_with clauses after its
32813 specification has been analyzed (as documented in AI-262.TXT).
32814
32815 * sem_ch8.adb (Has_Private_With): New function. Determines if the
32816 current compilation unit has a private with on a given entity.
32817 (Find_Direct_Name): Detect the Beaujolais problem described in
32818 AI-262.TXT
32819
32820 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
32821 provides the functionality of the function Is_Ancestor that was
32822 previously available in sem_ch10. It has been renamed to avoid
32823 overloading.
32824
32825 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
32826
32827 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32828
32829 * utils.c (build_vms_descriptor): Use SImode pointers.
32830
32831 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
32832
32833 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
32834
32835 2004-05-14 GNAT Script <nobody@gnat.com>
32836
32837 * Make-lang.in: Makefile automatically updated
32838
32839 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
32840
32841 Renaming of target specific files for clarity
32842
32843 * Makefile.in: Rename GNAT target specific files.
32844
32845 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
32846 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
32847 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
32848 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
32849 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
32850 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
32851 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
32852 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
32853 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
32854 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
32855 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
32856 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
32857 51osinte.adb, 51osinte.ads, 51system.ads,
32858 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
32859 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
32860 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
32861 56tpopsp.adb, 57system.ads, 58system.ads,
32862 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
32863 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32864 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
32865 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
32866 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
32867 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32868 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
32869 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32870 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32871 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
32872 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
32873 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
32874 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
32875 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
32876 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
32877 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32878 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32879 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32880 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
32881 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
32882 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
32883 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
32884 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
32885 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32886 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
32887 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
32888 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32889 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
32890 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32891 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
32892 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
32893 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
32894 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
32895 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
32896 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
32897 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
32898 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
32899 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
32900 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
32901 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
32902
32903 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
32904 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
32905 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
32906 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
32907 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
32908 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
32909 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
32910 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
32911 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
32912 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
32913 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
32914 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
32915 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
32916 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
32917 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
32918 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
32919 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
32920 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
32921 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
32922 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
32923 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
32924 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
32925 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
32926 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
32927 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
32928 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
32929 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
32930 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
32931 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
32932 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
32933 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
32934 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
32935 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
32936 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
32937 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
32938 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
32939 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
32940 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32941 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32942 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32943 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32944 s-osinte-vms.ads, s-osinte-vxworks.adb,
32945 s-osinte-vxworks.ads, s-osprim-mingw.adb,
32946 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32947 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32948 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32949 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32950 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32951 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32952 s-stchop-vxworks.adb, s-taprop-dummy.adb,
32953 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32954 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32955 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32956 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32957 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32958 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32959 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32960 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32961 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32962 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32963 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32964 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32965 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32966 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32967 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32968 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32969 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32970 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32971 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32972 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32973 system-irix-o32.ads, system-linux-x86_64.ads,
32974 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32975 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32976 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32977 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32978 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32979 system-vxworks-mips.ads, system-vxworks-ppc.ads,
32980 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32981 above.
32982
32983 2004-05-13 Zack Weinberg <zack@codesourcery.com>
32984
32985 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32986
32987 2004-05-13 Diego Novillo <dnovillo@redhat.com>
32988
32989 Merge from tree-ssa-20020619-branch.
32990
32991 * config-lang.in (boot_language, build_by_default): Set
32992 to no.
32993 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32994 (max_size): Add static chain op for call_expr.
32995
32996 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
32997
32998 PR target/15331
32999 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33000
33001 2004-05-11 Roger Sayle <roger@eyesopen.com>
33002
33003 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33004 COND_EXPR.
33005
33006 2004-05-10 Doug Rupp <rupp@gnat.com>
33007
33008 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33009 system.aux_dec.
33010
33011 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33012
33013 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33014
33015 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33016 Fixes undefined symbols in IA64 gnatlib.
33017
33018 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33019
33020 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33021 Short_Address). This will be moved to system.auxdec.
33022
33023 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
33024
33025 * sem_util.adb: Replace test for presence of a node that is always
33026 present with a call to Discard_Node.
33027
33028 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33029 Analyze on the library unit node after generation of distribution stub
33030 constructs. The call was a no-op because Unit_Node has already been
33031 Analyzed, and the tree fragments for the distribution stubs are
33032 analyzed as they are inserted in Exp_Dist.
33033 Update comment regarding to distribution stubs to reflect that we
33034 do not generate stub in separate files anymore.
33035
33036 * einfo.ads: Clarify the fact that a tagged private type has the
33037 E_Record_Type_With_Private Ekind.
33038
33039 * erroutc.adb: Minor reformatting
33040
33041 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33042 values if line length is increased using -gnatyM (noticed during code
33043 reading).
33044
33045 * eval_fat.adb: Minor reformatting
33046 Put spaces around exponentiation operator
33047
33048 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33049
33050 PR ada/15005
33051 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33052 has been rewritten as an explicit dereference, retrieve type of
33053 original node to check for possibly unconstrained record type.
33054
33055 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33056
33057 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33058 overriding, use the operation of the parent unconditionally.
33059
33060 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33061 operation when either operand is a literal, to avoid further
33062 ambiguities.
33063
33064 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33065 overridden by a previous explicit declaration, mark the previous entity
33066 as overriding.
33067
33068 * sem_disp.adb (Check_Dispatching_Operation): New predicate
33069 Is_Visibly_Controlled, to determine whether a declaration of a
33070 primitive control operation for a derived type overrides an inherited
33071 one. Add warning if the explicit declaration does not override.
33072
33073 2004-05-10 Vincent Celier <celier@gnat.com>
33074
33075 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33076 some cases when the sources are no longer present.
33077
33078 * make.adb (Collect_Arguments): Fail if an external source, not part
33079 of any project need to be compiled, when switch -x has not been
33080 specified.
33081
33082 * makeusg.adb: Document new switch -x
33083
33084 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33085 defaulted to False.
33086
33087 * switch-m.adb (Scan_Make_Switches): New switch -x
33088
33089 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33090 gnatmake switch -x.
33091
33092 * gnat_ugn.texi: Document new gnatmake switch -x
33093
33094 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
33095
33096 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33097
33098 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33099 (process_attributes): Likewise.
33100
33101 2004-05-10 Joel Brobecker <brobecker@gnat.com>
33102
33103 * s-inmaop.ads: Fix spelling mistake in one of the comments.
33104
33105 2004-05-10 Robert Dewar <dewar@gnat.com>
33106
33107 * gnat_ugn.texi: Document that for config pragma files, the maximum
33108 line length is always 32767.
33109
33110 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33111 literals is now allowed.
33112
33113 * gnat-style.texi: Remove statement about splitting long lines before
33114 an operator rather than after, since we do not follow this rule at all.
33115 Clarify rule (really lack of rule) for spaces around exponentiation
33116
33117 * sem_elim.adb: Allow concatenation of string literals as well as a
33118 single string literal for pragma arguments.
33119
33120 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33121
33122 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33123 written for append case.
33124
33125 * frontend.adb: Changes to avoid checking max line length in config
33126 pragma files.
33127
33128 * g-os_lib.ads: Minor reformatting
33129
33130 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33131 wrong in any case. Instead use standard value. Noticed during code
33132 reading.
33133
33134 * opt.ads (Max_Line_Length): New field, used to implement removal of
33135 limitation on length of lines when scanning config pragma files.
33136
33137 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33138 makeutl.ads, makeutl.adb: Minor reformatting
33139
33140 * scn.adb: Do not check line length while scanning config pragma files
33141 Do not check line length while scanning out license information
33142
33143 * scng.adb: Changes to avoid line length checks while parsing config
33144 pragma files.
33145
33146 2004-05-10 GNAT Script <nobody@gnat.com>
33147
33148 * Make-lang.in: Makefile automatically updated
33149
33150 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
33151
33152 * osint.adb (Find_Program_Name): Fix handling of VMS version
33153 number.
33154
33155 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
33156
33157 * g-os_lib.ads (Invalid_Time): New constant
33158
33159 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33160 return OS_Time instead of time_t to match what is imported by Ada.
33161 Now return -1 if the file doesn't exist, instead of a random value
33162
33163 2004-05-05 Robert Dewar <dewar@gnat.com>
33164
33165 * usage.adb: Add line for -gnatR?s switch
33166
33167 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33168
33169 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33170 and for Match (Data_First, Data_last)
33171
33172 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33173 written when we are dealing with multi-unit files.
33174
33175 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
33176
33177 * Makefile.in: Remove unused targets and variables.
33178
33179 2004-05-05 Vincent Celier <celier@gnat.com>
33180
33181 * switch-m.adb: New gnatmake switch -eI
33182
33183 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33184 of new gnatmake switch -eInnn.
33185
33186 * makegpr.adb: Take into account new parameters Index and Src_Index in
33187 Prj.Util.
33188
33189 * clean.adb: Implement support for multi-unit sources, including new
33190 switch -i.
33191
33192 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33193 Src_Index.
33194
33195 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33196 (Extract_From_Q): New out parameter Index
33197 (Mark, Is_Marked): Subprograms moved to Makeutl
33198 (Switches_Of): New parameter Source_Index
33199 (Add_Switch): New parameter Index
33200 (Check): New parameter Source_Index
33201 (Collect_Arguments): New parameter Source_Index
33202 (Collect_Arguments_And_Compile): New parameter Source_Index
33203 (Compile): New parameter Source_Index
33204 Put subprograms in alphabetical order
33205 Add support for multi-source sources, including in project files.
33206
33207 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33208 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33209 Make.
33210
33211 * makeusg.adb: New gnatmake switch -eInnn
33212
33213 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33214 Prj.Util.Value_Of.
33215
33216 * opt.ads (Main_Index): New variable, defaulted to 0.
33217
33218 * osint.ads, osinte.adb (Add_File): New parameter Index
33219 (Current_Source_Index): New function
33220
33221 * prj.adb: Take into account new components Index and Src_Index
33222
33223 * prj.ads (String_Element): New component Index
33224 (Variable_Value): New component Index
33225 (Array_Element): New component Src_Index
33226
33227 * prj-attr.adb: Indicate that optional index may be specified for
33228 attributes Main, Executable, Spec, Body and some of Switches.
33229
33230 * prj-attr.ads (Attribute_Kind): New values for optional indexes
33231 (Attribute_Record): New component Optional_Index
33232
33233 * prj-com.ads (File_Name_Data): New component Index
33234
33235 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33236
33237 * prj-env.adb (Put): Output optional index
33238
33239 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33240 attributes Spec and Body.
33241
33242 * prj-nmsc.adb: Process optional indexes
33243
33244 * prj-pp.adb: Ouput "at" for optional indexes
33245
33246 * prj-proc.adb: Take into account optional indexes
33247
33248 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33249 Optional_Index. For string literal,
33250 process optional index when Optional_Index is True.
33251 (Parse_Expresion): New Boolean parameter Optional_Index
33252
33253 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33254 (Set_Source_Index_Of): New procedure
33255
33256 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33257 index.
33258
33259 * prj-util.ads (Executable_Of): New parameter Index
33260 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33261 New parameter Src_Index, defaulted to 0.
33262
33263 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33264
33265 PR ada/15257
33266 * sem_ch3.adb (Access_Definition): If this is an access parameter
33267 whose designated type is imported through a limited_with clause, do
33268 not add the enclosing subprogram to the list of private dependents of
33269 the type.
33270
33271 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33272
33273 PR ada/15258
33274 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33275 a limited_with clause, and the other is its non-limited view.
33276
33277 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
33278
33279 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33280
33281 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33282 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33283 Stand.Boolean_Literals to produce references to entities
33284 Standard_False and Standard_True from compile-time computed boolean
33285 values.
33286
33287 * stand.ads (Boolean_Literals): New variable, provides the entity
33288 values for False and True, for use by the expander.
33289
33290 2004-05-05 Doug Rupp <rupp@gnat.com>
33291
33292 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
33293 5vinmaop.adb: Unchecked convert Short_Address vice Address
33294
33295 * adaint.c, raise.c: Caste CRTL function return value
33296 to avoid gcc error on 32/64 bit IVMS.
33297
33298 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
33299 target = IA64/VMS.
33300
33301 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
33302
33303 * 5qsystem.ads (Address): Declare as Long_Integer
33304 (Short_Address): Declare as 32 bit subtype of Address
33305 Declare abstract address operations to avoid gratuitous ambiguities.
33306
33307 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
33308
33309 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
33310 instead of the old Boolean_Entry_Barriers.
33311 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
33312
33313 2004-05-05 GNAT Script <nobody@gnat.com>
33314
33315 * Make-lang.in: Makefile automatically updated
33316
33317 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
33318
33319 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
33320
33321 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
33322
33323 PR ada/15152
33324 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
33325 alone. Replacing object references by literals is inappropriate in a
33326 so low level context.
33327
33328 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
33329
33330 * a-exexpr.adb: Add comments
33331
33332 2004-05-03 Joel Brobecker <brobecker@gnat.com>
33333
33334 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
33335 declare the Ancestor_Tags array in Type_Specific_Data with a small size
33336 without risking a bounds check error when accessing one of its
33337 components.
33338 (Type_Specific_Data): Define Ancestor_Tags as a small array.
33339 This prevents us from hitting a limitation during the debug info
33340 generation when using stabs.
33341
33342 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
33343 small array.
33344 This prevents us from hitting a limitation during the debug info
33345 generation when using stabs.
33346
33347 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
33348
33349 lang-specs.h: Remove -gnatz* from specs.
33350
33351 2004-05-03 Vincent Celier <celier@gnat.com>
33352
33353 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
33354
33355 * Make-lang.in, Makefile.in: Add gprmake
33356
33357 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
33358
33359 * sem_aggr.adb: Fix typo in comment.
33360
33361 2004-05-03 Robert Dewar <dewar@gnat.com>
33362
33363 * make.adb: Minor reformatting
33364
33365 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
33366
33367 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
33368 so that it works when address is not a private type.
33369
33370 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
33371 properly with rewritten unchecked conversions. This prevents
33372 order-of-elaboration issues that can otherwise arise.
33373 (Minimum_Size): Don't check size of access types under VMS
33374
33375 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
33376 interpretations of integer literals as type System.Address.
33377
33378 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
33379 (Is_Descendent_Of): New function
33380
33381 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
33382
33383 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33384 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
33385 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
33386
33387 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
33388 of the old Max_Entry_Queue_Depth.
33389
33390 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33391 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
33392 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
33393
33394 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
33395 New entry for proper handling of Max_Entry_Queue_Depth.
33396 New entry for proper handling of No_Dynamic_Interrupts.
33397
33398 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
33399 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33400 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
33401 the GNAT specific restriction Max_Entry_Queue_Depth.
33402 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
33403 the GNAT specific restriction No_Dynamic_Interrupts.
33404
33405 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
33406 instead of the old Boolean_Entry_Barriers.
33407 Use the new restriction No_Dynamic_Attachment instead of the old
33408 No_Dynamic_Interrupts.
33409
33410 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
33411 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33412
33413 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
33414 of the old Max_Entry_Queue_Depth.
33415
33416 2004-05-03 GNAT Script <nobody@gnat.com>
33417
33418 * Make-lang.in: Makefile automatically updated
33419
33420 2004-04-29 Ed Schonberg <schonberg@gnat.com>
33421
33422 * checks.adb (Enable_Range_Check): If the prefix of an index component
33423 is an access to an unconstrained array, perform check unconditionally.
33424
33425 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33426
33427 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
33428 Component_Clause.
33429
33430 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
33431
33432 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
33433 alternate stack setting. There was no support for the tasking cases
33434 and the changes eventually caused a number of side-effect failures in
33435 the non-tasking case too.
33436
33437 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
33438
33439 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
33440 -gnats is passed.
33441
33442 2004-04-29 Vincent Celier <celier@gnat.com>
33443
33444 * make.adb (Gnatmake): Increase max size of argument array for
33445 gnatbind for the potential addition of -F.
33446 If there are Stand-Alone Library projects, invoke gnatbind with -F to
33447 be sure that elaboration flags will be checked.
33448
33449 * switch-c.adb: Correct call to Scan_Pos for -gnateI
33450
33451 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
33452
33453 * sem_warn.adb (Check_References): Move '<access-variable> may be
33454 null' warning out of under Warn_On_No_Value_Assigned.
33455
33456 2004-04-29 Ed Falis <falis@gnat.com>
33457
33458 * gnat_ugn.texi: Fixed texi error
33459
33460 2004-04-29 Robert Dewar <dewar@gnat.com>
33461
33462 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
33463 abstract operations if they come from predefined files.
33464
33465 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
33466 Dynamic, not RM).
33467
33468 * s-addope.adb: Correct obvious error in mod function
33469
33470 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
33471
33472 * Makefile.in: Add target pairs for powerpc darwin*
33473 tasking support.
33474
33475 * a-intnam-darwin.ads, s-osinte-darwin.adb,
33476 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
33477
33478 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
33479
33480 * Makefile.in: Add target macro definitions for s390*-linux*.
33481 * system-linux-s390.ads: New file.
33482 * system-linux-s390x.ads: New file.
33483
33484 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
33485
33486 * gnat_ugn.texi: Correct argument to @setfilename.
33487
33488 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
33489
33490 * a-exexpr.adb (Unwind_Word): New data type.
33491 (Unwind_Exception): Use it as type of Private1 and Private2.
33492
33493 * raise.c (db_action_for): Fix debug printf.
33494
33495 2004-04-27 Ed Schonberg <schonberg@gnat.com>
33496
33497 * a-wtmoio.ads: Formal type must be a modular type, not a signed
33498 integer type.
33499
33500 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33501
33502 * decl.c (gnat_to_gnu_entity, case object): Call
33503 __builtin_update_setjmp_buf.
33504
33505 * gigi.h (update_setjmp_buf): Deleted.
33506 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
33507
33508 * misc.c: (update_setjmp_buf): Deleted.
33509
33510 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
33511 around block of RTL.
33512
33513 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
33514
33515 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
33516
33517 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
33518 subprogram for which no pragma All_Calls_Remote applies, store the
33519 address of the real subprogram in the underlying record type, so local
33520 dereferences do not go through the PCS.
33521
33522 2004-04-26 Robert Dewar <dewar@gnat.com>
33523
33524 * i-c.ads: Add some type qualifications to avoid ambiguities when
33525 compiling with s-auxdec.ads and a non-private address type.
33526
33527 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
33528
33529 * Makefile.rtl: Fix error in previous check-in:
33530 Add s-addope.o to non tasking object list (rather than tasking object
33531 list).
33532
33533 2004-04-26 Javier Miranda <miranda@gnat.com>
33534
33535 * sem_aggr.adb: Fix typo in comments
33536 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
33537 Required to check the null-exclusion attribute.
33538
33539 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
33540 case of anonymous access types in record and array components. For a
33541 component definition the level is the same of the enclosing composite
33542 type.
33543
33544 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
33545 that are anonymous access types the level of accessibility depends on
33546 the enclosing type declaration. In order to have this information, set
33547 the scope of the anonymous access type to the enclosing record type
33548 declaration.
33549 (Array_Type_Declaration): In case of components that are anonymous
33550 access types the level of accessibility depends on the enclosing type
33551 declaration. In order to have this information, set the scope of the
33552 anonymous access type to the enclosing array type declaration.
33553
33554 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
33555 access type.
33556
33557 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
33558 renaming of anonymous access-to-constant types allowed if and only if
33559 the renamed object is access-to-constant.
33560
33561 * sem_util.adb (Type_Access_Level): In case of anonymous access types
33562 that are component_definition or discriminants of a nonlimited type,
33563 the level is the same as that of the enclosing component type.
33564
33565 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
33566
33567 * sem_elim.adb: Some minor code reorganization from code reading. Fix
33568 misprint in the function name (File_Name_Match).
33569
33570 2004-04-23 Laurent Guerby <laurent@guerby.net>
33571
33572 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
33573 install.
33574
33575 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33576
33577 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
33578
33579 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
33580
33581 * adaint.c (__gnat_try_lock): No longer requires that the parent
33582 directory be writable, the directory itself is enough.
33583 (gnat_is_absolute_path): Change profile, so that the call from
33584 GNAT.OS_Lib can be made more efficient.
33585
33586 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
33587 from GNAT.OS_Lib can be made more efficient.
33588
33589 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
33590 one copy of the file name. Found by code reading.
33591
33592 2004-04-23 Vincent Celier <celier@gnat.com>
33593
33594 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
33595 Correct documentation on gnatmake switches transmitted to the compiler
33596
33597 * ali.ads: Minor comment fix
33598
33599 2004-04-23 Javier Miranda <miranda@gnat.com>
33600
33601 * sem_ch6.adb: (Confirming Types): Code cleanup
33602
33603 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
33604 subprogram types: E_Anonymous_Access_Subprogram_Type and
33605 E_Anonymous_Access_Protected_Subprogram_Type.
33606
33607 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
33608
33609 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33610 whether a pragma All_Calls_Remote applies to the subprogram on which
33611 'Access is taken.
33612 No functional change is introduced by this revision; the new parameter
33613 will be used to allow calls to local RCI subprograms to be optimized
33614 to not use the PCS in the case where no pragma All_Calls_Remote applies,
33615 as is already done in the PolyORB implementation of the DSA.
33616
33617 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33618 whether a pragma All_Calls_Remote applies to the subprogram on which
33619 'Access is taken.
33620 No functional change is introduced by this revision; the new parameter
33621 will be used to allow calls to local RCI subprograms to be optimized
33622 to not use the PCS in the case where no pragma All_Calls_Remote applies,
33623 as is already done in the PolyORB implementation of the DSA.
33624
33625 2004-04-23 Robert Dewar <dewar@gnat.com>
33626
33627 * Makefile.rtl: Add entry for s-addope.o in run time library list
33628 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
33629 * s-addope.ads, s-addope.adb: New files.
33630
33631 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
33632 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
33633 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
33634 System.Address to be non-private and signed.
33635
33636 * sem_elim.adb: Minor reformatting (fairly extensive)
33637 Some minor code reorganization from code reading
33638 Add a couple of ??? comments
33639
33640 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33641
33642 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
33643 (tree_transform, case N_If_Statement): Remove non-determinism.
33644
33645 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
33646
33647 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
33648
33649 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
33650 Eliminate' section.
33651
33652 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
33653 no longer used as a parameter name for Eliminate pragma).
33654
33655 2004-04-22 Laurent Guerby <laurent@guerby.net>
33656
33657 PR optimization/14984
33658 PR optimization/14985
33659 * trans.c (gigi): Fix non determinism leading to bootstrap
33660 comparison failures.
33661
33662 2004-04-21 Pascal Obry <obry@gnat.com>
33663
33664 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
33665 passed to spawnvp() to properly handle program pathname with spaces on
33666 Win32.
33667
33668 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
33669
33670 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
33671 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
33672 unlocked in case of exceptions.
33673
33674 2004-04-21 Joel Brobecker <brobecker@gnat.com>
33675
33676 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
33677 This function does not exist anymore.
33678
33679 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
33680
33681 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
33682
33683 * link.c: Move variables to the __gnat name space.
33684
33685 * Makefile.in: list link.o explicitly when needed.
33686
33687 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
33688
33689 2004-04-21 Javier Miranda <miranda@gnat.com>
33690
33691 * einfo.adb (Original_Access_Type): New subprogram
33692 (Set_Original_Access_Type): New subprogram
33693 (Write_Field21_Name): Write the name of the new field
33694
33695 * einfo.ads (Original_Access_Type): New field present in access to
33696 subprogram types.
33697 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
33698 E_Anonymous_Access_Protected_Subprogram_Type.
33699
33700 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
33701 subprogram types.
33702
33703 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
33704 to anonymous access to subprogram types.
33705
33706 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
33707 to subprogram types.
33708
33709 * sem_ch3.adb (Access_Definition): Complete decoration of entities
33710 corresponding to anonymous access to subprogram types.
33711 (Analyze_Component_Declaration): Add new actual to the call to
33712 subprogram replace_anonymous_access_to_protected_subprogram.
33713 (Array_Type_Declaration): Add new actual to the call to subprogram
33714 replace_anonymous_access_to_protected_subprogram.
33715 (Process_Discriminants): Add new actual to the call to subprogram
33716 replace_anonymous_access_to_protected_subprogram.
33717 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
33718
33719 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33720 formal.
33721
33722 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
33723 access to subprogram types.
33724
33725 * sem_util.adb (Has_Declarations): Addition of package_specification
33726 nodes.
33727
33728 2004-04-21 Ed Schonberg <schonberg@gnat.com>
33729
33730 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
33731 inlined flags to renamed entity only if in current unit.
33732
33733 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
33734
33735 * s-parint.ads: Add DSA implementation marker.
33736
33737 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
33738 value of System.Partition_Interface.DSA_Implementation to determine
33739 what version of the distributed systems annex is available (no
33740 implementation, GLADE, or PolyORB).
33741
33742 2004-04-21 Joel Brobecker <brobecker@gnat.com>
33743
33744 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
33745
33746 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33747
33748 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
33749 with new type if alias sets differ.
33750 Fixes ACATS c41103b.
33751
33752 2004-04-21 Vincent Celier <celier@gnat.com>
33753
33754 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
33755 Add array Lang_Args for the language specific compiling argument
33756 switches.
33757
33758 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
33759
33760 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
33761
33762 * gnat_rm.texi: Update the descripton of the Eliminate pragma
33763 according to the recent changes in the format of the parameters of the
33764 pragma (replacing Homonym_Number with Source_Location).
33765
33766 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
33767
33768 * 5isystem.ads: Removed, unused.
33769
33770 * gnat_rm.texi: Redo 1.13 change.
33771
33772 2004-04-19 Robert Dewar <dewar@gnat.com>
33773
33774 * s-stoele.ads: Clean up definition of Storage_Offset (the new
33775 definition is cleaner, avoids the kludge of explicit Standard operator
33776 references, and also is consistent with a visible System.Address with
33777 no visible operations.
33778
33779 * s-geveop.adb: Add declarations to avoid assumption of visible
33780 operations on type System.Address (since these might not be available
33781 if Address is a non-private type for which the operations
33782 are made abstract).
33783
33784 * sem_eval.adb: Minor reformatting
33785
33786 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
33787 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
33788 reformatting (new function spec format).
33789
33790 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
33791 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
33792 s-caun64.adb: Add declarations to avoid assumption of visible
33793 operations on type System.Address (since these might not be available
33794 if Address is a non-private type for which the operations are made
33795 abstract).
33796
33797 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
33798
33799 * exp_intr.adb: Minor comment update
33800
33801 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
33802
33803 * 5omastop.adb: Add declarations to avoid assumption of visible
33804 operations on type System.Address (since these might not be available
33805 if Address is a non-private type for which the operations
33806 are made abstract).
33807
33808 2004-04-19 Vincent Celier <celier@gnat.com>
33809
33810 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
33811
33812 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
33813 defaulted to Ada.
33814
33815 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
33816 defaulted to Ada.
33817 Call Check with Process_Languages.
33818 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
33819 with Process_Languages.
33820 (Recursive_Check): New Boolean parameter Process_Languages. Call
33821 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
33822 Process_Languages.
33823
33824 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
33825
33826 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
33827 parameter Ada_Main, defaulted to True.
33828 Check for Ada specific characteristics only when Ada_Main is True.
33829
33830 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
33831
33832 * prj.adb: (Project_Empty): Add new Project_Data components.
33833
33834 * prj.ads: New types and tables for non Ada languages.
33835 (Project_Data): New components Languages, Impl_Suffixes,
33836 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
33837 Include_Path, Include_Data_Set.
33838
33839 * prj-env.ads, prj-env.adb: Minor reformatting
33840
33841 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
33842 Put subprograms in alphabetical order
33843
33844 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
33845 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
33846 Opt.Follow_Links.
33847
33848 * mlib-prj.adb: Back out modification in last version, as they are
33849 incorrect.
33850 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
33851
33852 * make.adb: (Mains): Moved to package Makeutl
33853 (Linker_Opts): Moved to package Makeutl
33854 (Is_External_Assignment): Moved to package Makeutl
33855 (Test_If_Relative_Path): Moved to package Makeutl
33856 (Gnatmake): Move sorting of linker options to function
33857 Makeutl.Linker_Options_Switches.
33858
33859 * makeutl.ads, makeutl.adb: New files.
33860
33861 * Makefile.in: Add makeutl.o to the object files for gnatmake
33862
33863 * makeusg.adb: Add line for new switch -eL.
33864
33865 * gnatls.adb (Image): New function.
33866 (Output_Unit): If in verbose mode, output the list of restrictions
33867 specified by pragmas Restrictions.
33868
33869 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
33870 Text_IO.
33871
33872 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
33873 needed, to put it in the range 1970 (included) - 2026 (excluded).
33874 (Time_Of): Do not shift Unix_Min_Year (1970).
33875 Shift the date by multiple of 56 years, if needed, to put it in the
33876 range 1970 (included) - 2026 (excluded).
33877
33878 * adaint.h, adaint.c (__gnat_set_executable): New function.
33879
33880 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33881
33882 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
33883 and pop GC context.
33884 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
33885 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
33886 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
33887 (tree_transform, case N_Code_Statement): Likewise.
33888 (gnat_expand_stmt, case LABEL_STMT): Don't look at
33889 LABEL_STMT_FIRST_IN_EH.
33890 (gnat_expand_stmt, case ASM_STMT): New case.
33891
33892 * utils2.c (build_unary_op): Properly set TREE_READONLY of
33893 UNCONSTRAINED_ARRAY_REF.
33894
33895 * utils.c (poplevel): Temporarily push/pop GC context around inline
33896 function expansion.
33897
33898 * decl.c (maybe_variable): Properly set TREE_READONLY of
33899 UNCONSTRAINED_ARRAY_REF.
33900 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
33901
33902 * ada-tree.def: (ASM_STMT): New.
33903
33904 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
33905 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
33906 ASM_STMT_INPUT): New.
33907 (ASM_STMT_CLOBBER): Likewise.
33908
33909 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
33910
33911 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
33912 general rcheck mechanism to raise Program_Error for E.4(18), instead
33913 of a custom raiser in System.Partition_Interface.
33914 Part of general cleanup work before PolyORB integration.
33915
33916 * snames.ads, snames.adb: Add new runtime library entities and names
33917 for PolyORB DSA.
33918
33919 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33920 exp_dist.
33921 (Build_Subprogram_Id): New subprogram provided by exp_dist
33922 Code reorganisation in preparation for PolyORB integration.
33923
33924 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33925 exp_dist.
33926 (Build_Subprogram_Id): New subprogram provided by exp_dist
33927
33928 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
33929 actual parameter types for call to dereference of an
33930 access-to-subprogram type.
33931
33932 * rtsfind.ads: Add new runtime library entities and names for PolyORB
33933 DSA.
33934
33935 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
33936 instead, which has the same behaviour here since we never pass it a
33937 NULL pointer.
33938
33939 * link.c (run_path_option, Solaris case): Use -Wl, as for other
33940 platforms.
33941
33942 * Makefile.in: adjust object file lists for gnatlink and gnatmake
33943 to account for new dependency upon Interfaces.C.Strings + link.o
33944 For x86 FreeBSD, use 86numaux.
33945
33946 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33947 from Mlib.Tgt to Mlib.
33948
33949 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33950 target-independent.
33951
33952 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33953 target-specific versions of this subprogram, now implemented as a
33954 target-independent function in Mlib.
33955
33956 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33957 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33958 (Linker_Library_Path_Option): Remove target-specific versions of this
33959 subprogram, now implemented as a target-independent function in Mlib.
33960
33961 * atree.adb: (Allocate_Initialize_Node): New subprogram.
33962 Factors out node table slots allocation.
33963 (Fix_Parents): New subprogram.
33964 Encapsulate the pattern of fixing up parent pointers for syntactic
33965 children of a rewritten node.
33966 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33967 (Rewrite): Use New_Copy when creating saved copy of original node.
33968 (Replace): Use Copy_Node to copy nodes.
33969
33970 2004-04-19 Javier Miranda <miranda@gnat.com>
33971
33972 * sprint.adb (Sprint_Node_Actual): Give support to the new
33973 Access_To_Subprogram node available in Access_Definition nodes. In
33974 addition, give support to the AI-231 node fields: null-exclusion,
33975 all-present, constant-present.
33976
33977 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33978
33979 * sinfo.ads, sinfo.adb:
33980 New field Access_To_Subprogram_Definition in Access_Definition nodes
33981
33982 * sem_ch6.adb (Process_Formals): Move here the code that creates and
33983 decorates internal subtype declaration corresponding to the
33984 null-excluding formal. This code was previously in Set_Actual_Subtypes.
33985 In addition, carry out some code cleanup on this code. In case of
33986 access to protected subprogram call
33987 Replace_Anonymous_Access_To_Protected_Subprogram.
33988 (Set_Actual_Subtypes): Code cleanup.
33989
33990 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33991 Find_Type in case of anonymous access renamings. Add warning in case of
33992 null-excluding attribute used in anonymous access renaming.
33993
33994 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33995 subprogram
33996
33997 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33998 subprogram.
33999 (Access_Definition): In case of anonymous access to subprograms call
34000 the corresponding semantic routine to decorate the node.
34001 (Access_Subprogram_Declaration): Addition of some comments indicating
34002 some code that probably should be added here. Detected by comparison
34003 with the access_definition subprogram.
34004 (Analyze_Component_Declaration): In case of access to protected
34005 subprogram call Replace_Anonymous_Access_To_Protected.
34006 (Array_Type_Declaration): In case of access to protected subprogram call
34007 Replace_Anonymous_Access_To_Protected_Subprogram.
34008 (Process_Discriminants): In case of access to protected subprogram call
34009 Replace_Anonymous_Access_To_Protected_Subprogram.
34010
34011 * par.adb (P_Access_Definition): New formal that indicates if the
34012 null-exclusion part was present.
34013 (P_Access_Type_Definition): New formal that indicates if the caller has
34014 already parsed the null-excluding part.
34015
34016 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34017 (P_Identifier_Declarations): Code cleanup and give support to renamings
34018 of anonymous access to subprogram types.
34019 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34020 (P_Array_Type_Definition): Give support to AI-254.
34021 (P_Component_Items): Give support to AI-254.
34022 (P_Access_Definition): New formal that indicates if the header was
34023 already parsed by the caller.
34024 (P_Access_Type_Definition): New formal that indicates if the caller has
34025 already parsed the null-excluding part.
34026
34027 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34028 call to P_Access_Definition.
34029
34030 2004-04-19 Geert Bosch <bosch@gnat.com>
34031
34032 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34033 the delicate semantics of floating-point to integer conversion.
34034 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34035
34036 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34037 (Machine_Radix): New function.
34038
34039 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34040 conversion checks.
34041 (Machine_Radix): New function also for use in conversion checks.
34042
34043 2004-04-19 Ed Schonberg <schonberg@gnat.com>
34044
34045 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34046
34047 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34048 to decorate the access-to-protected subprogram and the equivalent type.
34049
34050 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34051 to anonymous access to subprogram types.
34052
34053 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34054 constant-folding, for legality checks in contexts that require an RM
34055 static expression.
34056
34057 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34058 temporary but stack checking is not enabled, increment serial number
34059 to so that symbol generation is consistent with and without stack
34060 checking.
34061
34062 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34063 independent on whether stack checking is enabled, caller must check
34064 the corresponding flag.
34065
34066 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34067 range checks.
34068 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34069 parent if it has discriminants.
34070 (Build_Derived_Private_Type): Constructed full view does
34071 not come from source.
34072 (Process_Discriminants): Default discriminants on a tagged type are
34073 legal if this is the internal completion of a private untagged
34074 derivation.
34075
34076 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34077 no constraint checks, because it corresponds to an existing object.
34078
34079 * sem_prag.adb (Process_Convention): Pragma applies
34080 only to subprograms in the same declarative part, i.e. the same unit,
34081 not the same scope.
34082
34083 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34084 ignore type mismatch on a numeric conversion if expression comes from
34085 expansion.
34086
34087 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
34088
34089 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34090 Homonym_Number parameter, add processing for Source_Location parameter
34091 corresponding.
34092 (Check_Eliminated): Remove the check for homonym numbers, add the check
34093 for source location traces.
34094
34095 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34096 with Arg_Source_Location corresponding to the changes in the format of
34097 the pragma.
34098
34099 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34100 Eliminate pragma corresponding to the changes in the format of the
34101 pragma: Homonym_Number is replaced with Source_Location, two ways of
34102 distinguishing homonyms are mutially-exclusive.
34103
34104 2004-04-19 Joel Brobecker <brobecker@gnat.com>
34105
34106 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34107
34108 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34109 No_Dollar_In_Label, no longer necessary, as it is always True.
34110 (Strip_Suffixes): Likewise.
34111
34112 2004-04-19 Gary Dismukes <dismukes@gnat.com>
34113
34114 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34115 modulus for compatibility with size clause on targets with 16-bit
34116 Integer.
34117
34118 * layout.adb (Discrimify): In the case of private types, set Vtyp to
34119 full type to fix type mismatches on calls to size functions for
34120 discriminant-dependent array components.
34121
34122 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
34123
34124 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34125 lib.
34126
34127 2004-04-19 Pascal Obry <obry@gnat.com>
34128
34129 * mdll-utl.adb (Locate): New version is idempotent.
34130
34131 2004-04-17 Laurent Guerby <laurent@guerby.net>
34132
34133 PR ada/14988 (partial)
34134 * impunit.adb: Fix typo.
34135
34136 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
34137
34138 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34139 and install-rts-cert targets. Remove all gnatlib and gnattools
34140 targets and all other rts-* targets (moved to libada). Remove (now)
34141 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34142 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34143
34144 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34145
34146 * trans.c (tree_transform): Shortcut returning error_mark_node for
34147 statements in annotate_only_mode.
34148 (tree_transform, case N_Label, case N_Return_Statement,
34149 N_Goto_Statement): Make statement tree instead of generating code.
34150 (tree_transform, case N_Assignment_Statement): No longer check
34151 type_annotate_only.
34152 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34153 RETURN_STMT): New.
34154 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34155 New fcns.
34156 (gnat_to_gnu): Collect any RTL generated and deal with it.
34157 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34158 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34159 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34160
34161 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34162
34163 * ada-tree.def (EXPR_STMT): Fix typo in name.
34164 (BLOCK_STMT, IF_STMT): New nodes.
34165
34166 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34167 LABEL_STMT_FIRST_IN_EH): New macros.
34168 (RETURN_STMT_EXPR): Likewise.
34169
34170 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34171 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34172
34173 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34174
34175 * atree.ads: Correct documentation on extended nodes.
34176
34177 * link.c: Set run_path_option for FreeBSD.
34178
34179 2004-04-08 Vincent Celier <celier@gnat.com>
34180
34181 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34182 one of the ALI file, do not link with DEC lib.
34183
34184 * par.adb Remove the last two characters ("%s" or "%b") when checking
34185 if a language defined unit may be recompiled.
34186
34187 2004-04-08 Ed Schonberg <schonberg@gnat.com>
34188
34189 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34190 removal of abstract operation leaves no possible interpretation for
34191 expression.
34192
34193 * sem_eval.adb (Eval_Qualified_Expression): Use
34194 Set_Raises_Constraint_Error on node when needed, so that it does not
34195 get optimized away by subsequent optimizations.
34196
34197 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34198 operands even when they are not wrapped in a type conversion.
34199
34200 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
34201
34202 * sem_prag.adb (Set_Exported): Warn about making static as result of
34203 export only when the export is coming from source. This may be not
34204 be true e.g. on VMS where we expand export pragmas for exception codes
34205 together with imported or exported exceptions, and we don't want the
34206 user to be warned about something he didn't write.
34207
34208 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34209
34210 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34211 duplication between normal entities and those declared as renamings.
34212 No functional change.
34213
34214 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34215 inline functions returning an unconstrained result.
34216
34217 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
34218
34219 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34220 conform to what other front-ends do.
34221
34222 2004-04-08 Doug Rupp <rupp@gnat.com>
34223
34224 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34225 libraries.
34226
34227 2004-04-06 Pascal Obry <obry@gnat.com>
34228
34229 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34230
34231 * osint.adb (Program_Name): Do not look past a directory separator.
34232
34233 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
34234
34235 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34236
34237 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34238 requirement for preserving a copy of the original assignment node.
34239
34240 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34241
34242 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
34243
34244 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34245 when supported.
34246
34247 2004-04-06 Ed Schonberg <schonberg@gnat.com>
34248
34249 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34250 operator calls in functional notation, and apply
34251 Universal_Interpretation to operands, not to their type.
34252
34253 2004-04-06 Robert Dewar <dewar@gnat.com>
34254
34255 * 5wdirval.adb: Minor reformatting
34256
34257 2004-04-06 Ed Falis <falis@gnat.com>
34258
34259 * gnat_rm.texi: Improve a reference to the GCC manual
34260
34261 2004-04-05 Vincent Celier <celier@gnat.com>
34262
34263 * adaint.h, adaint.c: Add function __gnat_named_file_length
34264
34265 * impunit.adb: Add Ada.Directories to the list
34266
34267 * Makefile.in: Add VMS and Windows versions of
34268 Ada.Directories.Validity package body.
34269
34270 * Makefile.rtl: Add a-direct and a-dirval
34271
34272 * mlib-tgt.ads: Minor comment update.
34273
34274 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34275 a-direct.ads, a-direct.adb: New files.
34276
34277 2004-04-05 Vincent Celier <celier@gnat.com>
34278
34279 PR ada/13620
34280 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34281 just to the compiler.
34282
34283 2004-04-05 Robert Dewar <dewar@gnat.com>
34284
34285 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34286 returned string is 1.
34287
34288 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
34289
34290 * eval_fat.ads: Minor reformatting
34291
34292 * g-curexc.ads: Document that lower bound of returned string values
34293 is always one.
34294
34295 * gnatlink.adb: Add ??? comment for previous change
34296 (need to document why this is VMS specific)
34297
34298 * s-stoele.ads: Minor reformatting
34299
34300 * tbuild.ads: Minor reformatting throughout (new function specs)
34301
34302 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
34303 after WITH.
34304
34305 * scng.adb: Minor reformatting
34306
34307 2004-04-05 Geert Bosch <bosch@gnat.com>
34308
34309 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
34310 (Leading_Part): Still perform truncation to machine number if the
34311 specified radix_digits is greater or equal to machine_mantissa.
34312
34313 2004-04-05 Javier Miranda <miranda@gnat.com>
34314
34315 * par-ch3.adb: Complete documentation of previous change
34316 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
34317 (aliased must appear before constant).
34318
34319 * par-ch4.adb: Complete documentation of previous change.
34320
34321 * par-ch6.adb: Complete documentation of previous change.
34322
34323 * sinfo.ads: Fix typo in commment.
34324
34325 2004-04-05 Ed Schonberg <schonberg@gnat.com>
34326
34327 * sem_ch3.adb (Inherit_Components): If derived type is private and has
34328 stored discriminants, use its discriminants to constrain parent type,
34329 as is done for non-private derived record types.
34330
34331 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
34332 Ada 2005 AI-310: an abstract non-dispatching operation is not a
34333 candidate interpretation in an overloaded call.
34334
34335 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
34336 expression is Null and target type is not an access type (e.g. a
34337 non-private address type).
34338
34339 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
34340
34341 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
34342 statement whose right-hand side is an inlined call, save a copy of the
34343 original assignment subtree to preserve enough consistency for
34344 Analyze_Assignment to proceed.
34345
34346 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
34347 complete assignment subtree which is now unnecessary, as the expansion
34348 of inlined call has been improved to preserve a consistent assignment
34349 tree. Note_Possible_Modification must be called only
34350 after checks have been applied, or else unnecessary checks will
34351 be generated.
34352
34353 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
34354 of explicit dereferences that do not Come_From_Source:
34355 - be selective on cases where we must go back to the dereferenced
34356 pointer (an assignment to an implicit dereference must not be
34357 recorded as modifying the pointer);
34358 - do not rely on Original_Node being present (Analyze_Assignment
34359 calls Note_Possible_Modification on a copied tree).
34360
34361 * sem_warn.adb (Check_References): When an unset reference to a pointer
34362 that is never assigned is encountered, prefer '<pointer> may be null'
34363 warning over '<pointer> is never assigned a value'.
34364
34365 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
34366
34367 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
34368 the ABI.
34369
34370 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
34371
34372 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
34373 libexc. We currently don't reference anything in this library and
34374 linking it in triggers linker warnings we don't want to see.
34375
34376 * init.c: Update comments.
34377
34378 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34379
34380 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
34381 * utils.c (create_field_decl): Likewise.
34382 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
34383
34384 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
34385
34386 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
34387 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
34388 Add info directory entry and category.
34389
34390 2004-04-02 Jan Hubicka <jh@suse.cz>
34391
34392 * utils.c: Include function.h
34393 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
34394
34395 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
34396
34397 PR ada/14150
34398 * Make-lang.in: Clean up generation of documentation
34399
34400 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
34401
34402 * xgnatug.adb: Removed, replaced by xgnatugn.adb
34403
34404 * xgnatugn.adb: Replaces xgnatug.adb
34405
34406 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
34407
34408 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
34409
34410 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34411 gnat_ug_wnt.texi: Removed.
34412
34413 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
34414
34415 * utils2.c: Update copyright notice.
34416
34417 2004-04-01 Robert Dewar <dewar@gnat.com>
34418
34419 * checks.adb: Minor reformatting throughout
34420 Note that prev checkin added RM reference to alignment warning
34421
34422 2004-04-01 Ed Schonberg <schonberg@gnat.com>
34423
34424 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
34425 non-static when building aggregate for bit-packed array.
34426
34427 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
34428 function call that is itself the actual in a procedure call, build
34429 temporary for it.
34430
34431 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
34432 a string literal, create a temporary for it, constant folding only
34433 handles scalars here.
34434
34435 2004-04-01 Vincent Celier <celier@gnat.com>
34436
34437 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
34438 Error_Msg_SP): New empty procedures to instantiate the Scanner.
34439 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
34440 tokens.
34441 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
34442 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
34443 and get the checksum.
34444
34445 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
34446 already in the Q.
34447 Increase the Marking_Label at the end of the Multiple_Main_Loop,
34448 instead of at the beginning.
34449
34450 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
34451 directly.
34452 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
34453 on VMS.
34454
34455 * osint.ads (Multi_Unit_Index_Character): New Character global variable
34456
34457 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
34458 not '~' directly.
34459
34460 * par.adb: Remove test on file name to detect language defined units.
34461 Add test on unit name, after parsing, to detect language defined units
34462 that are not compiled with -gnatg (except System.RPC and its children)
34463
34464 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
34465 following units without style checking.
34466
34467 * switch-c.adb: Change -gnatC to -gnateI
34468
34469 * usage.adb: Document new switch -gnateInnn
34470
34471 * scng.adb (Accumulate_Token_Checksum): New procedure
34472 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
34473 word or literal number.
34474 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
34475 numbers.
34476
34477 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
34478
34479 * a-tasatt.adb,
34480 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
34481 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
34482 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
34483 5vtpopde.adb: Add missing 'constant' keywords.
34484
34485 2004-04-01 Javier Miranda <miranda@gnat.com>
34486
34487 * par-ch4.adb: (P_Allocator): Code cleanup
34488
34489 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
34490 attribute.
34491
34492 * sinfo.ads: Complete documentation of previous change
34493
34494 2004-04-01 Pascal Obry <obry@gnat.com>
34495
34496 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
34497 only on VMS. This special handling was done because an old GNU/ld bug
34498 on Windows which has been fixed.
34499
34500 2004-04-01 GNAT Script <nobody@gnat.com>
34501
34502 * Make-lang.in: Makefile automatically updated
34503
34504 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34505
34506 * decl.c (gnat_to_gnu_entity, make_type_from_size):
34507 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
34508 * trans.c (tree_transform, convert_with_check): Likewise.
34509 * utils.c (gnat_signed_or_unsigned_type): Likewise.
34510 (build_vms_descriptor, unchecked_convert): Likewise.
34511 * utils2.c (nonbinary_modular_operation): Likewise.
34512
34513 2004-03-29 Javier Miranda <miranda@gnat.com>
34514
34515 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
34516 (Install_Null_Excluding_Check): Local subprogram that determines whether
34517 an access node requires a runtime access check and if so inserts the
34518 appropriate run-time check.
34519 (Apply_Access_Check): Call Install_Null_Excluding check if required
34520 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
34521
34522 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
34523
34524 * einfo.ads: Fix typo in comment
34525
34526 * exp_ch3.adb (Build_Assignment): Generate conversion to the
34527 null-excluding type to force the corresponding run-time check.
34528 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
34529 type to force the corresponding run-time check.
34530
34531 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
34532 the null-excluding type to force the corresponding run-time check.
34533
34534 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
34535 case of access types unless they have the null-excluding attribute.
34536
34537 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
34538 part.
34539
34540 * exp_util.ads: Fix typo in comment
34541
34542 * par.adb (P_Null_Exclusion): New subprogram
34543 (P_Subtype_Indication): New formal that indicates if the null-excluding
34544 part has been scanned-out and it was present
34545
34546 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
34547
34548 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
34549 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
34550 type to force the corresponding run-time check
34551 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
34552 components
34553 (Resolve_Array_Aggregate): Carry out some static checks
34554 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
34555
34556 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
34557 attribute must be set only if specified by means of the null-excluding
34558 part. In addition, we must also propagate the access-constant attribute
34559 if present.
34560 (Access_Subprogram_Declaration, Access_Type_Declaration,
34561 Analyze_Component_Declaration, Analyze_Object_Declaration,
34562 Array_Type_Declaration, Process_Discriminants,
34563 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
34564 and carry out some static checks.
34565 (Build_Derived_Access_Type): Set the null-excluding attribute
34566 (Derived_Type_Declaration, Process_Subtype): Carry out some static
34567 checks.
34568
34569 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
34570
34571 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
34572
34573 * sem_ch6.adb (Process_Formals): Carry out some static checks.
34574 (Set_Actual_Subtypes): Generate null-excluding subtype if the
34575 null-excluding part was present; it is not required to be done here in
34576 case of anonymous access types.
34577 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
34578 value.
34579
34580 * sem_res.adb (Resolve_Actuals): Carry out some static check
34581 (Resolve_Null): Allow null in anonymous access
34582
34583 * sinfo.adb: New subprogram Null_Exclusion_Present
34584 All_Present and Constant_Present available on access_definition nodes
34585
34586 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
34587 object_declaration, derived_type_definition, component_definition,
34588 discriminant_specification, access_to_object_definition,
34589 access_function_definition, allocator, access_procedure_definition,
34590 access_definition, parameter_specification, All_Present and
34591 Constant_Present flags available on access_definition nodes.
34592
34593 2004-03-29 Robert Dewar <dewar@gnat.com>
34594
34595 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
34596 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
34597 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
34598 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
34599 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
34600 sem_prag.adb: Updates to handle multiple units/file
34601
34602 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
34603
34604 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
34605 sem_util.adb: Minor reformatting
34606
34607 * sem_ch12.adb: Add comment for previous change
34608
34609 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
34610
34611 * osint.adb (Executable_Prefix): Set Exec_Name to the current
34612 executable name when not initialized. Otherwise, use its current value.
34613
34614 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
34615 initialize it to another executable name than the current one. This
34616 allows to configure paths for an executable name (gnatmake) different
34617 from the current one (gnatdist).
34618
34619 2004-03-29 Ed Schonberg <schonberg@gnat.com>
34620
34621 * exp_ch6.adb (Expand_Call): A call to a function declared in the
34622 current unit cannot be inlined if it appears in the body of a withed
34623 unit, to avoid order of elaboration problems in gigi.
34624
34625 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
34626 information for protected (wrapper) operation as well, to simplify gdb
34627 use.
34628
34629 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
34630 protected body, indicate that the entity for the generated spec comes
34631 from source, to ensure that references are properly generated for it.
34632 (Build_Body_To_Inline): Do not inline a function that returns a
34633 controlled type.
34634
34635 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
34636 apply convention to homonyms that are declared explicitly.
34637
34638 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
34639 that renames an equality operator and the operands are overloaded,
34640 resolve them with the declared formal types, before rewriting as an
34641 operator.
34642
34643 2004-03-29 GNAT Script <nobody@gnat.com>
34644
34645 * Make-lang.in: Makefile automatically updated
34646
34647 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
34648
34649 * memtrack.adb: Log realloc calls, which are treated as free followed
34650 by alloc.
34651
34652 2004-03-25 Vincent Celier <celier@gnat.com>
34653
34654 * prj-makr.adb (Process_Directories): Detect when a file contains
34655 several units. Do not include such files in the config pragmas or
34656 in the naming scheme.
34657
34658 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
34659 Resolve links only when not in Trusted_Mode.
34660 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
34661 Do not resolve links for the display names.
34662
34663 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
34664 resolve links when computing the display names.
34665
34666 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
34667
34668 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
34669 attribute reference does not denote a subtype, it can be any
34670 expression that has a classwide type, potentially after an implicit
34671 dereference. In particular, the prefix can be a view conversion for
34672 a classwide type (for which Is_Object_Reference holds), but it can
34673 also be a value conversion for an access-to-classwide type. In the
34674 latter case, there is an implicit dereference, and the original node
34675 for the prefix does not verify Is_Object_Reference.
34676
34677 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
34678 conversion of a discriminant-dependent component of a mutable object
34679 is one itself.
34680
34681 2004-03-25 Ed Schonberg <schonberg@gnat.com>
34682
34683 * freeze.adb (Freeze_Entity): When an inherited subprogram is
34684 inherited, has convention C, and has unconstrained array parameters,
34685 place the corresponding warning on the derived type declaration rather
34686 than the original subprogram.
34687
34688 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
34689 indication on renaming declaration, if formal has a box and actual
34690 is absent.
34691
34692 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
34693 determine whether to generate an implicit or explicit reference to
34694 the renamed entity.
34695
34696 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
34697 subprogram renaming comes from a defaulted formal subprogram in an
34698 instance.
34699
34700 2004-03-25 Gary Dismukes <dismukes@gnat.com>
34701
34702 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
34703 value expressions to ensure that calls within a component definition
34704 will be checked (since those are evaluated during the record type's
34705 elaboration).
34706
34707 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
34708
34709 * s-tpobop.adb: Code clean up:
34710 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
34711 code.
34712 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
34713
34714 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
34715
34716 * Makefile.in: Clean up in the ravenscar run time.
34717
34718 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34719
34720 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
34721 of No_Strict_Aliasing to build_pointer_type_for_mode.
34722 * utils.c (update_pointer_to): Walk pointer and ref chains.
34723
34724 2004-03-22 Cyrille Comar <comar@act-europe.fr>
34725
34726 * ali.ads: Fix Comment about Dynamic_Elab.
34727
34728 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
34729 Has_RACW, Is_Generic, etc.)
34730 (Output_Object, Gnatls): Take into account ALI files not attached to
34731 an object.
34732
34733 2004-03-22 Vincent Celier <celier@gnat.com>
34734
34735 * gprep.adb: Change all String_Access to Name_Id
34736 (Is_ASCII_Letter): new function
34737 (Double_File_Name_Buffer): New procedure
34738 (Preprocess_Infile_Name): New procedure
34739 (Process_Files): New procedure
34740 (Gnatprep): Check if output and input are existing directories.
34741 Call Process_Files to do the real job.
34742
34743 2004-03-22 Robert Dewar <dewar@gnat.com>
34744
34745 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
34746 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
34747
34748 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
34749
34750 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
34751 case when the source contains only comments.
34752
34753 2004-03-22 Ed Schonberg <schonberg@gnat.com>
34754
34755 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
34756 declaration for a child subprogram body that acts as a spec, indicate
34757 that the entity in the declaration needs debugging information.
34758
34759 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
34760 full view if the subtype is created for a constrained record component;
34761 gigi has enough information to construct the record, and there is no
34762 place in the tree for the declaration.
34763
34764 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
34765 serial number for the dummy body that is built for analysis, to avoid
34766 inconsistencies in the generation of internal names when compiling
34767 with -gnatN.
34768
34769 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
34770
34771 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
34772 object.
34773
34774 2004-03-22 GNAT Script <nobody@gnat.com>
34775
34776 * Make-lang.in: Makefile automatically updated
34777
34778 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34779
34780 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34781 * trans.c (tree_transform, emit_index_check): Likewise.
34782 * utils.c (build_template): Likewise.
34783 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
34784 (maybe_unconstrained_array, unchecked_convert): Likewise.
34785 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
34786 (build_unary_op): Likewise.
34787 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34788 (fill_vms_descriptor): Likewise.
34789 (build_call_alloc_dealloc): Likewise.
34790 ALIGN is unsigned.
34791 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
34792
34793 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
34794
34795 PR other/14630
34796 * gnat_ug.texi: Add info directory category and entry.
34797 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34798 gnat_ug_wnt.texi: Regenerate.
34799
34800 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
34801
34802 * ada-tree.h: Update copyright notice.
34803 Minor reformatting.
34804
34805 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
34806
34807 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
34808 as regular exception objects and not as mere integers representing the
34809 condition code. The latter approach required some dynamics to mask off
34810 severity bits, which did not fit well into the GCC table based model.
34811 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
34812 exception data objects. We don't it and it would conflict with the other
34813 external symbol we have to generate for such exceptions.
34814
34815 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
34816 the special code for VMS exceptions, since these are now represented
34817 as regular exceptions objects.
34818
34819 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34820
34821 * decl.c (debug_no_type_hash): Remove.
34822 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
34823 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
34824
34825 2004-03-19 Laurent Guerby <laurent@guerby.net>
34826
34827 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
34828 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
34829
34830 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34831
34832 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
34833 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
34834 (TYPE_RM_SIZE_INT): Directly use type.values.
34835 (TREE_LOOP_ID): Clean up check.
34836 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
34837 TYPE_VALUES, not TYPE_FIELDS.
34838 * trans.c (convert_with_check): Delay access of bounds of basetype
34839 until sure is numeric.
34840
34841 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
34842
34843 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
34844
34845 Code clean up:
34846 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
34847 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
34848 Specific.Set instead of direct call to e.g pthread_setspecific.
34849
34850 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
34851
34852 * adaint.c: Update comments.
34853
34854 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
34855 GNATLIB_SHARED for FreeBSD.
34856
34857 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
34858
34859 * init.c [VxWorks]: Do not fix the stack size for the environment task.
34860 When needed (stack checking) the stack size is retrieved
34861 from the VxWorks kernel.
34862
34863 * Makefile.in: Flag -nostdinc is required when building the run time
34864 for avoiding looking for files in the base compiler.
34865 Add the VxWorks specific version of the package body for
34866 System.Stack_checking.Operations (5zstchop.adb).
34867
34868 * Make-lang.in: Add the object file for
34869 System.Stack_Checking.Operations.
34870
34871 * Makefile.rtl: Add object file for the package
34872 System.Stack_Checking.Operations.
34873
34874 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
34875
34876 * s-stache.ads, s-stache.adb: Move the operations related to stack
34877 checking from this package to package System.Stack_Checking.Operations.
34878 This way, stack checking operations are only linked in the final
34879 executable when using the -fstack-check flag.
34880
34881 2004-03-18 Doug Rupp <rupp@gnat.com>
34882
34883 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
34884 Reorganize ifeq's.
34885
34886 * 5qsystem.ads, 5xcrtl.ads: New files.
34887
34888 2004-03-18 Vincent Celier <celier@gnat.com>
34889
34890 * prj.adb (Reset): Reset hash table Files_Htable
34891
34892 * prj-env.adb (Source_Paths, Object_Paths): New tables.
34893 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
34894 the procedures Add_To_Path_File.
34895 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
34896 making sure that each directory is present only once and, for object
34897 dirs, when a directory already present is added, the duplicate is
34898 removed and the directory is always put as the last in the table.
34899 Write the path files at the end of these accumulations.
34900
34901 * prj-nmsc.adb (Record_Source): Add source file name in hash table
34902 Files_Htable for all sources.
34903
34904 * prj-proc.adb (Process): Remove restrictions between not directly
34905 related extending projects.
34906
34907 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
34908
34909 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
34910 (Find_Sources): Minor speed optimization.
34911
34912 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
34913 parameter Trusted_Mode.
34914
34915 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
34916
34917 * scn.adb (Determine_License): Take into account a degenerated case
34918 when the source contains only comments.
34919
34920 2004-03-18 Ed Schonberg <schonberg@gnat.com>
34921
34922 * sem_warn.adb (Check_References): For a warning on a selected
34923 component that does not come from source, locate an uninitialized
34924 component of the record type to produce a more precise error message.
34925
34926 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
34927
34928 * 3zsoccon.ads: Fix multicast options.
34929
34930 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
34931 in the spec.
34932
34933 2004-03-15 Robert Dewar <dewar@gnat.com>
34934
34935 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
34936 pragma used for a private type.
34937
34938 * lib-xref.adb (Generate_Reference): Do not generate warning if
34939 reference is in a different unit from the pragma Unreferenced.
34940
34941 * 5vtpopde.adb: Minor reformatting
34942 Fix casing of To_Task_ID
34943
34944 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34945 flag if we have an unchecked conversion to an access type in the same
34946 unit.
34947
34948 2004-03-15 Geert Bosch <bosch@gnat.com>
34949
34950 * a-ngcoty.adb (Modulus): In alternate formula for large real or
34951 imaginary parts, use Double precision throughout.
34952
34953 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34954 we want to be able to compile run-time with -gnata for testing, but
34955 this may also be instantiated in user code that is compiled with -gnata.
34956
34957 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
34958
34959 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34960 codes. Having a separate type for this is useful to enforce consistency
34961 throughout the various run-time units.
34962 (Exception_Data): Use Exception_Code for Import_Code.
34963
34964 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34965 Natural and Integer in various places.
34966 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34967 with the severity bits masked off.
34968 (Register_VMS_Exception): Handle the additional exception data pointer
34969 argument.
34970
34971 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34972 component, now reflected by an exported accessor.
34973 (is_handled_by): New routine to compute whether the propagated
34974 occurrence matches some handler choice specification. Extracted out of
34975 get_action_description_for, and expanded to take care of the VMS
34976 specifities.
34977 (get_action_description_for): Use is_handled_by instead of an explicit
34978 complex condition to decide if the current choice at hand catches the
34979 propagated occurrence.
34980
34981 * raise.h (Exception_Code): New type for C.
34982
34983 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34984 System.Standard_Library.Exception_Code, to allow references from the
34985 pragma import/export expander.
34986
34987 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34988 New accessors to allow easy access to GNAT exception data
34989 characteristics.
34990 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34991 redundant Handled_By_Others component, helper for the personality
34992 routine which will now be able to call the appropriate exception data
34993 accessor instead.
34994
34995 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34996 component of Standard_Exception_Type to be the closest possible to
34997 Exception_Code in System.Standard_Library, that we cannot get at this
34998 point. Expand a ??? comment to notify that this type node should
34999 probably be rewritten later on.
35000
35001 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35002 registration call to include a pointer to the exception object in the
35003 arguments.
35004
35005 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35006 instead of int and explicit bitmasks.
35007
35008 2004-03-15 Vincent Celier <celier@gnat.com>
35009
35010 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35011 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35012
35013 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35014 longer needed now that it is in the spec of
35015 System.Tasking.Task_Attributes.
35016
35017 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35018
35019 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35020
35021 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35022
35023 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35024 taken care of in Scan_Make_Arg.
35025 (Scan_Make_Arg): Add the executable suffix only if the argument
35026 following -o, in canonical case, does not end with the executable
35027 suffix. When in verbose mode and executable file name does not end
35028 with executable suffix, output the executable name, in canonical case.
35029
35030 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35031 to avoid warnings when instantiating Ada.Task_Attributes.
35032 Minor reformating.
35033
35034 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35035 in the correct order.
35036
35037 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35038 redirect standard output and error to a file for the invocation of the
35039 compiler, then read the file.
35040
35041 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35042 directory, instead of the Value.
35043 (Find_Source_Dirs): Remove useless code & comments.
35044
35045 2004-03-15 Ed Schonberg <schonberg@gnat.com>
35046
35047 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35048 tagged type is inherited, and the parent operation is not frozen yet,
35049 force generation of a freeze node for the inherited operation, so the
35050 corresponding dispatch entry is properly initialized.
35051 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35052 when looking for user-defined equality operation.
35053
35054 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35055 boolean when locating primitive equality of tagged component.
35056
35057 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35058 bit-aligned field and the right-hand side a string literal, introduce
35059 a temporary before expanding assignment into a loop.
35060
35061 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35062 priority in full, to ensure that any expanded subepxressions of it are
35063 elaborated in the scope of the init_proc.
35064
35065 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35066 after object declaration, skipping over code that may have been
35067 generated for validity checks.
35068
35069 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35070 discriminants, ignore the known discriminants of its full view, if
35071 any, to check legality.
35072
35073 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35074 component if type has unknown discriminants.
35075 (Analyze_Private_Extension_Declaration): Discriminant constraint is
35076 null if type has unknown discriminants.
35077
35078 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35079 for end label when present.
35080
35081 * s-fileio.adb (Open): When called with a C_Stream, use given name for
35082 temporary file, rather than an empty string.
35083
35084 2004-03-15 Ed Falis <falis@gnat.com>
35085
35086 * s-thread.adb: Removed, no longer used.
35087
35088 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35089
35090 * decl.c (target.h): Now include.
35091 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35092 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35093 (validate_size): For POINTER_TYPE, get smallest size permitted on
35094 machine.
35095
35096 * fe.h: Sort Einfo decls and add Set_Mechanism.
35097
35098 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35099 (ada/decl.o): Depends on target.h.
35100
35101 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35102 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35103
35104 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
35105
35106 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35107
35108 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35109 Insert_Dereference_Action when rewriting an implicit dereference into
35110 an explicit one, this will be taken care of during expansion of the
35111 explicit dereference.
35112 (Expand_N_Slice): Same. Always do the rewriting, even for the case
35113 of non-packed slices, since the dereference action generated by
35114 expansion of the explicit dereference is needed in any case.
35115 (Expand_N_Selected_Component): When rewriting an implicit dereference,
35116 analyze and resolve the rewritten explicit dereference so it is seen
35117 by the expander.
35118 (Insert_Dereference_Action): This procedure is now called only for the
35119 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35120 dereferences that do not come from source (including explicit
35121 dereferences resulting from rewriting implicit ones), but do not
35122 recursively insert a check for the dereference nodes contained within
35123 the check.
35124 (Insert_Dereference_Action): Clarify and correct comment.
35125
35126 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
35127
35128 PR ada/14131
35129 Move language detection to the top level.
35130 * config-lang.in: Build by default.
35131
35132 2004-03-05 Robert Dewar <dewar@gnat.com>
35133
35134 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35135
35136 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35137 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35138 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35139 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35140 unchecked conversion to spec to avoid warnings.
35141
35142 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35143 to Task_ID
35144
35145 * 7stpopsp.adb: Correct casing in To_Task_ID call
35146
35147 * a-strsea.ads, a-strsea.adb: Minor reformatting
35148
35149 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35150
35151 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35152 Adjust Max_Msg_Length to be clearly large enough.
35153
35154 * fe.h: Define In_Same_Source_Unit
35155
35156 * osint.adb: Add pragma Warnings Off to suppress warnings
35157 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35158 aliasing warnings.
35159
35160 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35161
35162 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35163
35164 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35165
35166 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35167
35168 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35169
35170 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35171 node. We now do generate them for gcc back end.
35172
35173 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35174 warning.
35175
35176 * sinput-c.adb: Fix bad name in header.
35177 Add pragma Warnings Off to suppress aliasing warning.
35178
35179 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35180
35181 * snames.h, snames.ads, snames.adb: Add entry for pragma
35182 No_Strict_Aliasing.
35183
35184 2004-03-05 Vincent Celier <celier@gnat.com>
35185
35186 * prj-com.ads: Add hash table Files_Htable to check when a file name
35187 is already a source of another project.
35188
35189 * prj-nmsc.adb (Record_Source): Before recording a new source, check
35190 if its file name is not already a source of another project. Report an
35191 error if it is.
35192
35193 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35194 source file name, call gnatpp with all the sources of the main project.
35195
35196 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35197 of file names.
35198
35199 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35200 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35201 /RUNTIME_SYSTEM=, converted to --RTS=
35202 /NOTABS, converted to -notabs
35203
35204 2004-03-05 Pascal Obry <obry@gnat.com>
35205
35206 * make.adb: Minor reformatting.
35207
35208 2004-03-05 Ed Schonberg <schonberg@gnat.com>
35209
35210 Part of implemention of AI-262.
35211 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35212
35213 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35214 procedure.
35215
35216 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35217 when component type is a partially constrained class-wide subtype.
35218 (Constrain_Discriminated_Type): If parent type has unknown
35219 discriminants, a constraint is illegal, even if full view has
35220 discriminants.
35221 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35222 with unknown discriminants whose full view is a discriminated record.
35223
35224 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35225 flag, to handle properly derivations of tagged types with unknown
35226 discriminants.
35227 (Analyze_Package_Spec, Analyze_Package_Body): Install
35228 Private_With_Clauses before analyzing private part or body.
35229
35230 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35231 Has_Discriminants can be true for a given type (documentation).
35232
35233 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
35234
35235 * s-restri.ads: Fix license (GPL->GMGPL).
35236
35237 * s-tassta.adb: Minor reformatting.
35238
35239 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35240 by calls to Exit_One_ATC_Level, since additional clean up is performed
35241 by this function.
35242
35243 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35244 by calls to Exit_One_ATC_Level, since additional clean up is performed
35245 by this function.
35246
35247 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35248
35249 * trans.c: Reflect GCC changes to fix bootstrap problem.
35250 Add warning for suspicious aliasing unchecked conversion.
35251
35252 2004-03-05 GNAT Script <nobody@gnat.com>
35253
35254 * Make-lang.in: Makefile automatically updated
35255
35256 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
35257
35258 * ali.adb (Read_Instantiation_Instance): Do not modify the
35259 current_file_num when reading information about instantiations, since
35260 this corrupts files in later references.
35261
35262 2004-03-02 Vincent Celier <celier@gnat.com>
35263
35264 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35265 before checking if it is read-only.
35266
35267 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35268 of SRC_DIRS and eliminate duplicates.
35269
35270 * gprcmd.adb: Replace command "path" with command "path_sep" to return
35271 the path separator.
35272 (Usage): Document path_sep
35273
35274 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35275 C++ compiler. No need for a script.
35276 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35277 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35278 subst.
35279
35280 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35281 where there are Ada sources.
35282 (Set_Ada_Paths): Only add to the include path the source dirs of project
35283 with Ada sources.
35284 (Add_To_Path): Add the Display_Values of the directories, not their
35285 Values.
35286
35287 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
35288 data.
35289
35290 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
35291 is not No_Name.
35292 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
35293 Value is canonicalized.
35294 (Language_Independent_Check): Do not copy Value to Display_Value when
35295 canonicalizing Value.
35296
35297 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
35298 path to find limited with cycles.
35299 (Parse_Single_Project): Use canonical cased path to find the end of a
35300 with cycle.
35301
35302 2004-03-02 Ed Schonberg <schonberg@gnat.com>
35303
35304 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
35305 and not a child unit.
35306
35307 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
35308 appear in a with_clause.
35309
35310 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
35311 only happen in type_annotate mode, do not try to elaborate it.
35312
35313 * exp_util.adb (Force_Evaluation): If expression is a selected
35314 component on the left of an assignment, use a renaming rather than a
35315 temporary to remove side effects.
35316
35317 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
35318 inlined instance body, which is analyzed before the end of the
35319 enclosing scope.
35320
35321 2004-03-02 Robert Dewar <dewar@gnat.com>
35322
35323 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
35324 sem_ch4.adb: Use new feature for substitution of keywords in VMS
35325
35326 * errout.ads, errout.adb: Implement new circuit for substitution of
35327 keywords in VMS.
35328
35329 * sem_case.adb (Analyze_Choices): Place message properly when case is
35330 a subtype reference rather than an explicit range.
35331
35332 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
35333
35334 2004-03-02 Doug Rupp <rupp@gnat.com>
35335
35336 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
35337
35338 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
35339
35340 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
35341
35342 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35343
35344 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
35345 BLKmode bitfield.
35346
35347 2004-02-25 Robert Dewar <dewar@gnat.com>
35348
35349 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
35350 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
35351 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
35352 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
35353 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
35354 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
35355 the defining instance of the type to avoid aliasing problems.
35356 Fix copyright header. Fix bad comments in package header.
35357
35358 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
35359
35360 2004-02-25 Ed Schonberg <schonberg@gnat.com>
35361
35362 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
35363 rewritten as references when aliased through an address clause.
35364
35365 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
35366 whether call can be interpreted as an indirect call to the result of a
35367 parameterless function call returning an access subprogram.
35368
35369 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
35370
35371 Code clean up:
35372 * exp_ch7.adb (Make_Clean): Remove generation of calls to
35373 Unlock[_Entries], since this is now done by Service_Entries directly.
35374
35375 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
35376
35377 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
35378 Requeue_Call for better code readability. Change spec and update calls:
35379 PO_Service_Entries now unlock the PO on exit.
35380 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
35381 PO_Service_Entries.
35382
35383 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
35384
35385 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
35386
35387 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
35388
35389 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
35390 protected subprogram call and analyzing the result of such expanding
35391 in case when the called protected subprogram is eliminated.
35392
35393 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
35394 names.
35395
35396 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
35397
35398 * Makefile.in: Clean ups.
35399
35400 2004-02-23 Ed Schonberg <schonberg@gnat.com>
35401
35402 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
35403 protected operations if original subprogram is flagged as eliminated.
35404 (Expand_N_Subprogram_Body): For a protected operation, create
35405 discriminals for next operation before checking whether the operation
35406 is eliminated.
35407
35408 * exp_ch9.adb (Expand_N_Protected_Body,
35409 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
35410 for internal protected operations if the original subprogram is
35411 eliminated.
35412
35413 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
35414 declared in a single protected object.
35415
35416 2004-02-23 Vincent Celier <celier@gnat.com>
35417
35418 * prj-attr.adb: Make attribute Builder'Executable an associative array,
35419 case insensitive if file names are case insensitive, instead of a
35420 standard associative array.
35421
35422 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
35423 them as case insensitive on platforms where the file names are case
35424 sensitive.
35425
35426 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
35427 project file has already been parsed that canonical path are compared.
35428
35429 2004-02-23 Robert Dewar <dewar@gnat.com>
35430
35431 * sinput-c.ads: Correct bad unit title in header
35432
35433 * freeze.adb: Minor reformatting
35434
35435 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35436
35437 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
35438 nonaddressable COMPONENT_REF that is removing padding that we are
35439 taking the address of, take the address of the padded record instead
35440 if item is variable size.
35441
35442 2004-02-20 Robert Dewar <dewar@gnat.com>
35443
35444 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
35445
35446 2004-02-20 Ed Schonberg <schonberg@gnat.com>
35447
35448 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
35449 itype references for the constrained designated type of a component
35450 whose base type is already frozen.
35451
35452 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
35453
35454 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
35455 avoid GCC warnings.
35456
35457 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
35458
35459 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
35460 identifier for a phantom package that rewrites the formal package
35461 declaration with a box. The Add semantic decorations for the defining
35462 identifier from the original node (that represents the formal package).
35463
35464 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
35465
35466 * Make-lang.in (ada/stamp-sdefault): Use the top level
35467 move-if-change.
35468
35469 2004-02-19 Richard Henderson <rth@redhat.com>
35470
35471 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
35472
35473 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
35474
35475 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
35476 Scan_ALI can be used for multiple ALI files without reinitializing
35477 between calls.
35478
35479 2004-02-18 Robert Dewar <dewar@gnat.com>
35480
35481 * debug.adb: Minor reformatting.
35482
35483 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35484
35485 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
35486 to zero if there is an address clause.
35487
35488 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
35489
35490 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
35491
35492 2004-02-18 Gary Dismukes <dismukes@gnat.com>
35493
35494 * layout.adb (Layout_Component_List): Revise generation of call to
35495 discriminant-checking function to pass selections of all of the type's
35496 discriminants rather than just the variant-controlling discriminant.
35497
35498 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
35499
35500 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
35501 fail in the current setup and triggers spurious system error messages.
35502 Pretend it occurred and failed instead.
35503
35504 2004-02-18 Vincent Celier <celier@gnat.com>
35505
35506 * bld.adb: Mark FLDFLAGS as saved
35507 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
35508 it is not the root project. Put each directory to be
35509 extended between double quotes to prevent it to be expanded on Windows.
35510 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
35511 the project file. Set them back to their initial values if they have not
35512 been set in the project file.
35513
35514 * gprcmd.adb: (Gprdebug, Debug): New global variables
35515 (Display_Command): New procedure
35516 (Usage): Document new command "linkopts"
35517 Call Display_Command when env var GPRDEBUG has the value "TRUE"
35518 Implement new command "linkopts"
35519 Remove quotes that may be around arguments for "extend"
35520 Always call Normalize_Pathname with arguments formatted for the platform
35521
35522 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
35523 Change @echo to @$(display) in target clean to be able to clean silently
35524
35525 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
35526
35527 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
35528 canonical case.
35529
35530 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
35531 = Extending_All when current project is an extending all project.
35532
35533 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
35534 set to True only for LINK command, after Unix switch -o.
35535 (Process_Arguments): Set Output_File_Expected to True for LINK command
35536 after Unix switch -o. When Output_File_Expected is True, never add an
35537 extension to a file name.
35538
35539 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
35540 option file name, only to the --for-linker= switch.
35541 (Option_File_Name): If option file name do not end with ".opt", append
35542 "/OPTIONS".
35543
35544 2004-02-18 GNAT Script <nobody@gnat.com>
35545
35546 * Make-lang.in: Makefile automatically updated
35547
35548 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
35549
35550 * Make-lang.in (stamp-sdefault): Do not depend on
35551 move-if-change.
35552
35553 2004-02-12 Zack Weinberg <zack@codesourcery.com>
35554
35555 * config-lang.in: Disable Ada by default until probe logic for
35556 a bootstrap Ada compiler can be moved to the top level configure
35557 script.
35558
35559 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
35560
35561 * decl.c (components_to_record): Don't claim that the internal fields
35562 we make to hold the variant parts are semantically addressable, because
35563 they are not.
35564
35565 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
35566 adjust the comment describing the modular type form when we can use it.
35567 (Install_PAT): Account for the Esiz renaming.
35568
35569 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
35570 sc_onstack context indication before raising the exception to which
35571 the signal is mapped. Allows better handling of later signals possibly
35572 triggered by the resumed user code if the exception is handled.
35573
35574 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
35575
35576 * 5zinit.adb: Removed, no longer used.
35577
35578 2004-02-12 Robert Dewar <dewar@gnat.com>
35579
35580 * ali.adb: Remove separating space between parameters on R line. Makes
35581 format consistent with format used by the binder for Set_Globals call.
35582
35583 * atree.ads, atree.adb: Minor reformatting (new function header format)
35584
35585 * bindgen.adb: Add Run-Time Globals documentation section containing
35586 detailed documentation of the globals passed from the binder file to
35587 the run time.
35588
35589 * gnatls.adb: Minor reformatting
35590
35591 * init.c (__gnat_set_globals): Add note pointing to documentation in
35592 bindgen.
35593
35594 * lib-writ.ads, lib-writ.adb: Remove separating space between
35595 parameters on R line.
35596 Makes format consistent with format used by the binder for Set_Globals
35597 call.
35598
35599 * osint.ads: Add 2004 to copyright notice
35600 Minor reformatting
35601
35602 * snames.ads: Correct capitalization of FIFO_Within_Priorities
35603 Noticed during code reading, documentation issue only
35604
35605 * usage.adb: Remove junk line for obsolete C switch
35606 Noticed during code reading
35607
35608 2004-02-12 Vincent Celier <celier@gnat.com>
35609
35610 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
35611 extend for each directory, so that multiple /** directories are
35612 extended individually.
35613 (Recursive_Process): Set the default for LANGUAGES to ada
35614
35615 * gprcmd.adb: Define new command "ignore", to do nothing.
35616 Implement new comment "path".
35617
35618 * Makefile.generic: Suppress output when SILENT is set
35619 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
35620 used, so that the correct compiler is invoked.
35621 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
35622 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
35623
35624 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
35625
35626 * Makefile.in: Clean ups and remove obsolete targets.
35627
35628 2004-02-12 Ed Schonberg <schonberg@gnat.com>
35629
35630 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
35631 predicate declared in exp_util.
35632
35633 * exp_util.adb: Add comments.
35634
35635 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
35636 visibility before compiling context of the subunit.
35637
35638 * sem_res.adb (Check_Parameterless_Call): If the context expects a
35639 value but the name is a procedure, do not attempt to analyze as a call,
35640 in order to obtain more telling diagnostics.
35641
35642 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
35643 'Access on parameterless function calls.
35644 (Normalize_Actuals): For a parameterless function call with missing
35645 actuals, defer diagnostic until resolution of enclosing call.
35646
35647 * sem_util.adb (Wrong_Type): If the context type is an access to
35648 subprogram and the expression is a procedure name, suggest a missing
35649 'attribute.
35650
35651 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
35652 Nathanael Nerode <neroden@gcc.gnu.org>
35653
35654 PR ada/6637
35655 PR ada/5911
35656 Merge with libada-branch:
35657 * config-lang.in: Build libada only when ada is built.
35658
35659 2004-02-09 Ed Schonberg <schonberg@gnat.com>
35660
35661 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
35662 for a tagged type, verify that both formals have the same type.
35663
35664 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
35665 temporary when the formal is an in-parameter and the actual a possibly
35666 unaligned slice.
35667
35668 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
35669 when expansion is disabled, to ensure proper name capture with
35670 overloaded literals. Condition can be of any boolean type, resolve
35671 accordingly.
35672
35673 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
35674 renaming is for a formal subprogram with a default operator name, and
35675 there is a usable operator that is visible at the point of
35676 instantiation.
35677
35678 2004-02-09 Robert Dewar <dewar@gnat.com>
35679
35680 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
35681 rewrite to ignore errors in ali files, intended to allow tools downward
35682 compatibility with new versions of ali files.
35683
35684 * ali.ads: Add new parameter Ignore_Errors
35685
35686 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
35687 duplicating the error message giving the file with restrictions.
35688
35689 * debug.adb: Add debug flag I for gnatbind
35690
35691 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
35692 operators for the case where the operator is a defining operator.
35693
35694 * exp_ch3.adb: Minor reformatting (new function spec format).
35695
35696 * exp_ch4.adb: Add comment for previous change, and make minor
35697 adjustment to loop to always check for improper loop termination.
35698 Minor reformatting throughout (new function spec format).
35699
35700 * gnatbind.adb: Implement -di debug flag for gnatbind
35701
35702 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
35703
35704 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
35705
35706 * lib-load.adb: Fix bad assertion.
35707 Found by testing and code reading.
35708 Minor reformatting.
35709
35710 * lib-load.ads: Minor reformatting.
35711
35712 * lib-writ.adb: There is only one R line now.
35713
35714 * lib-writ.ads: Add documentation on making downward compatible changes
35715 to ali files so old tools work with new ali files.
35716 There is only one R line now.
35717 Add documentation on format incompatibilities (with special GPS note)
35718
35719 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
35720
35721 * par-load.adb: Minor reformatting
35722
35723 * sem_ch8.adb: Fix to error message from last update
35724 Minor reformatting and restructuring of code from last update
35725
35726 * par-prag.adb, snames.adb, snames.ads, snames.h,
35727 sem_prag.adb: Implement pragma Profile.
35728
35729 * stylesw.adb: Implement -gnatyN switch to turn off all style check
35730 options.
35731
35732 * usage.adb: Add line for -gnatyN switch
35733
35734 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
35735
35736 2004-02-09 Albert Lee <lee@gnat.com>
35737
35738 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
35739
35740 2004-02-09 Ed Schonberg <schonberg@gnat.com>
35741
35742 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
35743 slices.
35744
35745 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
35746 is nested in an instance that is not frozen yet, to avoid
35747 order-of-elaboration problems in gigi.
35748
35749 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
35750 body the attribute is legal.
35751
35752 2004-02-09 Robert Dewar <dewar@gnat.com>
35753
35754 * s-rident.ads: Minor comment correction
35755
35756 * targparm.adb: Remove dependence on uintp completely. There was
35757 always a bug in Make in that it called Targparm before initializing
35758 the Uint package. The old code appeared to get away with this, but
35759 the new code did not! This caused an assertion error in gnatmake.
35760
35761 * targparm.ads: Fix bad comment, restriction pragmas with parameters
35762 are indeed fully supported.
35763
35764 2004-02-06 Alan Modra <amodra@bigpond.net.au>
35765
35766 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
35767
35768 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
35769
35770 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
35771 with targetm.calls.promote_prototypes.
35772
35773 2004-02-04 Robert Dewar <dewar@gnat.com>
35774
35775 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
35776 ali.ads, gprcmd.adb: Minor reformatting
35777
35778 * bindgen.adb: Output restrictions string for new style restrictions
35779 handling
35780
35781 * impunit.adb: Add s-rident.ads (System.Rident) and
35782 s-restri (System.Restrictions)
35783
35784 * lib-writ.adb: Fix bug in writing restrictions string (last few
35785 entries wrong)
35786
35787 * s-restri.ads, s-restri.adb: Change name Restrictions to
35788 Run_Time_Restrictions to avoid conflict with package name.
35789 Add circuit to read and acquire run time restrictions.
35790
35791 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
35792
35793 * restrict.ads, restrict.adb: Use the new restriction
35794 No_Task_Attributes_Package instead of the old No_Task_Attributes.
35795
35796 * sem_prag.adb: No_Task_Attributes is a synonym of
35797 No_Task_Attributes_Package.
35798
35799 * snames.ads, snames.adb: New entry for proper handling of
35800 No_Task_Attributes.
35801
35802 * s-rident.ads: Adding restriction No_Task_Attributes_Package
35803 (AI-00249) that supersedes the GNAT specific restriction
35804 No_Task_Attributes.
35805
35806 2004-02-04 Ed Schonberg <schonberg@gnat.com>
35807
35808 * sem_prag.adb:
35809 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
35810 body, an identifier may be wrapped in an unchecked conversion.
35811
35812 2004-02-04 Vincent Celier <celier@gnat.com>
35813
35814 * lib-writ.ads: Comment update for the W lines
35815
35816 * bld.adb: (Expression): An empty string list is static
35817
35818 * fname-uf.adb: Minor comment update
35819
35820 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
35821
35822 * gnatbind.adb: Initialize Cumulative_Restrictions with the
35823 restrictions on the target.
35824
35825 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
35826
35827 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
35828 gen_rtx.
35829
35830 2004-02-02 Arnaud Charlet <charlet@gnat.com>
35831
35832 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
35833
35834 2004-02-02 Vincent Celier <celier@gnat.com>
35835
35836 * gprcmd.adb (Check_Args): If condition is false, print the invoked
35837 comment before the usage.
35838 Gprcmd: Fail when command is not recognized.
35839 (Usage): Document command "prefix"
35840
35841 * g-md5.adb (Digest): Process last block.
35842 (Update): Do not process last block. Store remaining characters and
35843 length in Context.
35844
35845 * g-md5.ads (Update): Document that several call to update are
35846 equivalent to one call with the concatenated string.
35847 (Context): Add fields to allow new Update behaviour.
35848
35849 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
35850 defaulted to False.
35851 When May_Fail is True and no existing file can be found, return No_File.
35852
35853 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
35854 functions.
35855
35856 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
35857 spec file name instead on the W line.
35858
35859 2004-02-02 Robert Dewar <dewar@gnat.com>
35860
35861 * ali.adb: Read and acquire info from new format restrictions lines
35862
35863 * bcheck.adb: Add circuits for checking restrictions with parameters
35864
35865 * bindgen.adb: Output dummy restrictions data
35866 To be changed later
35867
35868 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
35869 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
35870 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
35871 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
35872 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
35873
35874 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
35875 the warning message on access to possibly uninitialized variable S)
35876 Minor changes for new restrictions handling.
35877
35878 * gnatbind.adb: Minor reformatting
35879 Minor changes for new restrictions handling
35880 Move circuit for -r processing here from bcheck (cleaner)
35881
35882 * gnatcmd.adb, gnatlink.adb: Minor reformatting
35883
35884 * lib-writ.adb: Output new format restrictions lines
35885
35886 * lib-writ.ads: Document new R format lines for new restrictions
35887 handling.
35888
35889 * s-restri.ads/adb: New files
35890
35891 * Makefile.rtl: Add entry for s-restri.ads/adb
35892
35893 * par-ch3.adb: Fix bad error messages starting with upper case letter
35894 Minor reformatting
35895
35896 * restrict.adb: Major rewrite throughout for new restrictions handling
35897 Major point is to handle restrictions with parameters
35898
35899 * restrict.ads: Major changes in interface to handle restrictions with
35900 parameters. Also generally simplifies setting of restrictions.
35901
35902 * snames.ads/adb: New entry for proper handling of No_Requeue
35903
35904 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
35905 restriction counting.
35906 Other minor changes for new restrictions handling
35907
35908 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
35909 Restriction_Warnings now allows full parameter notation
35910 Major rewrite of Restrictions for new restrictions handling
35911
35912 2004-02-02 Javier Miranda <miranda@gnat.com>
35913
35914 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
35915 syntax rule for object renaming declarations.
35916 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
35917 component definitions.
35918
35919 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
35920 components.
35921 (Array_Type_Declaration): Give support to access components. In addition
35922 it was also modified to reflect the name of the object in anonymous
35923 array types. The old code did not take into account that it is possible
35924 to have an unconstrained anonymous array with an initial value.
35925 (Check_Or_Process_Discriminants): Allow access discriminant in
35926 non-limited types.
35927 (Process_Discriminants): Allow access discriminant in non-limited types
35928 Initialize the new Access_Definition field in N_Object_Renaming_Decl
35929 node. Change Ada0Y to Ada 0Y in comments
35930
35931 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
35932 equality operators.
35933 Change Ada0Y to Ada 0Y in comments
35934
35935 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
35936 renamings Change Ada0Y to Ada 0Y in comments
35937
35938 * sem_type.adb (Find_Unique_Type): Give support to the equality
35939 operators for universal access types
35940 Change Ada0Y to Ada 0Y in comments
35941
35942 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35943
35944 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35945 field.
35946 (N_Object_Renaming_Declaration): Addition of Access_Definition field
35947 Change Ada0Y to Ada 0Y in comments
35948
35949 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35950 component definition and object renaming nodes
35951 Change Ada0Y to Ada 0Y in comments
35952
35953 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
35954
35955 * restrict.adb: Use the new restriction identifier
35956 No_Requeue_Statements instead of the old No_Requeue for defining the
35957 restricted profile.
35958
35959 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35960 No_Requeue_Statements.
35961
35962 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35963 that supersedes the GNAT specific restriction No_Requeue. The later is
35964 kept for backward compatibility.
35965
35966 2004-02-02 Ed Schonberg <schonberg@gnat.com>
35967
35968 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35969 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35970 pragma and fix incorrect ones.
35971
35972 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35973 warning if the pragma is redundant.
35974
35975 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
35976
35977 * 5staprop.adb: Add missing 'constant' keywords.
35978
35979 * Makefile.in: use consistent value for SYMLIB on
35980 platforms where libaddr2line is supported.
35981
35982 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35983
35984 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35985 annotating types.
35986
35987 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
35988
35989 * init.c (__gnat_install_handler): Setup an alternate stack for signal
35990 handlers in the environment thread. This allows proper propagation of
35991 an exception on stack overflows in this thread even when the builtin
35992 ABI stack-checking scheme is used without support for a stack reserve
35993 region.
35994
35995 * utils.c (create_field_decl): Augment the head comment about bitfield
35996 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35997 here, because the former is not accurate enough at this point.
35998 Let finish_record_type decide instead.
35999 Don't make a bitfield if the field is to be addressable.
36000 Always set a size for the field if the record is packed, to ensure the
36001 checks for bitfield creation are triggered.
36002 (finish_record_type): During last pass over the fields, clear
36003 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36004 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36005 from DECL_BIT_FIELD.
36006
36007 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36008
36009 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36010 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36011 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36012
36013 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36014
36015 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36016
36017 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36018 (ZCX_By_Default): Likewise.
36019 (Front_End_ZCX_Support): Likewise.
36020
36021 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36022 (Initialize_Lock): Mark Level unreferenced.
36023 (Sleep): Mark Reason unreferenced.
36024 (Timed_Sleep): Likewise.
36025 (Wakeup): Likewise.
36026 (Exit_Task): Use Result.
36027 (Check_No_Locks): Mark Self_ID unreferenced.
36028
36029 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36030 (Bound_Thread_Attributes): Make Sproc constant.
36031 (New_Bound_Thread_Attributes): Likewise.
36032
36033 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36034
36035 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36036 one-dimensional array an slice assignments, when component type is
36037 controlled.
36038
36039 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36040 component type is controlled, and control_actions are in effect, use
36041 TSS procedure rather than generating inline code.
36042
36043 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36044 arrays with controlled components.
36045
36046 2004-01-26 Vincent Celier <celier@gnat.com>
36047
36048 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36049 command line for the non VMS case.
36050
36051 * gnatlink.adb (Process_Binder_File): When building object file, if
36052 GNU linker is used, put all object paths between quotes, to prevent ld
36053 error when there are unusual characters (such as '!') in the paths.
36054
36055 * Makefile.generic: When there are sources in Ada and the main is in
36056 C/C++, invoke gnatmake with -B, instead of -z.
36057
36058 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36059 from VMS_Conversion.
36060 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36061 specification of argument file on the command line.
36062
36063 2004-01-26 Bernard Banner <banner@gnat.com>
36064
36065 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36066
36067 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36068
36069 * snames.adb: Update copyright notice.
36070 Add info on slice assignment for controlled arrays.
36071
36072 2004-01-23 Robert Dewar <dewar@gnat.com>
36073
36074 * exp_aggr.adb: Minor reformatting
36075
36076 * exp_ch9.adb: Minor code clean up
36077 Minor reformatting
36078 Fix bad character in comment
36079
36080 PR ada/13471
36081 * targparm.adb (Get_Target_Parameters): Give clean abort error on
36082 unexpected end of file, along with more detailed message.
36083
36084 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36085
36086 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36087 PAT.
36088
36089 * decl.c (copy_alias_set): New function.
36090 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36091
36092 2004-01-23 Doug Rupp <rupp@gnat.com>
36093
36094 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36095 lib$${file} in case subsequent character is not a separator.
36096
36097 2004-01-23 Vincent Celier <celier@gnat.com>
36098
36099 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36100 when the GCC version is at least 3.
36101
36102 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36103 Remove all "Opt.", to prepare for opt split
36104
36105 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36106 Extends_All. Set to True when the project parsed is an extending all
36107 project. Fails for importing an extending all project only when the
36108 imported project is an extending all project.
36109 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36110 depending on the value of Extends_All returned.
36111
36112 * prj-proc.adb (Process): Check that no project shares its object
36113 directory with a project that extends it, directly or indirectly,
36114 including a virtual project.
36115 Check that no project extended by another project shares its object
36116 directory with another also extended project.
36117
36118 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36119 Kind = N_With_Clause
36120
36121 * prj-tree.ads: Minor reformatting
36122 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36123
36124 2004-01-23 Ed Schonberg <schonberg@gnat.com>
36125
36126 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36127 applies to a type with an incomplete view, use full view in Name of
36128 clause, for consistency with uses of Get_Attribute_Definition_Clause.
36129
36130 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
36131
36132 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36133 SCHED_RR, since other values are not supported by this policy.
36134 (Initialize): Move initialization of mutex attribute to package
36135 elaboration, to prevent early access to this variable.
36136
36137 * Makefile.in: Remove mention of Makefile.adalib, unused.
36138
36139 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36140 1ssecsta.ads: Removed, unused.
36141
36142 2004-01-21 Javier Miranda <miranda@gnat.com>
36143
36144 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36145 entity if already built in the current scope.
36146
36147 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36148 reminder in internal scopes. Required for nested limited aggregates.
36149
36150 2004-01-21 Doug Rupp <rupp@gnat.com>
36151
36152 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36153 VMS. Replace all occurences of libgnat- and libgnarl- with
36154 libgnat$(hyphen) and libgnarl$(hyphen).
36155 Fixed shared library build problem on VMS.
36156
36157 2004-01-21 Robert Dewar <dewar@gnat.com>
36158
36159 * mlib-prj.adb: Minor reformatting
36160
36161 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
36162
36163 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36164 'constant' keywords for declaration of pointers that are not modified.
36165
36166 * exp_pakd.adb: Fix English in comment.
36167
36168 2004-01-21 Ed Schonberg <schonberg@gnat.com>
36169
36170 PR ada/10889
36171 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36172 copy all attributes of the parent, including the foreign language
36173 convention.
36174
36175 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
36176
36177 PR ada/10565
36178 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36179 for 'delay until' statement.
36180
36181 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
36182
36183 * Make-lang.in: Replace $(docdir) with doc.
36184 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36185 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36186 to use consistent MAKEINFO rule.
36187 (ada.man, ada.srcman): Dummy entry.
36188 (ADA_INFOFILES): Define.
36189 (ada.info, ada.srcinfo): New rules.
36190
36191 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
36192
36193 * utils.c: Update copyright notice, missed in previous change.
36194
36195 2004-01-19 Vincent Celier <celier@gnat.com>
36196
36197 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36198 args if Bind is True. Set First_ALI, if not already done.
36199 (Build_Library): For Stand Alone Libraries, extract from one ALI file
36200 an eventual --RTS switch, for gnatbind, and all backend switches +
36201 --RTS, for linking.
36202
36203 2004-01-19 Robert Dewar <dewar@gnat.com>
36204
36205 * sem_attr.adb, memtrack.adb: Minor reformatting
36206
36207 2004-01-19 Ed Schonberg <schonberg@gnat.com>
36208
36209 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36210 that rename enumeration literals. This is properly done in sem_eval.
36211
36212 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36213 to functions that rename enumeration literals.
36214
36215 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36216 functions that rename enumeration literals.
36217
36218 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
36219
36220 * Make-lang.in (utils.o): Depend on target.h.
36221 * utils.c: Include target.h.
36222 (process_attributes): Use targetm.have_named_sections instead
36223 of ASM_OUTPUT_SECTION_NAME.
36224
36225 2004-01-16 Andreas Jaeger <aj@suse.de>
36226
36227 * Makefile.in: Add $(DESTDIR).
36228
36229 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
36230
36231 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36232 also when not defining if a Size clause applies. That information is
36233 not to be ignored.
36234
36235 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
36236
36237 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36238 symbolic links for the shared gnat run time when needed.
36239
36240 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
36241
36242 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36243 for writing, and terminate with an error message if not.
36244
36245 2004-01-15 Ed Schonberg <schonberg@gnat.com>
36246
36247 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36248 warning on an access to subprogram in an instance, when the target
36249 type is declared in the same generic unit.
36250 (Eval_Attribute): If 'access is known to fail accessibility check,
36251 rewrite as a raise statement.
36252
36253 2004-01-15 GNAT Script <nobody@gnat.com>
36254
36255 * Make-lang.in: Makefile automatically updated
36256
36257 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
36258
36259 * Make-lang.in (ada.srcextra): Dummy entry.
36260
36261 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
36262
36263 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36264
36265 2004-01-13 Ed Schonberg <schonberg@gnat.com>
36266
36267 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36268 components that are initialized with aggregates.
36269
36270 2004-01-13 Vincent Celier <celier@gnat.com>
36271
36272 * gnatlink.adb (Process_Binder_File): To find directory of shared
36273 libgcc, if "gcc-lib" is not a subdirectory, look for the last
36274 subdirectory "lib" in the path of the shared libgnat or libgnarl.
36275
36276 * make.adb (Gnatmake): If GCC version is at least 3, link with
36277 -shared-libgcc, when there is at least one shared library project.
36278
36279 * opt.ads (GCC_Version): New integer constant.
36280
36281 * adaint.c (get_gcc_version): New function.
36282
36283 2004-01-13 Robert Dewar <dewar@gnat.com>
36284
36285 * sem_dist.adb, sem_res.adb, sem_util.adb,
36286 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36287 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36288
36289 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
36290
36291 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
36292 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
36293 declarations.
36294
36295 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
36296
36297 * misc.c: Remove trailing spaces.
36298 Update copyright notice missed in previous change.
36299
36300 PR ada/13572
36301 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
36302 prefix/share/make
36303
36304 * Makefile.generic: Update copyright.
36305 Add license notice.
36306
36307 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
36308 of prefix/share/make.
36309
36310 * Makefile.prolog: Update copyright.
36311 Add license notice.
36312
36313 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
36314
36315 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
36316 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
36317 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
36318 instead of String.
36319
36320 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
36321 signature.
36322
36323 2004-01-12 Javier Miranda <miranda@gnat.com>
36324
36325 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
36326 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
36327 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
36328 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
36329 Component_Definition node.
36330
36331 2004-01-12 Ed Falis <falis@gnat.com>
36332
36333 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
36334
36335 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
36336
36337 * link.c: Change default libgnat kind to STATIC for FreeBSD.
36338
36339 2004-01-12 Bernard Banner <banner@gnat.com>
36340
36341 * Makefile.in: map 86numaux to a-numaux for x86_64
36342
36343 2004-01-12 Ed Schonberg <schonberg@gnat.com>
36344
36345 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
36346 generated to rename a generic actual, go to the actual itself, the
36347 subtype is not a user-visible entity.
36348
36349 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
36350 part is a private subtype, reset the visibility of its full view, if
36351 any, to be consistent.
36352
36353 PR ada/13417
36354 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
36355 to use a generic package G as a formal package for another generic
36356 declared within G.
36357
36358 2004-01-12 Robert Dewar <dewar@gnat.com>
36359
36360 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
36361
36362 * usage.adb: Remove mention of obsolete -gnatwb switch
36363 Noticed during code reading
36364
36365 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
36366
36367 * 1ssecsta.adb: Minor changes for -gnatwa warnings
36368
36369 2004-01-12 GNAT Script <nobody@gnat.com>
36370
36371 * Make-lang.in: Makefile automatically updated
36372
36373 2004-01-09 Mark Mitchell <mark@codesourcery.com>
36374
36375 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
36376
36377 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36378
36379 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
36380
36381 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
36382
36383 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
36384 Update comment and copyright date.
36385 * stamp-xgnatug: Delete.
36386
36387 2004-01-05 Robert Dewar <dewar@gnat.com>
36388
36389 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
36390 be modified by the binder generated main program if the -D switch is
36391 used.
36392
36393 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
36394 imported functions (since now we expect this to be done for imported
36395 functions)
36396
36397 * 5vtaprop.adb: Add several ??? for sections requiring more comments
36398 Minor reformatting throughout
36399
36400 * 5zinit.adb: Minor reformatting
36401 Add 2004 to copyright date
36402 Minor changes to avoid -gnatwa warnings
36403 Correct some instances of using OR instead of OR ELSE (noted while
36404 doing reformatting)
36405
36406 * sprint.adb: Minor updates to avoid -gnatwa warnings
36407
36408 * s-secsta.ads, s-secsta.adb:
36409 (SS_Get_Max): New function to obtain high water mark for ss stack
36410 Default_Secondary_Stack is not a constant since it may be modified by
36411 the binder generated main program if the -D switch is used.
36412
36413 * switch-b.adb: New -Dnnn switch for binder
36414
36415 * switch-c.adb:
36416 Make -gnatg imply all warnings currently in -gnatwa
36417
36418 * vms_conv.adb: Minor reformatting
36419 Add 2004 to copyright notice
36420 Add 2004 to printed copyright notice
36421
36422 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
36423 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
36424 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
36425 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
36426 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
36427 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
36428 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
36429 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
36430 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
36431 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
36432 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
36433 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
36434 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
36435 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
36436 checks.adb, clean.adb, cstand.adb, einfo.ads,
36437 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
36438 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
36439 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
36440 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
36441 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
36442 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
36443 Minor reformatting and code clean ups.
36444 Minor changes to prevent -gnatwa warnings
36445
36446 * ali.adb: Minor reformatting and cleanup of code
36447 Acquire new SS indication of secondary stack use from ali files
36448
36449 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
36450 (since now we expect this to be done for imported functions)
36451
36452 * bindgen.adb: Generate call to modify default secondary stack size if
36453 -Dnnn switch given
36454
36455 * bindusg.adb: Add line for new -D switch
36456
36457 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
36458 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
36459 Add circuitry for both records and arrays to avoid gigi
36460 processing if the type involved has non-bit-aligned components
36461
36462 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
36463 N_String_Literal node always references an E_String_Literal_Subtype
36464 entity. This may not be true in the future.
36465 (Possible_Bit_Aligned_Component): Move processing of
36466 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
36467
36468 * exp_ch6.adb (Expand_Thread_Body): Pick up
36469 Default_Secondary_Stack_Size as variable so that we get value modified
36470 by possible -Dnnn binder parameter.
36471
36472 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
36473 (Type_May_Have_Bit_Aligned_Components): New function.
36474
36475 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
36476 (Type_May_Have_Bit_Aligned_Components): New function.
36477
36478 * fe.h: (Set_Identifier_Casing): Fix prototype.
36479 Add declaration for Sem_Elim.Eliminate_Error_Msg.
36480 Minor reformatting.
36481
36482 * freeze.adb (Freeze_Entity): Add RM reference to error message about
36483 importing constant atomic/volatile objects.
36484 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
36485 unless explicit Pure_Function pragma given, to avoid insidious bug of
36486 call to non-pure imported function getting eliminated.
36487
36488 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
36489 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
36490 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
36491 Add 2004 to printed copyright notice
36492
36493 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
36494 stack used.
36495
36496 * Makefile.rtl: Add entry for g-sestin.o
36497 g-sestin.ads: New file.
36498
36499 * mdll.adb: Minor changes to avoid -gnatwa warnings
36500
36501 * mlib-tgt.adb: Minor reformatting
36502
36503 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
36504 New switch Sec_Stack_Used (GNAT, GNATBIND)
36505 Make Default_Secondary_Stack_Size a variable instead of a constant,
36506 so that it can be modified by the new -Dnnn bind switch.
36507
36508 * rtsfind.adb (Load_Fail): Give full error message in configurable
36509 run-time mode if all_errors mode is set. This was not done in the case
36510 of a file not found, which was an oversight.
36511 Note if secondary stack unit is used by compiler.
36512
36513 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
36514 ineffective elaborate all pragmas on non-visible packages (this
36515 happened when a renamed subprogram was called). Now the elaborate all
36516 always goes on the package containing the renaming rather than the one
36517 containing the renamed subprogram.
36518
36519 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
36520 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
36521
36522 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
36523 has an Etype that references an E_String_Literal.
36524 (Eval_String_Literal): Avoid assumption that N_String_Literal node
36525 always references an E_String_Literal_Subtype entity. This may not
36526 be true in the future.
36527
36528 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
36529 pragma location.
36530
36531 * sem_res.adb (Resolve): Specialize msg for function name used in proc
36532 call.
36533
36534 2004-01-05 Ed Falis <falis@gnat.com>
36535
36536 * g-debuti.adb: Replaced direct boolean operator with short-circuit
36537 form.
36538
36539 2004-01-05 Vincent Celier <celier@gnat.com>
36540
36541 * bld.adb: Minor comment updates
36542 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
36543 of Item_Name).
36544
36545 * make.adb (Gnatmake): Special process for files to compile/check when
36546 -B is specified. Fail when there are only foreign mains in attribute
36547 Main of the project file and -B is not specified. Do not skip bind/link
36548 steps when -B is specified.
36549
36550 * makeusg.adb: Document new switch -B
36551
36552 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
36553
36554 * switch-m.adb: (Scan_Make_Switches): Process -B switch
36555
36556 * vms_data.ads: Add new GNAT PRETTY qualifier
36557 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
36558
36559 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36560
36561 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
36562 case.
36563
36564 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
36565 Set_Identifier_Casing.
36566
36567 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
36568 has size that overflows.
36569
36570 2004-01-05 Gary Dismukes <dismukes@gnat.com>
36571
36572 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
36573 -gnatwa warning on static condition.
36574
36575 2004-01-05 Doug Rupp <rupp@gnat.com>
36576
36577 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
36578
36579 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
36580
36581 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
36582 all attributes, including read-only attribute.
36583
36584 2004-01-05 Pascal Obry <obry@gnat.com>
36585
36586 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
36587 library naming scheme.
36588
36589 * mlib-prj.adb (Build_Library): Generate different names for the static
36590 or dynamic version of the GNAT runtime. This is needed to support the
36591 new shared library naming scheme.
36592 (Process_Binder_File): Add detection of shared library in binder file
36593 based on the new naming scheme.
36594
36595 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
36596 scheme for the shared runtime libraries.
36597
36598 * Makefile.in:
36599 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
36600 scheme.
36601 (install-gnatlib): Do not create symlinks for shared libraries.
36602 (gnatlib-shared-default): Idem.
36603 (gnatlib-shared-dual-win32): New target. Not used for now as the
36604 auto-import feature does not support arrays/records.
36605 (gnatlib-shared-win32): Do not create copy for the shared libraries.
36606 (gnatlib-shared-vms): Fix shared runtime libraries names.
36607
36608 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
36609 dependent runtime shared library name.
36610
36611 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
36612
36613 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
36614 than the object.
36615
36616 2004-01-05 Ed Schonberg <schonberg@gnat.com>
36617
36618 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
36619 protected objects when allocator has a subtype indication, not a
36620 qualified expression. Note that qualified expressions may have to be
36621 checked when limited aggregates are implemented.
36622
36623 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
36624 pure, emit warning.
36625 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
36626 subprogram is imported, remove warning.
36627
36628 2004-01-05 Geert Bosch <bosch@gnat.com>
36629
36630 * s-poosiz.adb: Update copyright notice.
36631 (Allocate): Use Task_Lock to protect against concurrent access.
36632 (Deallocate): Likewise.
36633
36634 2004-01-05 Joel Brobecker <brobecker@gnat.com>
36635
36636 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
36637 comment.
36638
36639 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
36640
36641 * gnat_ug.texi: Force a CVS commit by updating copyright.
36642 * gnat_ug_vxw.texi: Regenerate.
36643 * gnat_ug_wnt.texi: Regenerate.
36644 * gnat_ug_vms.texi: Regenerate.
36645 * gnat_ug_unx.texi: Regenerate.
36646
36647 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
36648
36649 * trans.c: Remove uses of "register" specifier in
36650 declarations of local variables.
36651
36652 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
36653
36654 * stamp-xgnatug: New stamp file.
36655 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
36656 (ada/doctools/xgnatug): Add $(build_exeext).
36657 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
36658 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
36659
36660 2003-12-17 Ed Falis <falis@gnat.com>
36661
36662 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
36663 eliminate warning.
36664
36665 * a-exextr.adb: Add context clause for
36666 Ada.Exceptions.Last_Chance_Handler.
36667
36668 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
36669
36670 * cstand.adb (Create_Standard): Change the way how the declaration of
36671 the Duration type is created (making it the same way as it is for all
36672 the other standard types).
36673
36674 2003-12-17 Robert Dewar <dewar@gnat.com>
36675
36676 * s-crtl.ads: Fix header format
36677 Change Pure to Preelaborate
36678
36679 2003-12-17 Ed Schonberg <schonberg@gnat.com>
36680
36681 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
36682 the expression type only if it is declared in the current unit.
36683
36684 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
36685 are universal and already analyzed, as can occur in constrained
36686 subcomponents that depend on discriminants, when one constraint is a
36687 subtype mark.
36688
36689 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
36690 type Any_Fixed is legal as the argument of a conversion, if only one
36691 fixed-point type is in context.
36692
36693 2003-12-17 GNAT Script <nobody@gnat.com>
36694
36695 * Make-lang.in: Makefile automatically updated
36696
36697 2003-12-15 Robert Dewar <dewar@gnat.com>
36698
36699 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
36700 sec stack size.
36701
36702 2003-12-15 Vincent Celier <celier@gnat.com>
36703
36704 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
36705 (Gnatchop): Do not set failure status when reporting the number of
36706 warnings.
36707
36708 2003-12-15 Doug Rupp <rupp@gnat.com>
36709
36710 * s-ctrl.ads: New file.
36711
36712 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
36713
36714 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
36715 (GNATBIND_OBJS): Add ada/s-crtl.o.
36716
36717 * Makefile.in [VMS]: Clean up ifeq rules.
36718
36719 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
36720 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
36721 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
36722 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
36723 s-tasdeb.adb: Update copyright.
36724 Import System.CRTL.
36725 Make minor modifications to use System.CRTL declared functions instead
36726 of importing locally.
36727
36728 2003-12-15 GNAT Script <nobody@gnat.com>
36729
36730 * Make-lang.in: Makefile automatically updated
36731
36732 2003-12-11 Ed Falis <falis@gnat.com>
36733
36734 * 5zinit.adb: Clean up.
36735
36736 * 5zintman.adb (Notify_Exception): replaced case statement with a call
36737 to __gnat_map_signal, imported from init.c to support
36738 signal -> exception mappings that depend on the vxWorks version.
36739
36740 * init.c:
36741 Created and exported __gnat_map_signal to support signal -> exception
36742 mapping that is dependent on the VxWorks version.
36743 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
36744
36745 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
36746
36747 * 5wosinte.ads: Link with -mthreads switch.
36748
36749 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
36750
36751 * init.c (__gnat_install_handler [NetBSD]): Set
36752 __gnat_handler_installed, as done on all other platforms.
36753 Remove duplicated code.
36754
36755 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
36756
36757 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
36758
36759 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
36760
36761 * sinfo.ads: Fix inconsistent example code in comment.
36762
36763 2003-12-11 Robert Dewar <dewar@gnat.com>
36764
36765 * a-tiinau.adb: Add a couple of comments
36766
36767 * sem_ch3.adb: Minor reformatting
36768
36769 * sem_prag.adb:
36770 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
36771 Minor reformatting throughout
36772
36773 2003-12-11 Ed Schonberg <schonberg@gnat.com>
36774
36775 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
36776 bounds of a loop, create a separate block in order to generate proper
36777 cleanup actions to prevent memory leaks.
36778
36779 * sem_res.adb (Resolve_Call): After a call to
36780 Establish_Transient_Scope, the call may be rewritten and relocated, in
36781 which case no further processing is needed.
36782
36783 * sem_util.adb: (Wrong_Type): Refine previous fix.
36784 Fixes ACATS regressions.
36785
36786 PR ada/13353
36787 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
36788 be inlined.
36789
36790 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
36791
36792 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
36793 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
36794 obsolete files.
36795
36796 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
36797 (rts-zfp): Ditto.
36798
36799 2003-12-08 Robert Dewar <dewar@gnat.com>
36800
36801 * 7sintman.adb: Minor reformatting
36802
36803 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
36804 standard linker options to get standard libraries linked. We now plan
36805 to provide dummy versions of these libraries to match the appropriate
36806 configurable run-time (e.g. if a library is not needed at all, provide
36807 a dummy empty library).
36808
36809 * targparm.ads: Configurable_Run_Time mode no longer affects linker
36810 options (-L parameters and standard libraries). What we plan to do is
36811 to provide dummy libraries where the libraries are not required.
36812
36813 * gnatbind.adb: Minor comment improvement
36814
36815 2003-12-08 Javier Miranda <miranda@gnat.com>
36816
36817 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
36818 aggregate in the parent. Otherwise constants with limited aggregates
36819 are not supported. Add new formal to pass the component type (Ctype).
36820 It is required to call the corresponding IP subprogram in case of
36821 default initialized components.
36822 (Gen_Assign): In case of default-initialized component, generate a
36823 call to the IP subprogram associated with the component.
36824 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
36825 of aggregate with default initialized components.
36826 (Has_Default_Init_Comps): Improve implementation to recursively check
36827 all the present expressions.
36828
36829 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
36830 to indicate that the initialization call corresponds to a
36831 default-initialized component of an aggregate.
36832 In case of default initialized aggregate with tasks this parameter is
36833 used to generate a null string (this is just a workaround that must be
36834 improved later). In case of discriminants, this parameter is used to
36835 generate a selected component node that gives access to the discriminant
36836 value.
36837
36838 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
36839 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
36840 allocated aggregates with default-initialized components.
36841
36842 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
36843 the box notation is used in positional aggregates.
36844
36845 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
36846
36847 * lib.ads: Fix typo in comment
36848
36849 2003-12-08 Vincent Celier <celier@gnat.com>
36850
36851 * prj.adb (Project_Empty): New component Unkept_Comments
36852 (Scan): Remove procedure; moved to Prj.Err.
36853
36854 * prj.ads (Project_Data): New Boolean component Unkept_Comments
36855 (Scan): Remove procedure; moved to Prj.Err.
36856
36857 * prj-dect.adb: Manage comments for the different declarations.
36858
36859 * prj-part.adb (With_Record): New component Node
36860 (Parse): New Boolean parameter Store_Comments, defaulted to False.
36861 Set the scanner to return ends of line and comments as tokens, if
36862 Store_Comments is True.
36863 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
36864 comments are associated with these nodes. Store the node IDs in the
36865 With_Records.
36866 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
36867 With_Records.
36868 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
36869 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
36870 current project. Call Tree.Restore afterwards. Set the various nodes
36871 for comment storage (Next_End, End_Of_Line, Previous_Line,
36872 Previous_End).
36873
36874 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
36875 defaulted to False.
36876
36877 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
36878 to False. When Truncated is True, truncate the string, never go to the
36879 next line.
36880 (Write_End_Of_Line_Comment): New procedure
36881 (Print): Process comments for nodes N_With_Clause,
36882 N_Package_Declaration, N_String_Type_Declaration,
36883 N_Attribute_Declaration, N_Typed_Variable_Declaration,
36884 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
36885 Process nodes N_Comment.
36886
36887 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
36888 without comments and there are some comments, set the flag
36889 Unkept_Comments to True.
36890 (Scan): If there are comments, set the flag Unkept_Comments to True and
36891 clear the comments.
36892 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
36893 (Next_End_Nodes: New table
36894 (Comment_Zones_Of): New function
36895 (Scan): New procedure; moved from Prj. Accumulate comments in the
36896 Comments table and set end of line comments, comments after, after end
36897 and before end.
36898 (Add_Comments): New procedure
36899 (Save, Restore, Seset_State): New procedures
36900 (There_Are_Unkept_Comments): New function
36901 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
36902 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
36903 procedures.
36904 (First_Comment_After, First_Comment_After_End): New functions
36905 (First_Comment_Before, First_Comment_Before_End): New functions
36906 (Next_Comment): New function
36907 (End_Of_Line_Comment, Follows_Empty_Line,
36908 Is_Followed_By_Empty_Line): New functions
36909 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
36910 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
36911 (Set_Next_Comment): New procedure
36912 (Default_Project_Node): Associate comment before if the node can store
36913 comments.
36914
36915 * scans.ads (Token_Type): New enumeration value Tok_Comment
36916 (Comment_Id): New global variable
36917
36918 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
36919 defaulted to False.
36920 (Scan): Store position of start of comment. If comments are tokens, set
36921 Comment_Id and set Token to Tok_Comment when scanning a comment.
36922 (Set_Comment_As_Token): New procedure
36923
36924 * sinput-p.adb: Update Copyright notice
36925 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
36926 that no longer exists.
36927
36928 2003-12-08 Javier Miranda <miranda@gnat.com>
36929
36930 * sem_aggr.adb: Add dependence on Exp_Tss package
36931 Correct typo in comment
36932 (Resolve_Aggregate): In case of array aggregates set the estimated
36933 type of the aggregate before calling resolve. This is needed to know
36934 the name of the corresponding IP in case of limited array aggregates.
36935 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
36936 in case of default initialized array components.
36937
36938 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
36939 types. Required to give support to limited aggregates in generic
36940 formals.
36941
36942 2003-12-08 Ed Schonberg <schonberg@gnat.com>
36943
36944 * sem_ch3.adb (Check_Initialization): For legality purposes, an
36945 inlined body functions like an instantiation.
36946 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36947 until bounds are analyzed, to diagnose premature use of type.
36948
36949 * sem_util.adb (Wrong_Type): Improve error message when the type of
36950 the expression is used prematurely.
36951
36952 2003-12-08 GNAT Script <nobody@gnat.com>
36953
36954 * Make-lang.in: Makefile automatically updated
36955
36956 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
36957
36958 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36959 they are automatically generated by Make-lang.in and cause nothing but
36960 maintenance troubles.
36961
36962 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
36963
36964 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36965 version of this unit).
36966
36967 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
36968
36969 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36970 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36971 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36972 the body of System.Interrupt_Management common to several targets.
36973 Update copyright notice when appropriate.
36974
36975 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36976 constant.
36977
36978 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36979 to ensure that the kernel fills in the interrupted context structure
36980 before calling a signal handler, which is necessary to be able to
36981 unwind past it. Update the copyright notice.
36982
36983 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
36984
36985 * a-elchha.ads: New file.
36986
36987 * a-elchha.adb: New default last chance handler. Contents taken from
36988 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36989
36990 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36991 is moved to a-elchha.adb to provide a target-independent default last
36992 chance handler.
36993
36994 * Makefile.rtl: Add a-elchha.o
36995
36996 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36997
36998 2003-12-05 Ed Schonberg <schonberg@gnat.com>
36999
37000 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37001 declared in an instance, do not inline the call if the instance is not
37002 frozen yet, to prevent order of elaboration problems.
37003
37004 * sem_prag.adb: Add comments for previous fix.
37005
37006 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37007
37008 * g-table.adb: Use the right variable in Set_Item.
37009 Update copyright notice.
37010
37011 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37012
37013 * Makefile.in: Remove unused rules.
37014
37015 2003-12-05 Vincent Celier <celier@gnat.com>
37016
37017 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37018 -nostdlib. Not needed here after all.
37019
37020 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37021
37022 PR ada/11724
37023 * adaint.h, adaint.c, g-os_lib.ads:
37024 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37025 on some platforms (including FreeBSD), it is a 64 bit value.
37026 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37027
37028 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37029
37030 * gnatvsn.ads (Library_Version): Now contain only the relevant
37031 version info.
37032 (Verbose_Library_Version): New constant.
37033
37034 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37035 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37036 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37037
37038 * gnatlbr.adb: Clean up: replace Library_Version by
37039 Verbose_Library_Version.
37040
37041 * make.adb, lib-writ.adb, exp_attr.adb:
37042 Clean up: replace Library_Version by Verbose_Library_Version.
37043
37044 * 5lintman.adb: Removed.
37045
37046 * Makefile.in:
37047 Update and simplify computation of LIBRARY_VERSION.
37048 Fix computation of GSMATCH_VERSION.
37049 5lintman.adb is no longer used: replaced by 7sintman.adb.
37050
37051 2003-12-03 Robert Dewar <dewar@gnat.com>
37052
37053 * exp_ch5.adb:
37054 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37055 name. Modified to consider small non-bit-packed arrays as troublesome
37056 and in need of component-by-component assigment expansion.
37057
37058 2003-12-03 Vincent Celier <celier@gnat.com>
37059
37060 * lang-specs.h: Process nostdlib as nostdinc
37061
37062 * back_end.adb: Update Copyright notice
37063 (Scan_Compiler_Arguments): Process -nostdlib directly.
37064
37065 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
37066
37067 * Makefile.in:
37068 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37069 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37070 included in HIE_NONE_TARGET_PAIRS.
37071
37072 2003-12-03 Ed Schonberg <schonberg@gnat.com>
37073
37074 * sem_attr.adb:
37075 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37076 is legal in an instance, because legality is cheched in the template.
37077
37078 * sem_prag.adb:
37079 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37080 appplied to an unchecked conversion of a formal parameter.
37081
37082 * sem_warn.adb:
37083 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37084 variables.
37085
37086 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
37087
37088 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37089 routines. The second one is new functionality to deal with backtracing
37090 through signal handlers.
37091 (unwind): Split into the two separate subroutines above.
37092 Update the documentation, and deal properly with sizeof (REG) different
37093 from sizeof (void*).
37094
37095 2003-12-01 Nicolas Setton <setton@act-europe.fr>
37096
37097 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37098 so that the debugger can reliably access the value of the parameter,
37099 and therefore is able to display the exception name when an exception
37100 breakpoint is reached.
37101
37102 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
37103
37104 * fmap.adb: Fix typo in warning message.
37105
37106 * g-socket.ads, g-socket.adb: Make Free a visible instance of
37107 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37108
37109 2003-12-01 Vincent Celier <celier@gnat.com>
37110
37111 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37112 ther is no Afile.
37113 (Build_Library): Get the switches only if Default_Switches is declared
37114 in package Binder.
37115
37116 2003-12-01 Ed Schonberg <schonberg@gnat.com>
37117
37118 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37119 actuals that are indexed components, reanalyze actual to ensure that
37120 packed array references are properly expanded.
37121
37122 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37123 attempted assignment to a discriminant.
37124
37125 2003-12-01 Robert Dewar <dewar@gnat.com>
37126
37127 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37128 reformatting.
37129
37130 * switch-c.adb: Minor reformatting of comments
37131
37132 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37133
37134 * Makefile.in: Clean ups.
37135
37136 2003-12-01 GNAT Script <nobody@gnat.com>
37137
37138 * Make-lang.in: Makefile automatically updated
37139
37140 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37141
37142 * 5wsystem.ads: Disable zero cost exception, not ready yet.
37143
37144 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
37145
37146 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37147 to force serialization.
37148
37149 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
37150
37151 * g-socket.ads, g-socket.adb:
37152 Clarify documentation of function Stream. Introduce a Free procedure
37153 to release the returned Stream once it becomes unused.
37154
37155 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37156
37157 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
37158
37159 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37160 since NT 4 cannot handle timeout values that are too large,
37161 e.g. DWORD'Last - 1.
37162
37163 2003-11-26 Ed Schonberg <schonberg@gnat.com>
37164
37165 * exp_ch4.adb:
37166 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37167 in procedure calls and whose expansion must be deferred.
37168
37169 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37170 is in exp_ch4.
37171
37172 * sem_ch3.adb:
37173 (Build_Derived_Array_Type): Create operator for unconstrained type
37174 if ancestor is unconstrained.
37175
37176 2003-11-26 Vincent Celier <celier@gnat.com>
37177
37178 * make.adb (Project_Object_Directory): New global variable
37179 (Change_To_Object_Directory): New procedure
37180 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37181 of Change_Dir directly. Do not change working directory to object
37182 directory of main project after each compilation.
37183 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37184 directly.
37185 Change to object directory of main project before binding step.
37186 (Initialize): Initialize Project_Object_Directory to No_Project
37187
37188 * mlib-prj.adb:
37189 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37190 binding a Stand-Alone Library.
37191
37192 * output.adb: Update Copyright notice
37193 (Write_Char): Output buffer when full
37194
37195 2003-11-26 Robert Dewar <dewar@gnat.com>
37196
37197 * sem_ch13.adb: (Check_Size): Reset size if size is too small
37198
37199 * sem_ch13.ads:
37200 (Check_Size): Fix documentation to include bit-packed array case
37201
37202 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37203
37204 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37205
37206 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37207
37208 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
37209
37210 PR ada/13142
37211 * utils.c (init_gigi_decls): Change name of built-in setjmp to
37212 __builtin_setjmp, since this is apparently needed by recent
37213 non Ada changes.
37214
37215 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37216
37217 * adadecode.c: Only include ctype.h if not IN_GCC.
37218 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37219
37220 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
37221
37222 * Makefile.in:
37223 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37224 signals and interrupts.
37225
37226 * 5zintman.ads: New File.
37227
37228 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37229 add exception signals to the set of unmasked signals.
37230
37231 * 5ztaprop.adb:
37232 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37233 between signals and interrupts.
37234 Add to Unblocked_Signal_Mask the set of signals that are in
37235 Keep_Unmasked.
37236
37237 * 7sinmaop.adb:
37238 Adding a check to see whether the Interrupt_ID we want to unmask is in
37239 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37240 reason is that the index type of the Keep_Unmasked array is not always
37241 Interrupt_ID; it may be a subtype of Interrupt_ID.
37242
37243 2003-11-24 Gary Dismukes <dismukes@gnat.com>
37244
37245 * exp_util.adb:
37246 (Remove_Side_Effects): Condition constantness of object created for a
37247 an unchecked type conversion on the constantness of the expression
37248 to ensure the correct value for 'Constrained when passing components
37249 of view-converted class-wide objects.
37250
37251 2003-11-24 Robert Dewar <dewar@gnat.com>
37252
37253 * par-load.adb (Load): Improve handling of misspelled and missing units
37254 Removes several cases of compilation abandoned messages
37255
37256 * lib.adb: (Remove_Unit): New procedure
37257
37258 * lib.ads: (Remove_Unit): New procedure
37259
37260 * lib-load.adb: Minor reformatting
37261
37262 2003-11-24 Vincent Celier <celier@gnat.com>
37263
37264 * make.adb:
37265 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37266 (Marking_Label): Label to mark processed source files. Incremented for
37267 each executable.
37268 (Gnatmake): Increase Marking_Labet for each executable
37269 (Is_Marked): Compare against marking label
37270 (Mark): Mark with marking label
37271
37272 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
37273
37274 * s-thread.ads:
37275 Move the declaration of the TSD for System.Threads to System.Soft_Links.
37276 Add some comments.
37277
37278 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37279 (rts-cert): build a single relocatable object for the run-time lib.
37280 Fix perms.
37281
37282 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
37283
37284 * Make-lang.in:
37285 Use gnatls rather than gcc to obtain the location of GNAT RTL for
37286 crosstools build.
37287
37288 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
37289
37290 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
37291 can not use it as before (that is, as a variable) when dumping it into
37292 the tree file. Add a local variable to store the result of this
37293 function and to be used as the string to be written into the tree.
37294
37295 * scn.adb (Initialize_Scanner): Add comments explaining the recent
37296 changes.
37297
37298 * sinput.adb (Source_First, Source_Last): In case of
37299 Internal_Source_File, replace returning attributes of
37300 Internal_Source_Ptr (which is wrong) with returning attributes of
37301 Internal_Source.
37302
37303 2003-11-24 Ed Schonberg <schonberg@gnat.com>
37304
37305 * sem_ch3.adb:
37306 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
37307 used for implicit concatenation operators.
37308 Code cleanup.
37309
37310 * sem_elab.adb:
37311 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
37312 task bodies that are in the scope of a Suppress pragma.
37313 (Check_A Call): Use the flag to prevent spurious elaboration checks.
37314
37315 * sinfo.ads, sinfo.adb:
37316 New flag No_Elaboration_Check on function/procedure calls, to properly
37317 suppress checks on calls in task bodies that are within a local suppress
37318 pragma.
37319
37320 * exp_ch4.adb:
37321 (Expand_Concatenate_Other): Use the proper integer type for the
37322 expression for the upper bound, to avoid universal_integer computations
37323 when possible.
37324
37325 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
37326
37327 * .cvsignore: Delete.
37328
37329 2003-11-21 Andreas Schwab <schwab@suse.de>
37330
37331 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
37332
37333 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
37334
37335 * 5wsystem.ads: Enable zero cost exception.
37336
37337 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
37338
37339 * 5ztiitho.adb: Remove an unreferenced variable.
37340
37341 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
37342
37343 * adaint.c: For FreeBSD, use mkstemp.
37344
37345 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
37346
37347 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
37348
37349 2003-11-21 Robert Dewar <dewar@gnat.com>
37350
37351 * bld.adb: Remove useless USE of gnatvsn
37352
37353 * gnatchop.adb: Minor reformatting
37354 Clean up version handling to be more consistent
37355
37356 * gnatxref.adb: Minor reformatting
37357
37358 * gprcmd.adb: Minor reformatting
37359 Fix output of copyright to be more consistent with other tools
37360
37361 2003-11-21 Vincent Celier <celier@gnat.com>
37362
37363 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
37364
37365 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
37366
37367 * atree.adb (Initialize): Add initializations for global variables
37368 used in New_Copy_Tree.
37369
37370 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
37371 Internal_Source_File as the actual).
37372 Put the set of statements creating Any_Character before the set of
37373 statements creating Any_Array to have Any_Character fully initialized
37374 when it is used in creating Any_Array.
37375
37376 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
37377 not call Scan in case if the actual is Internal_Source_File
37378 Add 2003 to copyright note.
37379
37380 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
37381 processing Internal_Source_File.
37382
37383 * types.ads: Add the constant Internal_Source_File representing the
37384 source buffer for artificial source-code-like strings created within
37385 the compiler (the definition of Source_File_Index is changed).
37386
37387 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
37388
37389 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
37390 56system.ads: New file, FreeBSD version.
37391
37392 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
37393
37394 * Make-lang.in (ada.extraclean): Delete.
37395
37396 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
37397
37398 * gnatmem.adb: Clean up verbose output.
37399
37400 * gprcmd.adb: Change copyright to FSF.
37401
37402 2003-11-19 Vincent Celier <celier@gnat.com>
37403
37404 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
37405 and Version (ignored).
37406
37407 * symbols.ads: (Policy): New type
37408 (Initialize): New parameter Reference, Symbol_Policy and
37409 Library_Version.
37410 Remove parameter Force.
37411 Minor reformatting.
37412
37413 * snames.ads, snames.adbadb: New standard names
37414 Library_Reference_Symbol_File and Library_Symbol_Policy
37415
37416 * mlib-prj.adb:
37417 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
37418 project.
37419
37420 * mlib-tgt.adb:
37421 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
37422
37423 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
37424
37425 * prj.adb: (Project_Empty): New component Symbol_Data
37426
37427 * prj.ads: (Policy, Symbol_Record): New types
37428 (Project_Data): New component Symbol_Data
37429
37430 * prj-attr.adb:
37431 New attributes Library_Symbol_File, Library_Symbol_Policy and
37432 Library_Reference_Symbol_File.
37433
37434 * prj-nmsc.adb:
37435 (Ada_Check): When project is a Stand-Alone library project, process
37436 attribute Library_Symbol_File, Library_Symbol_Policy and
37437 Library_Reference_Symbol_File.
37438
37439 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37440 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
37441 5sml-tgt.adb (Build_Dynamic_Library): New parameter
37442 Symbol_Data (ignored).
37443
37444 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
37445 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
37446 functions Option_File_Name and Version_String. Set new options of
37447 gnatsym related to symbol file, symbol policy and reference symbol
37448 file.
37449
37450 * 5vsymbol.adb:
37451 Extensive modifications to take into account the reference symbol file,
37452 the symbol policy, the library version and to put in the symbol file the
37453 minor and major IDs.
37454
37455 * bld.adb (Process_Declarative_Items): Put second argument of
37456 gprcmd to_absolute between single quotes, to avoid problems with
37457 Windows.
37458
37459 * bld-io.adb: Update Copyright notice.
37460 (Flush): Remove last character of a line, if it is a back slash, to
37461 avoid make problems.
37462
37463 * gnatsym.adb:
37464 Implement new scheme with reference symbol file and symbol policy.
37465
37466 * g-os_lib.ads: (Is_Directory): Clarify comment
37467
37468 2003-11-19 Robert Dewar <dewar@gnat.com>
37469
37470 * atree.adb: Move New_Copy_Tree global variables to head of package
37471
37472 * errout.adb: Minor reformatting
37473
37474 2003-11-19 Javier Miranda <miranda@gnat.com>
37475
37476 * sem_ch4.adb: (Diagnose_Call): Improve error message.
37477 Add reference to Ada0Y (AI-50217)
37478
37479 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
37480 sem_util.adb: Add reference to AI-50217
37481
37482 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
37483
37484 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
37485
37486 * sem_aggr.adb: Complete documentation of AI-287 changes
37487
37488 * par-ch4.adb: Document previous changes.
37489
37490 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
37491 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
37492 Ada0Y (AI-50217)
37493
37494 * exp_aggr.adb: Add references to AI-287 in previous changes
37495
37496 2003-11-19 Ed Schonberg <schonberg@gnat.com>
37497
37498 * exp_ch6.adb:
37499 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
37500 in the rewriting is the result of an inlined call.
37501
37502 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
37503 parameter is a type conversion, use original node to construct the
37504 post-call assignment, because expression may have been rewritten, e.g.
37505 if it is a packed array.
37506
37507 * sem_attr.adb:
37508 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
37509 body, just as it is in an instance.
37510 Categorization routines
37511
37512 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
37513 Instantiate_Object): Set proper sloc reference for message on missing
37514 actual.
37515
37516 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
37517
37518 * Makefile.in: Add FreeBSD libgnat pairs.
37519
37520 * usage.adb: Fix typo in usage message.
37521
37522 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
37523
37524 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
37525 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
37526 pragma Thread_Body.
37527 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
37528
37529 * s-thread.adb: This file is now a dummy implementation of
37530 System.Thread.
37531
37532 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
37533
37534 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
37535
37536 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
37537
37538 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37539 instanciation references in the parent type description.
37540
37541 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37542
37543 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
37544
37545 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
37546 TYPE_PRECISION directly from esize.
37547
37548 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
37549
37550 * cstreams.c:
37551 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
37552
37553 * init.c: Initialization routines for FreeBSD
37554
37555 * link.c: Link info for FreeBSD
37556
37557 * sysdep.c: Add the case of FreeBSD
37558
37559 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
37560
37561 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
37562 already called in System.Threads.
37563
37564 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
37565 environment task, as it has been moved to System.Threads.Initialization.
37566
37567 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
37568
37569 * adaint.c (__gnatlib_install_locks): Only reference
37570 __gnat_install_locks on VMS, since other platforms can avoid using
37571 --enable-threads=gnat
37572
37573 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37574
37575 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
37576
37577 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
37578 TYPE_PACKED_ARRAY_TYPE_P.
37579 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
37580
37581 Part of PR ada/12806
37582 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
37583 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
37584
37585 2003-11-17 Vincent Celier <celier@gnat.com>
37586
37587 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
37588 to False.
37589 Do not set exit status to Failure when Warning is True.
37590 (Gnatchop): Make errors "no compilation units found" and
37591 "no source files written" warnings only.
37592
37593 * make.adb (Gnatmake): When using a project file, set
37594 Look_In_Primary_Dir to False.
37595 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
37596 and Local_Configuration_Pragmas in the project where they are declared
37597 not an extending project which might have inherited them.
37598
37599 * osint.adb (Locate_File): If Name is already an absolute path, do not
37600 look for a directory.
37601
37602 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
37603 -gnats (Check_Syntax) is used, issue only a warning, not an error.
37604
37605 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
37606 in objects of type Variable_Value.
37607
37608 * prj.ads: (Variable_Value): New component Project
37609
37610 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
37611 is in a project extended by Project.
37612
37613 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
37614 Project of Variable_Values to this new parameter value.
37615 (Expression): Set component Project of Variable_Values.
37616 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
37617 Set the component Project in array elements.
37618
37619 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
37620
37621 * errout.adb: (Initialize): Add initialization for error nodes.
37622
37623 * sem_ch12.adb (Initialize): Add missing initializations for
37624 Exchanged_Views and Hidden_Entities.
37625
37626 2003-11-17 Ed Schonberg <schonberg@gnat.com>
37627
37628 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
37629 already instantiated tree for use in subsequent inlining.
37630 (Analyze_Associations, Instantiate_Formal_Subprogram,
37631 Instantiate_Object): improve error message for mismatch in
37632 instantiations.
37633
37634 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
37635 instantiations of subprograms declared in instances.
37636
37637 2003-11-17 Javier Miranda <miranda@gnat.com>
37638
37639 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
37640 executed only under the Extensions_Allowed flag.
37641
37642 2003-11-17 Robert Dewar <dewar@gnat.com>
37643
37644 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
37645 zeroes suppressed.
37646 (Address_Image): Fix bug of returning 0x instead of 0x0
37647 Minor reformatting (function specs).
37648
37649 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
37650 (missed case of 33-63)
37651
37652 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
37653
37654 * s-thread.adb: Add comments for pragma Restriction
37655
37656 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
37657 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
37658
37659 2003-11-17 Ed Falis <falis@gnat.com>
37660
37661 * s-thread.adb: Added No_Tasking restriction for this implementation.
37662
37663 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
37664
37665 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37666 instanciation references in the parent type description.
37667
37668 2003-11-17 GNAT Script <nobody@gnat.com>
37669
37670 * Make-lang.in: Makefile automatically updated
37671
37672 2003-11-16 Jason Merrill <jason@redhat.com>
37673
37674 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
37675 and TAGS files that include them for each front end.
37676
37677 2003-11-14 Andreas Jaeger <aj@suse.de>
37678
37679 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
37680 is the canonical version.
37681 * misc.c (gnat_handle_option): Likewise.
37682
37683 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
37684
37685 * 5nsystem.ads: New file for x86_64-linux-gnu.
37686
37687 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
37688
37689 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
37690
37691 * comperr.adb: Fix logic in previous change.
37692
37693 2003-11-13 Vincent Celier <celier@gnat.com>
37694
37695 * 5bml-tgt.adb (Build_Dynamic_Library): Use
37696 Osint.Include_Dir_Default_Prefix instead of
37697 Sdefault.Include_Dir_Default_Name.
37698
37699 * gnatlbr.adb: Update Copyright notice
37700 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
37701 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
37702 instead of Sdefault.Object_Dir_Default_Name
37703
37704 * gnatlink.adb:
37705 (Process_Binder_File): Never suppress the option following -Xlinker
37706
37707 * mdll-utl.adb:
37708 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
37709 Sdefault.Object_Dir_Default_Name.
37710
37711 * osint.ads, osint.adb:
37712 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
37713 Minor reformatting.
37714
37715 * vms_conv.ads: Minor reformating
37716 Remove GNAT STANDARD and GNAT PSTA
37717
37718 * vms_conv.adb:
37719 Allow GNAT MAKE to have several files on the command line.
37720 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
37721 Sdefault.Object_Dir_Default_Name.
37722 Minor Reformating
37723 Remove data for GNAT STANDARD
37724
37725 * vms_data.ads:
37726 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
37727 Remove data for GNAT STANDARD
37728 Remove options and documentation for -gnatwb/-gnatwB: these warning
37729 options no longer exist.
37730
37731 2003-11-13 Ed Falis <falis@gnat.com>
37732
37733 * 5zthrini.adb: (Init_RTS): Made visible
37734
37735 * 5zthrini.adb:
37736 (Register): Removed unnecessary call to taskVarGet that checked whether
37737 an ATSD was already set as a task var for the argument thread.
37738
37739 * s-thread.adb:
37740 Updated comment to reflect that this is a VxWorks version
37741 Added context clause for System.Threads.Initialization
37742 Added call to System.Threads.Initialization.Init_RTS
37743
37744 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
37745
37746 * 5zthrini.adb:
37747 (Init_RTS): New procedure, for the initialization of the run-time lib.
37748
37749 * s-thread.adb:
37750 Remove dependancy on System.Init, so that this file can be used in the
37751 AE653 sequential run-time lib.
37752
37753 2003-11-13 Robert Dewar <dewar@gnat.com>
37754
37755 * bindgen.adb: Minor reformatting
37756
37757 2003-11-13 Ed Schonberg <schonberg@gnat.com>
37758
37759 * checks.adb:
37760 (Apply_Discriminant_Check): Do no apply check if target type is derived
37761 from source type with no applicable constraint.
37762
37763 * lib-writ.adb:
37764 (Ensure_System_Dependency): Do not apply the style checks that may have
37765 been specified for the main unit.
37766
37767 * sem_ch8.adb:
37768 (Find_Selected_Component): Further improvement in error message, with
37769 RM reference.
37770
37771 * sem_res.adb:
37772 (Resolve): Handle properly the case of an illegal overloaded protected
37773 procedure.
37774
37775 2003-11-13 Javier Miranda <miranda@gnat.com>
37776
37777 * exp_aggr.adb:
37778 (Has_Default_Init_Comps): New function to check the presence of
37779 default initialization in an aggregate.
37780 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
37781 extension aggregate of a limited record. In addition, a new formal
37782 was added to do not initialize the record controller (if any) during
37783 this recursive expansion of ancestors.
37784 (Init_Controller): Add support for limited record components.
37785 (Expand_Record_Aggregate): In case of default initialized components
37786 convert the aggregate into a set of assignments.
37787
37788 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
37789 describing the new syntax.
37790 Nothing else needed to be done because this subprogram delegates part of
37791 its work to P_Precord_Or_Array_Component_Association.
37792 (P_Record_Or_Array_Component_Association): Give support to the new
37793 syntax for default initialization of components.
37794
37795 * sem_aggr.adb:
37796 (Resolve_Aggregate): Relax the strictness of the frontend in case of
37797 limited aggregates.
37798 (Resolve_Record_Aggregate): Give support to default initialized
37799 components.
37800 (Get_Value): In case of default initialized components, duplicate
37801 the corresponding default expression (from the record type
37802 declaration). In case of default initialization in the *others*
37803 choice, do not check that all components have the same type.
37804 (Resolve_Extension_Aggregate): Give support to limited extension
37805 aggregates.
37806
37807 * sem_ch3.adb:
37808 (Check_Initialization): Relax the strictness of the front-end in case
37809 of aggregate and extension aggregates. This test is now done in
37810 Get_Value in a per-component manner.
37811
37812 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
37813 expression corresponds to a limited aggregate. This test is now done
37814 in Get_Value.
37815
37816 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
37817 Box_Present flag.
37818
37819 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
37820 present in an N_Component_Association node
37821
37822 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
37823
37824 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
37825 type-conformant entry only if they are homographs.
37826
37827 2003-11-13 GNAT Script <nobody@gnat.com>
37828
37829 * Make-lang.in: Makefile automatically updated
37830
37831 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37832
37833 * adadecode.c: Use <> form of include for ctype.h.
37834 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
37835
37836 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37837
37838 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
37839 Works around PR middle-end/6552.
37840
37841 2003-11-10 Ed Falis <falis@gnat.com>
37842
37843 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
37844
37845 * 5zinit.adb: (Install_Handler): Moved back to spec
37846 (Install_Signal_Handlers): Deleted
37847
37848 * 5zthrini.adb: Added context clause for System.Storage_Elements
37849 (Register): Only handles creation of taskVar; initialization moved to
37850 Thread_Body_Enter.
37851 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
37852 Added declaration of environment task secondary stack and
37853 initialization.
37854
37855 * s-thread.adb: Implement bodies for thread body processing
37856
37857 * s-thread.ads:
37858 Added comment identifying supported targets for pragma Thread_Body.
37859
37860 2003-11-10 Pascal Obry <obry@gnat.com>
37861
37862 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
37863 GNAT_MAX_PATH_LEN.
37864
37865 * s-fileio.adb:
37866 (Open): Properly check for string length before copying into the buffer.
37867 Raises Name_Error if buffer is too small. Note that this was a potential
37868 buffer overflow.
37869
37870 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
37871
37872 * bindgen.adb, comperr.adb: Code clean ups.
37873 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
37874
37875 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
37876
37877 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
37878
37879 2003-11-10 Vincent Celier <celier@gnat.com>
37880
37881 * gprcmd.adb:
37882 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
37883 installation.
37884
37885 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
37886
37887 * prj.adb: (Project_Empty): Add new boolean component Virtual
37888
37889 * prj.ads: (Virtual_Prefix): New constant string
37890 (Project_Data): New boolean component Virtual
37891
37892 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
37893 a library project is extended by a virtual extending project.
37894
37895 * prj-part.adb:
37896 Modifications throughout to implement extending-all project, including:
37897 (Virtual_Hash, Processed_Hash): New hash tables
37898 (Create_Virtual_Extending_Project): New procedure
37899 (Look_For_Virtual_Projects_For): New procedure
37900
37901 * prj-proc.adb:
37902 (Process): After checking the projects, if main project is an
37903 extending-all project, set the object directory of all virtual extending
37904 project to the object directory of the main project.
37905 Adjust error message when a virtual extending project has the same
37906 object directory as an project being extended.
37907 (Recursive_Process): If name starts with the virtual prefix, set Virtual
37908 to True in the project data.
37909
37910 * prj-tree.adb:
37911 (Default_Project_Node): Add new boolean component Extending_All
37912 (Is_Extending_All): New function
37913 (Set_Is_Extending_All): New procedure
37914
37915 * prj-tree.ads: (Is_Extending_All): New function
37916 (Set_Is_Extending_All): New procedure
37917 (Project_Node_Record): New boolean component Extending_All
37918
37919 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
37920
37921 * vms_data.ads:
37922 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
37923
37924 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
37925 "gprcmd prefix" to define it.
37926
37927 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
37928
37929 * einfo.ads: Fix a typo and remove an extraneous word in comments.
37930
37931 * lib-load.adb:
37932 (Create_Dummy_Package_Unit): Set the scope of the entity for the
37933 created dummy package to Standard_Standard, not to itself, to
37934 defend other parts of the front-end against encoutering a cycle in
37935 the scope chain.
37936
37937 * sem_ch10.adb:
37938 (Analyze_With_Clause): When setting the entities for the successive
37939 N_Expanded_Names that constitute the name of a child unit, do not
37940 attempt to go further than Standard_Standard in the chain of scopes.
37941 This case arises from the placeholder units created by
37942 Create_Dummy_Package_Unit in the case of a with_clause for a
37943 nonexistent child unit.
37944
37945 2003-11-10 Ed Schonberg <schonberg@gnat.com>
37946
37947 * exp_ch6.adb:
37948 (Expand_Thread_Body): Place subprogram on scope stack, so that new
37949 declarations are given the proper scope.
37950
37951 * sem_ch13.adb:
37952 (Check_Expr_Constants): Reject an expression that contains a constant
37953 created during expansion, and that appears after the object to which
37954 the address clause applies.
37955
37956 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37957 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37958 that uses 'Range of a function call with controlled components, so
37959 that the function result can be finalized before starting the loop.
37960
37961 * sem_ch8.adb:
37962 (Find_Selected_Component): Improve error message when prefix is
37963 an implicit dereference of an incomplete type.
37964
37965 2003-11-10 Robert Dewar <dewar@gnat.com>
37966
37967 * opt.ads: New Print_Standard flag for -gnatS switch
37968
37969 * sem_ch13.adb: Remove some additional checks for unaligned arrays
37970
37971 * cstand.adb (Create_Standard): Print out package standard if -gnatS
37972 switch set
37973
37974 * debug.adb: Update doc for -gnatds to discuss relationship with new
37975 -gnatS flag
37976
37977 * sinfo.adb: Add new field Entity_Or_Associated_Node
37978
37979 * sinfo.ads: Add new field Entity_Or_Associated_Node
37980 Update documentation for Associated_Node and Entity fields to clarify
37981 relationship and usage.
37982
37983 * sprint.adb:
37984 (Write_Id): Properly process Associated_Node field in generic template
37985
37986 * switch-c.adb:
37987 Recognize new -gnatS switch for printing package Standard
37988 This replaces gnatpsta
37989
37990 * usage.adb:
37991 Add line for new -gnatS switch for printing package Standard
37992 This replaces gnatpsta
37993
37994 2003-11-10 Andreas Jaeger <aj@suse.de>
37995
37996 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37997 integer.
37998
37999 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38000
38001 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38002 by gnat1.
38003
38004 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38005
38006 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38007 no longer needed.
38008
38009 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38010
38011 * sysdep.c: Add handling of cygwin.
38012
38013 2003-11-10 GNAT Script <nobody@gnat.com>
38014
38015 * Make-lang.in: Makefile automatically updated
38016
38017 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38018
38019 PR 12950
38020 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38021 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38022 Replace GNAT_ROOT by GCC_ROOT.
38023
38024 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38025
38026 2003-11-06 Zack Weinberg <zack@codesourcery.com>
38027
38028 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38029 and update for changed meaning of GET_MODE_BITSIZE.
38030
38031 2003-11-04 Doug Rupp <rupp@gnat.com>
38032
38033 * sysdep.c: Problem discovered during IA64 VMS port.
38034 [VMS] #include <unixio.h> to get proper prototypes.
38035
38036 * adaint.c:
38037 Issues discovered/problems fixed during IA64 VMS port.
38038 [VMS] #define _POSIX_EXIT for proper semantics.
38039 [VMS] #include <unixio.h> for proper prototypes.
38040 [VMS] (fork): #define IA64 version.
38041 (__gnat_os_exit): Remove unnecessary VMS specific code.
38042
38043 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38044
38045 Part of PR ada/12806
38046 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38047 tree, not integer.
38048
38049 * decl.c:
38050 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38051 not integer.
38052
38053 * targtyps.c, decl.c, misc.c,
38054 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38055 routines to work around change in FP sizing semantics in GCC.
38056
38057 * utils.c:
38058 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38059
38060 * gigi.h: (enumerate_modes): New function.
38061
38062 * Make-lang.in: (ada/misc.o): Add real.h.
38063
38064 * misc.c: (enumerate_modes): New function.
38065
38066 2003-11-04 Robert Dewar <dewar@gnat.com>
38067
38068 * 3vtrasym.adb: Minor reformatting
38069 Use terminology encoded/decoded name, rather than C++ specific notion
38070 of mangling (this is the terminology used throughout GNAT).
38071
38072 * einfo.h: Regenerated
38073
38074 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38075
38076 * exp_ch6.adb:
38077 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38078
38079 * par-prag.adb: Add dummy entry for Thread_Body pragma
38080
38081 * rtsfind.ads:
38082 Add entries for System.Threads entities for thread body processing
38083
38084 * sem_attr.adb:
38085 (Analyze_Pragma, Access attributes): Check these are not applied to a
38086 thread body, since this is not permitted
38087
38088 * sem_prag.adb: Add processing for Thread_Body pragma.
38089 Minor comment fix.
38090
38091 * sem_res.adb:
38092 (Resolve_Call): Check for incorrect attempt to call a thread body
38093 procedure with a direct call.
38094
38095 * snames.ads, snames.adb: Add entry for Thread_Body pragma
38096 Add names associated with thread body expansion
38097
38098 * snames.h: Add entry for Thread_Body pragma
38099
38100 * s-thread.adb: Add entries for thread body processing
38101 These are dummy bodies so far
38102
38103 * s-thread.ads: Add documentation on thread body handling.
38104 Add entries for thread body processing.
38105
38106 2003-11-04 Javier Miranda <miranda@gnat.com>
38107
38108 * sem_ch10.adb:
38109 (Build_Limited_Views): Return after posting an error in case of limited
38110 with_clause on subprograms, generics, instances or generic renamings
38111 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38112 on subprograms, generics, instances or generic renamings
38113
38114 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
38115
38116 * raise.c (setup_to_install): Correct mistake in last revision; two
38117 arguments out of order.
38118
38119 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38120 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38121 notice, missed in previous change.
38122 Remove trailing blanks and other style errors introduced in previous
38123 change.
38124
38125 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
38126
38127 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38128 rid of the wrapper for a LJM type, ensuring we don't do that if the
38129 field is addressable. This avoids potential low level type view
38130 mismatches later on, for instance in a by-reference argument passing
38131 process.
38132
38133 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38134
38135 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38136 aligned at byte boundary.
38137
38138 2003-11-04 Joel Brobecker <brobecker@gnat.com>
38139
38140 * decl.c (components_to_record): Do not delete the empty variants from
38141 the end of the union type.
38142
38143 2003-11-04 Ed Schonberg <schonberg@gnat.com>
38144
38145 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38146 operation for a derived type, an explicit declaration may use a local
38147 subtype of Boolean.
38148
38149 2003-11-04 Vincent Celier <celier@gnat.com>
38150
38151 * make.adb (Gnatmake): Allow main sources on the command line with a
38152 library project when it is only for compilation (no binding or
38153 linking).
38154
38155 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38156
38157 * Makefile.in: Remove many duplicate variables.
38158
38159 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
38160
38161 * Make-lang.in (dvi): Move targets to $(docobjdir).
38162 (gnat_ug_vms.dvi): Simplify rule and adjust target.
38163 (gnat_ug_wnt.dvi): Likewise.
38164 (gnat_ug_unx.dvi): Likewise.
38165 (gnat_ug_vxw.dvi): Likewise.
38166 (gnat_rm.dvi): Likewise.
38167 (gnat-style.dvi): Likewise.
38168
38169 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38170
38171 * gigi.h: Missed commit from update for C90.
38172
38173 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38174
38175 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38176
38177 2003-10-31 Andreas Schwab <schwab@suse.de>
38178
38179 * raise.c (get_action_description_for): Fix typo in last change.
38180
38181 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
38182
38183 PR ada/12761
38184 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38185 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38186
38187 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
38188
38189 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38190 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38191 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38192 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38193 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38194
38195 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
38196
38197 * 3vtrasym.adb:
38198 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38199 numbers when symbol name is too long.
38200
38201 2003-10-30 Ed Falis <falis@gnat.com>
38202
38203 * g-signal.ads, g-signal.adb: New files
38204
38205 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38206
38207 * Makefile.rtl: Introduce GNAT.Signals
38208
38209 2003-10-30 Robert Dewar <dewar@gnat.com>
38210
38211 * freeze.adb: Minor reformatting
38212
38213 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38214
38215 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38216 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38217 New handling of Id_Check parameter to improve recognition of keywords
38218 used as identifiers.
38219 Update copyright notice to include 2003
38220
38221 2003-10-29 Robert Dewar <dewar@gnat.com>
38222
38223 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38224 sem_ch10.adb: Minor reformatting
38225
38226 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38227 (Expand_Assign_Record): Test right hand side for bit unaligned as well
38228
38229 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
38230
38231 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38232 Support for TBK$SYMBOLIZE-based symbolic traceback.
38233
38234 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
38235
38236 * exp_disp.adb:
38237 Revert previous change, that did not work well when pragma No_Run_Time
38238 was used in conjunction with a run-time other than ZFP.
38239
38240 2003-10-29 Vincent Celier <celier@gnat.com>
38241
38242 * make.adb:
38243 (Gnatmake): When there are no Ada mains in attribute Main, disable the
38244 bind and link steps only is switch -z is not used.
38245
38246 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
38247
38248 * Makefile.generic: Remove duplicated setting of CC.
38249
38250 * Makefile.prolog: Set CC to gcc by default, to override make's
38251 default (cc).
38252
38253 * einfo.h: Regenerated.
38254
38255 2003-10-29 Ed Schonberg <schonberg@gnat.com>
38256
38257 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38258 current body, after compiling subunit.
38259
38260 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38261 when in deleted code, because gigi needs properly ordered freeze
38262 actions to annotate types.
38263
38264 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38265 prevent the premature freezing of record type that contains
38266 subcomponents with a private type that does not yet have a completion.
38267
38268 2003-10-29 Javier Miranda <miranda@gnat.com>
38269
38270 * sem_ch12.adb:
38271 (Analyze_Package_Instantiation): Check that instances can not be used in
38272 limited with_clauses.
38273
38274 * sem_ch8.adb:
38275 (Analyze_Package_Renaming): Check that limited withed packages cannot
38276 be renamed. Improve text on error messages related to limited
38277 with_clauses.
38278
38279 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38280
38281 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38282 Update copyright notice.
38283
38284 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38285 (Install_Limited_Context_Clauses): New subprogram that isolates all the
38286 checks required for limited context_clauses and installs the limited
38287 view.
38288 (Install_Limited_Withed_Unit): Complete its documentation.
38289 (Analyze_Context): Check that limited with_clauses are only allowed in
38290 package specs.
38291 (Install_Context): Call Install_Limited_Context_Clauses after the
38292 parents have been installed.
38293 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
38294 package as 'From_With_Type'; this mark indicates that the limited view
38295 is installed. Used to check bad usages of limited with_clauses.
38296 (Build_Limited_Views): Do not add shadow entities to the scope's list
38297 of entities. Do not add real entities to the Non_Limited_Views chain.
38298 Improve error notification.
38299 (Remove_Context_Clauses): Remove context clauses in two phases:
38300 limited views first and regular views later (to maintain the
38301 stack model).
38302 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
38303 its visible entities.
38304
38305 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
38306
38307 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
38308 with any type that Is_Fixed_Point_Type.
38309
38310 * sinfo.ads: Fix documentation for Associated_Node attribute.
38311
38312 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
38313
38314 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
38315 both '-gnatc' and '-gnatt' are specified.
38316
38317 * atree.adb (Initialize): Add initialization for Node_Count (set to
38318 zero).
38319
38320 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38321
38322 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
38323 do not consider as Pure.
38324
38325 Part of implementation of function-at-a-time:
38326
38327 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
38328 (tree_transform): Add new argument to build_component_ref.
38329 (tree_transform, case N_Assignment_Statement): Make and return an
38330 EXPR_STMT.
38331 (tree_transform): If result IS_STMT, set flags and return it.
38332 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38333
38334 * utils2.c (build_simple_component_ref, build_component_ref): Add new
38335 arg, NO_FOLD_P.
38336 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
38337 (build_allocator): Likewise.
38338
38339 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
38340 Add new arg to build_component_ref.
38341 (maybe_unconstrained_array, unchecked_convert): Likewise.
38342
38343 * ada-tree.def (EXPR_STMT): New code.
38344
38345 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
38346
38347 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
38348 build_component_ref calls.
38349
38350 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
38351
38352 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38353 (build_component_ref): Add new argument, NO_FOLD_P.
38354
38355 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
38356
38357 * Makefile.generic: Add missing substitution on object_deps handling.
38358
38359 PR ada/5909
38360 * Make-lang.in (check-ada): Enable ACATS test suite.
38361
38362 2003-10-27 Robert Dewar <dewar@gnat.com>
38363
38364 * exp_ch3.adb:
38365 (Freeze_Array_Type): We do not need an initialization routine for types
38366 derived from String or Wide_String. They should be treated the same
38367 as String and Wide_String themselves. This caused problems with the
38368 use of Initialize_Scalars.
38369
38370 * exp_ch5.adb:
38371 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
38372 composites. This allows use of component clauses that are not byte
38373 aligned.
38374
38375 * sem_prag.adb:
38376 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
38377 is an attempt to pack an array of atomic objects.
38378
38379 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
38380
38381 2003-10-27 Pascal Obry <obry@gnat.com>
38382
38383 * g-dirope.adb:
38384 (Basename): Check for drive letters in a pathname only on DOS based OS.
38385
38386 2003-10-27 Vincent Celier <celier@gnat.com>
38387
38388 * make.adb:
38389 (Gnatmake): When unable to change dir to the object dir, display the
38390 content of the parent dir of the obj dir, to try to understand why this
38391 happens.
38392
38393 2003-10-27 GNAT Script <nobody@gnat.com>
38394
38395 * Make-lang.in: Makefile automatically updated
38396
38397 2003-10-27 Ed Schonberg <schonberg@gnat.com>
38398
38399 * sem_ch12.adb:
38400 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
38401 should not be done in Save/Restore_Scope_Stack, because it is performed
38402 locally.
38403
38404 * sem_ch8.adb:
38405 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38406 whether use clauses should be removed/restored.
38407
38408 * sem_ch8.ads:
38409 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38410 whether use clauses should be removed/restored.
38411
38412 2003-10-26 Andreas Jaeger <aj@suse.de>
38413
38414 * Makefile.in: Remove duplicated lines.
38415
38416 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
38417
38418 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
38419 minimize the differences with ACT tree.
38420
38421 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
38422 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
38423 Gnatvsn.Gnat_Static_Version_String to reduce differences between
38424 ACT and FSF trees.
38425
38426 2003-10-24 Pascal Obry <obry@gnat.com>
38427
38428 PR ada/12014
38429 * adadecode.c (ostrcpy): New function.
38430 (__gnat_decode): Use ostrcpy of strcpy.
38431 (has_prefix): Set first parameter a const.
38432 (has_suffix): Set first parameter a const.
38433 Update copyright notice. Fix source name in header.
38434 Removes a trailing space.
38435
38436 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
38437
38438 * exp_disp.adb:
38439 Remove the test against being in No_Run_Time_Mode before generating a
38440 call to Register_Tag. It is redundant with the test against the
38441 availability of the function Register_Tag.
38442
38443 2003-10-24 Vincent Celier <celier@gnat.com>
38444
38445 * g-catiio.adb: (Month_Name): Correct spelling of February
38446
38447 * make.adb: (Mains): New package
38448 (Initialize): Call Mains.Delete
38449 (Gnatmake): Check that each main on the command line is a source of a
38450 project file and, if there are several mains, each of them is a source
38451 of the same project file.
38452 (Gnatmake): When a foreign language is specified in attribute Languages,
38453 no main is specified on the command line and attribute Mains is not
38454 empty, only build the Ada main. If there is no Ada main, just compile
38455 the Ada sources and their closure.
38456 (Gnatmake): If a main is specified on the command line with directory
38457 information, check that the source exists and, if it does, that the path
38458 is the actual path of a source of a project.
38459
38460 * prj-env.adb:
38461 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
38462 Full_Path is True, return the full path instead of the simple file name.
38463 (Project_Of): New function
38464
38465 * prj-env.ads:
38466 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
38467 defaulted to False.
38468 (Project_Of): New function
38469
38470 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
38471
38472 * Makefile.generic:
38473 Ensure objects of main project are always checked and rebuilt if needed.
38474 Set CC to gcc by default.
38475 Prepare new handling of link by creating a global archive (not activated
38476 yet).
38477
38478 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
38479 stringt.h: Update copyright notice. Remove trailing blanks.
38480 Fix source name in header.
38481
38482 2003-10-24 Robert Dewar <dewar@gnat.com>
38483
38484 * sem_ch12.adb: Minor reformatting
38485
38486 * sem_ch3.adb:
38487 Minor reformatting (including new function return style throughout)
38488
38489 * sem_ch3.ads:
38490 Minor reformatting (including new function return style throughout)
38491
38492 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
38493
38494 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
38495 stringt.h: Update copyright notice. Remove trailing blanks.
38496 Fix source name in header.
38497
38498 2003-10-24 GNAT Script <nobody@gnat.com>
38499
38500 * Make-lang.in: Makefile automatically updated
38501
38502 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
38503
38504 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
38505 stringt.h: Convert to ISO C90 declarations and definitions.
38506
38507 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
38508
38509 PR ada/11978
38510 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
38511 External_Tag attribute definition clauses.
38512
38513 2003-10-23 Ed Schonberg <schonberg@gnat.com>
38514
38515 PR ada/7613
38516 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
38517 child unit, generate a fully qualified name to avoid spurious errors
38518 when the context contains renamings of different child units with
38519 the same simple name.
38520
38521 * exp_dbug.ads: Add documentation on name qualification for renamings
38522 of child units.
38523
38524 2003-10-23 Robert Dewar <dewar@gnat.com>
38525
38526 * g-regpat.ads, g-regpat.adb: Minor reformatting
38527
38528 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
38529
38530 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
38531
38532 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38533
38534 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
38535 Machine call.
38536
38537 * urealp.h: (Machine): Update to proper definition.
38538
38539 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
38540
38541 * init.c, adaint.c: Minor reformatting.
38542
38543 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
38544
38545 * adaint.c (w32_epoch_offset): Define static const at file level.
38546 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
38547 rather than t_create, t_access in call to GetFileTime. Use union
38548 to convert between FILETIME and unsigned long long.
38549 (__gnat_file_time_name): Test for invalid file handle.
38550 (__gnat_set_filetime_name): Support win32 targets using
38551 w32api SetFileTime.
38552
38553 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
38554
38555 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
38556
38557 * ctrl_c.c (__gnat_int_handler): Remove declaration.
38558
38559 * decl.c (creat_concat_name): Const-ify prefix.
38560
38561 * adaint.c: Include ctype.h if __MINGW32__.
38562 (__gnat_readlink): Mark arguments as possibly unused.
38563 (__gnat_symlink): Likewise.
38564 (__gnat_is_symbolic_link): Likewise.
38565 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
38566 declaration
38567 (__gnat_file_time_name): Don't declare struct stat statbuf when
38568 not needed.
38569 (__gnat_is_absolute_path): Add parenthesis around condition of
38570 'if' statement to avoid warning.
38571 (__gnat_plist_init): Specify void as parameter.
38572 (plist_enter): Likewise.
38573 (plist_leave): Likewise.
38574 (remove_handle): Make static. Initialize prev.
38575
38576 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
38577
38578 PR ada/10110
38579 * Makefile.in: Disable build of gnatpsta.
38580 * cstreams.c (__gnat_full_name): Minor improvements and clean up
38581 of previous change.
38582
38583 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38584
38585 * tracebak.c (MAX): Avoid redefinition warning.
38586
38587 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
38588 Change msg to const char *.
38589 (__gnat_install_handler): Remove ss, unused.
38590 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
38591 to const char *.
38592 * cstreams.c (__gnat_full_name): Declare p only when used.
38593 (__gnat_full_name) [sgi] Return buffer.
38594
38595 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
38596
38597 * mingw32.h: New file.
38598 * gnat_wrapper.adb: New file.
38599
38600 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
38601
38602 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
38603 string match a pre compiled regular expression (the corresponding
38604 version of the function working on a raw regular expression)
38605 Fix typos in various comments
38606 Update copyright notice in spec
38607
38608 2003-10-21 Gary Dismukes <dismukes@gnat.com>
38609
38610 * exp_ch3.adb:
38611 (Component_Needs_Simple_Initialization): Return False when the type is a
38612 packed bit array. Revise spec comments to document this case.
38613
38614 * exp_prag.adb:
38615 (Expand_Pragma_Import): Set any expression on the imported object to
38616 empty to avoid initializing imported objects (in particular this
38617 covers the case of zero-initialization of bit arrays).
38618 Update copyright notice.
38619
38620 2003-10-21 Ed Schonberg <schonberg@gnat.com>
38621
38622 * sem_ch12.adb:
38623 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
38624 a subunit is missing.
38625 (Instantiate_Subprogram_Body): If body of function is missing, set type
38626 of return expression explicitly in dummy body, to prevent cascaded
38627 errors when a subunit is missing.
38628 Fixes PR 5677.
38629
38630 * sem_ch3.adb:
38631 (Access_Subprogram_Declaration): Verify that return type is valid.
38632 Fixes PR 8693.
38633
38634 * sem_elab.adb:
38635 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
38636 generic.
38637 Fixes PR 12318.
38638
38639 * sem_util.adb:
38640 (Corresponding_Discriminant): If the scope of the discriminant is a
38641 private type without discriminant, use its full view.
38642 Fixes PR 8247.
38643
38644 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
38645
38646 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
38647 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
38648 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
38649 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
38650 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
38651 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
38652 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38653 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
38654 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
38655 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
38656 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
38657 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
38658 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
38659 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
38660 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
38661 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
38662 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
38663 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
38664 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
38665 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
38666 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
38667 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
38668 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
38669 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
38670 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
38671 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
38672 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
38673 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
38674 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
38675 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
38676 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
38677 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
38678 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
38679 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
38680 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
38681 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
38682 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
38683 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
38684 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
38685 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
38686 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
38687 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
38688 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
38689 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
38690 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
38691 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
38692 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
38693 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
38694 vms_conv.ads, vms_conv.adb, vms_data.ads,
38695 vxaddr2line.adb: Files added. Merge with ACT tree.
38696
38697 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
38698 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
38699 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
38700 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
38701 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
38702 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
38703 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38704 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
38705 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
38706 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
38707
38708 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38709 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38710 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38711 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38712 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
38713 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
38714 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38715 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
38716 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
38717 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
38718 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
38719 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
38720 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
38721 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
38722 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
38723 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
38724 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
38725 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38726 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
38727 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
38728 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
38729 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
38730 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
38731 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
38732 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
38733 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
38734 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
38735 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
38736 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
38737 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
38738 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
38739 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
38740 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38741 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
38742 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
38743 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
38744 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
38745 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
38746 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
38747 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
38748 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
38749 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
38750 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
38751 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
38752 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
38753 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
38754 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
38755 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
38756 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
38757 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
38758 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
38759 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
38760 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
38761 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
38762 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
38763 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
38764 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
38765 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
38766 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
38767 checks.adb, checks.ads, cio.c, comperr.adb,
38768 comperr.ads, csets.adb, cstand.adb, cstreams.c,
38769 debug_a.adb, debug_a.ads, debug.adb, decl.c,
38770 einfo.adb, einfo.ads, errout.adb, errout.ads,
38771 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
38772 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
38773 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
38774 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38775 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
38776 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
38777 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
38778 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
38779 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
38780 fe.h, fmap.adb, fmap.ads, fname.adb,
38781 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
38782 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
38783 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
38784 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38785 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38786 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38787 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
38788 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
38789 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
38790 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
38791 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
38792 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
38793 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
38794 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
38795 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
38796 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
38797 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
38798 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
38799 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
38800 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
38801 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
38802 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
38803 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
38804 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
38805 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
38806 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
38807 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
38808 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
38809 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
38810 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
38811 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
38812 layout.adb, lib.adb, lib.ads, lib-list.adb,
38813 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
38814 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38815 link.c, live.adb, make.adb, make.ads,
38816 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
38817 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
38818 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
38819 misc.c, mkdir.c, mlib.adb, mlib.ads,
38820 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
38821 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
38822 namet.adb, namet.ads, namet.h, nlists.ads,
38823 nlists.h, nmake.adt, opt.adb, opt.ads,
38824 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
38825 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
38826 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38827 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
38828 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
38829 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
38830 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
38831 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
38832 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
38833 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
38834 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
38835 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
38836 prj-util.adb, prj-util.ads, raise.c, raise.h,
38837 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
38838 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
38839 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
38840 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
38841 scans.ads, scn.adb, scn.ads, s-crc32.adb,
38842 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
38843 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38844 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
38845 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
38846 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
38847 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38848 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38849 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
38850 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
38851 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
38852 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
38853 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
38854 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
38855 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
38856 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38857 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
38858 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
38859 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
38860 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
38861 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
38862 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
38863 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
38864 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
38865 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
38866 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
38867 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
38868 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
38869 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
38870 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
38871 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
38872 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
38873 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
38874 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
38875 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
38876 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
38877 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
38878 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
38879 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
38880 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
38881 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
38882 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38883 stringt.adb, stringt.ads, stringt.h, style.ads,
38884 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
38885 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
38886 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
38887 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
38888 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
38889 table.adb, table.ads, targparm.adb, targparm.ads,
38890 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
38891 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
38892 ttypes.ads, types.ads, types.h, uintp.adb,
38893 uintp.ads, uintp.h, uname.adb, urealp.adb,
38894 urealp.ads, urealp.h, usage.adb, utils2.c,
38895 utils.c, validsw.adb, validsw.ads, widechar.adb,
38896 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
38897 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
38898 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
38899 gnatvsn.ads: Merge with ACT tree.
38900
38901 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
38902
38903 2003-10-20 Mark Mitchell <mark@codesourcery.com>
38904
38905 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
38906 (gnat_ug_vmx.info): Likewise.
38907 (gnat_ug_vxw.info): Likewise.
38908 (gnat_ug_wnt.info): Likewise.
38909 (gnat_rm.info): Likewise.
38910 (gnat-style.info): Likewise.
38911
38912 * Make-lang.in (ada.install-info): Remove target.
38913 (info): New target.
38914 (install-info): Likewise.
38915 (gnat_ug_unx.info): Simplify rule.
38916 (gnat_ug_vmx.info): Likewise.
38917 (gnat_ug_vxw.info): Likewise.
38918 (gnat_ug_wnt.info): Likewise.
38919 (gnat_rm.info): Likewise.
38920 (gnat-style.info): Likewise.
38921
38922 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
38923
38924 * Make-lang.in: Replace uses of $(target_alias) with
38925 $(target_noncanonical).
38926 * ada/Makefile.in: Remove unused mention of $(target_alias).
38927
38928 2003-10-06 Mark Mitchell <mark@codesourcery.com>
38929
38930 * Make-lang.in (ada.info): Replace with ...
38931 (info): ... this.
38932 (ada.dvi): Replace with ...
38933 (dvi): ... this.
38934
38935 2003-09-29 Zack Weinberg <zack@codesourcery.com>
38936
38937 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
38938 initialize dconstp5 and dconstmp5.
38939
38940 2003-09-28 Richard Henderson <rth@redhat.com>
38941
38942 * trans.c (tree_transform): Update call to expand_asm_operands.
38943
38944 2003-09-21 Richard Henderson <rth@redhat.com>
38945
38946 * trans.c, utils.c: Revert.
38947
38948 2003-09-21 Richard Henderson <rth@redhat.com>
38949
38950 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38951 change to const.
38952
38953 2003-09-04 Michael Matz <matz@suse.de>
38954
38955 * misc.c: Include "target.h".
38956 * Make-lang.in (misc.o): Add dependency on target.h.
38957
38958 2003-09-03 DJ Delorie <dj@redhat.com>
38959
38960 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38961 hook.
38962
38963 2003-08-30 Zack Weinberg <zack@codesourcery.com>
38964
38965 * Makefile.in: Update substitutions to match changes to
38966 configure. Use include directives instead of @-insertions
38967 to read in host and target fragments. Add a rule to
38968 regenerate ada/Makefile.
38969
38970 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
38971
38972 * lang-options.h: Remove.
38973 * lang.opt: Add help text.
38974
38975 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
38976
38977 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38978 calls.
38979
38980 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
38981
38982 * misc.c (gnat_handle_option): Don't handle filenames.
38983
38984 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
38985
38986 * Make-lang.in: Replace PWD with PWD_COMMAND.
38987 * Makefile.adalib: Likewise.
38988 * Makefile.in: Likewise.
38989
38990 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
38991
38992 * misc.c (gnat_argv): Revert last change.
38993 (gnat_handle_option, gnat_init_options): Copy arguments.
38994
38995 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
38996
38997 * misc.c (gnat_argv): Make const.
38998
38999 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39000
39001 * misc.c (save_argc, save_argv): Keep non-static!
39002
39003 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39004
39005 * misc.c (save_argc, save_argv): Make static.
39006 (gnat_init_options): New prototype.
39007 (gnat_init_options): Update.
39008
39009 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39010
39011 * gnat_ug.texi: Remove unlikely characters from @vars.
39012 * gnat_ug_vms.texi: Regenerate.
39013
39014 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39015
39016 * misc.c (record_code_position): Adjust emit_note call.
39017
39018 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39019
39020 * misc.c (gnat_handle_option): Don't check for missing arguments.
39021
39022 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39023
39024 * utils.c (end_subprog_body): Adjust expand_function_end call.
39025
39026 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39027
39028 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39029 Bind_Main_Program.
39030
39031 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
39032
39033 * lang.opt: Declare Ada.
39034 * misc.c (gnat_init_options): Update.
39035
39036 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39037
39038 * utils.c (begin_subprog_body): Adjust init_function_start call.
39039
39040 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39041
39042 * Make-lang.in: Update to use options.c and options.h.
39043 * misc.c: Include options.h not aoptions.h.
39044 (gnat_handle_option): Abort on unrecognized switch.
39045 (gnat_init_options): Request Ada switches.
39046
39047 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39048
39049 * lang.opt: Add -Wall.
39050 * misc.c (gnat_handle_option): Handle it.
39051
39052 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
39053
39054 * misc.c (gnat_handle_option): Fix warnings.
39055
39056 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
39057
39058 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39059
39060 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
39061
39062 * Make-lang.in: Update to handle command-line options.
39063 * lang.opt: New file.
39064 * misc.c: Include aoptions.h.
39065 (cl_options_count, cl_options): Remove.
39066 (gnat_handle_option): New.
39067 (gnat_decode_option): Remove.
39068 (LANG_HOOKS_DECODE_OPTION): Remove.
39069 (LANG_HOOKS_HANDLE_OPTION): Override.
39070
39071 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
39072
39073 * init.c, misc.c, trans.c, utils.c: Remove dead code.
39074
39075 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
39076
39077 * Makefile.in: Replace "host_canonical" with "host" for autoconf
39078 substitution.
39079
39080 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
39081
39082 * Make-lang.in: Update.
39083 * misc.c: Include opts.h. Define cl_options_count and cl_options.
39084
39085 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
39086
39087 * misc.c (gnat_init_options): Update.
39088
39089 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39090
39091 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39092 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39093 __attribute__ ((__unused__)).
39094
39095 2003-06-05 Jan Hubicka <jh@suse.cz>
39096
39097 * Make-lang.in: Add support for stageprofile and stagefeedback
39098
39099 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39100
39101 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39102 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39103
39104 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
39105
39106 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39107 Remove non-VMS directive.
39108 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39109 alternatives.
39110 (Examples of gnatls Usage): Remove VMS alternative.
39111
39112 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
39113
39114 PR ada/9953
39115 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39116 and turn ZCX_By_Default back to False since the underlying support
39117 is not quite there yet.
39118
39119 2003-06-01 Andreas Jaeger <aj@suse.de>
39120
39121 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39122 and ROUND_TYPE_SIZE_UNIT.
39123
39124 2003-05-22 Geert Bosch <bosch@gnat.com>
39125
39126 * gnat_rm.texi : Remove reference to Ada Core Technologies.
39127
39128 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
39129
39130 * trans.c (tree_transform): Use location_t and input_location
39131 directly.
39132 (build_unit_elab): Likewise.
39133 * utils.c (create_label_decl): Likewise.
39134
39135 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
39136
39137 * trans.c (tree_transform, build_unit_elab,
39138 set_lineno): Rename lineno to input_line.
39139 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39140 end_subprog_body): Likewise.
39141 * utils2.c (build_call_raise): Likewise.
39142
39143 2003-05-01 Laurent Guerby <guerby@acm.org>
39144
39145 PR ada/10546
39146 * 5iosinte.ads: Increase pthread_cond_t size to match recent
39147 LinuxThread and NPTL version, merge from ACT.
39148
39149 2003-04-28 Zack Weinberg <zack@codesourcery.com>
39150
39151 * utils.c (convert): No need to clear TREE_CST_RTL.
39152
39153 2003-04-23 Geert Bosch <bosch@gnat.com>
39154
39155 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39156 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39157 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39158 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39159 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39160 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39161 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39162 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39163 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39164 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39165 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39166 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39167 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39168 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39169 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39170 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39171 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39172 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39173 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39174 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39175 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39176 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39177 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39178 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39179 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39180 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39181 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39182 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39183 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39184 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39185 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39186 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39187 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39188 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39189 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39190 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39191 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39192 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39193 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39194 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39195 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39196 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39197 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39198 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39199 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39200 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39201 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39202 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39203 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39204 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39205 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39206 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39207 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39208 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39209 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39210 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39211 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39212 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39213 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39214 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39215 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39216 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39217 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39218 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39219 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39220 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39221 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39222 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39223 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39224 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39225 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39226 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39227 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39228 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39229 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39230 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39231 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39232 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39233 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39234 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39235 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39236 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39237 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39238 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39239 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39240 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39241 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39242 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39243 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39244 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39245 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39246 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39247 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39248 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39249 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39250 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39251 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39252 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39253 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39254 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39255 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39256 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39257 ali.adb, ali.ads, alloc.ads, argv.c,
39258 atree.adb, atree.ads, atree.h, aux-io.c,
39259 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39260 binde.adb, binde.ads, binderr.adb, binderr.ads,
39261 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39262 butil.adb, butil.ads, cal.c, calendar.ads,
39263 casing.adb, casing.ads, ceinfo.adb, checks.adb,
39264 checks.ads, cio.c, comperr.adb, comperr.ads,
39265 config-lang.in, csets.adb, csets.ads, csinfo.adb,
39266 cstand.adb, cstand.ads, cuintp.c, debug.adb,
39267 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39268 dec-io.ads, dec.ads, deftarg.c, directio.ads,
39269 einfo.adb, einfo.ads, elists.adb, elists.ads,
39270 elists.h, errno.c, errout.adb, errout.ads,
39271 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39272 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39273 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39274 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39275 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39276 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39277 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39278 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39279 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39280 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39281 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39282 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39283 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39284 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39285 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39286 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39287 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39288 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39289 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
39290 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
39291 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39292 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39293 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39294 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
39295 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
39296 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
39297 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
39298 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
39299 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
39300 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
39301 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
39302 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
39303 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
39304 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
39305 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
39306 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
39307 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
39308 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
39309 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
39310 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
39311 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
39312 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
39313 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
39314 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
39315 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
39316 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
39317 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
39318 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
39319 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
39320 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
39321 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
39322 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
39323 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
39324 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
39325 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
39326 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
39327 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
39328 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
39329 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
39330 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39331 lib.adb, lib.ads, live.adb, live.ads,
39332 machcode.ads, make.adb, make.ads, makeusg.adb,
39333 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
39334 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
39335 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
39336 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
39337 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
39338 mlib.ads, namet.adb, namet.ads, nlists.adb,
39339 nlists.ads, opt.adb, opt.ads, osint-b.adb,
39340 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
39341 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
39342 osint.ads, output.adb, output.ads, par-ch10.adb,
39343 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
39344 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39345 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
39346 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
39347 par-tchk.adb, par-util.adb, par.adb, par.ads,
39348 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
39349 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
39350 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
39351 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
39352 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
39353 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
39354 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
39355 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
39356 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
39357 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
39358 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
39359 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
39360 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
39361 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
39362 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
39363 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
39364 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
39365 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39366 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
39367 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
39368 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
39369 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
39370 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39371 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
39372 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
39373 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
39374 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
39375 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
39376 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
39377 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
39378 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
39379 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
39380 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
39381 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
39382 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
39383 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
39384 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
39385 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
39386 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
39387 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
39388 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
39389 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
39390 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
39391 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
39392 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
39393 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
39394 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
39395 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
39396 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
39397 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
39398 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
39399 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
39400 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
39401 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
39402 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
39403 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
39404 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
39405 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
39406 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
39407 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
39408 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
39409 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
39410 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
39411 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
39412 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
39413 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
39414 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
39415 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
39416 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
39417 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
39418 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
39419 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
39420 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
39421 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
39422 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
39423 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
39424 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
39425 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
39426 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
39427 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
39428 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
39429 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
39430 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
39431 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39432 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
39433 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
39434 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
39435 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
39436 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
39437 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
39438 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
39439 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
39440 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
39441 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
39442 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
39443 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
39444 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
39445 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
39446 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
39447 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
39448 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
39449 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
39450 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
39451 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
39452 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
39453 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
39454 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
39455 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
39456 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
39457 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
39458 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39459 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39460 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
39461 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
39462 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
39463 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
39464 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
39465 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
39466 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
39467 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
39468 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
39469 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
39470 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
39471 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
39472 snames.ads, sprint.adb, sprint.ads, stand.adb,
39473 stand.ads, stringt.adb, stringt.ads, style.adb,
39474 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
39475 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
39476 switch-m.ads, switch.adb, switch.ads, system.ads,
39477 table.adb, table.ads, targparm.adb, targparm.ads,
39478 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
39479 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
39480 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
39481 ttypef.ads, ttypes.ads, types.adb, types.ads,
39482 uintp.adb, uintp.ads, uname.adb, uname.ads,
39483 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
39484 usage.adb, usage.ads, validsw.adb, validsw.ads,
39485 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
39486 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
39487 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
39488 formatting and other trivial changes from ACT.
39489
39490 2003-04-12 Zack Weinberg <zack@codesourcery.com>
39491
39492 * gigi.h, utils2.c (build_constructor):
39493 Rename gnat_build_constructor. Use build_constructor.
39494 * decl.c (gnat_to_gnu_entity)
39495 * trans.c (tree_transform, pos_to_constructor, extract_values)
39496 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
39497 (unchecked_convert)
39498 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
39499 (fill_vms_descriptor):
39500 Update to match.
39501
39502 2003-04-06 Zack Weinberg <zack@codesourcery.com>
39503
39504 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
39505 * misc.c (gnat_tree_size): New function.
39506 (LANG_HOOKS_TREE_SIZE): Override.
39507
39508 2003-04-03 Jason Merrill <jason@redhat.com>
39509
39510 * misc.c (gnat_adjust_rli): #if 0.
39511
39512 2003-03-31 Geert Bosch <bosch@gnat.com>
39513
39514 PR ada/10020
39515 * link.c : Fix misspelled "const" keyword
39516
39517 2003-03-23 Mark Mitchell <mark@codesourcery.com>
39518
39519 PR c++/7086
39520 * utils2.c: Adjust calls to put_var_into_stack.
39521
39522 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
39523
39524 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
39525
39526 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
39527
39528 * misc.c (gnat_init): Update for new prototype.
39529
39530 2003-03-05 Olivier Hainque <hainque@gnat.com>
39531
39532 ada/9961
39533 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
39534 warning, and fix return type for the IN_RTS && !SJLJ case.
39535
39536 2003-03-04 Tom Tromey <tromey@redhat.com>
39537
39538 * Make-lang.in (ada.tags): New target.
39539
39540 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
39541
39542 ada/9911
39543 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
39544 wrapper, which name remains constant whatever underlying GCC
39545 scheme.
39546
39547 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
39548 the stable interface needed for a-except.
39549
39550 2003-03-02 Andreas Jaeger <aj@suse.de>
39551
39552 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39553 gnat_ug_wnt.texi: Regenerate.
39554
39555 2003-03-02 Laurent Guerby <guerby@acm.org>
39556
39557 * Makefile.in (install-gnatlib): Match previous change there
39558 so it works.
39559
39560 2003-02-28 Andreas Schwab <schwab@suse.de>
39561
39562 * Make-lang.in (install-gnatlib): Change to ada directory before
39563 running make instead of using ada/Makefile directly.
39564
39565 2003-02-18 Ben Elliston <bje@redhat.com>
39566
39567 Part of PR ada/9406
39568 * gnat_ug.texi (Binder output file): Grammar fix.
39569
39570 2003-02-18 Ben Elliston <bje@redhat.com>
39571
39572 PR other/7350
39573 * 5qtaprop.adb (Sleep): Fix typo in comment.
39574
39575 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
39576
39577 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
39578 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39579 gnat_ug_wnt.texi: Regenerate.
39580
39581 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
39582
39583 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
39584 be created if necessary.
39585 (ada.install-common): Let $(DESTDIR)$(bindir) be created
39586 if necessary. Remove erroneous and redundant gnatchop
39587 installation commands. Test for gnatdll before attempting
39588 to install it.
39589 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
39590 and gnatdll from all plausible locations.
39591
39592 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
39593
39594 * utils2.c (build_unary_op): Don't check flag_volatile.
39595 * gnat_ug.texi: Remove -fvolatile from example.
39596 * gnat_ug_vxw.texi: Likewise.
39597
39598 2003-01-29 Laurent Guerby <guerby@acm.org>
39599
39600 PR ada/8344
39601 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
39602 * Makefile.in: match previous change.
39603 * Make-lang.in: match previous change.
39604
39605 2003-01-29 Joel Sherrill <joel@OARcorp.com>
39606
39607 * 5rosinte.ads: Add SIGXCPU.
39608 * 5rtpopsp.adb: New file.
39609 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
39610 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
39611 specific file 5rtpopsp.adb.
39612 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
39613 is likely needed for all newlib targets.
39614 * init.c: Add RTEMS specific version of __gnat_initialize().
39615
39616 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39617
39618 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
39619
39620 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39621
39622 * init.c (__gnat_error_handler): Make msg const.
39623
39624 * gmem.c (convert_addresses): Move declaration ...
39625 * adaint.h: ... here.
39626 * adaint.c (convert_addresses): Adapt addrs type to match
39627 prototype.
39628
39629 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
39630
39631 2003-01-24 Andreas Schwab <schwab@suse.de>
39632
39633 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
39634 size_t to avoid warning.
39635
39636 2003-01-21 Zack Weinberg <zack@codesourcery.com>
39637
39638 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
39639
39640 2003-01-09 Geoffrey Keating <geoffk@apple.com>
39641
39642 * gnat_rm.texi: Remove RCS version number.
39643
39644 * ada-tree.h (union lang_tree_node): Add chain_next option.
39645
39646 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
39647
39648 * Make-lang.in (ada.install-info, ada.install-common,
39649 ada.uninstall): Prepend $(DESTDIR) to the destination
39650 directory in all (un)installation commands.
39651 * Makefile.in (install-gnatlib, install-rts): Ditto.
39652
39653 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
39654
39655 * gnat_rm.texi, gnat_ug.texi: Use @copying.
39656 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39657 gnat_ug_wnt.texi: Regenerate.
39658
39659 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
39660
39661 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
39662 only.
39663 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
39664 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
39665 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
39666 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
39667 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
39668 $(srcdir)/doc/include/gcc-common.texi.
39669
39670 2002-12-15 Geert Bosch <bosch@gnat.com>
39671
39672 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
39673
39674 2002-12-14 Geert Bosch <bosch@gnat.com>
39675
39676 PR ada/5690
39677 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
39678 case of a body created for a Renaming_As_Body, on which
39679 conformance checks are not performed.
39680
39681 2002-11-30 Zack Weinberg <zack@codesourcery.com>
39682
39683 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
39684 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
39685 not already included.
39686 * Make-lang.in: Update dependencies.
39687
39688 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
39689 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
39690 solution to buffer overflow bug on GNU/Linux.
39691
39692 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
39693
39694 PR ada/5856
39695 PR ada/6919
39696 * bindgen.adb: Remove all references to Public_Version.
39697 * comperr.adb: Remove all references to Public_Version and
39698 GNATPRO_Version; correct bug reporting instructions.
39699 * comperr.ads: Change to match bug box.
39700 * gnatvsn.ads: Remove all references to Public version and
39701 GNATPRO version.
39702
39703 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
39704
39705 PR ada/6919
39706 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
39707 GNU/Linux.
39708
39709 PR ada/6558
39710 * config-lang.in: Remove diff_excludes.
39711
39712 2002-11-05 Graham Stott <graham.stott@btinternet.com>
39713
39714 PR ada/8358
39715 * trans.c (gnu_pending_elaboration_lists): New GC root.
39716 (build_unit_elab): Use..
39717
39718 2002-10-30 Geert Bosch <bosch@gnat.com>
39719
39720 PR ada/6558
39721 * misc.c : Include optabs.h
39722
39723 * Make-lang.in (misc.o): Add dependency on optabs.h
39724
39725 2002-10-29 Geert Bosch <bosch@gnat.com>
39726
39727 PR ada/6558
39728 * Make-lang.in (gnatbind): Depend on CONFIG_H
39729
39730 2002-10-29 Geert bosch <bosch@gnat.com>
39731
39732 PR ada/6558
39733 * misc.c: Unrevert misc.c (1.13)
39734
39735 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
39736
39737 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
39738 maintainership comments.
39739
39740 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
39741
39742 PR ada/5904
39743 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
39744 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
39745 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
39746 7staprop.adb: Correct statements in comments about
39747 maintainership of GNAT.
39748
39749 PR ada/5904
39750 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
39751 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
39752 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
39753 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
39754 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
39755 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
39756 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
39757 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
39758 comments about maintainership of GNAT.
39759
39760 PR ada/6919 (forward port of patch for PR ada/5904)
39761 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
39762 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
39763 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
39764 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
39765 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
39766 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
39767 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
39768 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
39769 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
39770 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
39771 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
39772 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
39773 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
39774 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
39775 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
39776 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
39777 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
39778 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
39779 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
39780 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
39781 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
39782 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
39783 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
39784 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
39785 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
39786 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
39787 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
39788 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
39789 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
39790 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
39791 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
39792 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
39793 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
39794 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
39795 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
39796 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
39797 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
39798 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
39799 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
39800 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
39801 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
39802 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
39803 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
39804 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
39805 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
39806 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
39807 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
39808 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
39809 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
39810 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
39811 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
39812 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
39813 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
39814 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
39815 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
39816 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
39817 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
39818 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
39819 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
39820 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
39821 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
39822 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
39823 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
39824 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
39825 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
39826 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
39827 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
39828 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
39829 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
39830 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
39831 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
39832 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
39833 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
39834 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
39835 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
39836 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
39837 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
39838 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
39839 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
39840 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
39841 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
39842 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
39843 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
39844 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
39845 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
39846 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
39847 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
39848 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
39849 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
39850 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
39851 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
39852 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
39853 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
39854 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
39855 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
39856 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
39857 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
39858 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
39859 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
39860 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
39861 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
39862 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
39863 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
39864 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
39865 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
39866 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
39867 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
39868 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
39869 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
39870 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
39871 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
39872 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
39873 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
39874 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
39875 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
39876 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
39877 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
39878 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
39879 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
39880 par-endh.adb par-labl.adb par-load.adb par-prag.adb
39881 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
39882 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
39883 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
39884 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
39885 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
39886 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
39887 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
39888 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
39889 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
39890 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
39891 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
39892 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
39893 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
39894 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
39895 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
39896 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
39897 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
39898 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
39899 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
39900 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
39901 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
39902 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
39903 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
39904 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
39905 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
39906 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
39907 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
39908 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
39909 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
39910 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
39911 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
39912 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
39913 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
39914 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
39915 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
39916 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
39917 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
39918 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
39919 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
39920 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
39921 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
39922 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
39923 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
39924 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
39925 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
39926 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
39927 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
39928 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
39929 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
39930 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
39931 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
39932 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
39933 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
39934 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
39935 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
39936 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
39937 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
39938 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
39939 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
39940 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39941 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39942 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39943 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39944 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39945 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39946 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39947 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39948 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39949 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39950 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39951 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39952 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39953 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39954 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39955 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39956 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39957 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39958 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39959 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39960 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39961 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39962 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39963 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39964 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39965 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39966 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39967 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39968 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39969 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39970 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39971 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39972 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39973 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39974 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39975 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39976 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39977 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39978 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39979 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39980 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39981 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39982 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39983 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39984 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39985 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39986 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39987 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39988 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39989 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39990 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39991 stringt.ads stringt.h style.adb style.ads stylesw.adb
39992 stylesw.ads switch.adb switch.ads sysdep.c system.ads
39993 table.adb table.ads targparm.adb targparm.ads targtyps.c
39994 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39995 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39996 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39997 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39998 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39999 usage.ads utils.c utils2.c validsw.adb validsw.ads
40000 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40001 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40002 xtreeprs.adb: Correct statements in comments about maintainership
40003 of GNAT.
40004
40005 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40006
40007 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40008 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40009 * gnatvsn.ads: Gnat_Version_String is now a function.
40010 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40011 copy the C version_string into a String and return it.
40012 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40013 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40014 Remove pragma Ident (Gnat_Version_String). If this was the
40015 sole use of package Gnatvsn, remove the with statement too.
40016 * gnat1drv.adb: Tweak -gnatv output.
40017
40018 2002-09-17 Richard Henderson <rth@redhat.com>
40019
40020 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40021 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40022 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40023 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40024 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40025 and real_2expN instead of a loop.
40026 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40027 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40028
40029 2002-08-25 Andre Leis <a.leis@gmx.net>
40030 David Billinghurst <David.Billinghurst@riotinto.com>
40031
40032 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40033
40034 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40035
40036 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40037 Remove $(CONFIG_H) dependency.
40038
40039 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40040
40041 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40042
40043 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40044
40045 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40046 xmalloc/strcpy.
40047 * misc.c (gnat_decode_option): Likewise.
40048
40049 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
40050
40051 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40052 function approach did not work well because of a side effect (the
40053 function call could reallocate the table which was being indexed
40054 using its result). Fixes ada/4851. [RESURRECTED]
40055
40056 2002-07-01 Roger Sayle <roger@eyesopen.com>
40057
40058 * ada/utils.c (builtin_function): Accept an additional parameter.
40059
40060 2002-06-28 Andreas Jaeger <aj@suse.de>
40061
40062 PR ada/7144
40063 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40064 <adi@thur.de>.
40065
40066 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40067
40068 * Makefile.in (SHELL): Set to @SHELL@.
40069
40070 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40071
40072 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40073 array size calculation.
40074
40075 2002-06-04 Andreas Jaeger <aj@suse.de>
40076
40077 * Make-lang.in (gnatbind): Readd rule that has been lost in last
40078 patch.
40079
40080 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
40081
40082 Merge from pch-branch:
40083
40084 * config-lang.in (gtfiles): Add ada-tree.h.
40085 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40086 (SET_TYPE_MODULUS): New.
40087 (SET_TYPE_INDEX): New.
40088 (SET_TYPE_DIGITS_VALUE): New.
40089 (SET_TYPE_RM_SIZE): New.
40090 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40091 (SET_TYPE_ADA_SIZE): New.
40092 (SET_TYPE_ACTUAL_BOUNDS): New.
40093 (SET_DECL_CONST_CORRESPONDING_VAR): New.
40094 (SET_DECL_ORIGINAL_FIELD): New.
40095 (TREE_LOOP_ID): Correct typo.
40096 * decl.c: Use new macros.
40097 * utils.c: Include debug.h, use new macros.
40098 * utils2.c: Use new macros.
40099
40100 * ada-tree.h: Update all macros for new tree description.
40101 (struct tree_loop_id): New.
40102 (union lang_tree_node): New.
40103 (struct lang_decl): New.
40104 (struct lang_type): New.
40105 * misc.c (gnat_mark_tree): Delete.
40106 (LANG_HOOKS_MARK_TREE): Delete.
40107 * trans.c (tree_transform): No longer any need to cast
40108 for TREE_LOOP_ID.
40109
40110 * utils.c (struct language_function): New dummy structure.
40111
40112 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40113 (misc.o): Likewise.
40114 (utils.o): Likewise; also gtype-ada.h.
40115 * Make-lang.in (gnat1): Add dependency on s-gtype.
40116 (gnatbind): Add dependency on $(CONFIG_H).
40117 * utils.c: Correct last #include.
40118 (stuct e_stack): Remove unnecessary 'static'.
40119 (mark_e_stack): Remove unused prototype.
40120
40121 * scn-nlit.adb: Remove whitespace after version number to
40122 keep lines under 80 chars.
40123 * snames.adb: Likewise.
40124 * treepr.ads: Likewise.
40125
40126 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40127 (misc.o): Likewise.
40128 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40129 * config-lang.in (gtfiles): New.
40130 * decl.c: Use gengtype for roots.
40131 * gigi.h: Use gengtype for roots.
40132 * trans.c: Use gengtype for roots.
40133 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
40134
40135 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
40136
40137 * misc.c (gnat_init): Adjust setting of internal_error_function.
40138
40139 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
40140
40141 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40142 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40143 gnat_ug_wnt.texi: Regenerate.
40144
40145 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
40146
40147 * 5ntaprop.adb (with System.OS_Primitives): Remove.
40148
40149 * cstreams.c (max_path_len): Move from here ...
40150 * adaint.c (__gnat_max_path_len): ... to here.
40151 * adaint.c (__gnat_max_path_len): Declare.
40152 * g-dirope.adb (Max_Path): Adjust.
40153 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40154 * i-cstrea.ads (max_path_len): Adjust.
40155 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40156 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40157
40158 * Makefile.in, Make-lang.in: Documentation is now built in
40159 Make-lang.in. Store Info and generated Texinfo files in the
40160 source directory.
40161 * gnat_ug.texi: Remove CVS keywords, correct version number.
40162 Set file name correctly.
40163
40164 * gnat_ug_*.texi: Add.
40165 * .cvsignore: Ignore generated Texinfo files.
40166
40167 2002-05-30 Zack Weinberg <zack@codesourcery.com>
40168
40169 * ada.h: Add MI guard macro.
40170 (SUBTYPE): Define constants with an anonymous enum, not static
40171 const variables.
40172 (IN): Cast constants to appropriate type before use.
40173
40174 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
40175
40176 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40177 (experimental)".
40178
40179 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40180
40181 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40182 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40183 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40184 (ALL_ADA_CFLAGS): Likewise.
40185 (ADA_INCLUDES): Likewise.
40186 Adapt for new working dir.
40187 (GNATBIND): Use Makefile.in version.
40188 (.SUFFIXES): Copy from Makefile.in.
40189 (ada-warn): Define.
40190 (.adb.o, .ads.o): Copy from Makefile.in.
40191 Added $(OUTPUT_OPTION).
40192 (GNAT1_C_OBJS): Moved from Makefile.in.
40193 Prefix with ada subdir.
40194 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40195 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40196 Adapt for new working dir.
40197 (EXTRA_GNATBIND_OBJS): Likewise.
40198 (ADA_BACKEND): Moved from Makefile.in.
40199 Renamed to avoid conflict with global BACKEND.
40200 Use that one.
40201 (TARGET_ADA_SRCS): Moved from Makefile.in.
40202 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40203 Use ADA_BACKEND.
40204 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40205 (ada_extra_files): Moved from Makefile.in.
40206 Prefix with ada subdir.
40207 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40208 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40209 (ada/nmake.ads): Likewise.
40210 (update-sources): Moved from Makefile.in.
40211 Prefix with ada subdir.
40212 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40213 (ADA_TREE_H): Likewise.
40214 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40215 (ada/memtrack.o): Likewise.
40216 (ada/adadecode.o): Likewise.
40217 Update dependencies.
40218 (ada/adaint.o): New.
40219 (ada/argv.o): Moved from Makefile.in.
40220 Prefix with ada subdir.
40221 Update dependencies.
40222 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40223 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40224 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40225 Prefix with ada subdir.
40226 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40227 (GNAT DEPENDENCIES): Regenerate.
40228 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40229 toplevel Makefile.in.
40230 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40231 (TARGET_ADA_SRCS): Removed.
40232 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40233 (GNATBIND_OBJS): Likewise.
40234 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40235 (BACKEND): Removed.
40236 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40237 (TREE_H): Likewise.
40238 (ada_extra_files): Likewise.
40239 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40240 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40241 (update-sources): Likewise.
40242 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40243 (ADA_TREE_H): Likewise.
40244 (adadecoce.o): Likewise.
40245 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40246 (GNAT DEPENDENCIES): Likewise.
40247
40248 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40249
40250 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40251 * Makefile.in: Likewise.
40252
40253 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40254
40255 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40256 Restore $(CONFIG_H) and prefix.o dependencies.
40257 (ada.stage[1-4]): Depend on stage?-start.
40258
40259 * Makefile.in (b_gnatb.c): Depend on interfac.o.
40260
40261 2002-05-02 Jim Wilson <wilson@redhat.com>
40262
40263 * utils.c (finish_record_type): Change record_size to record_type.
40264
40265 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
40266
40267 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40268 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40269 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40270
40271 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
40272
40273 * misc.c (gnat_parse_file): Update.
40274
40275 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
40276
40277 * misc.c (gnat_init): Don't set lang_attribute_common.
40278
40279 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
40280
40281 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40282
40283 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
40284
40285 * gnat_ug.texi: New file.
40286
40287 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
40288 instead of gfdl.texi
40289
40290 * xgnatug.adb, ug_words: New files.
40291
40292 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
40293 gnat_rm and gnat-style manuals.
40294
40295 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
40296
40297 * gigi.h (incomplete_type_error): Remove.
40298 * utils.c (incomplete_type_error): Remove.
40299
40300 2002-04-16 Mark Mitchell <mark@codesourcery.com>
40301
40302 * trans.c (tree_transform): Add has_scope argument to
40303 expand_start_stmt_expr.
40304
40305 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
40306
40307 * gigi.h (truthvalue_conversion): Rename.
40308 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
40309 * trans.c (tree_transform): Update.
40310 * utils2.c (truthvalue_conversion): Rename, update.
40311 (build_binary_op, build_unary_op): Update.
40312
40313 2002-04-04 Laurent Guerby <guerby@acm.org>
40314
40315 * make.adb: Implement -margs, remove restriction about file name placement.
40316 * makeusg.adb: Documentation update.
40317 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
40318 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
40319
40320 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
40321
40322 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
40323 (builtin_function): Similarly.
40324
40325 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
40326
40327 * decl.c (gnat_to_gnu_entity): Update.
40328 * gigi.h (mark_addressable): Rename.
40329 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
40330 * trans.c (tree_transform): Update.
40331 * utils.c (create_var_decl): Update.
40332 * util2.c (build_binary_op, build_unary_op,
40333 fill_vms_descriptor): Update.
40334 (mark_addressable): Rename, update.
40335
40336 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
40337
40338 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
40339 Rename.
40340 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
40341 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
40342 * trans.c (tree_transform, convert_with_check): Update.
40343 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
40344 Rename.
40345
40346 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
40347
40348 * gigi.h (finish_incomplete_decl): Rename.
40349 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
40350 * utils.c (gnat_init_decl_processing): Don't set hook.
40351 (finish_incomplete_decl): Rename.
40352
40353 2002-03-29 Andreas Schwab <schwab@suse.de>
40354
40355 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
40356 directory.
40357
40358 2001-03-28 Robert Dewar <dewar@gnat.com>
40359
40360 * checks.ads:
40361 (Remove_Checks): New procedure
40362
40363 * checks.adb:
40364 (Remove_Checks): New procedure
40365
40366 * exp_util.adb:
40367 Use new Duplicate_Subexpr functions
40368 (Duplicate_Subexpr_No_Checks): New procedure
40369 (Duplicate_Subexpr_No_Checks_Orig): New procedure
40370 (Duplicate_Subexpr): Restore original form (checks duplicated)
40371 (Duplicate_Subexpr): Call Remove_Checks
40372
40373 * exp_util.ads:
40374 (Duplicate_Subexpr_No_Checks): New procedure
40375 (Duplicate_Subexpr_No_Checks_Orig): New procedure
40376 Add 2002 to copyright notice
40377
40378 * sem_util.adb: Use new Duplicate_Subexpr functions
40379
40380 * sem_eval.adb:
40381 (Eval_Indexed_Component): This is the place to call
40382 Constant_Array_Ref and to replace the value. We simply merge
40383 the code of this function in here, since it is now no longer
40384 used elsewhere. This fixes the problem of the back end not
40385 realizing we were clever enough to see that this was
40386 constant.
40387 (Expr_Val): Remove call to Constant_Array_Ref
40388 (Expr_Rep_Val): Remove call to Constant_Array_Ref
40389 Minor reformatting
40390 (Constant_Array_Ref): Deal with string literals (patch
40391 suggested by Zack Weinberg on the gcc list)
40392
40393 2001-03-28 Ed Schonberg <schonber@gnat.com>
40394
40395 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
40396 Duplicate_Subexpr_Move_Checks.
40397
40398 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
40399 Duplicate_Subexpr_Move_Checks.
40400
40401 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
40402 value of array exists before retrieving it (it may a private
40403 protected component in a function).
40404
40405 2002-03-28 Geert Bosch <bosch@gnat.com>
40406
40407 * prj-pp.adb : New file.
40408
40409 * prj-pp.ads : New file.
40410
40411 2002-03-28 Andreas Jaeger <aj@suse.de>
40412
40413 * Makefile.in (stamp-sdefault): Fix path for Makefile.
40414
40415 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
40416
40417 * misc.c (gnat_expand_expr): Move prototype.
40418
40419 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
40420
40421 * misc.c (insert_default_attributes): Remove.
40422
40423 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
40424
40425 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
40426 (gnat_init): Don't set hook.
40427 (gnat_expand_expr): Fix prototype.
40428
40429 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
40430
40431 * misc.c (ggc_p): Remove.
40432
40433 2002-03-27 Geert Bosch <bosch@gnat.com>
40434
40435 * prj-makr.ads, prj-makr.adb : New files.
40436
40437 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
40438
40439 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
40440 (lang_mark_tree): Make static, rename.
40441
40442 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
40443
40444 * misc.c (maybe_build_cleanup): Remove.
40445
40446 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
40447
40448 * gigi.h (yyparse): Remove.
40449
40450 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
40451
40452 From Ben Brosgol <brosgol@gnat.com>
40453 * gnat_rm.texi: Sync with ACT version.
40454
40455 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
40456
40457 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
40458 (gnat_init): Remove old hook.
40459
40460 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
40461
40462 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
40463 (yyparse): Rename gnat_parse_file.
40464
40465 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
40466
40467 Delete all lines containing "$Revision:".
40468 * xeinfo.adb: Don't look for revision numbers.
40469 * xnmake.adb: Likewise.
40470 * xsinfo.adb: Likewise.
40471 * xsnames.adb: Likewise.
40472 * xtreeprs.adb: Likewise.
40473
40474 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40475
40476 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
40477 gnat_tree_code_name): Delete.
40478 (tree_code_type, tree_code_length, tree_code_name): Define.
40479 (gnat_init): Don't try to copy into the various tree_code
40480 arrays.
40481
40482 2002-03-11 Richard Henderson <rth@redhat.com>
40483
40484 * Makefile.in (.NOTPARALLEL): Add fake tag.
40485
40486 2002-03-07 Geert Bosch <bosch@gnat.com>
40487
40488 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
40489 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
40490 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
40491 switch-m.adb, switch-m.ads : New files.
40492
40493 2002-03-07 Geert Bosch <bosch@gnat.com>
40494
40495 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
40496 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
40497 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
40498 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
40499 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
40500 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
40501 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
40502 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
40503 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
40504 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
40505 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
40506 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
40507 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
40508 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
40509 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
40510 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
40511 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
40512 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
40513 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
40514 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
40515 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
40516 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
40517 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
40518 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
40519 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
40520 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
40521 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
40522 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
40523 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
40524 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
40525 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
40526 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
40527 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
40528 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
40529 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
40530 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
40531 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
40532 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
40533 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
40534 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
40535 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
40536 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
40537 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
40538 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
40539 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
40540 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
40541 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
40542 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
40543 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
40544 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
40545 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
40546 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
40547 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
40548 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
40549 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
40550 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
40551 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
40552 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
40553 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
40554 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
40555 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
40556 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
40557 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
40558 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
40559 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
40560 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
40561 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
40562 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
40563 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
40564 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
40565 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
40566 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
40567 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
40568 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
40569 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
40570 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40571 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
40572 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
40573 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
40574 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
40575 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
40576 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
40577 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
40578 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
40579 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
40580 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
40581 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
40582 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
40583 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
40584 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
40585 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
40586 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
40587 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
40588 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
40589 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
40590 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
40591 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
40592
40593 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
40594 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
40595 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
40596 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
40597
40598 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
40599 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
40600
40601 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
40602 to mdll-fil.ad[bs] and mdll-util.ad[bs]
40603
40604 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
40605 from mdllfile.ad[bs] and mdlltool.ad[bs]
40606
40607 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40608
40609 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
40610 lieu of explicit sizeof/sizeof.
40611
40612 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
40613
40614 * misc.c (copy_lang_decl): Remove.
40615
40616 2002-02-27 Zack Weinberg <zack@codesourcery.com>
40617
40618 * misc.c: Delete traditional-mode-related code copied from the
40619 C front end but not used, or used only to permit the compiler
40620 to link.
40621
40622 2002-02-07 Richard Henderson <rth@redhat.com>
40623
40624 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
40625 * adaint.h (__gnat_to_gm_time): Update prototype.
40626
40627 2002-01-30 Richard Henderson <rth@redhat.com>
40628
40629 * trans.c (tree_transform) [N_Loop_Statement]: Use
40630 expand_exit_loop_top_cond.
40631
40632 2001-12-23 Richard Henderson <rth@redhat.com>
40633
40634 * utils.c (end_subprog_body): Push GC context around
40635 rest_of_compilation for nested functions.
40636
40637 2001-12-23 Richard Henderson <rth@redhat.com>
40638
40639 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
40640
40641 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
40642
40643 * gnat-style.texi (Declarations and Types): Remove ancient style
40644 rule which was mandated by code generation issues.
40645
40646 * gnat-style.texi (header): Add @dircategory, @direntry.
40647 (title page): Remove date.
40648 (general) Add @./@: where approriate, and two spaces after the
40649 full stop at the end of a sentence. Use @samp markup when
40650 referring concrete lexical entities (keywords, attribute names
40651 etc.), and @syntax for ARM grammar elements. Use @r for English
40652 text in comments. Use @emph for emphasis. Change "if-statements"
40653 etc. to "if statements" (without @samp). Break long lines. Make
40654 casing of section names consistent.
40655 (Identifiers): Use @samp markup for variable names.
40656 (Comments): Use @samp markup for comment characters. Line-end
40657 comments may follow any Ada code, not just statements. Fix
40658 misspelling of "Integer" as "integer".
40659 (Loop statements): Do not use variable name "I", use "J".
40660 (Subprogram Declarations): Document alignment.
40661 (Subprogram Bodies, Block statements): Document empty line before
40662 "begin".
40663
40664 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
40665
40666 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40667 function approach did not work well because of a side effect (the
40668 function call could reallocate the table which was being indexed
40669 using its result). Fixes ada/4851.
40670
40671 2001-12-19 Robert Dewar <dewar@gnat.com>
40672
40673 * bindgen.adb: Minor reformatting
40674
40675 * cstand.adb: Minor reformatting
40676
40677 * fmap.adb: Minor reformatting
40678 Change name from Add for Add_To_File_Map (Add is much too generic)
40679 Change Path_Name_Of to Mapped_Path_Name
40680 Change File_Name_Of to Mapped_File_Name
40681 Fix copyright dates in header
40682
40683 * fmap.ads:
40684 Change name from Add for Add_To_File_Map (Add is much too generic)
40685 Change Path_Name_Of to Mapped_Path_Name
40686 Change File_Name_Of to Mapped_File_Name
40687 Fix copyright dates in header
40688
40689 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
40690 Add use clause for Fmap.
40691
40692 * make.adb: Minor reformatting
40693
40694 * osint.adb: Minor reformatting. Change of names in Fmap.
40695 Add use clause for Fmap.
40696
40697 * prj-env.adb: Minor reformatting
40698
40699 * prj-env.ads: Minor reformatting
40700
40701 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
40702 error found (there were odd exceptions to this general rule in
40703 -gnatec/-gnatem processing)
40704
40705 2001-12-19 Olivier Hainque <hainque@gnat.com>
40706
40707 * raise.c (__gnat_eh_personality): Exception handling personality
40708 routine for Ada. Still in rough state, inspired from the C++ version
40709 and still containing a bunch of debugging artifacts.
40710 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
40711 inspired from the C++ library.
40712
40713 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
40714 exception handling integration.
40715
40716 2001-12-19 Arnaud Charlet <charlet@gnat.com>
40717
40718 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
40719 (HIE_SOURCES): Add s-secsta.ad{s,b}.
40720 (HIE_OBJS): Add s-fat*.o
40721 (RAVEN_SOURCES): Remove files that are no longer required. Add
40722 interrupt handling files.
40723 (RAVEN_MOD): Removed, no longer needed.
40724
40725 2001-12-19 Robert Dewar <dewar@gnat.com>
40726
40727 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
40728 Add 2001 to copyright date
40729
40730 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
40731 need to force universal inlining for these cases.
40732
40733 2001-12-19 Arnaud Charlet <charlet@gnat.com>
40734
40735 * s-taprob.adb: Minor clean ups so that this unit can be used in
40736 Ravenscar HI.
40737
40738 * exp_ch7.adb: Allow use of secondary stack in HI mode.
40739 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
40740
40741 2001-12-19 Vincent Celier <celier@gnat.com>
40742
40743 * prj-tree.ads (Project_Node_Record): Add comments for components
40744 Pkg_Id and Case_Insensitive.
40745
40746 2001-12-19 Pascal Obry <obry@gnat.com>
40747
40748 * g-socket.adb: Minor reformatting. Found while reading code.
40749
40750 2001-12-19 Robert Dewar <dewar@gnat.com>
40751
40752 * prj-tree.ads: Minor reformatting
40753
40754 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
40755
40756 * config-lang.in (diff_excludes): Remove.
40757
40758 2001-12-17 Ed Schonberg <schonber@gnat.com>
40759
40760 * sem_res.adb (Resolve_Selected_Component): do not generate a
40761 discriminant check if the selected component is a component of
40762 the argument of an initialization procedure.
40763
40764 * trans.c (tree_transform, case of arithmetic operators): If result
40765 type is private, the gnu_type is the base type of the full view,
40766 given that the full view itself may be a subtype.
40767
40768 2001-12-17 Robert Dewar <dewar@gnat.com>
40769
40770 * sem_res.adb: Minor reformatting
40771
40772 * trans.c (tree_transform, case N_Real_Literal): Add missing third
40773 parameter in call to Machine (unknown horrible effects from this
40774 omission).
40775
40776 * urealp.h: Add definition of Round_Even for call to Machine
40777 Add third parameter for Machine
40778
40779 2001-12-17 Ed Schonberg <schonber@gnat.com>
40780
40781 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
40782 predefined units in No_Run_Time mode.
40783
40784 2001-12-17 Richard Kenner <kenner@gnat.com>
40785
40786 * misc.c (insn-codes.h): Now include.
40787
40788 2001-12-17 Olivier Hainque <hainque@gnat.com>
40789
40790 * a-except.adb: Preparation work for future integration of the GCC 3
40791 exception handling mechanism
40792 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
40793 to factorize previous code sequences and make them externally callable,
40794 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
40795 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
40796 Use the new notification routines.
40797
40798 2001-12-17 Emmanuel Briot <briot@gnat.com>
40799
40800 * prj-tree.ads (First_Choice_Of): Document the when others case
40801
40802 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40803
40804 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
40805 HI-E mode, in order to support Ravenscar profile properly.
40806
40807 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
40808 mode on 32 bits targets.
40809
40810 2001-12-17 Vincent Celier <celier@gnat.com>
40811
40812 * fmap.adb: Initial version.
40813
40814 * fmap.ads: Initial version.
40815
40816 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
40817 If search is successfully done, add to mapping.
40818
40819 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
40820
40821 * make.adb:
40822 (Gnatmake): Add new local variable Mapping_File_Name.
40823 Create mapping file when using project file(s).
40824 Delete mapping file before exiting.
40825
40826 * opt.ads (Mapping_File_Name): New variable
40827
40828 * osint.adb (Find_File): Use path name found in mapping, if any.
40829
40830 * prj-env.adb (Create_Mapping_File): New procedure
40831
40832 * prj-env.ads (Create_Mapping_File): New procedure.
40833
40834 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
40835 (Mapping_File)
40836
40837 * usage.adb: Add entry for new switch -gnatem.
40838
40839 * Makefile.in: Add dependencies for fmap.o.
40840
40841 2001-12-17 Ed Schonberg <schonber@gnat.com>
40842
40843 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
40844 is a package instantiation rewritten as a package body.
40845 (Install_Withed_Unit): Undo previous change, now redundant.
40846
40847 2001-12-17 Gary Dismuke <dismukes@gnat.com>
40848
40849 * layout.adb:
40850 (Compute_Length): Move conversion to Unsigned to callers.
40851 (Get_Max_Size): Convert Len expression to Unsigned after calls to
40852 Compute_Length and Determine_Range.
40853 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
40854 Compute_Length and Determine_Range.
40855 Above changes fix problem with length computation for supernull arrays
40856 where Max (Len, 0) wasn't getting applied due to the Unsigned
40857 conversion used by Compute_Length.
40858
40859 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40860
40861 * rtsfind.ads:
40862 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
40863 System.Secondary_Stack.
40864 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
40865 in HI-E mode.
40866 Remove unused entity RE_Exception_Data.
40867
40868 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
40869
40870 * rident.ads (No_Secondary_Stack): New restriction.
40871
40872 2001-12-17 Joel Brobecker <brobecke@gnat.com>
40873
40874 * gnat_rm.texi: Fix minor typos. Found while reading the section
40875 regarding "Bit_Order Clauses" that was sent to a customer.
40876 Very interesting documentation!
40877
40878 2001-12-17 Robert Dewar <dewar@gnat.com>
40879
40880 * sem_case.adb (Choice_Image): Avoid creating improper character
40881 literal names by using the routine Set_Character_Literal_Name. This
40882 fixes bombs in certain error message cases.
40883
40884 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40885
40886 * a-reatim.adb: Minor reformatting.
40887
40888 2001-12-17 Ed Schonberg <schonber@gnat.com>
40889
40890 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
40891 case where the formal is an extension of another formal in the current
40892 unit or in a parent generic unit.
40893
40894 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40895
40896 * s-tposen.adb: Update comments. Minor reformatting.
40897 Minor code clean up.
40898
40899 * s-tarest.adb: Update comments. Minor code reorganization.
40900
40901 2001-12-17 Gary Dismukes <dismukes@gnat.com>
40902
40903 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
40904 when Java_VM.
40905
40906 2001-12-17 Robert Dewa <dewar@gnat.com>
40907
40908 * exp_attr.adb: Minor reformatting
40909
40910 2001-12-17 Ed Schonberg <schonber@gnat.com>
40911
40912 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
40913 derivations nested within a child unit: verify that the parent
40914 type is declared in an outer scope.
40915
40916 2001-12-17 Robert Dewar <dewar@gnat.com>
40917
40918 * sem_ch12.adb: Minor reformatting
40919
40920 2001-12-17 Ed Schonberg <schonber@gnat.com>
40921
40922 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
40923 warning if current unit is a predefined one, from which bodies may
40924 have been deleted.
40925
40926 2001-12-17 Robert Dewar <dewar@gnat.com>
40927
40928 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
40929 Fix header format. Add 2001 to copyright date.
40930
40931 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
40932 which caused CE during compilation if checks were enabled.
40933
40934 2001-12-17 Vincent Celier <celier@gnat.com>
40935
40936 * make.adb:
40937 (Switches_Of): New function
40938 (Test_If_Relative_Path): New procedure
40939 (Add_Switches): Use new function Switches_Of
40940 (Collect_Arguments_And_Compile): Use new function Switches_Of.
40941 When using a project file, test if there are any relative
40942 search path. Fail if there are any.
40943 (Gnatmake): Only add switches for the primary directory when not using
40944 a project file. When using a project file, change directory to the
40945 object directory of the main project file. When using a project file,
40946 test if there are any relative search path. Fail if there are any.
40947 When using a project file, fail if specified executable is relative
40948 path with directory information, and prepend executable, if not
40949 specified as an absolute path, with the exec directory. Make sure
40950 that only one -o switch is transmitted to the linker.
40951
40952 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
40953
40954 * prj-nmsc.adb:
40955 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40956 when using a non standard naming scheme.
40957 (Check_Ada_Naming_Scheme): Make sure that error messages
40958 do not raise exceptions.
40959 (Is_Illegal_Append): Return True if there is no dot in the suffix.
40960 (Language_Independent_Check): Check the exec directory.
40961
40962 * prj.adb (Project_Empty): Add new component Exec_Directory
40963
40964 * prj.ads:
40965 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40966 (Project_Data): Add component Exec_Directory
40967
40968 * snames.adb: Updated to match snames.ads revision 1.215
40969
40970 * snames.ads: Added Exec_Dir
40971
40972 2001-12-17 Robert Dewar <dewar@gnat.com>
40973
40974 * make.adb: Minor reformatting
40975
40976 * prj-nmsc.adb: Minor reformatting
40977
40978 * snames.adb: Updated to match snames.ads
40979
40980 * snames.ads: Alphebetize entries for project file
40981
40982 2001-12-17 Ed Schonberg <schonber@gnat.com>
40983
40984 * trans.c (process_freeze_entity): Do nothing if the entity is a
40985 subprogram that was already elaborated.
40986
40987 2001-12-17 Richard Kenner <kenner@gnat.com>
40988
40989 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
40990 and Esize if object is referenced via pointer.
40991
40992 2001-12-17 Ed Schonberg <schonber@gnat.com>
40993
40994 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
40995 is discrete before analyzing choices.
40996
40997 2001-12-17 Joel Brobecker <brobecke@gnat.com>
40998
40999 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41000 containing the name of the Ada Main Program. This string is mainly
41001 intended for the debugger.
41002 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41003
41004 2001-12-17 Robert Dewar <dewar@gnat.com>
41005
41006 * ali.adb: Set new Dummy_Entry field in dependency entry
41007
41008 * ali.ads: Add Dummy_Entry field to source dependency table
41009
41010 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41011
41012 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41013
41014 * lib-writ.ads: Document dummy D lines for missing files.
41015
41016 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41017
41018 2001-12-17 Robert Dewar <dewar@gnat.com>
41019
41020 * ali.adb: Type reference does not reset current file.
41021
41022 * ali.adb: Recognize and scan renaming reference
41023
41024 * ali.ads: Add spec for storing renaming references.
41025
41026 * lib-xref.ads: Add documentation for handling of renaming references
41027
41028 * lib-xref.adb: Implement output of renaming reference.
41029
41030 * checks.adb:
41031 (Determine_Range): Document local variables
41032 (Determine_Range): Make sure Hbound is initialized. It looks as though
41033 there could be a real problem here with an uninitialized reference
41034 to Hbound, but no actual example of failure has been found.
41035
41036 2001-12-17 Laurent Pautet <pautet@gnat.com>
41037
41038 * g-socket.ads:
41039 Fix comment of Shutdown_Socket and Close_Socket. These functions
41040 should not fail silently because if they are called twice, this
41041 probably means that there is a race condition in the user program.
41042 Anyway, this behaviour is consistent with the rest of this unit.
41043 When an error occurs, an exception is raised with the error message
41044 as exception message.
41045
41046 2001-12-17 Robert Dewar <dewar@gnat.com>
41047
41048 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41049 that it happens before modification of Sloc values for -gnatD.
41050
41051 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41052 so that it happens before modification of Sloc values for -gnatD.
41053
41054 * switch.adb: Minor reformatting
41055
41056 2001-12-15 Richard Henderson <rth@redhat.com>
41057
41058 * sem_ch7.adb: Wrap comment.
41059
41060 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41061
41062 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41063 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41064 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41065 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41066 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41067 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41068 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41069 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41070 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41071 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41072 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41073 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41074 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41075 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41076 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41077 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41078 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41079 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41080 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41081 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41082 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41083 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41084 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41085 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41086 spelling errors.
41087
41088 2001-12-14 Vincent Celier <celier@gnat.com>
41089
41090 * osint.adb(Create_Debug_File): When an object file is specified,
41091 put the .dg file in the same directory as the object file.
41092
41093 2001-12-14 Robert Dewar <dewar@gnat.com>
41094
41095 * osint.adb: Minor reformatting
41096
41097 * lib-xref.adb (Output_Instantiation): New procedure to generate
41098 instantiation references.
41099
41100 * lib-xref.ads: Add documentation of handling of generic references.
41101
41102 * ali.adb (Read_Instantiation_Ref): New procedure to read
41103 instantiation references
41104
41105 * ali.ads: Add spec for storing instantiation references
41106
41107 * bindusg.adb: Minor reformatting
41108
41109 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41110
41111 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41112
41113 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41114
41115 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41116
41117 * csets.ads:
41118 Fix header format
41119 Add 2001 to copyright date
41120 Add entry for Latin-5 (Cyrillic ISO-8859-5)
41121
41122 2001-12-14 Matt Gingell <gingell@gnat.com>
41123
41124 * adaint.c: mktemp is a macro on Lynx and can not be used as an
41125 expression.
41126
41127 2001-12-14 Richard Kenner <kenner@gnat.com>
41128
41129 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41130 if operand is CONSTRUCTOR.
41131
41132 2001-12-14 Ed Schonberg <schonber@gnat.com>
41133
41134 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41135 before emiting check on right-hand side, so that exception information
41136 is correct.
41137
41138 2001-12-14 Richard Kenner <kenner@gnat.com>
41139
41140 * utils.c (create_var_decl): Throw away initializing expression
41141 if just annotating types and non-constant.
41142
41143 2001-12-14 Vincent Celier <celier@gnat.com>
41144
41145 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41146 Default_Ada_...
41147
41148 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41149 Remove functions.
41150 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41151
41152 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41153 Remove functions.
41154 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41155
41156 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41157
41158 * ChangeLog: Remove piece of diff output.
41159
41160 2001-12-14 Geert Bosch <bosch@gnat.com>
41161
41162 * config-lang.in: Update copyright notice
41163
41164 * layout.adb: Remove commented out code.
41165
41166 * mdllfile.ads: Update copyright notice. Fix header format.
41167
41168 * sem_case.ads: Likewise.
41169
41170 * sem_ch3.adb: Minor reformatting.
41171
41172 2001-12-12 Geert Bosch <bosch@gnat.com>
41173
41174 * freeze.ads: Update copyright date.
41175
41176 * g-comlin.ads: Minor reformatting.
41177
41178 * gnat-style.texi: Fix typo.
41179
41180 2001-12-12 Geert Bosch <bosch@gnat.com>
41181
41182 * einfo.h: Regenerate.
41183
41184 2001-12-12 Ed Schonberg <schonber@gnat.com>
41185
41186 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41187 on known node types, rather than untyped fields. Further cleanups.
41188
41189 2001-12-12 Robert Dewar <dewar@gnat.com>
41190
41191 * sem_ch12.adb:
41192 (Save_Entity_Descendant): Minor comment update.
41193 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41194 of an N_Attribute_Reference node. As per note below, this does not
41195 eliminate need for Associated_Node in attribute ref nodes.
41196 (Associated_Node): Documentation explicitly mentions attribute
41197 reference nodes, since this field is used in such nodes.
41198
41199 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41200
41201 2001-12-12 Robert Dewar <dewar@gnat.com>
41202
41203 * s-stalib.adb: Add more comments on with statements being needed
41204
41205 * par-ch12.adb: Minor reformatting
41206
41207 * prj-dect.ads: Fix copyright header
41208
41209 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41210 inputs fit in 32 bits, but the result still overflows.
41211
41212 * s-fatgen.ads: Minor comment improvement
41213
41214 2001-12-12 Ed Schonberg <schonber@gnat.com>
41215
41216 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41217 formal derived type, look for an inherited component from the full
41218 view of the parent, if any.
41219
41220 2001-12-12 Robert Dewar <dewar@gnat.com>
41221
41222 * checks.ads (Apply_Alignment_Check): New procedure.
41223
41224 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41225 ensure that the alignment of objects with address clauses is
41226 appropriate, and raise PE if not.
41227
41228 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41229 Exp_Pakd.Known_Aligned_Enough
41230
41231 * mdllfile.ads: Minor reformatting
41232
41233 * mlib-fil.ads: Minor reformatting
41234
41235 2001-12-12 Ed Schonberg <schonber@gnat.com>
41236
41237 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41238 fix to any component reference if enclosing record has non-standard
41239 representation.
41240
41241 2001-12-12 Vincent Celier <celier@gnat.com>
41242
41243 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41244 Iteration
41245
41246 2001-12-12 Ed Schonberg <schonber@gnat.com>
41247
41248 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41249 sem_attr.
41250
41251 2001-12-12 Robert Dewar <dewar@gnat.com>
41252
41253 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41254
41255 2001-12-12 Emmanuel Briot <briot@gnat.com>
41256
41257 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41258 and it adds dependencies to system.io.
41259
41260 2001-12-12 Pascal Obry <obry@gnat.com>
41261
41262 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41263 variable name.
41264
41265 2001-12-11 Ed Schonberg <schonber@gnat.com>
41266
41267 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41268 that is the parent of other generics, the instance body replaces the
41269 instance node. Retrieve the instance of the spec, which is the one
41270 that is visible in clients and within the body.
41271
41272 2001-12-11 Vincent Celier <celier@gnat.com>
41273
41274 * gnatmain.adb: Initial version.
41275
41276 * gnatmain.ads: Initial version.
41277
41278 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41279
41280 * snames.adb: Updated to match snames.ads.
41281
41282 * snames.ads: Added Gnatstub.
41283
41284 2001-12-11 Vincent Celier <celier@gnat.com>
41285
41286 * prj-attr.adb (Initialization_Data): Change name from
41287 Initialisation_Data.
41288
41289 2001-12-11 Emmanuel Briot <briot@gnat.com>
41290
41291 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
41292 + and * applied to backslashed expressions like \r.
41293
41294 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
41295
41296 * g-os_lib.ads: String_List type added, Argument_List type is now
41297 subtype of String_List.
41298
41299 2001-12-11 Robert Dewar <dewar@gnat.com>
41300
41301 * g-os_lib.ads: Change copyright to FSF
41302 Add comments for String_List type
41303
41304 2001-12-11 Vincent Celier <celier@gnat.com>
41305
41306 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
41307 string to the buffer).
41308
41309 2001-12-11 Ed Schonberg <schonber@gnat.com>
41310
41311 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
41312 sem_attr.
41313
41314 * sem_attr.adb: Simplify previous fix for Address.
41315 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
41316 to avoid anomalies where the bound of the type appears to raise
41317 constraint error.
41318
41319 2001-12-11 Robert Dewar <dewar@gnat.com>
41320
41321 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
41322 handled.
41323
41324 2001-12-11 Ed Schonber <schonber@gnat.com>
41325
41326 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
41327 renamed unit before checking for recursive instantiations.
41328
41329 2001-12-11 Emmanuel Briot <briot@gnat.com>
41330
41331 * prj.ads: Add comments for some of the fields.
41332
41333 2001-12-11 Robert Dewar <dewar@gnat.com>
41334
41335 * lib-xref.adb (Output_Refs): Don't output type references outside
41336 the main unit if they are not otherwise referenced.
41337
41338 2001-12-11 Ed Schonberg <schonber@gnat.com>
41339
41340 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
41341 code and diagnose additional illegal uses
41342
41343 * sem_util.adb (Is_Object_Reference): An indexed component is an
41344 object only if the prefix is.
41345
41346 2001-12-11 Vincent Celier <celier@gnat.com>
41347
41348 * g-diopit.adb: Initial version.
41349
41350 * g-diopit.ads: Initial version.
41351
41352 * g-dirope.adb:
41353 (Expand_Path): Avoid use of Unbounded_String
41354 (Find, Wildcard_Iterator): Moved to child package Iteration
41355
41356 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
41357
41358 2001-12-11 Robert Dewar <dewar@gnat.com>
41359
41360 * sem_attr.adb: Minor reformatting
41361
41362 2001-12-11 Ed Schonberg <schonber@gnat.com>
41363
41364 * sem_ch3.adb: Clarify some ???.
41365
41366 2001-12-11 Robert Dewar <dewar@gnat.com>
41367
41368 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
41369 Exp_Pakd.Known_Aligned_Enough
41370
41371 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
41372 version is moved to Exp_Ch13.
41373
41374 2001-12-11 Robert Dewar <dewar@gnat.com>
41375
41376 * einfo.ads: Minor reformatting
41377
41378 * exp_ch5.adb: Add comment for previous.change
41379
41380 * ali.adb: New interface for extended typeref stuff.
41381
41382 * ali.ads: New interface for typeref stuff.
41383
41384 * checks.adb (Apply_Alignment_Check): New procedure.
41385
41386 * debug.adb: Add -gnatdM for modified ALI output
41387
41388 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
41389
41390 * lib-xref.adb: Extend generation of <..> notation to cover
41391 subtype/object types. Note that this is a complete rewrite,
41392 getting rid of the very nasty quadratic algorithm previously
41393 used for derived type output.
41394
41395 * lib-xref.ads: Extend description of <..> notation to cover
41396 subtype/object types. Uses {..} for these other cases.
41397 Also use (..) for pointer types.
41398
41399 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
41400
41401 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
41402 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
41403
41404 2001-12-11 Vincent Celier <celier@gnat.com>
41405
41406 * gnatcmd.adb:
41407 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
41408 Changed /BIND_ONLY to /ACTIONS=BIND
41409 Changed /LINK_ONLY to /ACTIONS=LINK
41410
41411 2001-12-11 Ed Schonberg <schonber@gnat.com>
41412
41413 * sem_ch8.adb (Find_Selected_Component): improved search for a
41414 candidate package in case of error.
41415
41416 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
41417 chain back on scope stack before reinstalling use clauses.
41418
41419 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
41420 is enabled, do not kill the code for the condition, to preserve
41421 warning.
41422
41423 2001-12-11 Robert Dewar <dewar@gnat.com>
41424
41425 * checks.adb (Insert_Valid_Check): Apply validity check to expression
41426 of conversion, not to result of conversion.
41427
41428 2001-12-11 Ed Schonberg <schonber@gnat.com>
41429
41430 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
41431 before freezing parent. If the declarations are mutually recursive,
41432 an access to the current record type may be frozen before the
41433 derivation is complete.
41434
41435 2001-12-05 Vincent Celier <celier@gnat.com>
41436
41437 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
41438 -c /COMPILE_ONLY, -l /LINK_ONLY
41439
41440 * opt.ads:
41441 (Bind_Only): New Flag
41442 (Link_Only): New flag
41443
41444 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
41445 and -l (Link_Only)
41446
41447 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
41448
41449 * make.adb:
41450 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
41451 (Gnatmake): Set the step flags. Only perform a step if the
41452 corresponding step flag is True.
41453 (Scan_Make_Arg): Reset the bind and link step flags when -u
41454 or -gnatc has been specified.
41455
41456 2001-12-05 Ed Schonberg <schonber@gnat.com>
41457
41458 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
41459 get bounds from right operand.
41460
41461 * sem_eval.adb: Minor reformatting
41462
41463 * exp_util.adb (Make_Literal_Range): use bound of literal rather
41464 than Index'First, its lower bound may be different from 1.
41465
41466 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
41467 and C48009J
41468
41469 2001-12-05 Vincent Celier <celier@gnat.com>
41470
41471 * prj-nmsc.adb Minor reformatting
41472
41473 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
41474 set and libraries are not supported.
41475
41476 2001-12-05 Ed Schonberg <schonber@gnat.com>
41477
41478 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
41479 private view explicitly, so the back-end can treat as a global
41480 when appropriate.
41481
41482 2001-12-05 Ed Schonberg <schonber@gnat.com>
41483
41484 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
41485 unit, always replace instance node with new body, for ASIS use.
41486
41487 2001-12-05 Vincent Celier <celier@gnat.com>
41488
41489 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
41490 libraries are not supported and both attributes Library_Name and
41491 Library_Dir are specified.
41492
41493 * prj-proc.adb (Expression): Set location of Result to location of
41494 first term.
41495
41496 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
41497 (prj-nmsc is now importing MLib.Tgt)
41498
41499 * prj-proc.adb: Put the change indicated above that was forgotten.
41500
41501 2001-12-05 Robert Dewar <dewar@gnat.com>
41502
41503 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
41504
41505 2001-12-05 Ed Schonberg <schonber@gnat.com>
41506
41507 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
41508 constraint, introduce explicit subtype declaration and derive from it.
41509
41510 * sem_ch3.adb: Minor reformatting
41511
41512 2001-12-05 Robert Dewar <dewar@gnat.com>
41513
41514 * checks.adb (Determine_Range): Increase cache size for checks.
41515 Minor reformatting
41516
41517 * exp_ch6.adb: Minor reformatting
41518 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
41519 a parameter whose root type is System.Address, since treating such
41520 subprograms as pure in the code generator is almost surely a mistake
41521 that will lead to unexpected results.
41522
41523 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
41524 change handling of conversions.
41525
41526 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
41527
41528 2001-12-05 Ed Schonberg <schonber@gnat.com>
41529
41530 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
41531 aggregate with static wrong size, attach generated Raise node to
41532 declaration.
41533
41534 2001-12-05 Robert Dewar <dewar@gnat.com>
41535
41536 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
41537 Fixes compilation abandoned bomb in B24009B.
41538
41539 2001-12-05 Ed Schonberg <schonber@gnat.com>
41540
41541 * sem_ch12.adb:
41542 Document use of Associated_Node on Selected_Components.
41543 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
41544 to clarify use of untyped descendant fields.
41545
41546 2001-12-05 Robert Dewar <dewar@gnat.com>
41547
41548 * prj-dect.ads: Add ??? comment
41549 Add 2001 to copyright notice (was not done in after all)
41550
41551 * prj-part.adb: Minor reformatting. Reword one awkward error message.
41552
41553 * prj.ads: Minor reformatting throughout, and add some ??? comments
41554
41555 * snames.ads: Minor reformatting
41556
41557 2001-12-05 Geert Bosch <bosch@gnat.com>
41558
41559 * snames.adb: Autoupdate
41560
41561 2001-12-05 Vincent Celier <celier@gnat.com>
41562
41563 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
41564
41565 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
41566
41567 * prj-env.adb: Minor comment changes (modifying -> extends).
41568
41569 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
41570
41571 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
41572 Tok_Extends.
41573
41574 * prj.adb (Initialize): Change Modifying to Extends.
41575
41576 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
41577
41578 * prj.ads: Minor comment change (Modifying -> extending).
41579
41580 * snames.ads: Change modifying to extends.
41581
41582 2001-12-05 Robert Dewar <dewar@gnat.com>
41583
41584 * sem_warn.adb: Remove stuff for conditionals, we are not going to
41585 do this after all.
41586
41587 * sem_warn.ads: Remove stuff for conditionals, we are not going to
41588 do this after all. Add 2001 to copyright notice
41589
41590 2001-12-04 Geert Bosch <bosch@gnat.com>
41591
41592 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
41593
41594 2001-12-04 Robert Dewar <dewar@gnat.com>
41595
41596 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
41597 location if we already have errors. Stops some cases of cascaded
41598 errors.
41599
41600 * errout.adb: Improve comment.
41601
41602 2001-12-04 Robert Dewar <dewar@gnat.com>
41603
41604 * sem_ch12.adb:
41605 (Analyze_Formal_Type_Definition): Defend against Error.
41606 (Analyze_Formal_Subprogram): Defend against Error.
41607
41608 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
41609 remove following semicolon if present. Removes cascaded error.
41610
41611 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
41612
41613 * bindgen.adb:
41614 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
41615 exceptions equals 0.
41616 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
41617 Fixes PIWG E tests (which have to be run with -gnatL).
41618
41619 2001-12-04 Robert Dewar <dewar@gnat.com>
41620
41621 * einfo.ads: Minor reformatting
41622
41623 2001-12-04 Ed Schonberg <schonber@gnat.com>
41624
41625 * einfo.ads: Block_Node points to the identifier of the block, not to
41626 the block node itself, to preserve the link when the block is
41627 rewritten, e.g. within an if-statement with a static condition.
41628
41629 * inline.adb (Cleanup_Scopes): recover block statement from block
41630 entity using new meaning of Block_Node.
41631
41632 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
41633 identifier of block node, rather than to node itself.
41634
41635 2001-12-04 Gary Dismukes <dismukes@gnat.com>
41636
41637 * layout.adb:
41638 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
41639 (Discrimify): Go back to setting the Etypes of the selected component
41640 because the Vname component does not exist at this point and will
41641 fail name resolution. Also set Analyzed.
41642 Remove with and use of Sem_Res.
41643
41644 2001-12-04 Arnaud Charlet <charlet@gnat.com>
41645
41646 * Makefile.in: (HIE_SOURCES): add s-fat*.
41647
41648 2001-12-04 Robert Dewar <dewar@gnat.com>
41649
41650 * sem_attr.adb:
41651 (Compile_Time_Known_Attribute): New procedure.
41652 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
41653 proper range check.
41654
41655 2001-12-04 Ed Schonberg <schonber@gnat.com>
41656
41657 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
41658 processing discriminants to diagnose illegal default values.
41659
41660 2001-12-04 Ed Schonberg <schonber@gnat.com>
41661
41662 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
41663 access discriminant within a type extension that constrains its
41664 parent discriminants.
41665
41666 2001-12-04 Ed Schonberg <schonber@gnat.com>
41667
41668 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
41669 is malformed, use instance of Any_Id to allow analysis to proceed.
41670
41671 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
41672 type definition is illegal.
41673 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
41674 misplaced.
41675
41676 2001-12-04 Ed Schonberg <schonber@gnat.com>
41677
41678 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
41679 constants.
41680
41681 2001-12-04 Robert Dewar <dewar@gnat.com>
41682
41683 * errout.adb: Minor reformatting
41684
41685 2001-12-04 Robert Dewar <dewar@gnat.com>
41686
41687 * exp_util.adb: Minor reformatting from last change
41688
41689 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
41690 which is a rewriting of an expression, traverse the original
41691 expression to remove warnings that may have been posted on it.
41692
41693 2001-12-04 Ed Schonberg <schonber@gnat.com>
41694
41695 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
41696 record that has other packed components.
41697
41698 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
41699
41700 * adaint.c: Minor cleanups.
41701
41702 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
41703
41704 * adaint.c: Do not use utime.h on vxworks.
41705
41706 2001-12-04 Arnaud Charlet <charlet@gnat.com>
41707
41708 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
41709 more confusion than it solves.
41710
41711 2001-12-04 Geert bosch <bosch@gnat.com>
41712
41713 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
41714
41715 2001-12-04 Geert Bosch <bosch@gnat.com>
41716
41717 * Makefile.in (update-sources): New target.
41718 For use by gcc_release script.
41719
41720 2001-12-04 Ed Schonberg <schonber@gnat.com>
41721
41722 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
41723 a configuration pragma, it is now legal wherever a pragma can appear.
41724
41725 2001-12-04 Zack Weinberg <zack@codesourcery.com>
41726
41727 * Makefile.in: Don't set ALL. Delete @cross_defines@,
41728 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
41729 is now @CROSS@ -DIN_GCC; update comment.
41730
41731 2001-12-04 Robert Dewar <dewar@gnat.com>
41732
41733 * einfo.adb (Has_Pragma_Pure_Function): New flag.
41734 Fix problem that stopped ceinfo from working
41735
41736 * einfo.ads (Has_Pragma_Pure_Function): New flag.
41737
41738 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
41739
41740 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
41741
41742 * gnatchop.adb:
41743 (File_Time_Stamp): New procedure.
41744 (Preserve_Mode): New boolean.
41745 (Write_Unit): Pass time stamp.
41746 Implement -p switch (preserve time stamps).
41747
41748 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
41749
41750 * gnatchop.adb: Do usage info for -p switch
41751
41752 * adaint.h (__gnat_set_file_time_name): New function
41753
41754 * adaint.c (__gnat_set_file_time_name): Implement
41755
41756 * adaint.h: Fix typo
41757
41758 2001-12-03 Robert Dewar <dewar@gnat.com>
41759
41760 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
41761 have Associated_Node.
41762
41763 2001-12-03 Robert Dewar <dewar@gnat.com>
41764
41765 * prj-proc.adb: Minor reformatting
41766
41767 * make.adb: Minor reformatting
41768
41769 2001-12-03 Geert Bosch <bosch@gnat.com>
41770
41771 * make.adb: Minor reformatting.
41772
41773 2001-12-03 Robert Dewar <dewar@gnat.com>
41774
41775 * sem_ch12.adb: Minor reformatting
41776
41777 2001-12-03 Ed Schonberg <schonber@gnat.com>
41778
41779 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
41780 push Standard on the stack before analyzing the instance body,
41781 in order to have a clean visibility environment.
41782
41783 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
41784
41785 2001-12-03 Ed Schonberg <schonber@gnat.com>
41786
41787 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
41788 instantiation of a body that contains an inlined body.
41789
41790 2001-12-03 Ed Schonberg <schonber@gnat.com>
41791
41792 * sem_ch12.adb:
41793 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
41794 to prevent freezing within formal packages.
41795 (Freeze_Subprogram_Body): If body comes from another instance that
41796 appeared before its own body, place freeze node at end of current
41797 declarative part, to prevent a back-end crash.
41798 (Inline_Instance_Body): Handle properly a package instance within
41799 a subprogram instance that is a child unit.
41800
41801 2001-12-01 Graham Stott <grahams@redhat.com>
41802
41803 * Makefile.in (misc.o): Add missing $(srcdir) prefix
41804 and add optabs.h dependency.
41805
41806 * misc.c: Include optabs.h
41807 (gnat_tree_code_type): Make static and const.
41808 (gnat_tree_code_length): Likewise.
41809 (gnat_tree_code_name): Likewise.
41810 (update_setjmp_buf): Obtain operands mode from insn_data.
41811
41812 2001-11-29 Richard Henderson <rth@redhat.com>
41813
41814 * init.c: Remove obsolete dwarf2 frame.h section.
41815
41816 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
41817
41818 * Make-lang.in (ada.generated-manpages): New dummy target.
41819
41820 2001-11-29 Ed Schonberg <schonber@gnat.com>
41821
41822 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
41823 into Command, an array conversion is illegal here. Uncovered by
41824 ACATS B460005.
41825
41826 2001-11-28 Geert Bosch <bosch@gnat.com>
41827
41828 * init.c: Minor whitespace changes.
41829
41830 2001-11-28 Doug Rupp <rupp@gnat.com>
41831
41832 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
41833 signal stack.
41834
41835 2001-11-28 Zack Weinberg <zack@codesourcery.com>
41836
41837 * misc.c (gnat_expand_constant): Move declaration above
41838 definition of lang_hooks.
41839 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
41840 (gnat_init): lang_expand_constant no longer exists.
41841
41842 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
41843 always have vprintf.
41844 (gnat_init): Always call set_internal_error_function.
41845
41846 2001-11-27 Andreas Jaeger <aj@suse.de>
41847
41848 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
41849
41850 2001-11-27 Laurent Guerby <guerby@acm.org>
41851
41852 * Makefile.in: Regenerate Ada dependencies.
41853
41854 2001-11-26 Richard Henderson <rth@redhat.com>
41855
41856 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
41857 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
41858 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
41859
41860 2001-11-25 Laurent Guerby <guerby@acm.org>
41861
41862 * sysdep.c (rts_get_*): Fix style.
41863
41864 2001-11-19 Laurent Guerby <guerby@acm.org>
41865
41866 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
41867 since it is of no apparent use and cause warnings.
41868
41869 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
41870
41871 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
41872 static too.
41873 (gnat_init): Don't return NULL.
41874 (finish_parse): Remove.
41875
41876 2001-11-17 Laurent Guerby <guerby@acm.org>
41877
41878 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
41879 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
41880 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
41881 * lang-spec.h: Add missing struct field to silence warnings.
41882 * sysdep.c (rts_get_*): Provide K&R prototype.
41883 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
41884 * traceback.c (Unlock_Task, Lock_Task): Likewise.
41885 * tracebak.c (__gnat_backtrace): Remove unused variable.
41886 * utils.c (end_subprog_body): Move to K&R style.
41887
41888 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41889
41890 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
41891
41892 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
41893
41894 * misc.c (gnat_init): Change prototype. Include the
41895 functionality of the old init_parse and init_decl_processing.
41896 (gnat_init_decl_processing): New prototype.
41897 (init_parse): Remove.
41898 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
41899
41900 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
41901
41902 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
41903 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
41904 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
41905 set_yydebug): Remove.
41906
41907 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
41908
41909 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
41910 (struct lang_hooks): Constify.
41911 (language_string, lang_identify): Remove.
41912 * utils.c (init_decl_processing): Update.
41913
41914 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
41915
41916 * misc.c: Include langhooks-def.h.
41917 * Makefile.in: Update.
41918
41919 2001-10-30 Robert Dewar <dewar@gnat.com>
41920
41921 * style.adb:
41922 (Check_Identifier): Rewrite circuit to be compatible with use of letters
41923 in the upper half of ASCII.
41924 (Check_Identifier): Minor reformatting
41925
41926 2001-10-30 Geert Bosch <bosch@gnat.com>
41927
41928 * (Associated_Node, Set_Associated_Node): Do not check for
41929 Freeze_Entity.
41930
41931 2001-10-30 Robert Dewar <dewar@gnat.com>
41932
41933 * a-reatim.ads: Minor reformatting
41934
41935 2001-10-30 Robert Dewar <dewar@gnat.com>
41936
41937 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
41938 undocumented declarations.
41939
41940 2001-10-30 Pascal Obry <obry@gnat.com>
41941
41942 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
41943 to the binder and linker.
41944 Minor style fix.
41945
41946 * mdll.ads: Fix layout. Update copyright notice.
41947
41948 * mdll.adb: Fix layout. Update copyright notice.
41949
41950 2001-10-30 Robert Dewar <dewar@gnat.com>
41951
41952 * usage.adb: Minor fix to output for -gnaty.
41953
41954 2001-10-30 Ed Schonberg <schonber@gnat.com>
41955
41956 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41957 to accommodate all its possible values.
41958
41959 * a-reatim.adb (Split): Special-case handling of Time_Span_First
41960 and of small absolute values of T.
41961
41962 2001-10-30 Richard Kenner <kenner@gnat.com>
41963
41964 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41965 set_mem_attributes since not needed and wrong if RESULT if a REG;
41966 fixes ACATS failures.
41967
41968 2001-10-30 Geert Bosch <bosch@gnat.com>
41969
41970 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41971 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41972
41973 2001-10-30 Robert Dewar <dewar@gnat.com>
41974
41975 * bindusg.adb: Undocument -f switch.
41976
41977 * gnatcmd.adb: Remove /FULL_ELABORATION.
41978
41979 * opt.ads (Force_RM_Elaboration_Order): Document that this is
41980 obsolescent.
41981
41982 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
41983
41984 * gnatbind.adb: Minor update of warning msg.
41985
41986 2001-10-30 Vincent Celier <celier@gnat.com>
41987
41988 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
41989 for project file switches (-P (/PROJECT_FILE=),
41990 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
41991 or MEDIUM or HIGH)
41992
41993 2001-10-30 Geert Bosch <bosch@gnat.com>
41994
41995 * decl.c: Minor whitespace fixes.
41996
41997 2001-10-30 Richard Kenner <kenner@gnat.com>
41998
41999 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42000
42001 2001-10-30 Geert Bosch <bosch@gnat.com>
42002
42003 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42004 Found due to GCC 3.0 warning of using uninitialized value.
42005
42006 * layout.adb:
42007 (Get_Max_Size): Use variant record for tracking value/expression.
42008 Makes logic clearer and prevents warnings for uninitialized variables.
42009 (Layout_Array_Type): Use variant record for tracking value/expression.
42010 Makes logic clearer and prevents warnings for uninitialized variables.
42011
42012 2001-10-30 Robert Dewar <dewar@gnat.com>
42013
42014 * lib.adb: Minor reformatting
42015
42016 * s-taprop.ads: Minor reformatting
42017
42018 2001-10-29 Laurent Guerby <guerby@acm.org>
42019
42020 * init.c:
42021 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42022 const.
42023 (_gnat_error_handler): Make MSG const.
42024
42025 2001-10-29 Richard Kenner <kenner@gnat.com>
42026
42027 * sysdep.c: Fix localtime_r problem on LynxOS.
42028 Also remove #elif to avoid warnings.
42029
42030 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42031 used by this.
42032
42033 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42034
42035 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42036
42037 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42038 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42039 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42040 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42041 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42042 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42043 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42044 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42045 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42046 types.ads, urealp.adb: Fix spelling errors.
42047
42048 2001-10-27 Laurent Guerby <guerby@acm.org>
42049
42050 * trans.c (gigi): Fix non determinism leading to bootstrap
42051 comparison failures for debugging information.
42052
42053 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
42054
42055 * gnat_rm.texi: Use @./@: where appropriate.
42056
42057 2001-10-26 Robert Dewar <dewar@gnat.com>
42058
42059 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42060
42061 2001-10-26 Richard Kenner <kenner@gnat.com>
42062
42063 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42064
42065 2001-10-26 Richard Kenner <kenner@gnat.com>
42066
42067 * decl.c (validate_size): Modify message for bad size to avoid
42068 implication that compiler is modifying the size.
42069
42070 2001-10-26 Robert Dewar <dewar@gnat.com>
42071
42072 * prj-util.adb: Minor reformatting. Fix bad header format.
42073
42074 2001-10-26 Robert Dewar <dewar@gnat.com>
42075
42076 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42077
42078 * sinfo.ads: Clarify use of Associated_Node (documentation only).
42079
42080 * sem_ch12.adb: Change Node4 to Associated_Node. Change
42081 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42082 much more narrowly in places where needed. These are cleanups.
42083
42084 2001-10-26 Joel Brobecker <brobecke@gnat.com>
42085
42086 * 5zosinte.ads (null_pthread): new constant.
42087
42088 * 5ztaprop.adb:
42089 (Initialize_TCB): Initialize thread ID to null, to be able to verify
42090 later that this field has been set.
42091 (Finalize_TCB): ditto.
42092 (Suspend_Task): Verify that the thread ID is not null before using it.
42093 (Resume_Task): ditto.
42094
42095 * s-tasdeb.adb:
42096 (Resume_All_Tasks): Lock the tasks list before using it.
42097 (Suspend_All_Tasks): ditto.
42098
42099 2001-10-26 Richard Kenner <kenner@gnat.com>
42100
42101 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42102 Make constant variant of designated type for Is_Access_Constant.
42103 Call update_pointer_to with main variant.
42104
42105 * trans.c (process_freeze_entity, process_type):
42106 Call update_pointer_to on main variant.
42107
42108 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42109 If main variant, update all other variants.
42110
42111 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42112 TREE_STATIC.
42113
42114 2001-10-26 Robert Dewar <dewar@gnat.com>
42115
42116 * prj-util.adb: Minor reformatting
42117
42118 2001-10-26 Robert Dewar <dewar@gnat.com>
42119
42120 * prj-util.adb: Minor reformatting
42121
42122 2001-10-26 Robert Dewar <dewar@gnat.com>
42123
42124 * prj-attr.adb: Minor reformatting throughout
42125
42126 2001-10-26 Robert Dewar <dewar@gnat.com>
42127
42128 * prj-attr.ads: Minor reformatting
42129 Add ??? comment (this whole spec has almost no comments)
42130
42131 2001-10-26 Vincent Celier <celier@gnat.com>
42132
42133 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42134 ("//") that precede the drive letter on Interix.
42135
42136 2001-10-26 Geert Bosch <bosch@gnat.com>
42137
42138 * gnat_rm.texi: Add GNAT Reference Manual.
42139
42140 2001-10-25 Robert Dewar <dewar@gnat.com>
42141
42142 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42143 is Error. Similar change for other renaming cases.
42144
42145 2001-10-25 Robert Dewar <dewar@gnat.com>
42146
42147 * s-atacco.ads: Add pragma Inline_Always for functions.
42148 Fix header format. Add copyright 2001
42149
42150 2001-10-25 Ed Schonberg <schonber@gnat.com>
42151
42152 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42153 return Error rather than Empty so that analysis can proceed.
42154
42155 2001-10-25 Ed Schonberg <schonber@gnat.com>
42156
42157 * sem_util.adb (Enter_Name): better handling of cascaded error
42158 messages when a unit appears in its own context.
42159
42160 2001-10-25 Ed Schonberg <schonber@gnat.com>
42161
42162 * sem_util.adb (Defining_Entity): in case of error, attach created
42163 entity to specification, so that semantic analysis can proceed.
42164
42165 2001-10-25 Robert Dewar <dewar@gnat.com>
42166
42167 * sem_util.adb
42168 (Defining_Entity): Deal with Error.
42169 (Process_End_Label): Deal with bad end label for.
42170
42171 2001-10-25 Ed Schonberg <schonber@gnat.com>
42172
42173 * sem_elab.adb (Check_A_Call): refine message when call is in an
42174 instance but callee is not declared in the generic unit.
42175
42176 2001-10-25 Ed Schonberg <schonber@gnat.com>
42177
42178 * sem_elab.adb (Check_A_Call): check for renaming before finding the
42179 enclosing unit, which may already be different from the calling unit.
42180
42181 2001-10-25 Geert Bosch <bosch@gnat.com>
42182
42183 * 4gintnam.ads: fix header format.
42184
42185 2001-10-25 Ed Schonberg <schonber@gnat.com>
42186
42187 * sem_res.adb (Resolve_Call): if the call is actually an indexing
42188 operation on the result of a parameterless call, perform elaboration
42189 check after the node has been properly rewritten.
42190
42191 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42192 inlined within the generic tree, the defining identifier is not a
42193 compilation_unit.
42194
42195 2001-10-25 Ed Schonberg <schonber@gnat.com>
42196
42197 * sem_res.adb (Resolve): special-case resolution of Null in an
42198 instance or an inlined body to avoid view conflicts.
42199
42200 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42201 compatibility by retrieving the access type of the generic copy.
42202
42203 2001-10-25 Robert Dewar <dewar@gnat.com>
42204
42205 * sem_ch3.adb:
42206 (Analyze_Number_Declaration): Handle error expression.
42207 (Signed_Integer_Type_Declaration): Handle error bound.
42208 (Analyze_Subtype_Indication): Handle error range.
42209
42210 * sem_util.adb (Get_Index_Bounds): Check for Error.
42211
42212 2001-10-25 Robert Dewar <dewar@gnat.com>
42213
42214 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42215 in no run time mode.
42216
42217 2001-10-25 Pascal Obry <obry@gnat.com>
42218
42219 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42220 mode case for ALLOC case.
42221
42222 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42223 all platforms. Improvement of last change.
42224
42225 2001-10-25 Robert Dewar <dewar@gnat.com>
42226
42227 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42228
42229 2001-10-25 Geert Bosch <bosch@gnat.com>
42230
42231 * osint.adb (Is_Relative): Remove duplicate.
42232
42233 2001-10-25 Pascal Obry <obry@gnat.com>
42234
42235 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42236 pathnames in UNIX and DOS style with drive letter.
42237 (Is_Relative): new routine.
42238
42239 * osint.adb: Minor reformatting
42240
42241 * osint.adb (Is_Relative): implementation using
42242 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42243
42244 2001-10-25 Pascal Obry <obry@gnat.com>
42245
42246 * g-dirope.adb (Basename): correctly compute offset between the
42247 original Path and the translated one.
42248
42249 * g-dirope.adb: (Base_Name): add some comments.
42250
42251 2001-10-25 Robert Dewar <dewar@gnat.com>
42252
42253 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42254 in HIE mode, avoids compilation abandoned message
42255
42256 * exp_imgv.adb: Correct typo in previous change
42257
42258 * exp_imgv.adb: Correct typo in previous change (not my day!)
42259
42260 2001-10-25 Robert Dewar <dewar@gnat.com>
42261
42262 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42263
42264 2001-10-25 Pascal Obry <obry@gnat.com>
42265
42266 * g-awk.ads: Move all pragma inlines next to the routine
42267 declarations. This is more uniform with other GNAT spec.
42268
42269 2001-10-22 Geert Bosch <bosch@gnat.com>
42270
42271 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42272
42273 2001-10-19 Geert Bosch <bosch@gnat.com>
42274
42275 * Makefile.in (tools, gnattools): Remove gnatmem.
42276
42277 2001-10-17 Richard Henderson <rth@redhat.com>
42278
42279 * Makefile.in (misc.o): Depend on langhooks.h.
42280 * misc.c: Include it.
42281 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42282 (LANG_HOOKS_DECODE_OPTION): New.
42283 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42284
42285 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
42286
42287 * trans.c (tree_transform): Adjust to recent change in
42288 expand_asm_operands to implement named asm operands.
42289
42290 2001-10-11 Ed Schonberg <schonber@gnat.com>
42291
42292 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
42293 renaming of discriminant for mutable record type.
42294
42295 2001-10-11 Robert Dewar <dewar@gnat.com>
42296
42297 * validsw.adb: Properly save -gnatVn status.
42298
42299 2001-10-11 Robert Dewar <dewar@gnat.com>
42300
42301 * usage.adb: Add lines for V switch.
42302
42303 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
42304 (/VALIDITY_CHECKING).
42305
42306 2001-10-11 Ed Schonberg <schonber@gnat.com>
42307
42308 * sem_type.adb (Add_One_Interp): an operator for a type declared in
42309 an extension of System is known to be visible.
42310
42311 2001-10-11 Ed Schonberg <schonber@gnat.com>
42312
42313 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
42314 properly. Fixes regression on ACATS C34005G.
42315
42316 2001-10-11 Robert Dewar <dewar@gnat.com>
42317
42318 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
42319 loop in generic instance, since this is likely not very useful.
42320
42321 2001-10-11 Robert Dewar <dewar@gnat.com>
42322
42323 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
42324 the error message for high integrity mode.
42325
42326 * rtsfind.adb (RTE): Give message if we try to find an entity that
42327 is not available in high integrity mode.
42328
42329 * rtsfind.ads:
42330 (OK_To_Use_In_HIE_Mode): New array.
42331 (RTE): May return Empty in high integrity mode.
42332
42333 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
42334 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
42335
42336 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
42337 unit if not inlined always and in no runtime mode. Fixes problem
42338 caused by new Rtsfind changes.
42339
42340 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
42341 body is deleted.
42342
42343 * rtsfind.adb (RTE): Make sure we do not try to load unit after
42344 giving message for entity not available in high integrity mode.
42345
42346 2001-10-11 Pascal Obry <obry@gnat.com>
42347
42348 * impunit.adb: Add GNAT.CRC32.
42349
42350 2001-10-11 Ed Schonberg <schonber@gnat.com>
42351
42352 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
42353 properly the case where one universal operand in a non-static
42354 exponentiation of a real literal.
42355
42356 2001-10-11 Ed Schonberg <schonber@gnat.com>
42357
42358 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
42359 clause, return the gobal finalization list, for lack of anthing else.
42360
42361 2001-10-11 Ed Schonberg <schonber@gnat.com>
42362
42363 * exp_ch7.adb (Make_Transient_Block): if statement is within
42364 exception handler, always use new transient scope to place Clean
42365 procedure.
42366
42367 2001-10-11 Pascal Obry <obry@gnat.com>
42368
42369 * Makefile.in:
42370 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42371 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42372 (GNATLS_RTL_OBJS): add g-crc32.o
42373 (GNATMAKE_RTL_OBJS): add g-crc32.o
42374
42375 * ali-util.adb:
42376 (CRC_Match): new function.
42377 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
42378 instead of the previous simple checksum algorithm.
42379 (Time_Stamp_Mismatch): use CRC_Match for comparison.
42380 (Set_Source_Table): idem.
42381
42382 * ali-util.ads:
42383 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
42384 instead of simple checksum.
42385 (CRC_Match): new function.
42386 (CRC_Error): new constant.
42387
42388 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
42389 a CRC now and not a simple checksum. A CRC uses lower-case hex
42390 letters, fixes ambiguity in parsing.
42391
42392 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
42393 is what this variable will store.
42394
42395 * bcheck.adb: Change reference to chechsum in comments by CRC.
42396 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
42397 rename All_Checksum_Match to All_CRC_Match. Change due to API
42398 renaming since now GNAT does not use a simple checksum but a
42399 CRC using GNAT.CRC32.
42400
42401 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
42402 now and not anymore a simple checksum.
42403
42404 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
42405 places.
42406
42407 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
42408
42409 * scans.adb:
42410 (Restore_Scan_State): rename Checksum to CRC.
42411 (Save_Scan_State): idem.
42412
42413 * scans.ads:
42414 With GNAT.CRC32.
42415 (Checksum): rename to CRC.
42416 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
42417
42418 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
42419 GNAT.CRC32). Update copyright notice.
42420
42421 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
42422 GNAT.CRC32). Update copyright notice.
42423
42424 * scn.adb:
42425 (Accumulate_Checksum): removed.
42426 (Update): new procedure. Add a wide-character into the CRC.
42427
42428 * sinput-l.adb:
42429 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
42430 (Load_File): fix initialization of S (change Source_Checksum to
42431 Source_CRC)
42432
42433 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
42434 Source_CRC in S initialization.
42435
42436 * sinput.adb (Source_Checksum): renamed to Source_CRC.
42437
42438 * sinput.ads (Source_Checksum): renamed to Source_CRC.
42439 Update comments for the CRC.
42440
42441 * types.adb (Hex): Use lowercase for the letter part.
42442
42443 * types.ads (Get_Hex_String): Returns the hexadecimal representation
42444 for a word. This is currently used only for CRC. In previous version,
42445 the checksum was using a representation with all letter being
42446 upper-case. With the new implementation (using CRC) we do not remove
42447 the 32th bit of the CRC, so we can have an upper-case starting letter
42448 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
42449 It is ambigous since the CRC was optional and could be followed by
42450 options like EB, EE. So now this routines uses lower-case letter for
42451 the hexadecimal representation. Strange enough only lower case letters
42452 where checked in Scan_ALI (even if this was not a possible case).
42453
42454 * gnatvsn.ads (Library_Version): changed to 3.15a.
42455
42456 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
42457 for the compiler.
42458
42459 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
42460 for the compiler.
42461
42462 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
42463 Add 2001 to copyright notice
42464 (Accumulate_Checksum): Modify to use System.CRC32.
42465
42466 * ali-util.ads: Redo changes of previous revision to continue to use
42467 the word Checksum. Add 2001 to copyright notice.
42468
42469 * ali.adb: Undo some of previous changes, not needed.
42470 Keep the change for lower case letters in the checksum.
42471
42472 * ali.ads: Undo previous change not needed.
42473
42474 * bcheck.adb: Undo most of previous change, not needed.
42475 But do use Checksums_Match for checksum comparison.
42476
42477 * gnatls.adb: Undo most of previous change, not needed.
42478 But do use Checksums_Match for comparing checksums.
42479
42480 * lib-load.adb: Undo previous change, not needed.
42481
42482 * lib-writ.adb: Undo previous change, not needed.
42483
42484 * lib-writ.ads: Document that checksums use lower case,
42485 not upper case letters.
42486
42487 * scans.adb: Undo previous change, not needed
42488
42489 * scans.ads: Undo previous change, not needed.
42490
42491 * scn-nlit.adb: Undo previous changes, not needed.
42492
42493 * scn-slit.adb: Undo previous change, not needed. Fix header format.
42494
42495 * scn.adb:
42496 (Accumulate_Checksum): Use System.CRC32.
42497 (Initialize_Checksum): New procedure.
42498 Remove other changes of previous revision.
42499
42500 * sinput-p.adb: Undo previous change, not needed.
42501
42502 * sinput.adb: Undo previous change, not needed.
42503
42504 * sinput-l.adb: Undo previous change, not needed.
42505
42506 * sinput.ads: Undo previous change, not needed. Keep only comment
42507 on new checksum algorithm
42508
42509 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
42510 Also remove a-tags and a-stream from GNAT sources.
42511
42512 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
42513
42514 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
42515
42516 2001-10-11 Geert Bosch <bosch@gnat.com>
42517
42518 * einfo.h: Regenerate.
42519
42520 * nmake.ads: Regenerate.
42521
42522 * nmake.adb: Regenerate.
42523
42524 * sinfo.h: Regenerate.
42525
42526 * treeprs.adb: Regenerate.
42527
42528 2001-10-10 Geert Bosch <bosch@gnat.com>
42529
42530 * gnat-style.texi: New file describing coding guidelines for Ada.
42531
42532 2001-10-10 Ed Schonberg <schonber@gnat.com>
42533
42534 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
42535 is Flag174.
42536
42537 2001-10-10 Geert Bosch <bosch@gnat.com>
42538
42539 * snames.ads: Add new names for project facility.
42540
42541 * snames.adb: Update to reflect snames.ads changes.
42542
42543 * snames.h: Update to reflect snames.ads changes.
42544
42545 2001-10-10 Vincent Celier <celier@gnat.com>
42546
42547 * make.adb:
42548 (Add_Switches): reflect the changes for the switches attributes
42549 Default_Switches indexed by the programming language,
42550 Switches indexed by the file name.
42551 (Collect_Arguments_And_Compile): Idem.
42552 Reflect the attribute name changes.
42553
42554 * prj-attr.adb:
42555 (Initialisation_Data): Change the names of some packages and
42556 attributes.
42557 (Initialize): process case insensitive associative arrays.
42558
42559 * prj-attr.ads:
42560 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
42561
42562 * prj-dect.adb:
42563 (Parse_Attribute_Declaration): For case insensitive associative
42564 arrays, set the index string to lower case.
42565
42566 * prj-env.adb:
42567 Reflect the changes of the project attributes.
42568
42569 * prj-nmsc.adb:
42570 Replace Check_Naming_Scheme by Ada_Check and
42571 Language_Independent_Check.
42572
42573 * prj-nmsc.ads:
42574 Replaced Check_Naming_Scheme by 2 procedures:
42575 Ada_Check and Language_Independent_Check.
42576
42577 * prj-proc.adb:
42578 (Process_Declarative_Items): For case-insensitive associative
42579 arrays, set the index string to lower case.
42580 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
42581 Prj.Nmsc.Check_Naming_Scheme.
42582
42583 * prj-tree.adb:
42584 (Case_Insensitive): New function
42585 (Set_Case_Insensitive): New procedure
42586
42587 * prj-tree.ads:
42588 (Case_Insensitive): New function
42589 (Set_Case_Insensitive): New procedure
42590 (Project_Node_Record): New flag Case_Insensitive.
42591
42592 * prj-util.adb:
42593 (Value_Of): new function to get the string value of a single
42594 string variable or attribute.
42595
42596 * prj-util.ads:
42597 (Value_Of): new function to get the string value of a single
42598 string variable or attribute.
42599
42600 * prj.adb:
42601 (Ada_Default_Spec_Suffix): New function
42602 (Ada_Default_Impl_Suffix): New function
42603 Change definitions of several constants to reflect
42604 new components of record types.
42605
42606 * prj.ads:
42607 (Naming_Data): Change several components to reflect new
42608 elements of naming schemes.
42609 (Project_Data): New flags Sources_Present and
42610 Language_Independent_Checked.
42611 (Ada_Default_Spec_Suffix): New function.
42612 (Ada_Default_Impl_Suffix): New function.
42613
42614 * snames.ads:
42615 Modification of predefined names for project manager: added
42616 Implementation, Specification_Exceptions, Implementation_Exceptions,
42617 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
42618 Default_Switches, _Languages, Builder, Cross_Reference,
42619 Finder. Removed Body_Part, Specification_Append, Body_Append,
42620 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
42621 Gnatlink.
42622
42623 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42624 Add comments.
42625
42626 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
42627 not that it is Nil_Variable_Value.
42628
42629 * prj.ads: Add ??? for uncommented declarations
42630
42631 2001-10-10 Ed Schonberg <schonber@gnat.com>
42632
42633 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
42634 constant, do not indicate possible modification, so that gigi can
42635 treat it as a bona fide constant.
42636
42637 2001-10-10 Robert Dewar <dewar@gnat.com>
42638
42639 * sem_prag.adb: Add processing for pragma External.
42640
42641 * snames.ads: Add entry for pragma External.
42642
42643 * par-prag.adb: Add pragma External.
42644
42645 * snames.adb: Updated to match snames.ads.
42646
42647 2001-10-10 Ed Schonberg <schonber@gnat.com>
42648
42649 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
42650 a dynamic task if the allocator appears in an indexed assignment
42651 or selected component assignment.
42652
42653 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
42654 For a dynamic task in an assignment statement, use target of
42655 assignment to generate meaningful name.
42656
42657 2001-10-10 Ed Schonberg <schonber@gnat.com>
42658
42659 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
42660 a generic package.
42661
42662 * einfo.ads: Body_Entity is also defined for generic package.
42663 Documentation change only
42664
42665 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
42666 others_choice for a discriminated component initialization,
42667 convert discriminant references into the corresponding discriminals.
42668
42669 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
42670 only if original type is private and expression has to be wrapped
42671 in a conversion.
42672
42673 * checks.adb:
42674 (Apply_Constraint_Check): Do not perform length check
42675 if expression is an aggregate with only an others_choice.
42676 (Length_N_Cond): two references to the same in_parameter
42677 (typically the discriminal in an init_proc) denote the same value.
42678 Two useful optimization uncovered by bugfixes above.
42679
42680 2001-10-10 Robert Dewar <dewar@gnat.com>
42681
42682 * xeinfo.adb: Change int to char in translation of enumeration types.
42683 This fixes a problem in the C representation of component alignment.
42684 Add 2001 to copyright notice
42685
42686 2001-10-10 Richard Kenner <kenner@gnat.com>
42687
42688 * decl.c: (validate_size): Do check size of object of integral type
42689 if it is a packed array type.
42690
42691 2001-10-10 Richard Kenner <kenner@gnat.com>
42692
42693 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
42694 VAR_DECL for constant if not Is_Public but -O0.
42695
42696 2001-10-10 Richard Kenner <kenner@gnat.com>
42697
42698 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
42699
42700 2001-10-10 Geert Bosch <bosch@gnat.com>
42701
42702 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
42703 use '/' as switch character, allowing for absolute file names.
42704
42705 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
42706
42707 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
42708 FSF address.
42709
42710 2001-10-08 Geert Bosch <bosch@gnat.com>
42711
42712 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
42713 Automatically build utilities when files need to be regenerated.
42714
42715 2001-10-08 Geert Bosch <bosch@gnat.com>
42716
42717 * xsnames.adb: New utility for updating snames.ads and snames.adb
42718
42719 2001-10-08 Zack Weinberg <zack@codesourcery.com>
42720
42721 * Make-lang.in (ADAFLAGS): Add -W -Wall.
42722 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
42723 (gnat1): Also depend on attribs.o.
42724 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
42725 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
42726 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
42727 (ADAFLAGS): Add -W -Wall.
42728 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
42729 take out CFLAGS.
42730
42731 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
42732 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
42733 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
42734 Use $(ADAC), not $(CC), as compilation command.
42735
42736 (gnattools): Depend directly on tools to build, don't use
42737 recursive make.
42738 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
42739
42740 * einfo.h, sinfo.h: New files (autogenerated).
42741
42742 2001-10-08 Richard Henderson <rth@redhat.com>
42743
42744 * comperr.adb (Abort_In_Progress): New.
42745 (Compiler_Abort): Use it to prevent recursion.
42746
42747 2001-10-08 Robert Dewar <dewar@gnat.com>
42748
42749 * atree.adb: Set Error_Posted in Error node, helps error recovery.
42750
42751 * par-endh.adb (Output_End_Expected): We should also not test
42752 Error_Posted on the Error node, since now it is always set.
42753
42754 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
42755 to help error recovery. Part of general work on 9407-004.
42756
42757 * par.adb: Add ??? for misuse of error
42758
42759 * sem_res.adb:
42760 (Resolve): Defend against Error, fixes 9407-003.
42761 (Resolve_Discrete_Subtype_Indication): Defend against Error.
42762
42763 * sinfo.ads (N_Error): Now has Etype field (which will be set
42764 to Any_Type to help error recovery).
42765
42766 2001-10-08 Richard Kenner <kenner@gnat.com>
42767
42768 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
42769 Consistently set MEM attributes from expression; fixes
42770 bootstrap failure on x86.
42771
42772 2001-10-08 Geert Bosch <bosch@gnat.com>
42773
42774 * 5oosinte.adb: Add 2001 to copyright notice.
42775
42776 2001-10-08 Geert Bosch <bosch@gnat.com>
42777
42778 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
42779
42780 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
42781
42782 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
42783
42784 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
42785
42786 2001-10-05 Geert Bosch <bosch@gnat.com>
42787
42788 * adaint.h: Small formatting fix.
42789
42790 2001-10-04 Geert Bosch <bosch@gnat.com>
42791
42792 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
42793 Arg is int, not FILE *, in dummy version of functions.
42794
42795 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
42796 Arg is int, not FILE *.
42797
42798 2001-10-04 Geert Bosch <bosch@gnat.com>
42799
42800 * 3lsoccon.ads: Added file, missed with initial check ins.
42801
42802 * 4lintnam.ads: Fix header format.
42803 Change Linux to GNU/Linux.
42804
42805 * 5iosinte.adb: Change Linux to GNU/Linux.
42806
42807 * 5iosinte.ads: Change Linux to GNU/Linux.
42808
42809 * 5itaprop.adb: Change Linux to GNU/Linux.
42810
42811 * 5itaspri.ads: Change Linux to GNU/Linux.
42812 Update copyright notice.
42813
42814 * 5lintman.adb: Change Linux to GNU/Linux.
42815
42816 * 5lml-tgt.adb: Change Linux to GNU/Linux.
42817
42818 * 5losinte.ads: Change Linux to GNU/Linux.
42819
42820 * 5lsystem.ads: Change Linux to GNU/Linux.
42821
42822 * 5qosinte.adb: Change Linux to GNU/Linux.
42823
42824 * 5qosinte.ads: Change Linux to GNU/Linux.
42825
42826 * 5qparame.ads: Change Linux to GNU/Linux.
42827
42828 * 5qtaprop.adb: Change Linux to GNU/Linux.
42829
42830 * 5qtaspri.ads: Change Linux to GNU/Linux.
42831 Add 2001 to copyright notice.
42832
42833 * 5vintman.ads: Change Linux to GNU/Linux.
42834 Fix header format. Add 2001 to copyright notice.
42835
42836 * g-soccon.ads: Change Linux to GNU/Linux.
42837
42838 * g-trasym.ads: Change Linux to GNU/Linux.
42839 Add 2001 to copyright notice.
42840
42841 * memtrack.adb: Change Linux to GNU/Linux.
42842
42843 * s-intman.ads: Change Linux to GNU/Linux.
42844 Add 2001 to copyright notice. Fix header format.
42845
42846 * s-stache.adb: Change Linux to GNU/Linux.
42847
42848 * adaint.c: Change Linux to GNU/Linux.
42849
42850 * cio.c: Change Linux to GNU/Linux.
42851
42852 * cstreams.c: Change Linux to GNU/Linux.
42853
42854 * init.c: Change Linux to GNU/Linux.
42855
42856 * gmem.c: Change Linux to GNU/Linux.
42857
42858 * tracebak.c: Change Linux to GNU/Linux.
42859
42860
42861 2001-10-02 Geert Bosch <bosch@gnat.com>
42862
42863 * misc.c (insert_default_attributes): Add dummy version.